bucket_lifecycle#

Exec functions for s3 bucket’s lifecycle configurations.

async idem_aws.exec.aws.s3.bucket_lifecycle.get(hub, ctx, name: str, resource_id: str) Dict[source]#

Returns the lifecycle configuration of a bucket.

Parameters:
  • name (str) – The name of the Idem state.

  • resource_id (str) – AWS S3 bucket name.

Examples

Calling from the CLI:

$ idem exec aws.s3.bucket_lifecycle.get name="bucket-name" resource_id="bucket-id"

Using in a state:

get_a_bucket:
  exec.run:
    - path: aws.s3.bucket.get
    - kwargs:
       name: bucket-name
       resource_id: bucket-id