AWS
attach_role_policy
Attach a role to a policy
Below are the details and signature of the activity Python module.
Type | probe |
Module | chaosaws.iam.probes |
Name | get_policy |
Return | boolean |
Usage
JSON
{
"name": "get-policy",
"type": "probe",
"provider": {
"type": "python",
"module": "chaosaws.iam.probes",
"func": "get_policy",
"arguments": {
"arn": ""
}
}
}
YAML
name: get-policy
provider:
arguments:
arn: ""
func: get_policy
module: chaosaws.iam.probes
type: python
type: probe
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
arn | string | Yes | Policy ARN |
Signature
def get_policy(arn: str,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> bool:
pass