{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PolicyGrantingServiceAccess",
  "title": "PolicyGrantingServiceAccess",
  "type": "object",
  "required": [
    "PolicyName",
    "PolicyType"
  ],
  "properties": {
    "PolicyName": {
      "allOf": [
        {
          "$ref": "#/components/schemas/policyNameType"
        },
        {
          "description": "The policy name."
        }
      ]
    },
    "PolicyType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/policyType"
        },
        {
          "description": "The policy type. For more information about these policy types, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html\">Managed policies and inline policies</a> in the <i>IAM User Guide</i>."
        }
      ]
    },
    "PolicyArn": {
      "$ref": "#/components/schemas/arnType"
    },
    "EntityType": {
      "allOf": [
        {
          "$ref": "#/components/schemas/policyOwnerEntityType"
        },
        {
          "description": "<p>The type of entity (user or role) that used the policy to access the service to which the inline policy is attached.</p> <p>This field is null for managed policies. For more information about these policy types, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html\">Managed policies and inline policies</a> in the <i>IAM User Guide</i>.</p>"
        }
      ]
    },
    "EntityName": {
      "allOf": [
        {
          "$ref": "#/components/schemas/entityNameType"
        },
        {
          "description": "<p>The name of the entity (user or role) to which the inline policy is attached.</p> <p>This field is null for managed policies. For more information about these policy types, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html\">Managed policies and inline policies</a> in the <i>IAM User Guide</i>.</p>"
        }
      ]
    }
  },
  "description": "<p>Contains details about the permissions policies that are attached to the specified identity (user, group, or role).</p> <p>This data type is an element of the <a>ListPoliciesGrantingServiceAccessEntry</a> object.</p>"
}