OnPremisesTagSetProperty Struct
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 in the AWS CodeDeploy User Guide .
OnPremisesTagSet is a property of the DeploymentGroup resource.
Example
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
# 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
// 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();
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"
} }
} }
};
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
onPremisesTagSetListoptionalIResolvable | IResolvable | CfnDeploymentGroup.OnPremisesTagSetListObjectProperty[]on_premises_tag_set_listoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, OnPremisesTagSetListObjectProperty]]]onPremisesTagSetListoptionalIResolvableOnPremisesTagSetListoptionalIResolvableOnPremisesTagSetListoptionalinterface{}#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.