actionIAM

detach_role_policy

Detach a role from a policy

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosaws.iam.actions
Namedetach_role_policy
Returnmapping

Usage

JSON

{
  "name": "detach-role-policy",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.iam.actions",
    "func": "detach_role_policy",
    "arguments": {
      "arn": "",
      "role_name": ""
    }
  }
}

YAML

name: detach-role-policy
provider:
  arguments:
    arn: ""
    role_name: ""
  func: detach_role_policy
  module: chaosaws.iam.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
arnstringYesPolicy ARN
role_namestringYesRole NameName of the role to detach from the policy

Signature

def detach_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