@Stability(value=Stable)
public static interface CfnPolicy.ResourceTagProperty
extends software.amazon.jsii.JsiiSerializable
Tags enable you to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value. Firewall Manager combines the tags with "AND" so that, if you add more than one tag to a policy scope, a resource must have all the specified tags to be included or excluded. For more information, see Working with Tag Editor .
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.*;
ResourceTagProperty resourceTagProperty = ResourceTagProperty.builder()
.key("key")
// the properties below are optional
.value("value")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnPolicy.ResourceTagProperty.Builder
A builder for
CfnPolicy.ResourceTagProperty |
static class |
CfnPolicy.ResourceTagProperty.Jsii$Proxy
An implementation for
CfnPolicy.ResourceTagProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnPolicy.ResourceTagProperty.Builder |
builder() |
String |
getKey()
The resource tag key.
|
default String |
getValue()
The resource tag value.
|
@Stability(value=Stable) @NotNull String getKey()
@Stability(value=Stable) @Nullable default String getValue()
@Stability(value=Stable) static CfnPolicy.ResourceTagProperty.Builder builder()
Copyright © 2022. All rights reserved.