public static final class LambdaToS3.Builder extends Object implements software.amazon.jsii.Builder<LambdaToS3>
LambdaToS3.| Modifier and Type | Method and Description |
|---|---|
LambdaToS3.Builder |
bucketEnvironmentVariableName(String bucketEnvironmentVariableName)
Optional Name for the S3 bucket environment variable set for the Lambda function.
|
LambdaToS3.Builder |
bucketPermissions(List<String> bucketPermissions)
Optional bucket permissions to grant to the Lambda function.
|
LambdaToS3.Builder |
bucketProps(software.amazon.awscdk.services.s3.BucketProps bucketProps)
User provided props to override the default props for the S3 Bucket.
|
LambdaToS3 |
build() |
static LambdaToS3.Builder |
create(software.amazon.awscdk.core.Construct scope,
String id) |
LambdaToS3.Builder |
deployVpc(Boolean deployVpc)
Whether to deploy a new VPC.
|
LambdaToS3.Builder |
existingBucketObj(software.amazon.awscdk.services.s3.IBucket existingBucketObj)
Existing instance of S3 Bucket object, providing both this and `bucketProps` will cause an error.
|
LambdaToS3.Builder |
existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj)
Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.
|
LambdaToS3.Builder |
existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc)
An existing VPC for the construct to use (construct will NOT create a new VPC in this case).
|
LambdaToS3.Builder |
lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps)
User provided props to override the default props for the Lambda function.
|
LambdaToS3.Builder |
vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps)
Properties to override default properties if deployVpc is true.
|
public static LambdaToS3.Builder create(software.amazon.awscdk.core.Construct scope, String id)
scope - - represents the scope for all the resources. This parameter is required.id - - this is a a scope-unique id. This parameter is required.LambdaToS3.Builder.public LambdaToS3.Builder bucketEnvironmentVariableName(String bucketEnvironmentVariableName)
Default: - None
bucketEnvironmentVariableName - Optional Name for the S3 bucket environment variable set for the Lambda function. This parameter is required.thispublic LambdaToS3.Builder bucketPermissions(List<String> bucketPermissions)
One or more of the following may be specified: "Delete", "Put", "Read", "ReadWrite", "Write".
Default: - Read/write access is given to the Lambda function if no value is specified.
bucketPermissions - Optional bucket permissions to grant to the Lambda function. This parameter is required.thispublic LambdaToS3.Builder bucketProps(software.amazon.awscdk.services.s3.BucketProps bucketProps)
Default: - Default props are used
bucketProps - User provided props to override the default props for the S3 Bucket. This parameter is required.thispublic LambdaToS3.Builder deployVpc(Boolean deployVpc)
Default: - false
deployVpc - Whether to deploy a new VPC. This parameter is required.thispublic LambdaToS3.Builder existingBucketObj(software.amazon.awscdk.services.s3.IBucket existingBucketObj)
Default: - None
existingBucketObj - Existing instance of S3 Bucket object, providing both this and `bucketProps` will cause an error. This parameter is required.thispublic LambdaToS3.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj)
Default: - None
existingLambdaObj - Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error. This parameter is required.thispublic LambdaToS3.Builder existingVpc(software.amazon.awscdk.services.ec2.IVpc existingVpc)
existingVpc - An existing VPC for the construct to use (construct will NOT create a new VPC in this case). This parameter is required.thispublic LambdaToS3.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps)
Default: - Default properties are used.
lambdaFunctionProps - User provided props to override the default props for the Lambda function. This parameter is required.thispublic LambdaToS3.Builder vpcProps(software.amazon.awscdk.services.ec2.VpcProps vpcProps)
vpcProps - Properties to override default properties if deployVpc is true. This parameter is required.thispublic LambdaToS3 build()
build in interface software.amazon.jsii.Builder<LambdaToS3>Copyright © 2021. All rights reserved.