# OnPremisesTagSetProperty

The `OnPremisesTagSet` property type specifies a list containing other lists of on-premises instance tag groups.

In order for an instance to be included in the deployment group, it must be identified by all the tag groups in the list.

For more information about using tags and tag groups to help manage your Amazon EC2 instances and on-premises instances, see [Tagging Instances for Deployment Groups in AWS CodeDeploy](https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-tagging.html) in the *AWS CodeDeploy User Guide* .

`OnPremisesTagSet` is a property of the [DeploymentGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codedeploy-deploymentgroup.html) resource.

- 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_codedeploy as codedeploy } from 'aws-cdk-lib';
const onPremisesTagSetProperty: codedeploy.CfnDeploymentGroup.OnPremisesTagSetProperty = {
  onPremisesTagSetList: [{
    onPremisesTagGroup: [{
      key: 'key',
      type: 'type',
      value: 'value',
    }],
  }],
};
```

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_codedeploy as codedeploy

on_premises_tag_set_property = codedeploy.CfnDeploymentGroup.OnPremisesTagSetProperty(
    on_premises_tag_set_list=[codedeploy.CfnDeploymentGroup.OnPremisesTagSetListObjectProperty(
        on_premises_tag_group=[codedeploy.CfnDeploymentGroup.TagFilterProperty(
            key="key",
            type="type",
            value="value"
        )]
    )]
)
```

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.codedeploy.*;

OnPremisesTagSetProperty onPremisesTagSetProperty = OnPremisesTagSetProperty.builder()
        .onPremisesTagSetList(List.of(OnPremisesTagSetListObjectProperty.builder()
                .onPremisesTagGroup(List.of(TagFilterProperty.builder()
                        .key("key")
                        .type("type")
                        .value("value")
                        .build()))
                .build()))
        .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.CodeDeploy;

var onPremisesTagSetProperty = new OnPremisesTagSetProperty {
    OnPremisesTagSetList = new [] { new OnPremisesTagSetListObjectProperty {
        OnPremisesTagGroup = new [] { new TagFilterProperty {
            Key = "key",
            Type = "type",
            Value = "value"
        } }
    } }
};
```

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"

onPremisesTagSetProperty := &OnPremisesTagSetProperty{
	OnPremisesTagSetList: []interface{}{
		&OnPremisesTagSetListObjectProperty{
			OnPremisesTagGroup: []interface{}{
				&TagFilterProperty{
					Key: jsii.String("key"),
					Type: jsii.String("type"),
					Value: jsii.String("value"),
				},
			},
		},
	},
}
```

## Properties

- `onPremisesTagSetList`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDeploymentGroup.OnPremisesTagSetListObjectProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.CfnDeploymentGroup.OnPremisesTagSetListObjectProperty.html)[] — A list that contains other lists of on-premises instance tag groups.

  For an instance to be included in the deployment group, it must be identified by all of the tag groups in the list.

  Duplicates are not allowed.
