Skip to content

allAwsPermissionPolicies

Retrieves the permissions policy for all the input features along with any AWS-managed policy ARNs which need to be attached to the roles. Each policy document can be used to create an AWS-managed policy which then needs to be attached to corresponding role.

Arguments

Argument Type Description
input (required) AwsGetPermissionPoliciesInput! Input to retrieve AWS permission policies.

Returns

[PermissionPolicy!]!

Sample

query AllAwsPermissionPolicies($input: AwsGetPermissionPoliciesInput!) {
  allAwsPermissionPolicies(input: $input) {
    awsManagedPolicies
    externalArtifactKey
  }
}
{
  "input": {}
}
{
  "data": {
    "allAwsPermissionPolicies": [
      {
        "awsManagedPolicies": [
          "example-string"
        ],
        "externalArtifactKey": "ACCESS_KEY",
        "customerManagedPolicies": [
          {
            "feature": "ALL",
            "policyDocumentJson": "example-string",
            "policyName": "example-string"
          }
        ]
      }
    ]
  }
}