Class: AWSCDK::ResourceGroups::CfnGroup::QueryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ResourceGroups::CfnGroup::QueryProperty
- Defined in:
- resource_groups/cfn_group.rb
Overview
Specifies details within a ResourceQuery structure that determines the membership of the resource group.
The contents required in the Query structure are determined by the Type property of the containing ResourceQuery structure.
Instance Attribute Summary collapse
-
#resource_type_filters ⇒ Array<String>?
readonly
Specifies limits to the types of resources that can be included in the resource group.
-
#stack_identifier ⇒ String?
readonly
Specifies the ARN of a CloudFormation stack.
-
#tag_filters ⇒ AWSCDK::IResolvable, ...
readonly
A list of key-value pair objects that limit which resources can be members of the resource group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource_type_filters: nil, stack_identifier: nil, tag_filters: nil) ⇒ QueryProperty
constructor
A new instance of QueryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource_type_filters: nil, stack_identifier: nil, tag_filters: nil) ⇒ QueryProperty
Returns a new instance of QueryProperty.
719 720 721 722 723 724 725 726 |
# File 'resource_groups/cfn_group.rb', line 719 def initialize(resource_type_filters: nil, stack_identifier: nil, tag_filters: nil) @resource_type_filters = resource_type_filters Jsii::Type.check_type(@resource_type_filters, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "resourceTypeFilters") unless @resource_type_filters.nil? @stack_identifier = stack_identifier Jsii::Type.check_type(@stack_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stackIdentifier") unless @stack_identifier.nil? @tag_filters = tag_filters Jsii::Type.check_type(@tag_filters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmVzb3VyY2Vncm91cHMuQ2ZuR3JvdXAuVGFnRmlsdGVyUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "tagFilters") unless @tag_filters.nil? end |
Instance Attribute Details
#resource_type_filters ⇒ Array<String>? (readonly)
Specifies limits to the types of resources that can be included in the resource group.
For example, if ResourceTypeFilters is ["AWS::EC2::Instance", "AWS::DynamoDB::Table"] , only EC2 instances or DynamoDB tables can be members of this resource group. The default value is ["AWS::AllSupported"] .
734 735 736 |
# File 'resource_groups/cfn_group.rb', line 734 def resource_type_filters @resource_type_filters end |
#stack_identifier ⇒ String? (readonly)
Specifies the ARN of a CloudFormation stack.
All supported resources of the CloudFormation stack are members of the resource group. If you don't specify an ARN, this parameter defaults to the current stack that you are defining, which means that all the resources of the current stack are grouped.
You can specify a value for StackIdentifier only when the ResourceQuery.Type property is CLOUDFORMATION_STACK_1_0.
743 744 745 |
# File 'resource_groups/cfn_group.rb', line 743 def stack_identifier @stack_identifier end |
#tag_filters ⇒ AWSCDK::IResolvable, ... (readonly)
A list of key-value pair objects that limit which resources can be members of the resource group.
This property is required when the ResourceQuery.Type property is TAG_FILTERS_1_0 .
A resource must have a tag that matches every filter that is provided in the TagFilters list.
752 753 754 |
# File 'resource_groups/cfn_group.rb', line 752 def tag_filters @tag_filters end |
Class Method Details
.jsii_properties ⇒ Object
754 755 756 757 758 759 760 |
# File 'resource_groups/cfn_group.rb', line 754 def self.jsii_properties { :resource_type_filters => "resourceTypeFilters", :stack_identifier => "stackIdentifier", :tag_filters => "tagFilters", } end |
Instance Method Details
#to_jsii ⇒ Object
762 763 764 765 766 767 768 769 770 |
# File 'resource_groups/cfn_group.rb', line 762 def to_jsii result = {} result.merge!({ "resourceTypeFilters" => @resource_type_filters, "stackIdentifier" => @stack_identifier, "tagFilters" => @tag_filters, }) result.compact end |