bucket_acl#

Exec functions for S3 bucket’s acl.

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

Returns the ACL policy for the S3 bucket.

Parameters:
  • resource_id (str) – AWS S3 bucket name.

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

Examples

Calling from the CLI:

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

Using in a state:

get_a_bucket_acl:
  exec.run:
    - path: aws.s3.bucket_acl.get
    - kwargs:
       name: bucket-acl-name
       resource_id: bucket-acl-id