Skip to content
v2.278.0

CfnInfluxDBBackupProps ​

Struct External

Properties for defining a CfnInfluxDBBackup.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_timestream as timestream } from 'aws-cdk-lib';
const cfnInfluxDBBackupProps: timestream.CfnInfluxDBBackupProps = {
  dbResourceId: 'dbResourceId',
  name: 'name',

  // the properties below are optional
  retentionDays: 123,
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_timestream as timestream

cfn_influx_db_backup_props = timestream.CfnInfluxDBBackupProps(
    db_resource_id="dbResourceId",
    name="name",

    # the properties below are optional
    retention_days=123,
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.timestream.*;

CfnInfluxDBBackupProps cfnInfluxDBBackupProps = CfnInfluxDBBackupProps.builder()
        .dbResourceId("dbResourceId")
        .name("name")

        // the properties below are optional
        .retentionDays(123)
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Timestream;

var cfnInfluxDBBackupProps = new CfnInfluxDBBackupProps {
    DbResourceId = "dbResourceId",
    Name = "name",

    // the properties below are optional
    RetentionDays = 123,
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnInfluxDBBackupProps := &CfnInfluxDBBackupProps{
	DbResourceId: jsii.String("dbResourceId"),
	Name: jsii.String("name"),

	// the properties below are optional
	RetentionDays: jsii.Number(123),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

dbResourceIdstringdb_resource_idstrdbResourceIdStringDbResourceIdstringDbResourceId*string required #
The id of the DB instance or DB cluster to back up.
namestringnamestrnameStringNamestringName*string required #
The name of the backup.

Must be unique within the account and region.

retentionDaysoptionalnumberretention_daysoptionalint | floatretentionDaysoptionalNumberRetentionDaysoptionaldoubleRetentionDaysoptional*float64 #
The number of days to retain the backup.

Valid values are 1 to 3650.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A list of key-value pairs to associate with the backup.