Class: AWSCDK::IoT::CfnMitigationAction::AddThingsToThingGroupParamsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnMitigationAction::AddThingsToThingGroupParamsProperty
- Defined in:
- io_t/cfn_mitigation_action.rb
Overview
Parameters used when defining a mitigation action that move a set of things to a thing group.
Instance Attribute Summary collapse
-
#override_dynamic_groups ⇒ Boolean, ...
readonly
Specifies if this mitigation action can move the things that triggered the mitigation action even if they are part of one or more dynamic thing groups.
-
#thing_group_names ⇒ Array<String>
readonly
The list of groups to which you want to add the things that triggered the mitigation action.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(thing_group_names:, override_dynamic_groups: nil) ⇒ AddThingsToThingGroupParamsProperty
constructor
A new instance of AddThingsToThingGroupParamsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(thing_group_names:, override_dynamic_groups: nil) ⇒ AddThingsToThingGroupParamsProperty
Returns a new instance of AddThingsToThingGroupParamsProperty.
659 660 661 662 663 664 |
# File 'io_t/cfn_mitigation_action.rb', line 659 def initialize(thing_group_names:, override_dynamic_groups: nil) @thing_group_names = thing_group_names Jsii::Type.check_type(@thing_group_names, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "thingGroupNames") @override_dynamic_groups = override_dynamic_groups Jsii::Type.check_type(@override_dynamic_groups, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "overrideDynamicGroups") unless @override_dynamic_groups.nil? end |
Instance Attribute Details
#override_dynamic_groups ⇒ Boolean, ... (readonly)
Specifies if this mitigation action can move the things that triggered the mitigation action even if they are part of one or more dynamic thing groups.
677 678 679 |
# File 'io_t/cfn_mitigation_action.rb', line 677 def override_dynamic_groups @override_dynamic_groups end |
#thing_group_names ⇒ Array<String> (readonly)
The list of groups to which you want to add the things that triggered the mitigation action.
You can add a thing to a maximum of 10 groups, but you can't add a thing to more than one group in the same hierarchy.
672 673 674 |
# File 'io_t/cfn_mitigation_action.rb', line 672 def thing_group_names @thing_group_names end |
Class Method Details
.jsii_properties ⇒ Object
679 680 681 682 683 684 |
# File 'io_t/cfn_mitigation_action.rb', line 679 def self.jsii_properties { :thing_group_names => "thingGroupNames", :override_dynamic_groups => "overrideDynamicGroups", } end |
Instance Method Details
#to_jsii ⇒ Object
686 687 688 689 690 691 692 693 |
# File 'io_t/cfn_mitigation_action.rb', line 686 def to_jsii result = {} result.merge!({ "thingGroupNames" => @thing_group_names, "overrideDynamicGroups" => @override_dynamic_groups, }) result.compact end |