{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-verified-permissions/json-schema/amazon-verified-permissions-update-identity-source-input-schema.json",
  "title": "UpdateIdentitySourceInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-verified-permissions-updateidentitysource-api-openapi.yml#/components/schemas/UpdateIdentitySourceInput",
  "type": "object",
  "properties": {
    "policyStoreId": {
      "type": "string",
      "description": "Specifies the ID of the policy store that contains the identity source that you want to update. To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example: ID: PSEXAMPLEabcdefg111111 Alias name: policy-store-alias/example-policy-store To view aliases, use ListPolicyStoreAliases."
    },
    "identitySourceId": {
      "type": "string",
      "description": "Specifies the ID of the identity source that you want to update."
    },
    "updateConfiguration": {
      "$ref": "#/$defs/UpdateConfiguration"
    },
    "principalEntityType": {
      "type": "string",
      "description": "Specifies the data type of principals generated for identities authenticated by the identity source."
    }
  },
  "required": [
    "policyStoreId",
    "identitySourceId",
    "updateConfiguration"
  ],
  "$defs": {
    "UpdateCognitoGroupConfiguration": {
      "type": "object",
      "properties": {
        "groupEntityType": {
          "type": "string",
          "description": "The name of the schema entity type that's mapped to the user pool group. Defaults to AWS::CognitoGroup."
        }
      },
      "required": [
        "groupEntityType"
      ]
    },
    "UpdateCognitoUserPoolConfiguration": {
      "type": "object",
      "properties": {
        "userPoolArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon Cognito user pool associated with this identity source."
        },
        "clientIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The client ID of an app client that is configured for the specified Amazon Cognito user pool."
        },
        "groupConfiguration": {
          "$ref": "#/$defs/UpdateCognitoGroupConfiguration"
        }
      },
      "required": [
        "userPoolArn"
      ]
    },
    "UpdateConfiguration": {
      "type": "object",
      "properties": {
        "cognitoUserPoolConfiguration": {
          "$ref": "#/$defs/UpdateCognitoUserPoolConfiguration"
        },
        "openIdConnectConfiguration": {
          "$ref": "#/$defs/UpdateOpenIdConnectConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "UpdateOpenIdConnectAccessTokenConfiguration": {
      "type": "object",
      "properties": {
        "principalIdClaim": {
          "type": "string",
          "description": "The claim that determines the principal in OIDC access tokens. For example, sub."
        },
        "audiences": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The access token aud claim values that you want to accept in your policy store. For example, https://myapp.example.com, https://myapp2.example.com."
        }
      }
    },
    "UpdateOpenIdConnectConfiguration": {
      "type": "object",
      "properties": {
        "issuer": {
          "type": "string",
          "description": "The issuer URL of an OIDC identity provider. This URL must have an OIDC discovery endpoint at the path .well-known/openid-configuration."
        },
        "entityIdPrefix": {
          "type": "string",
          "description": "A descriptive string that you want to prefix to user entities from your OIDC identity provider. For example, if you set an entityIdPrefix of MyOIDCProvider, you can reference principals in your policies in the format MyCorp::User::MyOIDCProvider|Carlos."
        },
        "groupConfiguration": {
          "$ref": "#/$defs/UpdateOpenIdConnectGroupConfiguration"
        },
        "tokenSelection": {
          "$ref": "#/$defs/UpdateOpenIdConnectTokenSelection"
        }
      },
      "required": [
        "issuer",
        "tokenSelection"
      ]
    },
    "UpdateOpenIdConnectGroupConfiguration": {
      "type": "object",
      "properties": {
        "groupClaim": {
          "type": "string",
          "description": "The token claim that you want Verified Permissions to interpret as group membership. For example, groups."
        },
        "groupEntityType": {
          "type": "string",
          "description": "The policy store entity type that you want to map your users' group claim to. For example, MyCorp::UserGroup. A group entity type is an entity that can have a user entity type as a member."
        }
      },
      "required": [
        "groupClaim",
        "groupEntityType"
      ]
    },
    "UpdateOpenIdConnectIdentityTokenConfiguration": {
      "type": "object",
      "properties": {
        "principalIdClaim": {
          "type": "string",
          "description": "The claim that determines the principal in OIDC access tokens. For example, sub."
        },
        "clientIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The ID token audience, or client ID, claim values that you want to accept in your policy store from an OIDC identity provider. For example, 1example23456789, 2example10111213."
        }
      }
    },
    "UpdateOpenIdConnectTokenSelection": {
      "type": "object",
      "properties": {
        "accessTokenOnly": {
          "$ref": "#/$defs/UpdateOpenIdConnectAccessTokenConfiguration"
        },
        "identityTokenOnly": {
          "$ref": "#/$defs/UpdateOpenIdConnectIdentityTokenConfiguration"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}