{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-timestream/json-schema/amazon-timestream-get-db-cluster-output-schema.json",
  "title": "GetDbClusterOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-timestream-db-cluster-api-openapi.yml#/components/schemas/GetDbClusterOutput",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Service-generated unique identifier of the DB cluster to retrieve."
    },
    "name": {
      "type": "string",
      "description": "Customer-supplied name of the Timestream for InfluxDB cluster."
    },
    "arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the DB cluster."
    },
    "status": {
      "type": "string",
      "enum": [
        "CREATING",
        "UPDATING",
        "DELETING",
        "AVAILABLE",
        "FAILED",
        "DELETED",
        "MAINTENANCE",
        "UPDATING_INSTANCE_TYPE",
        "REBOOTING",
        "REBOOT_FAILED",
        "PARTIALLY_AVAILABLE",
        "RESTORING",
        "RESTORE_FAILED"
      ],
      "description": "The status of the DB cluster."
    },
    "endpoint": {
      "type": "string",
      "description": "The endpoint used to connect to the Timestream for InfluxDB cluster for write and read operations."
    },
    "readerEndpoint": {
      "type": "string",
      "description": "The endpoint used to connect to the Timestream for InfluxDB cluster for read-only operations."
    },
    "port": {
      "type": "integer",
      "description": "The port number on which InfluxDB accepts connections."
    },
    "deploymentType": {
      "type": "string",
      "enum": [
        "MULTI_NODE_READ_REPLICAS"
      ],
      "description": "Deployment type of the DB cluster."
    },
    "dbInstanceType": {
      "type": "string",
      "enum": [
        "db.influx.medium",
        "db.influx.large",
        "db.influx.xlarge",
        "db.influx.2xlarge",
        "db.influx.4xlarge",
        "db.influx.8xlarge",
        "db.influx.12xlarge",
        "db.influx.16xlarge",
        "db.influx.24xlarge"
      ],
      "description": "The Timestream for InfluxDB instance type that InfluxDB runs on."
    },
    "networkType": {
      "type": "string",
      "enum": [
        "IPV4",
        "DUAL"
      ],
      "description": "Specifies whether the network type of the Timestream for InfluxDB cluster is IPv4, which can communicate over IPv4 protocol only, or DUAL, which can communicate over both IPv4 and IPv6 protocols."
    },
    "dbStorageType": {
      "type": "string",
      "enum": [
        "InfluxIOIncludedT1",
        "InfluxIOIncludedT2",
        "InfluxIOIncludedT3"
      ],
      "description": "The Timestream for InfluxDB DB storage type that InfluxDB stores data on."
    },
    "allocatedStorage": {
      "type": "integer",
      "description": "The amount of storage allocated for your DB storage type (in gibibytes)."
    },
    "engineType": {
      "type": "string",
      "enum": [
        "INFLUXDB_V2",
        "INFLUXDB_V3_CORE",
        "INFLUXDB_V3_ENTERPRISE"
      ],
      "description": "The engine type of your DB cluster."
    },
    "publiclyAccessible": {
      "type": "boolean",
      "description": "Indicates if the DB cluster has a public IP to facilitate access from outside the VPC."
    },
    "dbParameterGroupIdentifier": {
      "type": "string",
      "description": "The ID of the DB parameter group assigned to your DB cluster."
    },
    "effectiveDbParameterGroupIdentifier": {
      "type": "string",
      "description": "The ID of the DB parameter group actually applied to your DB cluster. When the service applies optimized defaults, it creates a service-managed DB parameter group and this field reflects that group, while dbParameterGroupIdentifier reflects the customer-provided DB parameter group. When no service-managed DB parameter group is applied, this value matches dbParameterGroupIdentifier."
    },
    "logDeliveryConfiguration": {
      "$ref": "#/$defs/LogDeliveryConfiguration"
    },
    "maintenanceSchedule": {
      "$ref": "#/$defs/MaintenanceSchedule"
    },
    "lastMaintenanceTime": {
      "type": "string",
      "description": "The timestamp of the last completed maintenance operation on the DB cluster."
    },
    "nextMaintenanceTime": {
      "type": "string",
      "description": "The timestamp of the next scheduled maintenance operation on the DB cluster."
    },
    "influxAuthParametersSecretArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Secrets Manager secret containing the initial InfluxDB authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values: organization, bucket, username, and password."
    },
    "vpcSubnetIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of VPC subnet IDs associated with the DB cluster."
    },
    "vpcSecurityGroupIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of VPC security group IDs associated with the DB cluster."
    },
    "failoverMode": {
      "type": "string",
      "enum": [
        "AUTOMATIC",
        "NO_FAILOVER"
      ],
      "description": "The configured failover mode for the DB cluster."
    },
    "clusterConfiguration": {
      "$ref": "#/$defs/ClusterConfiguration"
    },
    "deploymentConfiguration": {
      "$ref": "#/$defs/DeploymentConfiguration"
    },
    "dbBackupConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DbBackupConfigurationOutput"
      },
      "description": "The backup configurations for the DB cluster."
    },
    "kmsKeyId": {
      "type": "string",
      "description": "The Amazon Web Services KMS key ARN used for encryption of the DB cluster."
    }
  },
  "required": [
    "id",
    "name",
    "arn"
  ],
  "$defs": {
    "ClusterConfiguration": {
      "type": "object",
      "properties": {
        "ingestQueryInstances": {
          "type": "integer",
          "description": "The number of instances in the DbCluster which can both ingest and query."
        },
        "queryOnlyInstances": {
          "type": "integer",
          "description": "The number of instances in the DbCluster which can only query."
        },
        "dedicatedCompactor": {
          "type": "boolean",
          "description": "Indicates if the compactor instance is a standalone instance or not."
        }
      }
    },
    "DbBackupConfigurationOutput": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "HOURLY",
            "DAILY",
            "WEEKLY",
            "MONTHLY",
            "CUSTOM_SCHEDULE",
            "CONTINUOUS"
          ],
          "description": "The type of automated backup schedule."
        },
        "retentionDays": {
          "type": "integer",
          "description": "The number of days automated backups are retained."
        },
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether this backup configuration is enabled."
        },
        "customSchedule": {
          "type": "string",
          "description": "The custom cron schedule expression for the backup, if applicable."
        },
        "nextAutomatedBackupTime": {
          "type": "string",
          "description": "The next scheduled time for an automated backup to be taken."
        }
      },
      "required": [
        "type",
        "retentionDays",
        "enabled"
      ]
    },
    "DeploymentConfiguration": {
      "type": "object",
      "properties": {
        "InfluxDBv3Enterprise": {
          "$ref": "#/$defs/InfluxDBv3EnterpriseDeploymentConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "InfluxDBv3EnterpriseDeploymentConfiguration": {
      "type": "object",
      "properties": {
        "nodeGroups": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NodeGroup"
          },
          "description": "The node groups that make up the cluster. Across all node groups, the cluster must include 1 to 4 nodes with the INGEST mode, 0 to 14 nodes with the QUERY mode, and exactly one node with the COMPACT mode."
        }
      },
      "required": [
        "nodeGroups"
      ]
    },
    "LogDeliveryConfiguration": {
      "type": "object",
      "properties": {
        "s3Configuration": {
          "$ref": "#/$defs/TimestreamInfluxdbS3Configuration"
        }
      },
      "required": [
        "s3Configuration"
      ]
    },
    "MaintenanceSchedule": {
      "type": "object",
      "properties": {
        "timezone": {
          "type": "string",
          "description": "The IANA timezone identifier for the maintenance window. Format: Region/City or UTC. For example, America/New_York or UTC."
        },
        "preferredMaintenanceWindow": {
          "type": "string",
          "description": "The preferred maintenance window in the format ddd:HH:MM-ddd:HH:MM (UTC). Day must be one of: Mon, Tue, Wed, Thu, Fri, Sat, Sun. For example, Sun:02:00-Sun:06:00. Provide an empty string to let the system choose a window."
        }
      },
      "required": [
        "timezone",
        "preferredMaintenanceWindow"
      ]
    },
    "NodeGroup": {
      "type": "object",
      "properties": {
        "instanceModes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "PRIMARY",
              "STANDBY",
              "REPLICA",
              "INGEST",
              "QUERY",
              "COMPACT",
              "PROCESS"
            ]
          },
          "description": "The functions that the nodes in this group perform. Provide from 1 to 4 unique modes. Valid modes: INGEST – Nodes in this mode ingest data. Across all node groups, INGEST nodes must total between 1 and 4. QUERY – Nodes in this mode query data. Across all node groups, QUERY nodes must total between 0 and 14. COMPACT – Nodes in this mode compact data. Exactly one node across all node groups must have this mode. If the cluster has more than three non-compaction nodes, place the COMPACT node in its own dedicated node group. PROCESS – Nodes in this mode process data with the processing engine."
        },
        "instanceType": {
          "type": "string",
          "enum": [
            "db.influx.medium",
            "db.influx.large",
            "db.influx.xlarge",
            "db.influx.2xlarge",
            "db.influx.4xlarge",
            "db.influx.8xlarge",
            "db.influx.12xlarge",
            "db.influx.16xlarge",
            "db.influx.24xlarge"
          ],
          "description": "The Timestream for InfluxDB DB instance type to run InfluxDB on for the nodes in this group."
        },
        "count": {
          "type": "integer",
          "description": "The number of nodes in this group. Valid values are 1 to 13."
        }
      },
      "required": [
        "instanceModes",
        "instanceType",
        "count"
      ]
    },
    "TimestreamInfluxdbS3Configuration": {
      "type": "object",
      "properties": {
        "bucketName": {
          "type": "string",
          "description": "The name of the S3 bucket to deliver logs to."
        },
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether log delivery to the S3 bucket is enabled."
        }
      },
      "required": [
        "bucketName",
        "enabled"
      ]
    }
  }
}