awsbackup

package
v1.114.0-devpreview Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupPlan_IsConstruct

func BackupPlan_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func BackupPlan_IsResource

func BackupPlan_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func BackupSelection_IsConstruct

func BackupSelection_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func BackupSelection_IsResource

func BackupSelection_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func BackupVault_IsConstruct

func BackupVault_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func BackupVault_IsResource

func BackupVault_IsResource(construct awscdk.IConstruct) *bool

Check whether the given construct is a Resource. Experimental.

func CfnBackupPlan_CFN_RESOURCE_TYPE_NAME

func CfnBackupPlan_CFN_RESOURCE_TYPE_NAME() *string

func CfnBackupPlan_IsCfnElement

func CfnBackupPlan_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnBackupPlan_IsCfnResource

func CfnBackupPlan_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnBackupPlan_IsConstruct

func CfnBackupPlan_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnBackupSelection_CFN_RESOURCE_TYPE_NAME

func CfnBackupSelection_CFN_RESOURCE_TYPE_NAME() *string

func CfnBackupSelection_IsCfnElement

func CfnBackupSelection_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnBackupSelection_IsCfnResource

func CfnBackupSelection_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnBackupSelection_IsConstruct

func CfnBackupSelection_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func CfnBackupVault_CFN_RESOURCE_TYPE_NAME

func CfnBackupVault_CFN_RESOURCE_TYPE_NAME() *string

func CfnBackupVault_IsCfnElement

func CfnBackupVault_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.

func CfnBackupVault_IsCfnResource

func CfnBackupVault_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource. Experimental.

func CfnBackupVault_IsConstruct

func CfnBackupVault_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct. Experimental.

func NewBackupPlanRule_Override

func NewBackupPlanRule_Override(b BackupPlanRule, props *BackupPlanRuleProps)

Experimental.

func NewBackupPlan_Override

func NewBackupPlan_Override(b BackupPlan, scope constructs.Construct, id *string, props *BackupPlanProps)

Experimental.

func NewBackupResource_Override

func NewBackupResource_Override(b BackupResource, resource *string, tagCondition *TagCondition, construct constructs.Construct)

Experimental.

func NewBackupSelection_Override

func NewBackupSelection_Override(b BackupSelection, scope constructs.Construct, id *string, props *BackupSelectionProps)

Experimental.

func NewBackupVault_Override

func NewBackupVault_Override(b BackupVault, scope constructs.Construct, id *string, props *BackupVaultProps)

Experimental.

func NewCfnBackupPlan_Override

func NewCfnBackupPlan_Override(c CfnBackupPlan, scope awscdk.Construct, id *string, props *CfnBackupPlanProps)

Create a new `AWS::Backup::BackupPlan`.

func NewCfnBackupSelection_Override

func NewCfnBackupSelection_Override(c CfnBackupSelection, scope awscdk.Construct, id *string, props *CfnBackupSelectionProps)

Create a new `AWS::Backup::BackupSelection`.

func NewCfnBackupVault_Override

func NewCfnBackupVault_Override(c CfnBackupVault, scope awscdk.Construct, id *string, props *CfnBackupVaultProps)

Create a new `AWS::Backup::BackupVault`.

Types

type BackupPlan

