AWS
create_policy
Create a new IAM policy
Below are the details and signature of the activity Python module.
Type | action |
Module | chaosaws.iam.actions |
Name | attach_role_policy |
Return | mapping |
Usage
JSON
{
"name": "attach-role-policy",
"type": "action",
"provider": {
"type": "python",
"module": "chaosaws.iam.actions",
"func": "attach_role_policy",
"arguments": {
"arn": "",
"role_name": ""
}
}
}
YAML
name: attach-role-policy
provider:
arguments:
arn: ""
role_name: ""
func: attach_role_policy
module: chaosaws.iam.actions
type: python
type: action
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
arn | string | Yes | Policy ARN | ||
role_name | string | Yes | Role Name | Name of the role to attach to the policy |
Signature
def attach_role_policy(
arn: str,
role_name: str,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
pass