Skip to main content

db_backups

Creates, updates, deletes, gets or lists a db_backups resource.

Overview

Namedb_backups
TypeResource
Idaws.timestream_influxdb.db_backups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringService-generated unique identifier of the backup. (pattern: <code>[a-zA-Z0-9]+</code>)
namestringThe customer-provided name of the backup. (pattern: <code>[a-zA-Z][a-zA-Z0-9](-[a-zA-Z0-9]+)</code>)
allocated_storageintegerThe allocated storage of the resource at the time of backup, in GiB.
arnstringThe Amazon Resource Name (ARN) of the backup. (pattern: <code>arn:aws[a-z-]*:timestream-influxdb:[a-z0-9-]+:[0-9]{12}:(db-instance|db-cluster|db-parameter-group|db-backup)/[a-zA-Z0-9]{3,64}</code>)
cluster_configurationobjectThe cluster configuration of the resource at the time of backup.
created_atstring (date-time)The time when the backup was created.
db_instance_typestringThe DB instance type of the resource at the time of backup. (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)
db_parameter_group_idstringThe identifier of the DB parameter group associated with the backup. (pattern: <code>[a-zA-Z0-9]+</code>)
db_resource_idstringThe identifier of the DB resource that the backup was created from. (pattern: <code>[a-zA-Z0-9]+</code>)
db_storage_typestringThe storage type of the resource at the time of backup. (InfluxIOIncludedT1, InfluxIOIncludedT2, InfluxIOIncludedT3)
deployment_typestringThe deployment type of the resource that the backup was created from. (SINGLE_AZ, WITH_MULTIAZ_STANDBY, MULTI_NODE_READ_REPLICAS)
engine_typestringThe engine type of the resource that the backup was created from. (INFLUXDB_V2, INFLUXDB_V3_CORE, INFLUXDB_V3_ENTERPRISE)
expires_afterstringThe date after which the backup will be automatically deleted. (pattern: <code>\d{4}-\d{2}-\d{2}</code>)
failover_modestringThe failover mode of the resource at the time of backup. (AUTOMATIC, NO_FAILOVER)
influx_auth_parameters_secret_arnstringThe ARN of the Secrets Manager secret containing the InfluxDB auth parameters.
kms_key_idstringThe Amazon Web Services KMS key ARN used for encryption of the resource at the time of backup. (pattern: <code>[a-zA-Z0-9:/_-]+</code>)
log_delivery_configurationobjectThe log delivery configuration of the resource at the time of backup.
maintenance_scheduleobjectThe maintenance schedule of the resource at the time of backup.
network_typestringThe network type of the resource at the time of backup. (IPV4, DUAL)
portintegerThe port number of the resource at the time of backup.
publicly_accessiblebooleanIndicates whether the resource was publicly accessible at the time of backup.
statusstringThe current status of the backup. (IN_PROGRESS, COMPLETED, FAILED, DELETING, DELETED)
type_stringThe type of backup. (HOURLY, DAILY, WEEKLY, MONTHLY, CUSTOM_SCHEDULE, ON_DEMAND, CONTINUOUS)
vpc_security_group_idsarrayThe VPC security group IDs associated with the resource at the time of backup.
vpc_subnet_idsarrayThe VPC subnet IDs associated with the resource at the time of backup.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_db_backupselectregionReturns information about a specific Timestream for InfluxDB backup.
list_db_backupsselectregionReturns a list of Timestream for InfluxDB backups.
create_db_backupinsertregion, name, dbResourceIdCreates a new on-demand backup of a Timestream for InfluxDB resource.
delete_db_backupdeleteregionDeletes a Timestream for InfluxDB backup.
restore_from_db_backupexecregion, name, dbBackupIdRestores a Timestream for InfluxDB resource from a backup. By default, a new resource is created. You can optionally restore to the same resource using the REPLACE_EXISTING restore mode.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about a specific Timestream for InfluxDB backup.

SELECT
id,
name,
allocated_storage,
arn,
cluster_configuration,
created_at,
db_instance_type,
db_parameter_group_id,
db_resource_id,
db_storage_type,
deployment_type,
engine_type,
expires_after,
failover_mode,
influx_auth_parameters_secret_arn,
kms_key_id,
log_delivery_configuration,
maintenance_schedule,
network_type,
port,
publicly_accessible,
status,
type_,
vpc_security_group_ids,
vpc_subnet_ids
FROM aws.timestream_influxdb.db_backups
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new on-demand backup of a Timestream for InfluxDB resource.

INSERT INTO aws.timestream_influxdb.db_backups (
name,
dbResourceId,
retentionDays,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ dbResourceId }}' /* required */,
{{ retentionDays }},
'{{ tags }}',
'{{ region }}'
RETURNING
id,
name,
allocated_storage,
arn,
cluster_configuration,
created_at,
db_instance_type,
db_parameter_group_id,
db_resource_id,
db_storage_type,
deployment_type,
engine_type,
expires_after,
failover_mode,
influx_auth_parameters_secret_arn,
kms_key_id,
log_delivery_configuration,
maintenance_schedule,
network_type,
port,
publicly_accessible,
status,
type_,
vpc_security_group_ids,
vpc_subnet_ids
;

DELETE examples

Deletes a Timestream for InfluxDB backup.

DELETE FROM aws.timestream_influxdb.db_backups
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Restores a Timestream for InfluxDB resource from a backup. By default, a new resource is created. You can optionally restore to the same resource using the REPLACE_EXISTING restore mode.

EXEC aws.timestream_influxdb.db_backups.restore_from_db_backup
@region='{{ region }}' --required
@@json=
'{
"name": "{{ name }}",
"dbBackupId": "{{ dbBackupId }}",
"restoreToTime": "{{ restoreToTime }}",
"restoreMode": "{{ restoreMode }}",
"vpcSubnetIds": "{{ vpcSubnetIds }}",
"vpcSecurityGroupIds": "{{ vpcSecurityGroupIds }}",
"publiclyAccessible": {{ publiclyAccessible }},
"logDeliveryConfiguration": "{{ logDeliveryConfiguration }}",
"maintenanceSchedule": "{{ maintenanceSchedule }}",
"tags": "{{ tags }}",
"port": {{ port }},
"networkType": "{{ networkType }}",
"deploymentType": "{{ deploymentType }}",
"dbBackupConfigurations": "{{ dbBackupConfigurations }}",
"kmsKeyId": "{{ kmsKeyId }}"
}'
;