@Stability(value=Stable)
public static interface CfnPolicy.PolicyTagProperty
extends software.amazon.jsii.JsiiSerializable
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:
// 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnPolicy.PolicyTagProperty.Builder
A builder for
CfnPolicy.PolicyTagProperty |
static class |
CfnPolicy.PolicyTagProperty.Jsii$Proxy
An implementation for
CfnPolicy.PolicyTagProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnPolicy.PolicyTagProperty.Builder |
builder() |
String |
getKey()
Part of the key:value pair that defines a tag.
|
String |
getValue()
Part of the key:value pair that defines a tag.
|
@Stability(value=Stable) @NotNull String getKey()
You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive.
@Stability(value=Stable) @NotNull String getValue()
You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive.
@Stability(value=Stable) static CfnPolicy.PolicyTagProperty.Builder builder()
Copyright © 2022. All rights reserved.