S3ManifestItemReader

class aws_cdk.aws_stepfunctions.S3ManifestItemReader(*, key, bucket=None, bucket_name_path=None, max_items=None)

Bases: object

Item Reader configuration for iterating over items in a S3 inventory manifest file stored in S3.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3 as s3
from aws_cdk import aws_stepfunctions as stepfunctions

# bucket: s3.Bucket

s3_manifest_item_reader = stepfunctions.S3ManifestItemReader(
    key="key",

    # the properties below are optional
    bucket=bucket,
    bucket_name_path="bucketNamePath",
    max_items=123
)
Parameters:
  • key (str) – Key of file stored in S3 bucket containing an array to iterate over.

  • bucket (Optional[IBucket]) – S3 Bucket containing objects to iterate over or a file with a list to iterate over. Default: - S3 bucket will be determined from

  • bucket_name_path (Optional[str]) – S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath. Default: - S3 bucket will be determined from

  • max_items (Union[int, float, None]) – Limits the number of items passed to the Distributed Map state. Default: - Distributed Map state will iterate over all items provided by the ItemReader

Methods

provide_policy_statements()

Compile policy statements to provide relevent permissions to the state machine.

Return type:

List[PolicyStatement]

render(query_language=None)

Renders the ItemReader configuration as JSON object.

Parameters:

query_language (Optional[QueryLanguage]) –

Return type:

Any

Returns:

  • JSON object

validate_item_reader()

Validate that ItemReader contains exactly either.

See:

bucketNamePath

Return type:

List[str]

Attributes

bucket

S3 Bucket containing a file with a list to iterate over.

bucket_name_path

S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath.

key

S3 key of a file with a list to iterate over.

max_items

Limits the number of items passed to the Distributed Map state.

Default:
  • No maxItems

resource

ARN for the getObject method of the S3 API This API method is used to iterate all objects in the S3 bucket/prefix.