Class: AWSCDK::FMS::CfnResourceSetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FMS::CfnResourceSetProps
- Defined in:
- fms/cfn_resource_set_props.rb
Overview
Properties for defining a CfnResourceSet.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A description of the resource set.
-
#name ⇒ String
readonly
The descriptive name of the resource set.
-
#resource_type_list ⇒ Array<String>
readonly
Determines the resources that can be associated to the resource set.
- #resources ⇒ Array<String>? readonly
- #tags ⇒ Array<AWSCDK::CfnTag>? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, resource_type_list:, description: nil, resources: nil, tags: nil) ⇒ CfnResourceSetProps
constructor
A new instance of CfnResourceSetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, resource_type_list:, description: nil, resources: nil, tags: nil) ⇒ CfnResourceSetProps
Returns a new instance of CfnResourceSetProps.
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 = .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
#description ⇒ String? (readonly)
A description of the resource set.
45 46 47 |
# File 'fms/cfn_resource_set_props.rb', line 45 def description @description end |
#name ⇒ String (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_list ⇒ Array<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 |
#resources ⇒ Array<String>? (readonly)
48 49 50 |
# File 'fms/cfn_resource_set_props.rb', line 48 def resources @resources end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
51 52 53 |
# File 'fms/cfn_resource_set_props.rb', line 51 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |