resource_policy#
Exec module for managing Amazon Cloudwatchlogs Resource Policy.
- async idem_aws.exec.aws.cloudwatchlogs.resource_policy.get(hub, ctx, name: str) Dict[str, Any] [source]#
Returns resource policy object for the given resource policy name.
- Parameters:
name (str) – Name of the new policy. An Idem name of the resource
- Returns:
{"result": True|False, "comment": A message List, "ret": None|Dict}
Examples
Calling this exec module function from the cli with name
idem exec aws.cloudwatchlogs.resource_policy.get name="name"
Calling this exec module function from within a state module in pure python.
async def state_function(hub, ctx, resource_id): before = await hub.exec.aws.cloudwatchlogs.resource_policy.get( ctx, name=resource_id )