Skip to content
v2.278.0

CfnSnapshotScheduleProps Struct ​

Properties for defining a CfnSnapshotSchedule.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_redshift as redshift } from 'aws-cdk-lib';
const cfnSnapshotScheduleProps: redshift.CfnSnapshotScheduleProps = {
  scheduleDefinitions: ['scheduleDefinitions'],
  scheduleIdentifier: 'scheduleIdentifier',

  // the properties below are optional
  scheduleDescription: 'scheduleDescription',
  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_redshift as redshift

cfn_snapshot_schedule_props = redshift.CfnSnapshotScheduleProps(
    schedule_definitions=["scheduleDefinitions"],
    schedule_identifier="scheduleIdentifier",

    # the properties below are optional
    schedule_description="scheduleDescription",
    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.redshift.*;

CfnSnapshotScheduleProps cfnSnapshotScheduleProps = CfnSnapshotScheduleProps.builder()
        .scheduleDefinitions(List.of("scheduleDefinitions"))
        .scheduleIdentifier("scheduleIdentifier")

        // the properties below are optional
        .scheduleDescription("scheduleDescription")
        .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.Redshift;

var cfnSnapshotScheduleProps = new CfnSnapshotScheduleProps {
    ScheduleDefinitions = new [] { "scheduleDefinitions" },
    ScheduleIdentifier = "scheduleIdentifier",

    // the properties below are optional
    ScheduleDescription = "scheduleDescription",
    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"

cfnSnapshotScheduleProps := &CfnSnapshotScheduleProps{
	ScheduleDefinitions: []*string{
		jsii.String("scheduleDefinitions"),
	},
	ScheduleIdentifier: jsii.String("scheduleIdentifier"),

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

Properties ​

scheduleDefinitionsstring[]schedule_definitionstyping.List[str]scheduleDefinitionsList<String>ScheduleDefinitionsstring[]ScheduleDefinitions*[]*string required #
The definition of the snapshot schedule.

The definition is made up of schedule expressions, for example "cron(30 12 *)" or "rate(12 hours)".

scheduleDescriptionoptionalstringschedule_descriptionoptionalstrscheduleDescriptionoptionalStringScheduleDescriptionoptionalstringScheduleDescriptionoptional*string #
The description of the snapshot schedule.
scheduleIdentifierstringschedule_identifierstrscheduleIdentifierStringScheduleIdentifierstringScheduleIdentifier*string required #
A unique identifier for the snapshot schedule.

Only alphanumeric characters are allowed.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An optional set of tags for the snapshot schedule.