origin_request_policy#

Exec module for managing Amazon Cloudfront Origin request Policy.

async idem_aws.exec.aws.cloudfront.origin_request_policy.get(hub, ctx, name, resource_id: str = None) Dict[source]#

Gets Cloudfront origin request policy from AWS account.

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

  • resource_id (str, Optional) – AWS cloudfront origin request policy id to identify the resource.

Returns:

Dict[str, Any]

Examples

Calling this exec module function from the cli with resource_id

idem exec aws.cloudfront.origin_request_policy.get name="idem_name" resource_id="resource_id"

Using in a state:

my_unmanaged_resource:
  exec.run:
    - path: aws.cloudfront.origin_request_policy.get
    - kwargs:
        name: my_resource
        resource_id: resource_id
async idem_aws.exec.aws.cloudfront.origin_request_policy.list_(hub, ctx) Dict[source]#

Lists all Cloudfront origin request policies.

Returns:

Dict[str, Any]

Examples

Calling this exec module function from the cli with resource_id

idem exec aws.cloudfront.origin_request_policy.list

Using in a state:

my_unmanaged_resource:
  exec.run:
    - path: aws.cloudfront.origin_request_policy.get