cache_policy#
Exec module for managing Amazon Cloudfront Cache Policy.
- async idem_aws.exec.aws.cloudfront.cache_policy.get(hub, ctx, name, resource_id: str = None) Dict [source]#
Gets Cloudfront cache policy from AWS account.
- Parameters:
- Returns:
Dict[str, Any]
Examples
Calling this exec module function from the cli with resource_id
idem exec aws.cloudfront.cache_policy.get name="idem_name" resource_id="resource_id"
Using in a state:
my_unmanaged_resource: exec.run: - path: aws.cloudfront.cache_policy.get - kwargs: name: my_resource resource_id: resource_id
- async idem_aws.exec.aws.cloudfront.cache_policy.list_(hub, ctx) Dict [source]#
Lists all Cloudfront cache policies.
- Returns:
Dict[str, Any]
Examples
Calling this exec module function from the cli with resource_id
idem exec aws.cloudfront.cache_policy.list
Using in a state:
my_unmanaged_resource: exec.run: - path: aws.cloudfront.cache_policy.get