Class: AWSCDK::FMS::CfnResourceSetProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fms/cfn_resource_set_props.rb

Overview

Properties for defining a CfnResourceSet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, resource_type_list:, description: nil, resources: nil, tags: nil) ⇒ CfnResourceSetProps

Returns a new instance of CfnResourceSetProps.

Parameters:

  • name (String)

    The descriptive name of the resource set.

  • resource_type_list (Array<String>)

    Determines the resources that can be associated to the resource set.

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

    A description of the resource set.

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


14
15
16
17
18
19
20
21
22
23
24
25
# File 'fms/cfn_resource_set_props.rb', line 14

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

A description of the resource set.



45
46
47
# File 'fms/cfn_resource_set_props.rb', line 45

def description
  @description
end

#nameString (readonly)

The descriptive name of the resource set.

You can't change the name of a resource set after you create it.



33
34
35
# File 'fms/cfn_resource_set_props.rb', line 33

def name
  @name
end

#resource_type_listArray<String> (readonly)

Determines the resources that can be associated to the resource set.

Depending on your setting for max results and the number of resource sets, a single call might not return the full list.



40
41
42
# File 'fms/cfn_resource_set_props.rb', line 40

def resource_type_list
  @resource_type_list
end

#resourcesArray<String>? (readonly)



48
49
50
# File 'fms/cfn_resource_set_props.rb', line 48

def resources
  @resources
end

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



51
52
53
# File 'fms/cfn_resource_set_props.rb', line 51

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



53
54
55
56
57
58
59
60
61
# File 'fms/cfn_resource_set_props.rb', line 53

def self.jsii_properties
  {
    :name => "name",
    :resource_type_list => "resourceTypeList",
    :description => "description",
    :resources => "resources",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



63
64
65
66
67
68
69
70
71
72
73
# File 'fms/cfn_resource_set_props.rb', line 63

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