S3Location

class aws_cdk.aws_stepfunctions_tasks.S3Location

Bases: object

Constructs IS3Location objects.

stability :stability: experimental

__init__()

Initialize self. See help(type(self)) for accurate signature.

Return type

None

Methods

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

Called when the S3Location is bound to a StepFunctions task.

Parameters
  • task (ISageMakerTask) –

  • opts

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

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

stability :stability: experimental

Return type

S3LocationConfig

Static Methods

classmethod from_bucket(bucket, key_prefix)

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 :stability: experimental

Return type

S3Location

classmethod from_json_expression(expression)

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 :stability: experimental

Return type

S3Location