{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-timestream/json-schema/amazon-timestream-delete-db-instance-output-schema.json",
  "title": "DeleteDbInstanceOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-timestream-db-instance-api-openapi.yml#/components/schemas/DeleteDbInstanceOutput",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "A service-generated unique identifier."
    },
    "name": {
      "type": "string",
      "description": "The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon Timestream for InfluxDB API and CLI commands."
    },
    "arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the DB instance."
    },
    "status": {
      "type": "string",
      "enum": [
        "CREATING",
        "AVAILABLE",
        "DELETING",
        "MODIFYING",
        "UPDATING",
        "DELETED",
        "FAILED",
        "UPDATING_DEPLOYMENT_TYPE",
        "UPDATING_INSTANCE_TYPE",
        "MAINTENANCE",
        "REBOOTING",
        "REBOOT_FAILED",
        "RESTORING",
        "RESTORE_FAILED"
      ],
      "description": "The status of the DB instance."
    },
    "endpoint": {
      "type": "string",
      "description": "The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086."
    },
    "port": {
      "type": "integer",
      "description": "The port number on which InfluxDB accepts connections."
    },
    "networkType": {
      "type": "string",
      "enum": [
        "IPV4",
        "DUAL"
      ],
      "description": "Specifies whether the networkType of the Timestream for InfluxDB instance is IPV4, which can communicate over IPv4 protocol only, or DUAL, which can communicate over both IPv4 and IPv6 protocols."
    },
    "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."
    },
    "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)."
    },
    "deploymentType": {
      "type": "string",
      "enum": [
        "SINGLE_AZ",
        "WITH_MULTIAZ_STANDBY"
      ],
      "description": "Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High availability."
    },
    "vpcSubnetIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of VPC subnet IDs associated with the DB instance."
    },
    "publiclyAccessible": {
      "type": "boolean",
      "description": "Indicates if the DB instance has a public IP to facilitate access."
    },
    "vpcSecurityGroupIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of VPC security group IDs associated with the DB instance."
    },
    "dbParameterGroupIdentifier": {
      "type": "string",
      "description": "The id of the DB parameter group assigned to your DB instance."
    },
    "availabilityZone": {
      "type": "string",
      "description": "The Availability Zone in which the DB instance resides."
    },
    "secondaryAvailabilityZone": {
      "type": "string",
      "description": "The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance."
    },
    "logDeliveryConfiguration": {
      "$ref": "#/$defs/LogDeliveryConfiguration"
    },
    "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."
    },
    "dbClusterId": {
      "type": "string",
      "description": "Specifies the DbCluster to which this DbInstance belongs to."
    },
    "instanceMode": {
      "type": "string",
      "enum": [
        "PRIMARY",
        "STANDBY",
        "REPLICA",
        "INGEST",
        "QUERY",
        "COMPACT",
        "PROCESS"
      ],
      "description": "Specifies the DbInstance's role in the cluster."
    },
    "instanceModes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "PRIMARY",
          "STANDBY",
          "REPLICA",
          "INGEST",
          "QUERY",
          "COMPACT",
          "PROCESS"
        ]
      },
      "description": "Specifies the DbInstance's roles in the cluster."
    },
    "maintenanceSchedule": {
      "$ref": "#/$defs/MaintenanceSchedule"
    },
    "lastMaintenanceTime": {
      "type": "string",
      "description": "The timestamp of the last completed maintenance operation on the DB instance."
    },
    "nextMaintenanceTime": {
      "type": "string",
      "description": "The timestamp of the next scheduled maintenance operation on the DB instance."
    },
    "dbBackupConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DbBackupConfigurationOutput"
      },
      "description": "The backup configurations that were associated with the deleted DB instance."
    },
    "kmsKeyId": {
      "type": "string",
      "description": "The Amazon Web Services KMS key ARN that was used for encryption of the deleted DB instance."
    }
  },
  "required": [
    "id",
    "name",
    "arn",
    "vpcSubnetIds"
  ],
  "$defs": {
    "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"
      ]
    },
    "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"
      ]
    },
    "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"
      ]
    }
  }
}