Documentation ¶
Overview ¶
CDK constructs for defining an interaction between an AWS Lambda function and an Amazon S3 bucket.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LambdaToS3_IsConstruct ¶
func LambdaToS3_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NewLambdaToS3_Override ¶
func NewLambdaToS3_Override(l LambdaToS3, scope constructs.Construct, id *string, props *LambdaToS3Props)
Types ¶
type LambdaToS3 ¶
type LambdaToS3 interface { constructs.Construct LambdaFunction() awslambda.Function Node() constructs.Node S3Bucket() awss3.Bucket S3BucketInterface() awss3.IBucket S3LoggingBucket() awss3.Bucket Vpc() awsec2.IVpc ToString() *string }
func NewLambdaToS3 ¶
func NewLambdaToS3(scope constructs.Construct, id *string, props *LambdaToS3Props) LambdaToS3
type LambdaToS3Props ¶
type LambdaToS3Props struct { // Optional name for the S3 bucket environment variable set for the Lambda function. BucketEnvironmentVariableName *string `json:"bucketEnvironmentVariableName"` // Optional bucket permissions to grant to the Lambda function. // // One or more of the following may be specified: "Delete", "Put", "Read", "ReadWrite", "Write". BucketPermissions *[]*string `json:"bucketPermissions"` // Optional user provided props to override the default props for the S3 Bucket. BucketProps *awss3.BucketProps `json:"bucketProps"` // Whether to deploy a new VPC. DeployVpc *bool `json:"deployVpc"` // Existing instance of S3 Bucket object, providing both this and `bucketProps` will cause an error. ExistingBucketObj awss3.IBucket `json:"existingBucketObj"` // Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error. ExistingLambdaObj awslambda.Function `json:"existingLambdaObj"` // An existing VPC for the construct to use (construct will NOT create a new VPC in this case). ExistingVpc awsec2.IVpc `json:"existingVpc"` // Optional user provided props to override the default props for the Lambda function. LambdaFunctionProps *awslambda.FunctionProps `json:"lambdaFunctionProps"` // Optional user provided props to override the default props for the S3 Logging Bucket. LoggingBucketProps *awss3.BucketProps `json:"loggingBucketProps"` // Whether to turn on Access Logs for the S3 bucket with the associated storage costs. // // Enabling Access Logging is a best practice. LogS3AccessLogs *bool `json:"logS3AccessLogs"` // Properties to override default properties if deployVpc is true. VpcProps *awsec2.VpcProps `json:"vpcProps"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.