{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-timestream/json-schema/amazon-timestream-get-db-backup-output-schema.json",
  "title": "GetDbBackupOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-timestream-db-backup-api-openapi.yml#/components/schemas/GetDbBackupOutput",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Service-generated unique identifier of the backup."
    },
    "name": {
      "type": "string",
      "description": "The customer-provided name of the backup."
    },
    "arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the backup."
    },
    "status": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "COMPLETED",
        "FAILED",
        "DELETING",
        "DELETED"
      ],
      "description": "The current status of the backup."
    },
    "createdAt": {
      "type": "string",
      "description": "The time when the backup was created."
    },
    "expiresAfter": {
      "type": "string",
      "description": "The date after which the backup will be automatically deleted."
    },
    "dbResourceId": {
      "type": "string",
      "description": "The identifier of the DB resource that the backup was created from."
    },
    "type": {
      "type": "string",
      "enum": [
        "HOURLY",
        "DAILY",
        "WEEKLY",
        "MONTHLY",
        "CUSTOM_SCHEDULE",
        "ON_DEMAND",
        "CONTINUOUS"
      ],
      "description": "The type of backup."
    },
    "engineType": {
      "type": "string",
      "enum": [
        "INFLUXDB_V2",
        "INFLUXDB_V3_CORE",
        "INFLUXDB_V3_ENTERPRISE"
      ],
      "description": "The engine type of the resource that the backup was created from."
    },
    "deploymentType": {
      "type": "string",
      "enum": [
        "SINGLE_AZ",
        "WITH_MULTIAZ_STANDBY",
        "MULTI_NODE_READ_REPLICAS"
      ],
      "description": "The deployment type of the resource that the backup was created from."
    },
    "kmsKeyId": {
      "type": "string",
      "description": "The Amazon Web Services KMS key ARN used for encryption of the resource at the time of backup."
    },
    "clusterConfiguration": {
      "$ref": "#/$defs/ClusterConfiguration"
    },
    "deploymentConfiguration": {
      "$ref": "#/$defs/DeploymentConfiguration"
    },
    "dbParameterGroupId": {
      "type": "string",
      "description": "The identifier of the DB parameter group associated with the backup."
    },
    "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 DB instance type of the resource at the time of backup."
    },
    "logDeliveryConfiguration": {
      "$ref": "#/$defs/LogDeliveryConfiguration"
    },
    "failoverMode": {
      "type": "string",
      "enum": [
        "AUTOMATIC",
        "NO_FAILOVER"
      ],
      "description": "The failover mode of the resource at the time of backup."
    },
    "dbStorageType": {
      "type": "string",
      "enum": [
        "InfluxIOIncludedT1",
        "InfluxIOIncludedT2",
        "InfluxIOIncludedT3"
      ],
      "description": "The storage type of the resource at the time of backup."
    },
    "allocatedStorage": {
      "type": "integer",
      "description": "The allocated storage of the resource at the time of backup, in GiB."
    },
    "vpcSubnetIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The VPC subnet IDs associated with the resource at the time of backup."
    },
    "vpcSecurityGroupIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The VPC security group IDs associated with the resource at the time of backup."
    },
    "publiclyAccessible": {
      "type": "boolean",
      "description": "Indicates whether the resource was publicly accessible at the time of backup."
    },
    "port": {
      "type": "integer",
      "description": "The port number of the resource at the time of backup."
    },
    "networkType": {
      "type": "string",
      "enum": [
        "IPV4",
        "DUAL"
      ],
      "description": "The network type of the resource at the time of backup."
    },
    "influxAuthParametersSecretArn": {
      "type": "string",
      "description": "The ARN of the Secrets Manager secret containing the InfluxDB auth parameters."
    },
    "maintenanceSchedule": {
      "$ref": "#/$defs/MaintenanceSchedule"
    }
  },
  "required": [
    "id",
    "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."
        }
      }
    },
    "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"
      ]
    }
  }
}