type BackupPlan interface {
	awscdk.Resource
	IBackupPlan
	BackupPlanArn() *string
	BackupPlanId() *string
	BackupVault() IBackupVault
	Env() *awscdk.ResourceEnvironment
	Node() awscdk.ConstructNode
	PhysicalName() *string
	Stack() awscdk.Stack
	VersionId() *string
	AddRule(rule BackupPlanRule)
	AddSelection(id *string, options *BackupSelectionOptions) BackupSelection
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	GeneratePhysicalName() *string
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	GetResourceNameAttribute(nameAttr *string) *string
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

A backup plan. Experimental.

func BackupPlan_Daily35DayRetention

func BackupPlan_Daily35DayRetention(scope constructs.Construct, id *string, backupVault IBackupVault) BackupPlan

Daily with 35 day retention. Experimental.

func BackupPlan_DailyMonthly1YearRetention

func BackupPlan_DailyMonthly1YearRetention(scope constructs.Construct, id *string, backupVault IBackupVault) BackupPlan

Daily and monthly with 1 year retention. Experimental.

func BackupPlan_DailyWeeklyMonthly5YearRetention

func BackupPlan_DailyWeeklyMonthly5YearRetention(scope constructs.Construct, id *string, backupVault IBackupVault) BackupPlan

Daily, weekly and monthly with 5 year retention. Experimental.

func BackupPlan_DailyWeeklyMonthly7YearRetention

func BackupPlan_DailyWeeklyMonthly7YearRetention(scope constructs.Construct, id *string, backupVault IBackupVault) BackupPlan

Daily, weekly and monthly with 7 year retention. Experimental.

func NewBackupPlan

func NewBackupPlan(scope constructs.Construct, id *string, props *BackupPlanProps) BackupPlan

Experimental.

type BackupPlanProps

type BackupPlanProps struct {
	// The display name of the backup plan.
	// Experimental.
	BackupPlanName *string `json:"backupPlanName"`
	// Rules for the backup plan.
	//
	// Use `addRule()` to add rules after
	// instantiation.
	// Experimental.
	BackupPlanRules *[]BackupPlanRule `json:"backupPlanRules"`
	// The backup vault where backups are stored.
	// Experimental.
	BackupVault IBackupVault `json:"backupVault"`
}

Properties for a BackupPlan. Experimental.

type BackupPlanRule

type BackupPlanRule interface {
	Props() *BackupPlanRuleProps
}

A backup plan rule. Experimental.

func BackupPlanRule_Daily

func BackupPlanRule_Daily(backupVault IBackupVault) BackupPlanRule

Daily with 35 days retention. Experimental.

func BackupPlanRule_Monthly1Year

func BackupPlanRule_Monthly1Year(backupVault IBackupVault) BackupPlanRule

Monthly 1 year retention, move to cold storage after 1 month. Experimental.

func BackupPlanRule_Monthly5Year

func BackupPlanRule_Monthly5Year(backupVault IBackupVault) BackupPlanRule

Monthly 5 year retention, move to cold storage after 3 months. Experimental.

func BackupPlanRule_Monthly7Year

func BackupPlanRule_Monthly7Year(backupVault IBackupVault) BackupPlanRule

Monthly 7 year retention, move to cold storage after 3 months. Experimental.

func BackupPlanRule_Weekly

func BackupPlanRule_Weekly(backupVault IBackupVault) BackupPlanRule

Weekly with 3 months retention. Experimental.

func NewBackupPlanRule

func NewBackupPlanRule(props *BackupPlanRuleProps) BackupPlanRule

Experimental.

type BackupPlanRuleProps

type BackupPlanRuleProps struct {
	// The backup vault where backups are.
	// Experimental.
	BackupVault IBackupVault `json:"backupVault"`
	// The duration after a backup job is successfully started before it must be completed or it is canceled by AWS Backup.
	// Experimental.
	CompletionWindow awscdk.Duration `json:"completionWindow"`
	// Specifies the duration after creation that a recovery point is deleted.
	//
	// Must be greater than `moveToColdStorageAfter`.
	// Experimental.
	DeleteAfter awscdk.Duration `json:"deleteAfter"`
	// Specifies the duration after creation that a recovery point is moved to cold storage.
	// Experimental.
	MoveToColdStorageAfter awscdk.Duration `json:"moveToColdStorageAfter"`
	// A display name for the backup rule.
	// Experimental.
	RuleName *string `json:"ruleName"`
	// A CRON expression specifying when AWS Backup initiates a backup job.
	// Experimental.
	ScheduleExpression awsevents.Schedule `json:"scheduleExpression"`
	// The duration after a backup is scheduled before a job is canceled if it doesn't start successfully.
	// Experimental.
	StartWindow awscdk.Duration `json:"startWindow"`
}

Properties for a BackupPlanRule. Experimental.

type BackupResource

type BackupResource interface {
	Construct() awscdk.Construct
	Resource() *string
	TagCondition() *TagCondition
}

A resource to backup. Experimental.

func BackupResource_FromArn

func BackupResource_FromArn(arn *string) BackupResource

A list of ARNs or match patterns such as `arn:aws:ec2:us-east-1:123456789012:volume/*`. Experimental.

func BackupResource_FromConstruct

func BackupResource_FromConstruct(construct constructs.Construct) BackupResource

Adds all supported resources in a construct. Experimental.

func BackupResource_FromDynamoDbTable

func BackupResource_FromDynamoDbTable(table awsdynamodb.ITable) BackupResource

A DynamoDB table. Experimental.

func BackupResource_FromEc2Instance

func BackupResource_FromEc2Instance(instance awsec2.IInstance) BackupResource

An EC2 instance. Experimental.

func BackupResource_FromEfsFileSystem

func BackupResource_FromEfsFileSystem(fileSystem awsefs.IFileSystem) BackupResource

An EFS file system. Experimental.

func BackupResource_FromRdsDatabaseInstance

func BackupResource_FromRdsDatabaseInstance(instance awsrds.IDatabaseInstance) BackupResource

A RDS database instance. Experimental.

func BackupResource_FromTag

func BackupResource_FromTag(key *string, value *string, operation TagOperation) BackupResource

A tag condition. Experimental.

func NewBackupResource

func NewBackupResource(resource *string, tagCondition *TagCondition, construct constructs.Construct) BackupResource

Experimental.

type BackupSelection

type BackupSelection interface {
	awscdk.Resource
	awsiam.IGrantable
	BackupPlanId() *string
	Env() *awscdk.ResourceEnvironment
	GrantPrincipal() awsiam.IPrincipal
	Node() awscdk.ConstructNode
	PhysicalName() *string
	SelectionId() *string
	Stack() awscdk.Stack
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	GeneratePhysicalName() *string
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	GetResourceNameAttribute(nameAttr *string) *string
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

A backup selection. Experimental.

func NewBackupSelection

func NewBackupSelection(scope constructs.Construct, id *string, props *BackupSelectionProps) BackupSelection

Experimental.

type BackupSelectionOptions

type BackupSelectionOptions struct {
	// The resources to backup.
	//
	// Use the helper static methods defined on `BackupResource`.
	// Experimental.
	Resources *[]BackupResource `json:"resources"`
	// Whether to automatically give restores permissions to the role that AWS Backup uses.
	//
	// If `true`, the `AWSBackupServiceRolePolicyForRestores` managed
	// policy will be attached to the role.
	// Experimental.
	AllowRestores *bool `json:"allowRestores"`
	// The name for this selection.
	// Experimental.
	BackupSelectionName *string `json:"backupSelectionName"`
	// The role that AWS Backup uses to authenticate when backuping or restoring the resources.
	//
	// The `AWSBackupServiceRolePolicyForBackup` managed policy
	// will be attached to this role.
	// Experimental.
	Role awsiam.IRole `json:"role"`
}

Options for a BackupSelection. Experimental.

type BackupSelectionProps

type BackupSelectionProps struct {
	// The resources to backup.
	//
	// Use the helper static methods defined on `BackupResource`.
	// Experimental.
	Resources *[]BackupResource `json:"resources"`
	// Whether to automatically give restores permissions to the role that AWS Backup uses.
	//
	// If `true`, the `AWSBackupServiceRolePolicyForRestores` managed
	// policy will be attached to the role.
	// Experimental.
	AllowRestores *bool `json:"allowRestores"`
	// The name for this selection.
	// Experimental.
	BackupSelectionName *string `json:"backupSelectionName"`
	// The role that AWS Backup uses to authenticate when backuping or restoring the resources.
	//
	// The `AWSBackupServiceRolePolicyForBackup` managed policy
	// will be attached to this role.
	// Experimental.
	Role awsiam.IRole `json:"role"`
	// The backup plan for this selection.
	// Experimental.
	BackupPlan IBackupPlan `json:"backupPlan"`
}

Properties for a BackupSelection. Experimental.

type BackupVault

type BackupVault interface {
	awscdk.Resource
	IBackupVault
	BackupVaultArn() *string
	BackupVaultName() *string
	Env() *awscdk.ResourceEnvironment
	Node() awscdk.ConstructNode
	PhysicalName() *string
	Stack() awscdk.Stack
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
	GeneratePhysicalName() *string
	GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
	GetResourceNameAttribute(nameAttr *string) *string
	Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	Prepare()
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
}

A backup vault. Experimental.

func NewBackupVault

func NewBackupVault(scope constructs.Construct, id *string, props *BackupVaultProps) BackupVault

Experimental.

type BackupVaultEvents

type BackupVaultEvents string

Backup vault events. Experimental.

const (
	BackupVaultEvents_BACKUP_JOB_STARTED      BackupVaultEvents = "BACKUP_JOB_STARTED"
	BackupVaultEvents_BACKUP_JOB_COMPLETED    BackupVaultEvents = "BACKUP_JOB_COMPLETED"
	BackupVaultEvents_BACKUP_JOB_SUCCESSFUL   BackupVaultEvents = "BACKUP_JOB_SUCCESSFUL"
	BackupVaultEvents_BACKUP_JOB_FAILED       BackupVaultEvents = "BACKUP_JOB_FAILED"
	BackupVaultEvents_BACKUP_JOB_EXPIRED      BackupVaultEvents = "BACKUP_JOB_EXPIRED"
	BackupVaultEvents_RESTORE_JOB_STARTED     BackupVaultEvents = "RESTORE_JOB_STARTED"
	BackupVaultEvents_RESTORE_JOB_COMPLETED   BackupVaultEvents = "RESTORE_JOB_COMPLETED"
	BackupVaultEvents_RESTORE_JOB_SUCCESSFUL  BackupVaultEvents = "RESTORE_JOB_SUCCESSFUL"
	BackupVaultEvents_RESTORE_JOB_FAILED      BackupVaultEvents = "RESTORE_JOB_FAILED"
	BackupVaultEvents_COPY_JOB_STARTED        BackupVaultEvents = "COPY_JOB_STARTED"
	BackupVaultEvents_COPY_JOB_SUCCESSFUL     BackupVaultEvents = "COPY_JOB_SUCCESSFUL"
	BackupVaultEvents_COPY_JOB_FAILED         BackupVaultEvents = "COPY_JOB_FAILED"
	BackupVaultEvents_RECOVERY_POINT_MODIFIED BackupVaultEvents = "RECOVERY_POINT_MODIFIED"
	BackupVaultEvents_BACKUP_PLAN_CREATED     BackupVaultEvents = "BACKUP_PLAN_CREATED"
	BackupVaultEvents_BACKUP_PLAN_MODIFIED    BackupVaultEvents = "BACKUP_PLAN_MODIFIED"
)

type BackupVaultProps

type BackupVaultProps struct {
	// A resource-based policy that is used to manage access permissions on the backup vault.
	// Experimental.
	AccessPolicy awsiam.PolicyDocument `json:"accessPolicy"`
	// The name of a logical container where backups are stored.
	//
	// Backup vaults
	// are identified by names that are unique to the account used to create
	// them and the AWS Region where they are created.
	// Experimental.
	BackupVaultName *string `json:"backupVaultName"`
	// The server-side encryption key to use to protect your backups.
	// Experimental.
	EncryptionKey awskms.IKey `json:"encryptionKey"`
	// The vault events to send.
	// See: https://docs.aws.amazon.com/aws-backup/latest/devguide/sns-notifications.html
	//
	// Experimental.
	NotificationEvents *[]BackupVaultEvents `json:"notificationEvents"`
	// A SNS topic to send vault events to.
	// See: https://docs.aws.amazon.com/aws-backup/latest/devguide/sns-notifications.html
	//
	// Experimental.
	NotificationTopic awssns.ITopic `json:"notificationTopic"`
	// The removal policy to apply to the vault.
	//
	// Note that removing a vault
	// that contains recovery points will fail.
	// Experimental.
	RemovalPolicy awscdk.RemovalPolicy `json:"removalPolicy"`
}

Properties for a BackupVault. Experimental.

type CfnBackupPlan

type CfnBackupPlan interface {
	awscdk.CfnResource
	awscdk.IInspectable
	AttrBackupPlanArn() *string
	AttrBackupPlanId() *string
	AttrVersionId() *string
	BackupPlan() interface{}
	SetBackupPlan(val interface{})
	BackupPlanTags() interface{}
	SetBackupPlanTags(val interface{})
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	LogicalId() *string
	Node() awscdk.ConstructNode
	Ref() *string
	Stack() awscdk.Stack
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::Backup::BackupPlan`.

func NewCfnBackupPlan

func NewCfnBackupPlan(scope awscdk.Construct, id *string, props *CfnBackupPlanProps) CfnBackupPlan

Create a new `AWS::Backup::BackupPlan`.

type CfnBackupPlanProps

type CfnBackupPlanProps struct {
	// `AWS::Backup::BackupPlan.BackupPlan`.
	BackupPlan interface{} `json:"backupPlan"`
	// `AWS::Backup::BackupPlan.BackupPlanTags`.
	BackupPlanTags interface{} `json:"backupPlanTags"`
}

Properties for defining a `AWS::Backup::BackupPlan`.

type CfnBackupPlan_AdvancedBackupSettingResourceTypeProperty

type CfnBackupPlan_AdvancedBackupSettingResourceTypeProperty struct {
	// `CfnBackupPlan.AdvancedBackupSettingResourceTypeProperty.BackupOptions`.
	BackupOptions interface{} `json:"backupOptions"`
	// `CfnBackupPlan.AdvancedBackupSettingResourceTypeProperty.ResourceType`.
	ResourceType *string `json:"resourceType"`
}

type CfnBackupPlan_BackupPlanResourceTypeProperty

type CfnBackupPlan_BackupPlanResourceTypeProperty struct {
	// `CfnBackupPlan.BackupPlanResourceTypeProperty.BackupPlanName`.
	BackupPlanName *string `json:"backupPlanName"`
	// `CfnBackupPlan.BackupPlanResourceTypeProperty.BackupPlanRule`.
	BackupPlanRule interface{} `json:"backupPlanRule"`
	// `CfnBackupPlan.BackupPlanResourceTypeProperty.AdvancedBackupSettings`.
	AdvancedBackupSettings interface{} `json:"advancedBackupSettings"`
}

type CfnBackupPlan_BackupRuleResourceTypeProperty

type CfnBackupPlan_BackupRuleResourceTypeProperty struct {
	// `CfnBackupPlan.BackupRuleResourceTypeProperty.RuleName`.
	RuleName *string `json:"ruleName"`
	// `CfnBackupPlan.BackupRuleResourceTypeProperty.TargetBackupVault`.
	TargetBackupVault *string `json:"targetBackupVault"`
	// `CfnBackupPlan.BackupRuleResourceTypeProperty.CompletionWindowMinutes`.
	CompletionWindowMinutes *float64 `json:"completionWindowMinutes"`
	// `CfnBackupPlan.BackupRuleResourceTypeProperty.CopyActions`.
	CopyActions interface{} `json:"copyActions"`
	// `CfnBackupPlan.BackupRuleResourceTypeProperty.EnableContinuousBackup`.
	EnableContinuousBackup interface{} `json:"enableContinuousBackup"`
	// `CfnBackupPlan.BackupRuleResourceTypeProperty.Lifecycle`.
	Lifecycle interface{} `json:"lifecycle"`
	// `CfnBackupPlan.BackupRuleResourceTypeProperty.RecoveryPointTags`.
	RecoveryPointTags interface{} `json:"recoveryPointTags"`
	// `CfnBackupPlan.BackupRuleResourceTypeProperty.ScheduleExpression`.
	ScheduleExpression *string `json:"scheduleExpression"`
	// `CfnBackupPlan.BackupRuleResourceTypeProperty.StartWindowMinutes`.
	StartWindowMinutes *float64 `json:"startWindowMinutes"`
}

type CfnBackupPlan_CopyActionResourceTypeProperty

type CfnBackupPlan_CopyActionResourceTypeProperty struct {
	// `CfnBackupPlan.CopyActionResourceTypeProperty.DestinationBackupVaultArn`.
	DestinationBackupVaultArn *string `json:"destinationBackupVaultArn"`
	// `CfnBackupPlan.CopyActionResourceTypeProperty.Lifecycle`.
	Lifecycle interface{} `json:"lifecycle"`
}

type CfnBackupPlan_LifecycleResourceTypeProperty

type CfnBackupPlan_LifecycleResourceTypeProperty struct {
	// `CfnBackupPlan.LifecycleResourceTypeProperty.DeleteAfterDays`.
	DeleteAfterDays *float64 `json:"deleteAfterDays"`
	// `CfnBackupPlan.LifecycleResourceTypeProperty.MoveToColdStorageAfterDays`.
	MoveToColdStorageAfterDays *float64 `json:"moveToColdStorageAfterDays"`
}

type CfnBackupSelection

type CfnBackupSelection interface {
	awscdk.CfnResource
	awscdk.IInspectable
	AttrBackupPlanId() *string
	AttrId() *string
	AttrSelectionId() *string
	BackupPlanId() *string
	SetBackupPlanId(val *string)
	BackupSelection() interface{}
	SetBackupSelection(val interface{})
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	LogicalId() *string
	Node() awscdk.ConstructNode
	Ref() *string
	Stack() awscdk.Stack
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::Backup::BackupSelection`.

func NewCfnBackupSelection

func NewCfnBackupSelection(scope awscdk.Construct, id *string, props *CfnBackupSelectionProps) CfnBackupSelection

Create a new `AWS::Backup::BackupSelection`.

type CfnBackupSelectionProps

type CfnBackupSelectionProps struct {
	// `AWS::Backup::BackupSelection.BackupPlanId`.
	BackupPlanId *string `json:"backupPlanId"`
	// `AWS::Backup::BackupSelection.BackupSelection`.
	BackupSelection interface{} `json:"backupSelection"`
}

Properties for defining a `AWS::Backup::BackupSelection`.

type CfnBackupSelection_BackupSelectionResourceTypeProperty

type CfnBackupSelection_BackupSelectionResourceTypeProperty struct {
	// `CfnBackupSelection.BackupSelectionResourceTypeProperty.IamRoleArn`.
	IamRoleArn *string `json:"iamRoleArn"`
	// `CfnBackupSelection.BackupSelectionResourceTypeProperty.SelectionName`.
	SelectionName *string `json:"selectionName"`
	// `CfnBackupSelection.BackupSelectionResourceTypeProperty.ListOfTags`.
	ListOfTags interface{} `json:"listOfTags"`
	// `CfnBackupSelection.BackupSelectionResourceTypeProperty.Resources`.
	Resources *[]*string `json:"resources"`
}

type CfnBackupSelection_ConditionResourceTypeProperty

type CfnBackupSelection_ConditionResourceTypeProperty struct {
	// `CfnBackupSelection.ConditionResourceTypeProperty.ConditionKey`.
	ConditionKey *string `json:"conditionKey"`
	// `CfnBackupSelection.ConditionResourceTypeProperty.ConditionType`.
	ConditionType *string `json:"conditionType"`
	// `CfnBackupSelection.ConditionResourceTypeProperty.ConditionValue`.
	ConditionValue *string `json:"conditionValue"`
}

type CfnBackupVault

type CfnBackupVault interface {
	awscdk.CfnResource
	awscdk.IInspectable
	AccessPolicy() interface{}
	SetAccessPolicy(val interface{})
	AttrBackupVaultArn() *string
	AttrBackupVaultName() *string
	BackupVaultName() *string
	SetBackupVaultName(val *string)
	BackupVaultTags() interface{}
	SetBackupVaultTags(val interface{})
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	EncryptionKeyArn() *string
	SetEncryptionKeyArn(val *string)
	LogicalId() *string
	Node() awscdk.ConstructNode
	Notifications() interface{}
	SetNotifications(val interface{})
	Ref() *string
	Stack() awscdk.Stack
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OnPrepare()
	OnSynthesize(session constructs.ISynthesisSession)
	OnValidate() *[]*string
	OverrideLogicalId(newLogicalId *string)
	Prepare()
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	Synthesize(session awscdk.ISynthesisSession)
	ToString() *string
	Validate() *[]*string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::Backup::BackupVault`.

func NewCfnBackupVault

func NewCfnBackupVault(scope awscdk.Construct, id *string, props *CfnBackupVaultProps) CfnBackupVault

Create a new `AWS::Backup::BackupVault`.

type CfnBackupVaultProps

type CfnBackupVaultProps struct {
	// `AWS::Backup::BackupVault.BackupVaultName`.
	BackupVaultName *string `json:"backupVaultName"`
	// `AWS::Backup::BackupVault.AccessPolicy`.
	AccessPolicy interface{} `json:"accessPolicy"`
	// `AWS::Backup::BackupVault.BackupVaultTags`.
	BackupVaultTags interface{} `json:"backupVaultTags"`
	// `AWS::Backup::BackupVault.EncryptionKeyArn`.
	EncryptionKeyArn *string `json:"encryptionKeyArn"`
	// `AWS::Backup::BackupVault.Notifications`.
	Notifications interface{} `json:"notifications"`
}

Properties for defining a `AWS::Backup::BackupVault`.

type CfnBackupVault_NotificationObjectTypeProperty

type CfnBackupVault_NotificationObjectTypeProperty struct {
	// `CfnBackupVault.NotificationObjectTypeProperty.BackupVaultEvents`.
	BackupVaultEvents *[]*string `json:"backupVaultEvents"`
	// `CfnBackupVault.NotificationObjectTypeProperty.SNSTopicArn`.
	SnsTopicArn *string `json:"snsTopicArn"`
}

type IBackupPlan

type IBackupPlan interface {
	awscdk.IResource
	// The identifier of the backup plan.
	// Experimental.
	BackupPlanId() *string
}

A backup plan. Experimental.

func BackupPlan_FromBackupPlanId

func BackupPlan_FromBackupPlanId(scope constructs.Construct, id *string, backupPlanId *string) IBackupPlan

Import an existing backup plan. Experimental.

type IBackupVault

type IBackupVault interface {
	awscdk.IResource
	// Grant the actions defined in actions to the given grantee on this backup vault.
	// Experimental.
	Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant
	// The ARN of the backup vault.
	// Experimental.
	BackupVaultArn() *string
	// The name of a logical container where backups are stored.
	// Experimental.
	BackupVaultName() *string
}

A backup vault. Experimental.

func BackupVault_FromBackupVaultArn

func BackupVault_FromBackupVaultArn(scope constructs.Construct, id *string, backupVaultArn *string) IBackupVault

Import an existing backup vault by arn. Experimental.

func BackupVault_FromBackupVaultName

func BackupVault_FromBackupVaultName(scope constructs.Construct, id *string, backupVaultName *string) IBackupVault

Import an existing backup vault by name. Experimental.

type TagCondition

type TagCondition struct {
	// The key in a key-value pair.
	//
	// For example, in `"ec2:ResourceTag/Department": "accounting"`,
	// `ec2:ResourceTag/Department` is the key.
	// Experimental.
	Key *string `json:"key"`
	// The value in a key-value pair.
	//
	// For example, in `"ec2:ResourceTag/Department": "accounting"`,
	// `accounting` is the value.
	// Experimental.
	Value *string `json:"value"`
	// An operation that is applied to a key-value pair used to filter resources in a selection.
	// Experimental.
	Operation TagOperation `json:"operation"`
}

A tag condition. Experimental.

type TagOperation

type TagOperation string

An operation that is applied to a key-value pair. Experimental.

const (
	TagOperation_STRING_EQUALS TagOperation = "STRING_EQUALS"
	TagOperation_DUMMY         TagOperation = "DUMMY"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL