Class: AWSCDK::Backup::CfnBackupPlan::CopyActionResourceTypeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
backup/cfn_backup_plan.rb

Overview

Copies backups created by a backup rule to another vault.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_backup_vault_arn:, lifecycle: nil) ⇒ CopyActionResourceTypeProperty

Returns a new instance of CopyActionResourceTypeProperty.

Parameters:



867
868
869
870
871
872
# File 'backup/cfn_backup_plan.rb', line 867

def initialize(destination_backup_vault_arn:, lifecycle: nil)
  @destination_backup_vault_arn = destination_backup_vault_arn
  Jsii::Type.check_type(@destination_backup_vault_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationBackupVaultArn")
  @lifecycle = lifecycle.is_a?(Hash) ? ::AWSCDK::Backup::CfnBackupPlan::LifecycleResourceTypeProperty.new(**lifecycle.transform_keys(&:to_sym)) : lifecycle
  Jsii::Type.check_type(@lifecycle, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iYWNrdXAuQ2ZuQmFja3VwUGxhbi5MaWZlY3ljbGVSZXNvdXJjZVR5cGVQcm9wZXJ0eSJ9XX19")), "lifecycle") unless @lifecycle.nil?
end

Instance Attribute Details

#destination_backup_vault_arnString (readonly)

An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault for the copied backup.

For example, arn:aws:backup:us-east-1:123456789012:vault:aBackupVault.



880
881
882
# File 'backup/cfn_backup_plan.rb', line 880

def destination_backup_vault_arn
  @destination_backup_vault_arn
end

#lifecycleAWSCDK::IResolvable, ... (readonly)

Defines when a protected resource is transitioned to cold storage and when it expires.

AWS Backup transitions and expires backups automatically according to the lifecycle that you define. If you do not specify a lifecycle, AWS Backup applies the lifecycle policy of the source backup to the destination backup.

Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days.



889
890
891
# File 'backup/cfn_backup_plan.rb', line 889

def lifecycle
  @lifecycle
end

Class Method Details

.jsii_propertiesObject



891
892
893
894
895
896
# File 'backup/cfn_backup_plan.rb', line 891

def self.jsii_properties
  {
    :destination_backup_vault_arn => "destinationBackupVaultArn",
    :lifecycle => "lifecycle",
  }
end

Instance Method Details

#to_jsiiObject



898
899
900
901
902
903
904
905
# File 'backup/cfn_backup_plan.rb', line 898

def to_jsii
  result = {}
  result.merge!({
    "destinationBackupVaultArn" => @destination_backup_vault_arn,
    "lifecycle" => @lifecycle,
  })
  result.compact
end