bucket_logging#

Exec functions for S3 bucket’s logging.

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

Returns the logging configuration for the S3 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_logging.get name="bucket-logging-name" resource_id="bucket-logging-id"

Using in a state:

get_a_bucket_logging:
  exec.run:
    - path: aws.s3.bucket_logging.get
    - kwargs:
       name: bucket-logging-name
       resource_id: bucket-logging-id