S3Location

class aws_cdk.aws_stepfunctions_tasks.S3Location

Bases: object

(experimental) Constructs IS3Location objects.

Stability

experimental

Methods

abstract bind(task, *, for_reading=None, for_writing=None)

(experimental) Called when the S3Location is bound to a StepFunctions task.

Parameters
  • task (ISageMakerTask) –

  • for_reading (Optional[bool]) – (experimental) Allow reading from the S3 Location. Default: false

  • for_writing (Optional[bool]) – (experimental) Allow writing to the S3 Location. Default: false

Stability

experimental

Return type

S3LocationConfig

Static Methods

classmethod from_bucket(bucket, key_prefix)

(experimental) An IS3Location built with a determined bucket and key prefix.

Parameters
  • bucket (IBucket) – is the bucket where the objects are to be stored.

  • key_prefix (str) – is the key prefix used by the location.

Stability

experimental

Return type

S3Location

classmethod from_json_expression(expression)

(experimental) An IS3Location determined fully by a JSON Path from the task input.

Due to the dynamic nature of those locations, the IAM grants that will be set by grantRead and grantWrite apply to the * resource.

Parameters

expression (str) – the JSON expression resolving to an S3 location URI.

Stability

experimental

Return type

S3Location