Class: AWSCDK::IoT::CfnMitigationAction::AddThingsToThingGroupParamsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(thing_group_names:, override_dynamic_groups: nil) ⇒ AddThingsToThingGroupParamsProperty

Returns a new instance of AddThingsToThingGroupParamsProperty.

Parameters:

  • thing_group_names (Array<String>)

    The list of groups to which you want to add the things that triggered the mitigation action.

  • override_dynamic_groups (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    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.



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_groupsBoolean, ... (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_namesArray<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_propertiesObject



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_jsiiObject



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