S3LocationProperty Struct
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sam as sam } from 'aws-cdk-lib';
const s3LocationProperty: sam.CfnFunction.S3LocationProperty = {
bucket: 'bucket',
key: 'key',
// the properties below are optional
version: 123,
};
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_sam as sam
s3_location_property = sam.CfnFunction.S3LocationProperty(
bucket="bucket",
key="key",
# the properties below are optional
version=123
)
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.sam.*;
S3LocationProperty s3LocationProperty = S3LocationProperty.builder()
.bucket("bucket")
.key("key")
// the properties below are optional
.version(123)
.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.SAM;
var s3LocationProperty = new S3LocationProperty {
Bucket = "bucket",
Key = "key",
// the properties below are optional
Version = 123
};
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"
s3LocationProperty := &S3LocationProperty{
Bucket: jsii.String("bucket"),
Key: jsii.String("key"),
// the properties below are optional
Version: jsii.Number(123),
}