{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-list-namespaces-response-schema.json",
  "title": "ListNamespacesResponse",
  "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/ListNamespacesResponse",
  "type": "object",
  "properties": {
    "nextToken": {
      "type": "string",
      "description": "When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page."
    },
    "namespaces": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Namespace"
      },
      "description": "The list of returned namespaces."
    }
  },
  "required": [
    "namespaces"
  ],
  "$defs": {
    "Namespace": {
      "type": "object",
      "properties": {
        "namespaceArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) associated with a namespace."
        },
        "namespaceId": {
          "type": "string",
          "description": "The unique identifier of a namespace."
        },
        "namespaceName": {
          "type": "string",
          "description": "The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide."
        },
        "adminUsername": {
          "type": "string",
          "description": "The username of the administrator for the first database created in the namespace."
        },
        "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 User log, Connection log, and User activity log."
        },
        "status": {
          "type": "string",
          "description": "The status of the namespace."
        },
        "creationDate": {
          "type": "string",
          "description": "The date of when the namespace was created."
        },
        "adminPasswordSecretArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) for the namespace's admin user credentials secret."
        },
        "adminPasswordSecretKmsKeyId": {
          "type": "string",
          "description": "The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret."
        },
        "lakehouseRegistrationStatus": {
          "type": "string",
          "description": "The status of the lakehouse registration for the namespace. Indicates whether the namespace is successfully registered with Amazon Redshift federated permissions."
        },
        "catalogArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Glue Data Catalog associated with the namespace enabled with Amazon Redshift federated permissions."
        },
        "s3TablePublishStatus": {
          "$ref": "#/$defs/RedshiftServerlessS3TablePublishStatus"
        }
      }
    },
    "RedshiftServerlessS3TablePublishStatus": {
      "type": "object",
      "properties": {
        "s3Tables": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The system tables currently being published."
        },
        "s3TableNamespace": {
          "type": "string",
          "description": "The identifier of the namespace in the S3 table bucket that holds the published tables."
        },
        "s3TableGranularity": {
          "type": "string",
          "description": "The scope currently in effect. Values are namespace or account."
        },
        "enabledAll": {
          "type": "boolean",
          "description": "true when the namespace is enrolled in every current and future system table rather than an explicit list of tables."
        },
        "lastIngestionTimes": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A map of system table name to the time that table last received data, as an ISO-8601 timestamp. A table that has not yet been ingested is absent from the map. Use it to judge data freshness."
        }
      }
    }
  }
}