{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-create-web-experience-request-schema.json",
  "title": "CreateWebExperienceRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-experiences-api-openapi.yml#/components/schemas/CreateWebExperienceRequest",
  "type": "object",
  "properties": {
    "applicationId": {
      "type": "string",
      "description": "The identifier of the Amazon Q Business web experience."
    },
    "title": {
      "type": "string",
      "description": "The title for your Amazon Q Business web experience."
    },
    "subtitle": {
      "type": "string",
      "description": "A subtitle to personalize your Amazon Q Business web experience."
    },
    "welcomeMessage": {
      "type": "string",
      "description": "The customized welcome message for end users of an Amazon Q Business web experience."
    },
    "samplePromptsControlMode": {
      "type": "string",
      "enum": [
        "ENABLED",
        "DISABLED"
      ],
      "description": "Determines whether sample prompts are enabled in the web experience for an end user."
    },
    "origins": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Sets the website domain origins that are allowed to embed the Amazon Q Business web experience. The domain origin refers to the base URL for accessing a website including the protocol (http/https), the domain name, and the port number (if specified). You must only submit a base URL and not a full path. For example, https://docs.aws.amazon.com."
    },
    "roleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the service role attached to your web experience. The roleArn parameter is required when your Amazon Q Business application is created with IAM Identity Center. It is not required for SAML-based applications."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of key-value pairs that identify or categorize your Amazon Q Business web experience. You can also use tags to help control access to the web experience. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @."
    },
    "clientToken": {
      "type": "string",
      "description": "A token you provide to identify a request to create an Amazon Q Business web experience."
    },
    "identityProviderConfiguration": {
      "$ref": "#/$defs/IdentityProviderConfiguration"
    },
    "browserExtensionConfiguration": {
      "$ref": "#/$defs/BrowserExtensionConfiguration"
    },
    "customizationConfiguration": {
      "$ref": "#/$defs/CustomizationConfiguration"
    }
  },
  "required": [
    "applicationId"
  ],
  "$defs": {
    "BrowserExtensionConfiguration": {
      "type": "object",
      "properties": {
        "enabledBrowserExtensions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specify the browser extensions allowed for your Amazon Q web experience. CHROME — Enables the extension for Chromium-based browsers (Google Chrome, Microsoft Edge, Opera, etc.). FIREFOX — Enables the extension for Mozilla Firefox. CHROME and FIREFOX — Enable the extension for Chromium-based browsers and Mozilla Firefox."
        }
      },
      "required": [
        "enabledBrowserExtensions"
      ]
    },
    "CustomizationConfiguration": {
      "type": "object",
      "properties": {
        "customCSSUrl": {
          "type": "string",
          "description": "Provides the URL where the custom CSS file is hosted for an Amazon Q web experience."
        },
        "logoUrl": {
          "type": "string",
          "description": "Provides the URL where the custom logo file is hosted for an Amazon Q web experience."
        },
        "fontUrl": {
          "type": "string",
          "description": "Provides the URL where the custom font file is hosted for an Amazon Q web experience."
        },
        "faviconUrl": {
          "type": "string",
          "description": "Provides the URL where the custom favicon file is hosted for an Amazon Q web experience."
        }
      }
    },
    "IdentityProviderConfiguration": {
      "type": "object",
      "properties": {
        "samlConfiguration": {
          "$ref": "#/$defs/SamlProviderConfiguration"
        },
        "openIDConnectConfiguration": {
          "$ref": "#/$defs/OpenIDConnectProviderConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "OpenIDConnectProviderConfiguration": {
      "type": "object",
      "properties": {
        "secretsArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of a Secrets Manager secret containing the OIDC client secret."
        },
        "secretsRole": {
          "type": "string",
          "description": "An IAM role with permissions to access KMS to decrypt the Secrets Manager secret containing your OIDC client secret."
        }
      },
      "required": [
        "secretsArn",
        "secretsRole"
      ]
    },
    "SamlProviderConfiguration": {
      "type": "object",
      "properties": {
        "authenticationUrl": {
          "type": "string",
          "description": "The URL where Amazon Q Business end users will be redirected for authentication."
        }
      },
      "required": [
        "authenticationUrl"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The key for the tag. Keys are not case sensitive and must be unique for the Amazon Q Business application or data source."
        },
        "value": {
          "type": "string",
          "description": "The value associated with the tag. The value may be an empty string but it can't be null."
        }
      },
      "required": [
        "key",
        "value"
      ]
    }
  }
}