@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:09.719Z") @Stability(value=Experimental) public class S3Bucket extends software.amazon.jsii.JsiiObject implements IDestination
Example:
Bucket bucket;
// Provide a Lambda function that will transform records before delivery, with custom
// buffering and retry configuration
Function lambdaFunction = Function.Builder.create(this, "Processor")
.runtime(Runtime.NODEJS_12_X)
.handler("index.handler")
.code(Code.fromAsset(join(__dirname, "process-records")))
.build();
LambdaFunctionProcessor lambdaProcessor = LambdaFunctionProcessor.Builder.create(lambdaFunction)
.bufferInterval(Duration.minutes(5))
.bufferSize(Size.mebibytes(5))
.retries(5)
.build();
S3Bucket s3Destination = S3Bucket.Builder.create(bucket)
.processor(lambdaProcessor)
.build();
DeliveryStream.Builder.create(this, "Delivery Stream")
.destinations(List.of(s3Destination))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
S3Bucket.Builder
(experimental) A fluent builder for
S3Bucket. |
software.amazon.jsii.JsiiObject.InitializationModeIDestination.Jsii$Default, IDestination.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
S3Bucket(IBucket bucket) |
|
S3Bucket(IBucket bucket,
S3BucketProps props) |
protected |
S3Bucket(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
S3Bucket(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
DestinationConfig |
bind(software.constructs.Construct scope,
DestinationBindOptions _options)
(experimental) Binds this destination to the Kinesis Data Firehose delivery stream.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected S3Bucket(software.amazon.jsii.JsiiObjectRef objRef)
protected S3Bucket(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public S3Bucket(@NotNull
IBucket bucket,
@Nullable
S3BucketProps props)
bucket - This parameter is required.props - @Stability(value=Experimental)
public S3Bucket(@NotNull
IBucket bucket)
bucket - This parameter is required.@Stability(value=Experimental) @NotNull public DestinationConfig bind(@NotNull software.constructs.Construct scope, @NotNull DestinationBindOptions _options)
Implementers should use this method to bind resources to the stack and initialize values using the provided stream.
bind in interface IDestinationscope - This parameter is required._options - This parameter is required.Copyright © 2022. All rights reserved.