EC2TagFilterProperty Struct
Information about an Amazon EC2 tag filter.
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 .
| 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_codedeploy as codedeploy } from 'aws-cdk-lib';
const eC2TagFilterProperty: codedeploy.CfnDeploymentGroup.EC2TagFilterProperty = {
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
e_c2_tag_filter_property = codedeploy.CfnDeploymentGroup.EC2TagFilterProperty(
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.*;
EC2TagFilterProperty eC2TagFilterProperty = EC2TagFilterProperty.builder()
.key("key")
.type("type")
.value("value")
.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 eC2TagFilterProperty = new EC2TagFilterProperty {
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"
eC2TagFilterProperty := &EC2TagFilterProperty{
Key: jsii.String("key"),
Type: jsii.String("type"),
Value: jsii.String("value"),
}
Properties
The tag filter key.
The tag filter type:.
KEY_ONLY: Key only.VALUE_ONLY: Value only.KEY_AND_VALUE: Key and value.
The tag filter value.