Class: AWSCDK::ResilienceHubv2::CfnSystemProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
resilience_hubv2/cfn_system_props.rb

Overview

Properties for defining a CfnSystem.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, description: nil, kms_key_id: nil, tags: nil) ⇒ CfnSystemProps

Returns a new instance of CfnSystemProps.

Parameters:

  • name (String)

    The name of the system.

  • description (String, nil) (defaults to: nil)

    The description of the system.

  • kms_key_id (String, nil) (defaults to: nil)

    The KMS key ID for encrypting system data.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    Tags assigned to the system.



13
14
15
16
17
18
19
20
21
22
# File 'resilience_hubv2/cfn_system_props.rb', line 13

def initialize(name:, description: nil, kms_key_id: nil, tags: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @kms_key_id = kms_key_id
  Jsii::Type.check_type(@kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyId") unless @kms_key_id.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

#descriptionString? (readonly)

The description of the system.



33
34
35
# File 'resilience_hubv2/cfn_system_props.rb', line 33

def description
  @description
end

#kms_key_idString? (readonly)

The KMS key ID for encrypting system data.



38
39
40
# File 'resilience_hubv2/cfn_system_props.rb', line 38

def kms_key_id
  @kms_key_id
end

#nameString (readonly)

The name of the system.



28
29
30
# File 'resilience_hubv2/cfn_system_props.rb', line 28

def name
  @name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

Tags assigned to the system.



43
44
45
# File 'resilience_hubv2/cfn_system_props.rb', line 43

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'resilience_hubv2/cfn_system_props.rb', line 45

def self.jsii_properties
  {
    :name => "name",
    :description => "description",
    :kms_key_id => "kmsKeyId",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'resilience_hubv2/cfn_system_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "description" => @description,
    "kmsKeyId" => @kms_key_id,
    "tags" => @tags,
  })
  result.compact
end