probeIAM

get_policy

Get a policy by its ARN

Activity as code

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

Typeprobe
Modulechaosaws.iam.probes
Nameget_policy
Returnboolean

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

NameTypeDefaultRequiredTitleDescription
arnstringYesPolicy ARN

Signature

def get_policy(arn: str,
               configuration: Dict[str, Dict[str, str]] = None,
               secrets: Dict[str, Dict[str, str]] = None) -> bool:
    pass