{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-create-application-request-schema.json",
  "title": "CreateApplicationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-applications-api-openapi.yml#/components/schemas/CreateApplicationRequest",
  "type": "object",
  "properties": {
    "displayName": {
      "type": "string",
      "description": "A name for the Amazon Q Business application."
    },
    "roleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of an IAM role with permissions to access your Amazon CloudWatch logs and metrics. If this property is not specified, Amazon Q Business will create a service linked role (SLR) and use it as the application's role."
    },
    "identityType": {
      "type": "string",
      "enum": [
        "AWS_IAM_IDP_SAML",
        "AWS_IAM_IDP_OIDC",
        "AWS_IAM_IDC",
        "AWS_QUICKSIGHT_IDP",
        "ANONYMOUS"
      ],
      "description": "The authentication type being used by a Amazon Q Business application."
    },
    "iamIdentityProviderArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of an identity provider being used by an Amazon Q Business application."
    },
    "identityCenterInstanceArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM Identity Center instance you are either creating for—or connecting to—your Amazon Q Business application."
    },
    "clientIdsForOIDC": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The OIDC client ID for a Amazon Q Business application."
    },
    "description": {
      "type": "string",
      "description": "A description for the Amazon Q Business application."
    },
    "encryptionConfiguration": {
      "$ref": "#/$defs/EncryptionConfiguration"
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of key-value pairs that identify or categorize your Amazon Q Business application. You can also use tags to help control access to the application. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @."
    },
    "clientToken": {
      "type": "string",
      "description": "A token that you provide to identify the request to create your Amazon Q Business application."
    },
    "attachmentsConfiguration": {
      "$ref": "#/$defs/AttachmentsConfiguration"
    },
    "qAppsConfiguration": {
      "$ref": "#/$defs/QAppsConfiguration"
    },
    "personalizationConfiguration": {
      "$ref": "#/$defs/PersonalizationConfiguration"
    },
    "quickSightConfiguration": {
      "$ref": "#/$defs/QuickSightConfiguration"
    }
  },
  "required": [
    "displayName"
  ],
  "$defs": {
    "AttachmentsConfiguration": {
      "type": "object",
      "properties": {
        "attachmentsControlMode": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Status information about whether file upload functionality is activated or deactivated for your end user."
        }
      },
      "required": [
        "attachmentsControlMode"
      ]
    },
    "EncryptionConfiguration": {
      "type": "object",
      "properties": {
        "kmsKeyId": {
          "type": "string",
          "description": "The identifier of the KMS key. Amazon Q Business doesn't support asymmetric keys."
        }
      }
    },
    "PersonalizationConfiguration": {
      "type": "object",
      "properties": {
        "personalizationControlMode": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "An option to allow Amazon Q Business to customize chat responses using user specific metadata—specifically, location and job information—in your IAM Identity Center instance."
        }
      },
      "required": [
        "personalizationControlMode"
      ]
    },
    "QAppsConfiguration": {
      "type": "object",
      "properties": {
        "qAppsControlMode": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Status information about whether end users can create and use Amazon Q Apps in the web experience."
        }
      },
      "required": [
        "qAppsControlMode"
      ]
    },
    "QuickSightConfiguration": {
      "type": "object",
      "properties": {
        "clientNamespace": {
          "type": "string",
          "description": "The Amazon Quick Suite namespace that is used as the identity provider. For more information about Quick Suite namespaces, see Namespace operations."
        }
      },
      "required": [
        "clientNamespace"
      ]
    },
    "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"
      ]
    }
  }
}