CfnWebFunctionRevisionPropsMixin

class aws_cdk.cfn_property_mixins.aws_lambda.CfnWebFunctionRevisionPropsMixin(props, *, strategy=None)

Bases: Mixin

Resource Type definition for AWS::Lambda::WebFunctionRevision.

An immutable revision of a Lambda web function, containing the function code and configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-webfunctionrevision.html

CloudformationResource:

AWS::Lambda::WebFunctionRevision

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_lambda as lambda_
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_web_function_revision_props_mixin = lambda_.CfnWebFunctionRevisionPropsMixin(lambda.CfnWebFunctionRevisionMixinProps(
    build_config=lambda.CfnWebFunctionRevisionPropsMixin.BuildConfigProperty(
        code_config=lambda.CfnWebFunctionRevisionPropsMixin.CodeConfigProperty(
            s3_object=lambda.CfnWebFunctionRevisionPropsMixin.S3ObjectProperty(
                bucket="bucket",
                key="key",
                version_id="versionId"
            )
        ),
        runtime_config=lambda.CfnWebFunctionRevisionPropsMixin.RuntimeConfigProperty(
            runtime="runtime"
        )
    ),
    description="description",
    function_name="functionName",
    kms_key_arn="kmsKeyArn",
    service_config=lambda.CfnWebFunctionRevisionPropsMixin.ServiceConfigProperty(
        environment_variables={
            "environment_variables_key": "environmentVariables"
        },
        execution_role_arn="executionRoleArn",
        max_concurrency_per_environment=123,
        telemetry_config=lambda.CfnWebFunctionRevisionPropsMixin.TelemetryConfigProperty(
            logging_config=lambda.CfnWebFunctionRevisionPropsMixin.LoggingConfigProperty(
                application_log_level="applicationLogLevel",
                log_group="logGroup",
                system_log_level="systemLogLevel"
            )
        ),
        timeout_seconds=123
    )
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::Lambda::WebFunctionRevision.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['buildConfig', 'description', 'functionName', 'kmsKeyArn', 'serviceConfig']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

BuildConfigProperty

class CfnWebFunctionRevisionPropsMixin.BuildConfigProperty(*, code_config=None, runtime_config=None)

Bases: object

The build configuration for the revision.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-buildconfig.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_lambda as lambda_

build_config_property = lambda.CfnWebFunctionRevisionPropsMixin.BuildConfigProperty(
    code_config=lambda.CfnWebFunctionRevisionPropsMixin.CodeConfigProperty(
        s3_object=lambda.CfnWebFunctionRevisionPropsMixin.S3ObjectProperty(
            bucket="bucket",
            key="key",
            version_id="versionId"
        )
    ),
    runtime_config=lambda.CfnWebFunctionRevisionPropsMixin.RuntimeConfigProperty(
        runtime="runtime"
    )
)

Attributes

code_config

The code configuration for the revision.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-buildconfig.html#cfn-lambda-webfunctionrevision-buildconfig-codeconfig

runtime_config

The runtime configuration for the revision.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-buildconfig.html#cfn-lambda-webfunctionrevision-buildconfig-runtimeconfig

CodeConfigProperty

class CfnWebFunctionRevisionPropsMixin.CodeConfigProperty(*, s3_object=None)

Bases: object

The code configuration for the revision.

Parameters:

s3_object (Union[IResolvable, S3ObjectProperty, Dict[str, Any], None]) – The S3 location of the function code.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-codeconfig.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_lambda as lambda_

code_config_property = lambda.CfnWebFunctionRevisionPropsMixin.CodeConfigProperty(
    s3_object=lambda.CfnWebFunctionRevisionPropsMixin.S3ObjectProperty(
        bucket="bucket",
        key="key",
        version_id="versionId"
    )
)

Attributes

s3_object

The S3 location of the function code.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-codeconfig.html#cfn-lambda-webfunctionrevision-codeconfig-s3object

LoggingConfigProperty

class CfnWebFunctionRevisionPropsMixin.LoggingConfigProperty(*, application_log_level=None, log_group=None, system_log_level=None)

Bases: object

The logging configuration.

Parameters:
  • application_log_level (Optional[str]) – The application log level.

  • log_group (Optional[str]) – The CloudWatch log group name.

  • system_log_level (Optional[str]) – The system log level.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-loggingconfig.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_lambda as lambda_

logging_config_property = lambda.CfnWebFunctionRevisionPropsMixin.LoggingConfigProperty(
    application_log_level="applicationLogLevel",
    log_group="logGroup",
    system_log_level="systemLogLevel"
)

Attributes

application_log_level

The application log level.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-loggingconfig.html#cfn-lambda-webfunctionrevision-loggingconfig-applicationloglevel

log_group

The CloudWatch log group name.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-loggingconfig.html#cfn-lambda-webfunctionrevision-loggingconfig-loggroup

system_log_level

The system log level.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-loggingconfig.html#cfn-lambda-webfunctionrevision-loggingconfig-systemloglevel

RuntimeConfigProperty

class CfnWebFunctionRevisionPropsMixin.RuntimeConfigProperty(*, runtime=None)

Bases: object

The runtime configuration for the revision.

Parameters:

runtime (Optional[str]) – The runtime identifier.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-runtimeconfig.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_lambda as lambda_

runtime_config_property = lambda.CfnWebFunctionRevisionPropsMixin.RuntimeConfigProperty(
    runtime="runtime"
)

Attributes

runtime

The runtime identifier.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-runtimeconfig.html#cfn-lambda-webfunctionrevision-runtimeconfig-runtime

S3ObjectProperty

class CfnWebFunctionRevisionPropsMixin.S3ObjectProperty(*, bucket=None, key=None, version_id=None)

Bases: object

The S3 location of the function code.

Parameters:
  • bucket (Optional[str]) – The S3 bucket name.

  • key (Optional[str]) – The S3 object key.

  • version_id (Optional[str]) – The S3 object version ID.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-s3object.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_lambda as lambda_

s3_object_property = lambda.CfnWebFunctionRevisionPropsMixin.S3ObjectProperty(
    bucket="bucket",
    key="key",
    version_id="versionId"
)

Attributes

bucket

The S3 bucket name.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-s3object.html#cfn-lambda-webfunctionrevision-s3object-bucket

key

The S3 object key.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-s3object.html#cfn-lambda-webfunctionrevision-s3object-key

version_id

The S3 object version ID.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-s3object.html#cfn-lambda-webfunctionrevision-s3object-versionid

ServiceConfigProperty

class CfnWebFunctionRevisionPropsMixin.ServiceConfigProperty(*, environment_variables=None, execution_role_arn=None, max_concurrency_per_environment=None, telemetry_config=None, timeout_seconds=None)

Bases: object

The service configuration for the revision.

Parameters:
  • environment_variables (Union[IResolvable, Mapping[str, str], None]) – Environment variables for the function.

  • execution_role_arn (Optional[str]) – The ARN of the execution role.

  • max_concurrency_per_environment (Union[int, float, None]) – The maximum concurrency per environment.

  • telemetry_config (Union[IResolvable, TelemetryConfigProperty, Dict[str, Any], None]) – The telemetry configuration.

  • timeout_seconds (Union[int, float, None]) – The function timeout in seconds.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-serviceconfig.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_lambda as lambda_

service_config_property = lambda.CfnWebFunctionRevisionPropsMixin.ServiceConfigProperty(
    environment_variables={
        "environment_variables_key": "environmentVariables"
    },
    execution_role_arn="executionRoleArn",
    max_concurrency_per_environment=123,
    telemetry_config=lambda.CfnWebFunctionRevisionPropsMixin.TelemetryConfigProperty(
        logging_config=lambda.CfnWebFunctionRevisionPropsMixin.LoggingConfigProperty(
            application_log_level="applicationLogLevel",
            log_group="logGroup",
            system_log_level="systemLogLevel"
        )
    ),
    timeout_seconds=123
)

Attributes

environment_variables

Environment variables for the function.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-serviceconfig.html#cfn-lambda-webfunctionrevision-serviceconfig-environmentvariables

execution_role_arn

The ARN of the execution role.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-serviceconfig.html#cfn-lambda-webfunctionrevision-serviceconfig-executionrolearn

max_concurrency_per_environment

The maximum concurrency per environment.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-serviceconfig.html#cfn-lambda-webfunctionrevision-serviceconfig-maxconcurrencyperenvironment

telemetry_config

The telemetry configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-serviceconfig.html#cfn-lambda-webfunctionrevision-serviceconfig-telemetryconfig

timeout_seconds

The function timeout in seconds.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-serviceconfig.html#cfn-lambda-webfunctionrevision-serviceconfig-timeoutseconds

TelemetryConfigProperty

class CfnWebFunctionRevisionPropsMixin.TelemetryConfigProperty(*, logging_config=None)

Bases: object

The telemetry configuration.

Parameters:

logging_config (Union[IResolvable, LoggingConfigProperty, Dict[str, Any], None]) – The logging configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-telemetryconfig.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_lambda as lambda_

telemetry_config_property = lambda.CfnWebFunctionRevisionPropsMixin.TelemetryConfigProperty(
    logging_config=lambda.CfnWebFunctionRevisionPropsMixin.LoggingConfigProperty(
        application_log_level="applicationLogLevel",
        log_group="logGroup",
        system_log_level="systemLogLevel"
    )
)

Attributes

logging_config

The logging configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-webfunctionrevision-telemetryconfig.html#cfn-lambda-webfunctionrevision-telemetryconfig-loggingconfig