{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iam-identity-center/json-schema/amazon-iam-identity-center-create-trusted-token-issuer-request-schema.json",
  "title": "CreateTrustedTokenIssuerRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iam-identity-center-trusted-token-issuer-api-openapi.yml#/components/schemas/CreateTrustedTokenIssuerRequest",
  "type": "object",
  "properties": {
    "InstanceArn": {
      "type": "string",
      "description": "Specifies the ARN of the instance of IAM Identity Center to contain the new trusted token issuer configuration."
    },
    "Name": {
      "type": "string",
      "description": "Specifies the name of the new trusted token issuer configuration."
    },
    "TrustedTokenIssuerType": {
      "type": "string",
      "enum": [
        "OIDC_JWT"
      ],
      "description": "Specifies the type of the new trusted token issuer."
    },
    "TrustedTokenIssuerConfiguration": {
      "$ref": "#/$defs/TrustedTokenIssuerConfiguration"
    },
    "ClientToken": {
      "type": "string",
      "description": "Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.. If you don't provide this value, then Amazon Web Services generates a random one for you. If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatc"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Specifies tags to be attached to the new trusted token issuer configuration."
    }
  },
  "required": [
    "InstanceArn",
    "Name",
    "TrustedTokenIssuerType",
    "TrustedTokenIssuerConfiguration"
  ],
  "$defs": {
    "OidcJwtConfiguration": {
      "type": "object",
      "properties": {
        "IssuerUrl": {
          "type": "string",
          "description": "The URL that IAM Identity Center uses for OpenID Discovery. OpenID Discovery is used to obtain the information required to verify the tokens that the trusted token issuer generates."
        },
        "ClaimAttributePath": {
          "type": "string",
          "description": "The path of the source attribute in the JWT from the trusted token issuer. The attribute mapped by this JMESPath expression is compared against the attribute mapped by IdentityStoreAttributePath when a trusted token issuer token is exchanged for an IAM Identity Center token."
        },
        "IdentityStoreAttributePath": {
          "type": "string",
          "description": "The path of the destination attribute in a JWT from IAM Identity Center. The attribute mapped by this JMESPath expression is compared against the attribute mapped by ClaimAttributePath when a trusted token issuer token is exchanged for an IAM Identity Center token."
        },
        "JwksRetrievalOption": {
          "type": "string",
          "enum": [
            "OPEN_ID_DISCOVERY"
          ],
          "description": "The method that the trusted token issuer can use to retrieve the JSON Web Key Set used to verify a JWT."
        }
      },
      "required": [
        "IssuerUrl",
        "ClaimAttributePath",
        "IdentityStoreAttributePath",
        "JwksRetrievalOption"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key for the tag."
        },
        "Value": {
          "type": "string",
          "description": "The value of the tag."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "TrustedTokenIssuerConfiguration": {
      "type": "object",
      "properties": {
        "OidcJwtConfiguration": {
          "$ref": "#/$defs/OidcJwtConfiguration"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}