Exec module for managing Amazon Cloudwatchlogs Resource Policy.

async, ctx, name: str) Dict[str, Any][source]#

Returns resource policy object for the given resource policy name.


name (str) – Name of the new policy. An Idem name of the resource


{"result": True|False, "comment": A message List, "ret": None|Dict}


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
    ctx, name=resource_id