Class: AWSCDK::Cases::CfnLayoutProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cases/cfn_layout_props.rb

Overview

Properties for defining a CfnLayout.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content:, name:, domain_id: nil, tags: nil) ⇒ CfnLayoutProps

Returns a new instance of CfnLayoutProps.

Parameters:



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

def initialize(content:, name:, domain_id: nil, tags: nil)
  @content = content.is_a?(Hash) ? ::AWSCDK::Cases::CfnLayout::LayoutContentProperty.new(**content.transform_keys(&:to_sym)) : content
  Jsii::Type.check_type(@content, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jYXNlcy5DZm5MYXlvdXQuTGF5b3V0Q29udGVudFByb3BlcnR5In1dfX0=")), "content")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @domain_id = domain_id
  Jsii::Type.check_type(@domain_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainId") unless @domain_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

#contentAWSCDK::IResolvable, AWSCDK::Cases::CfnLayout::LayoutContentProperty (readonly)

Object to store union of different versions of layout content.



28
29
30
# File 'cases/cfn_layout_props.rb', line 28

def content
  @content
end

#domain_idString? (readonly)

The unique identifier of the Cases domain.



38
39
40
# File 'cases/cfn_layout_props.rb', line 38

def domain_id
  @domain_id
end

#nameString (readonly)

The name of the layout.



33
34
35
# File 'cases/cfn_layout_props.rb', line 33

def name
  @name
end

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

An array of key-value pairs to apply to this resource.



43
44
45
# File 'cases/cfn_layout_props.rb', line 43

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :content => "content",
    :name => "name",
    :domain_id => "domainId",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "content" => @content,
    "name" => @name,
    "domainId" => @domain_id,
    "tags" => @tags,
  })
  result.compact
end