Skip to content
v2.277.0

CodeConfigProperty Struct ​

The code configuration for the revision.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const codeConfigProperty: lambda.CfnWebFunctionRevision.CodeConfigProperty = {
  s3Object: {
    bucket: 'bucket',
    key: 'key',

    // the properties below are optional
    versionId: 'versionId',
  },
};
python
# 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_

code_config_property = lambda.CfnWebFunctionRevision.CodeConfigProperty(
    s3_object=lambda.CfnWebFunctionRevision.S3ObjectProperty(
        bucket="bucket",
        key="key",

        # the properties below are optional
        version_id="versionId"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;

CodeConfigProperty codeConfigProperty = CodeConfigProperty.builder()
        .s3Object(S3ObjectProperty.builder()
                .bucket("bucket")
                .key("key")

                // the properties below are optional
                .versionId("versionId")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;

var codeConfigProperty = new CodeConfigProperty {
    S3Object = new S3ObjectProperty {
        Bucket = "bucket",
        Key = "key",

        // the properties below are optional
        VersionId = "versionId"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

codeConfigProperty := &CodeConfigProperty{
	S3Object: &S3ObjectProperty{
		Bucket: jsii.String("bucket"),
		Key: jsii.String("key"),

		// the properties below are optional
		VersionId: jsii.String("versionId"),
	},
}

Properties ​

s3ObjectIResolvable | CfnWebFunctionRevision.S3ObjectPropertys3_objecttyping.Union[IResolvable, S3ObjectProperty]s3ObjectIResolvableS3ObjectIResolvableS3Objectinterface{} required #
The S3 location of the function code.