policy#
Exec module for managing Organizations Policy.
- async idem_aws.exec.aws.organizations.policy.get(hub, ctx, name: str, resource_id: str)[source]#
Get Organization Policy from AWS.
Provide Policy id as input.
- Parameters:
- Returns:
- result(bool):
Whether the result of the function has been successful (
True
) or not (False
).- comment(list):
A list of messages.
- ret(dict or None):
The Organization Policy in “present” format.
- Return type:
Examples
Calling this exec module function from the cli:
idem exec aws.organizations.policy.get name="idem_name" resource_id="resource_id"
Calling this exec module function from within a state module in pure python:
async def state_function(hub, ctx, name, resource_id, **kwargs): ret = await hub.exec.aws.organizations.policy.get( ctx, name=name, resource_id=resource_id )