Class S3ObjectsItemReader
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.stepfunctions.S3ObjectsItemReader
- All Implemented Interfaces:
IItemReader,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.94.0 (build b380f01)",
date="2024-03-14T22:22:02.300Z")
@Stability(Stable)
public class S3ObjectsItemReader
extends software.amazon.jsii.JsiiObject
implements IItemReader
Item Reader configuration for iterating over objects in an S3 bucket.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3.*;
import software.amazon.awscdk.services.stepfunctions.*;
Bucket bucket;
S3ObjectsItemReader s3ObjectsItemReader = S3ObjectsItemReader.Builder.create()
.bucket(bucket)
// the properties below are optional
.maxItems(123)
.prefix("prefix")
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.stepfunctions.IItemReader
IItemReader.Jsii$Default, IItemReader.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedS3ObjectsItemReader(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedS3ObjectsItemReader(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionS3 Bucket containing objects to iterate over.Limits the number of items passed to the Distributed Map state.S3 prefix used to limit objects to iterate over.ARN for thelistObjectsV2method of the S3 API This API method is used to iterate all objects in the S3 bucket/prefix.Compile policy statements to provide relevent permissions to the state machine.render()Renders the ItemReader configuration as JSON object.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
S3ObjectsItemReader
protected S3ObjectsItemReader(software.amazon.jsii.JsiiObjectRef objRef) -
S3ObjectsItemReader
protected S3ObjectsItemReader(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
S3ObjectsItemReader
- Parameters:
props- This parameter is required.
-
-
Method Details
-
providePolicyStatements
Compile policy statements to provide relevent permissions to the state machine.- Specified by:
providePolicyStatementsin interfaceIItemReader
-
render
Renders the ItemReader configuration as JSON object.- Specified by:
renderin interfaceIItemReader- Returns:
- JSON object
-
getBucket
S3 Bucket containing objects to iterate over.- Specified by:
getBucketin interfaceIItemReader
-
getResource
ARN for thelistObjectsV2method of the S3 API This API method is used to iterate all objects in the S3 bucket/prefix.- Specified by:
getResourcein interfaceIItemReader
-
getMaxItems
Limits the number of items passed to the Distributed Map state.Default: - Distributed Map state will iterate over all items provided by the ItemReader
- Specified by:
getMaxItemsin interfaceIItemReader
-
getPrefix
S3 prefix used to limit objects to iterate over.Default: - No prefix
-