Class: AWSCDK::RedshiftServerless::CfnNamespace::SnapshotCopyConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RedshiftServerless::CfnNamespace::SnapshotCopyConfigurationProperty
- Defined in:
- redshift_serverless/cfn_namespace.rb
Overview
The object that you configure to copy snapshots from one namespace to a namespace in another AWS Region .
Instance Attribute Summary collapse
-
#destination_kms_key_id ⇒ String?
readonly
The ID of the KMS key to use to encrypt your snapshots in the destination AWS Region .
-
#destination_region ⇒ String
readonly
The destination AWS Region to copy snapshots to.
-
#snapshot_retention_period ⇒ Numeric?
readonly
The retention period of snapshots that are copied to the destination AWS Region .
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination_region:, destination_kms_key_id: nil, snapshot_retention_period: nil) ⇒ SnapshotCopyConfigurationProperty
constructor
A new instance of SnapshotCopyConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination_region:, destination_kms_key_id: nil, snapshot_retention_period: nil) ⇒ SnapshotCopyConfigurationProperty
Returns a new instance of SnapshotCopyConfigurationProperty.
954 955 956 957 958 959 960 961 |
# File 'redshift_serverless/cfn_namespace.rb', line 954 def initialize(destination_region:, destination_kms_key_id: nil, snapshot_retention_period: nil) @destination_region = destination_region Jsii::Type.check_type(@destination_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationRegion") @destination_kms_key_id = destination_kms_key_id Jsii::Type.check_type(@destination_kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "destinationKmsKeyId") unless @destination_kms_key_id.nil? @snapshot_retention_period = snapshot_retention_period Jsii::Type.check_type(@snapshot_retention_period, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "snapshotRetentionPeriod") unless @snapshot_retention_period.nil? end |
Instance Attribute Details
#destination_kms_key_id ⇒ String? (readonly)
The ID of the KMS key to use to encrypt your snapshots in the destination AWS Region .
972 973 974 |
# File 'redshift_serverless/cfn_namespace.rb', line 972 def destination_kms_key_id @destination_kms_key_id end |
#destination_region ⇒ String (readonly)
The destination AWS Region to copy snapshots to.
967 968 969 |
# File 'redshift_serverless/cfn_namespace.rb', line 967 def destination_region @destination_region end |
#snapshot_retention_period ⇒ Numeric? (readonly)
The retention period of snapshots that are copied to the destination AWS Region .
977 978 979 |
# File 'redshift_serverless/cfn_namespace.rb', line 977 def snapshot_retention_period @snapshot_retention_period end |
Class Method Details
.jsii_properties ⇒ Object
979 980 981 982 983 984 985 |
# File 'redshift_serverless/cfn_namespace.rb', line 979 def self.jsii_properties { :destination_region => "destinationRegion", :destination_kms_key_id => "destinationKmsKeyId", :snapshot_retention_period => "snapshotRetentionPeriod", } end |
Instance Method Details
#to_jsii ⇒ Object
987 988 989 990 991 992 993 994 995 |
# File 'redshift_serverless/cfn_namespace.rb', line 987 def to_jsii result = {} result.merge!({ "destinationRegion" => @destination_region, "destinationKmsKeyId" => @destination_kms_key_id, "snapshotRetentionPeriod" => @snapshot_retention_period, }) result.compact end |