class S3Destination
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lambda.Destinations.S3Destination |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambdadestinations#S3Destination |
Java | software.amazon.awscdk.services.lambda.destinations.S3Destination |
Python | aws_cdk.aws_lambda_destinations.S3Destination |
TypeScript (source) | aws-cdk-lib » aws_lambda_destinations » S3Destination |
Implements
IDestination
Use a S3 bucket as a Lambda destination.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda_destinations as lambda_destinations } from 'aws-cdk-lib';
import { aws_s3 as s3 } from 'aws-cdk-lib';
declare const bucket: s3.Bucket;
const s3Destination = new lambda_destinations.S3Destination(bucket);
Initializer
new S3Destination(bucket: IBucket)
Parameters
- bucket
IBucket
Methods
Name | Description |
---|---|
bind(_scope, fn, _options?) | Returns a destination configuration. |
bind(_scope, fn, _options?)
public bind(_scope: Construct, fn: IFunction, _options?: DestinationOptions): DestinationConfig
Parameters
- _scope
Construct
- fn
IFunction
- _options
Destination
Options
Returns
Returns a destination configuration.