Class: AWSCDK::SSMIncidents::CfnReplicationSetProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ssm_incidents/cfn_replication_set_props.rb

Overview

Properties for defining a CfnReplicationSet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(regions:, deletion_protected: nil, tags: nil) ⇒ CfnReplicationSetProps

Returns a new instance of CfnReplicationSetProps.

Parameters:



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#deletion_protectedBoolean, ... (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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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