AddThingsToThingGroupParamsProperty Struct
Parameters used when defining a mitigation action that move a set of things to a thing group.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const addThingsToThingGroupParamsProperty: iot.CfnMitigationAction.AddThingsToThingGroupParamsProperty = {
thingGroupNames: ['thingGroupNames'],
// the properties below are optional
overrideDynamicGroups: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iot as iot
add_things_to_thing_group_params_property = iot.CfnMitigationAction.AddThingsToThingGroupParamsProperty(
thing_group_names=["thingGroupNames"],
# the properties below are optional
override_dynamic_groups=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;
AddThingsToThingGroupParamsProperty addThingsToThingGroupParamsProperty = AddThingsToThingGroupParamsProperty.builder()
.thingGroupNames(List.of("thingGroupNames"))
// the properties below are optional
.overrideDynamicGroups(false)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var addThingsToThingGroupParamsProperty = new AddThingsToThingGroupParamsProperty {
ThingGroupNames = new [] { "thingGroupNames" },
// the properties below are optional
OverrideDynamicGroups = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
addThingsToThingGroupParamsProperty := &AddThingsToThingGroupParamsProperty{
ThingGroupNames: []*string{
jsii.String("thingGroupNames"),
},
// the properties below are optional
OverrideDynamicGroups: jsii.Boolean(false),
}
Properties
overrideDynamicGroupsoptionalboolean | IResolvableoverride_dynamic_groupsoptionaltyping.Union[bool, IResolvable]overrideDynamicGroupsoptionalBooleanOverrideDynamicGroupsoptionalboolOverrideDynamicGroupsoptionalinterface{} #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.
thingGroupNamesstring[]thing_group_namestyping.List[str]thingGroupNamesList<String>ThingGroupNamesstring[]ThingGroupNames*[]*string required #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.