{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workspaces-web/json-schema/amazon-workspaces-web-create-identity-provider-request-schema.json",
  "title": "CreateIdentityProviderRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workspaces-web-identity-providers-api-openapi.yml#/components/schemas/CreateIdentityProviderRequest",
  "type": "object",
  "properties": {
    "portalArn": {
      "type": "string",
      "description": "The ARN of the web portal."
    },
    "identityProviderName": {
      "type": "string",
      "description": "The identity provider name."
    },
    "identityProviderType": {
      "type": "string",
      "description": "The identity provider type."
    },
    "identityProviderDetails": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The identity provider details. The following list describes the provider detail keys for each identity provider type. For Google and Login with Amazon: client_id client_secret authorize_scopes For Facebook: client_id client_secret authorize_scopes api_version For Sign in with Apple: client_id team_id key_id private_key authorize_scopes For OIDC providers: client_id client_secret attributes_request_method oidc_issuer authorize_scopes authorize_url if not available from discovery URL specified by oidc_issuer key token_url if not available from discovery URL specified by oidc_issuer key attribute"
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request. If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tags to add to the identity provider resource. A tag is a key-value pair."
    }
  },
  "required": [
    "portalArn",
    "identityProviderName",
    "identityProviderType",
    "identityProviderDetails"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of the tag."
        },
        "Value": {
          "type": "string",
          "description": "The value of the tag"
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}