CfnWebFunctionRevisionProps

class aws_cdk.aws_lambda.CfnWebFunctionRevisionProps(*, build_config, function_name, service_config, description=None, kms_key_arn=None)

Bases: object

Properties for defining a CfnWebFunctionRevision.

Parameters:
  • build_config (Union[IResolvable, BuildConfigProperty, Dict[str, Any]]) – The build configuration for the revision.

  • function_name (str) – The name of the web function this revision belongs to. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

  • service_config (Union[IResolvable, ServiceConfigProperty, Dict[str, Any]]) – The service configuration for the revision.

  • description (Optional[str]) – A description of the revision.

  • kms_key_arn (Optional[str]) – The ARN of the KMS key used to encrypt the revision.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-webfunctionrevision.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 import aws_lambda as lambda_

cfn_web_function_revision_props = lambda.CfnWebFunctionRevisionProps(
    build_config=lambda.CfnWebFunctionRevision.BuildConfigProperty(
        code_config=lambda.CfnWebFunctionRevision.CodeConfigProperty(
            s3_object=lambda.CfnWebFunctionRevision.S3ObjectProperty(
                bucket="bucket",
                key="key",

                # the properties below are optional
                version_id="versionId"
            )
        ),
        runtime_config=lambda.CfnWebFunctionRevision.RuntimeConfigProperty(
            runtime="runtime"
        )
    ),
    function_name="functionName",
    service_config=lambda.CfnWebFunctionRevision.ServiceConfigProperty(
        execution_role_arn="executionRoleArn",

        # the properties below are optional
        environment_variables={
            "environment_variables_key": "environmentVariables"
        },
        max_concurrency_per_environment=123,
        telemetry_config=lambda.CfnWebFunctionRevision.TelemetryConfigProperty(
            logging_config=lambda.CfnWebFunctionRevision.LoggingConfigProperty(
                application_log_level="applicationLogLevel",
                log_group="logGroup",
                system_log_level="systemLogLevel"
            )
        ),
        timeout_seconds=123
    ),

    # the properties below are optional
    description="description",
    kms_key_arn="kmsKeyArn"
)

Attributes

build_config

The build configuration for the revision.

See:

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

description

A description of the revision.

See:

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

function_name

The name of the web function this revision belongs to.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

See:

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

kms_key_arn

The ARN of the KMS key used to encrypt the revision.

See:

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

service_config

The service configuration for the revision.

See:

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