Skip to content
v2.277.0

WebFunctionS3Location Struct ​

S3 location for WebFunction code.

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 webFunctionS3Location: lambda.WebFunctionS3Location = {
  bucketName: 'bucketName',
  objectKey: 'objectKey',

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

web_function_s3_location = lambda.WebFunctionS3Location(
    bucket_name="bucketName",
    object_key="objectKey",

    # the properties below are optional
    object_version="objectVersion"
)
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.*;

WebFunctionS3Location webFunctionS3Location = WebFunctionS3Location.builder()
        .bucketName("bucketName")
        .objectKey("objectKey")

        // the properties below are optional
        .objectVersion("objectVersion")
        .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 webFunctionS3Location = new WebFunctionS3Location {
    BucketName = "bucketName",
    ObjectKey = "objectKey",

    // the properties below are optional
    ObjectVersion = "objectVersion"
};
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"

webFunctionS3Location := &WebFunctionS3Location{
	BucketName: jsii.String("bucketName"),
	ObjectKey: jsii.String("objectKey"),

	// the properties below are optional
	ObjectVersion: jsii.String("objectVersion"),
}

Properties ​

bucketNamestringbucket_namestrbucketNameStringBucketNamestringBucketName*string required #
The S3 bucket name.
objectKeystringobject_keystrobjectKeyStringObjectKeystringObjectKey*string required #
The S3 object key.
objectVersionoptionalstringobject_versionoptionalstrobjectVersionoptionalStringObjectVersionoptionalstringObjectVersionoptional*string #
The S3 object version (optional).

Default: the version that is latest when the revision is created