Skip to content
v2.278.0

PolicyTagProperty Struct ​

A collection of key:value pairs associated with an AWS resource.

The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_fms as fms } from 'aws-cdk-lib';
const policyTagProperty: fms.CfnPolicy.PolicyTagProperty = {
  key: 'key',
  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_fms as fms

policy_tag_property = fms.CfnPolicy.PolicyTagProperty(
    key="key",
    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.fms.*;

PolicyTagProperty policyTagProperty = PolicyTagProperty.builder()
        .key("key")
        .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.FMS;

var policyTagProperty = new PolicyTagProperty {
    Key = "key",
    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"

policyTagProperty := &PolicyTagProperty{
	Key: jsii.String("key"),
	Value: jsii.String("value"),
}

Properties ​

keystringkeystrkeyStringKeystringKey*string required #
Part of the key:value pair that defines a tag.

You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive.

valuestringvaluestrvalueStringValuestringValue*string required #
Part of the key:value pair that defines a tag.

You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive.