Class: AWSCDK::SSMIncidents::CfnReplicationSetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SSMIncidents::CfnReplicationSetProps
- Defined in:
- ssm_incidents/cfn_replication_set_props.rb
Overview
Properties for defining a CfnReplicationSet.
Instance Attribute Summary collapse
-
#deletion_protected ⇒ Boolean, ...
readonly
Determines if the replication set deletion protection is enabled or not.
-
#regions ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::SSMIncidents::CfnReplicationSet::ReplicationRegionProperty>
readonly
Specifies the Regions of the replication set.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A list of tags to add to the replication set.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(regions:, deletion_protected: nil, tags: nil) ⇒ CfnReplicationSetProps
constructor
A new instance of CfnReplicationSetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(regions:, deletion_protected: nil, tags: nil) ⇒ CfnReplicationSetProps
Returns a new instance of CfnReplicationSetProps.
12 13 14 15 16 17 18 19 |
# File 'ssm_incidents/cfn_replication_set_props.rb', line 12 def initialize(regions:, deletion_protected: nil, tags: nil) @regions = regions Jsii::Type.check_type(@regions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3NtaW5jaWRlbnRzLkNmblJlcGxpY2F0aW9uU2V0LlJlcGxpY2F0aW9uUmVnaW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "regions") @deletion_protected = deletion_protected Jsii::Type.check_type(@deletion_protected, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "deletionProtected") unless @deletion_protected.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#deletion_protected ⇒ Boolean, ... (readonly)
Determines if the replication set deletion protection is enabled or not.
If deletion protection is enabled, you can't delete the last Region in the replication set.
32 33 34 |
# File 'ssm_incidents/cfn_replication_set_props.rb', line 32 def deletion_protected @deletion_protected end |
#regions ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::SSMIncidents::CfnReplicationSet::ReplicationRegionProperty> (readonly)
Specifies the Regions of the replication set.
25 26 27 |
# File 'ssm_incidents/cfn_replication_set_props.rb', line 25 def regions @regions end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A list of tags to add to the replication set.
37 38 39 |
# File 'ssm_incidents/cfn_replication_set_props.rb', line 37 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'ssm_incidents/cfn_replication_set_props.rb', line 39 def self.jsii_properties { :regions => "regions", :deletion_protected => "deletionProtected", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'ssm_incidents/cfn_replication_set_props.rb', line 47 def to_jsii result = {} result.merge!({ "regions" => @regions, "deletionProtected" => @deletion_protected, "tags" => @tags, }) result.compact end |