# AddThingsToThingGroupParamsProperty

Parameters used when defining a mitigation action that move a set of things to a thing group.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `overrideDynamicGroups`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — 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.

- `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.
