{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iam-identity-center/json-schema/amazon-iam-identity-center-get-application-grant-response-schema.json",
  "title": "GetApplicationGrantResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iam-identity-center-application-grant-api-openapi.yml#/components/schemas/GetApplicationGrantResponse",
  "type": "object",
  "properties": {
    "Grant": {
      "$ref": "#/$defs/Grant"
    }
  },
  "required": [
    "Grant"
  ],
  "$defs": {
    "AuthorizationCodeGrant": {
      "type": "object",
      "properties": {
        "RedirectUris": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of URIs that are valid locations to redirect a user's browser after the user is authorized. RedirectUris is required when the grant type is authorization_code."
        }
      }
    },
    "AuthorizedTokenIssuer": {
      "type": "object",
      "properties": {
        "TrustedTokenIssuerArn": {
          "type": "string",
          "description": "The ARN of the trusted token issuer."
        },
        "AuthorizedAudiences": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An array list of authorized audiences, or applications, that can consume the tokens generated by the associated trusted token issuer."
        }
      }
    },
    "Grant": {
      "type": "object",
      "properties": {
        "AuthorizationCode": {
          "$ref": "#/$defs/AuthorizationCodeGrant"
        },
        "JwtBearer": {
          "$ref": "#/$defs/JwtBearerGrant"
        },
        "RefreshToken": {
          "$ref": "#/$defs/RefreshTokenGrant"
        },
        "TokenExchange": {
          "$ref": "#/$defs/TokenExchangeGrant"
        }
      },
      "description": "Exactly one member is set."
    },
    "JwtBearerGrant": {
      "type": "object",
      "properties": {
        "AuthorizedTokenIssuers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AuthorizedTokenIssuer"
          },
          "description": "A list of allowed token issuers trusted by the Identity Center instances for this application. AuthorizedTokenIssuers is required when the grant type is JwtBearerGrant."
        }
      }
    },
    "RefreshTokenGrant": {
      "type": "object",
      "properties": {}
    },
    "TokenExchangeGrant": {
      "type": "object",
      "properties": {}
    }
  }
}