{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-create-namespace-request-schema.json",
  "title": "CreateNamespaceRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-redshift-namespace-api-openapi.yml#/components/schemas/CreateNamespaceRequest",
  "type": "object",
  "properties": {
    "namespaceName": {
      "type": "string",
      "description": "The name of the namespace."
    },
    "adminUsername": {
      "type": "string",
      "description": "The username of the administrator for the first database created in the namespace."
    },
    "adminUserPassword": {
      "type": "string",
      "description": "The password of the administrator for the first database created in the namespace. You can't use adminUserPassword if manageAdminPassword is true."
    },
    "dbName": {
      "type": "string",
      "description": "The name of the first database created in the namespace."
    },
    "kmsKeyId": {
      "type": "string",
      "description": "The ID of the Amazon Web Services Key Management Service key used to encrypt your data."
    },
    "defaultIamRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace."
    },
    "iamRoles": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of IAM roles to associate with the namespace."
    },
    "logExports": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RedshiftServerlessTag"
      },
      "description": "A list of tag instances."
    },
    "manageAdminPassword": {
      "type": "boolean",
      "description": "If true, Amazon Redshift uses Secrets Manager to manage the namespace's admin credentials. You can't use adminUserPassword if manageAdminPassword is true. If manageAdminPassword is false or not set, Amazon Redshift uses adminUserPassword for the admin user account's password."
    },
    "adminPasswordSecretKmsKeyId": {
      "type": "string",
      "description": "The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret. You can only use this parameter if manageAdminPassword is true."
    },
    "redshiftIdcApplicationArn": {
      "type": "string",
      "description": "The ARN for the Redshift application that integrates with IAM Identity Center."
    }
  },
  "required": [
    "namespaceName"
  ],
  "$defs": {
    "RedshiftServerlessTag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The key to use in the tag."
        },
        "value": {
          "type": "string",
          "description": "The value of the tag."
        }
      },
      "required": [
        "key",
        "value"
      ]
    }
  }
}