@Stability(value=Stable)
public static interface CfnResourceCollection.TagCollectionProperty
extends software.amazon.jsii.JsiiSerializable
Tags help you identify and organize your AWS resources. Many AWS services support tagging, so you can assign the same tag to resources from different services to indicate that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB table resource that you assign to an AWS Lambda function. For more information about using tags, see the Tagging best practices whitepaper.
Each AWS tag has two parts.
CostCenter , Environment , Project , or Secret ). Tag keys are case-sensitive.111122223333 , Production , or a team name). Omitting the tag value is the same as using an empty string. Like tag keys , tag values are case-sensitive.Together these are known as key - value pairs.
The string used for a key in a tag that you use to define your resource coverage must begin with the prefix
Devops-guru-. The tag key might beDevops-guru-deployment-applicationorDevops-guru-rds-application. While keys are case-sensitive, the case of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a key nameddevops-guru-rdsand a key namedDevOps-Guru-RDS. Possible key / value pairs in your application might beDevops-Guru-production-application/RDSorDevops-Guru-production-application/containers.
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.devopsguru.*;
TagCollectionProperty tagCollectionProperty = TagCollectionProperty.builder()
.appBoundaryKey("appBoundaryKey")
.tagValues(List.of("tagValues"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnResourceCollection.TagCollectionProperty.Builder
A builder for
CfnResourceCollection.TagCollectionProperty |
static class |
CfnResourceCollection.TagCollectionProperty.Jsii$Proxy
An implementation for
CfnResourceCollection.TagCollectionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnResourceCollection.TagCollectionProperty.Builder |
builder() |
default String |
getAppBoundaryKey()
An AWS tag *key* that is used to identify the AWS resources that DevOps Guru analyzes.
|
default List<String> |
getTagValues()
The values in an AWS tag collection.
|
@Stability(value=Stable) @Nullable default String getAppBoundaryKey()
All AWS resources in your account and Region tagged with this key make up your DevOps Guru application and analysis boundary.
The string used for a key in a tag that you use to define your resource coverage must begin with the prefix
Devops-guru-. The tag key might beDevops-guru-deployment-applicationorDevops-guru-rds-application. While keys are case-sensitive, the case of key characters don't matter to DevOps Guru. For example, DevOps Guru works with a key nameddevops-guru-rdsand a key namedDevOps-Guru-RDS. Possible key / value pairs in your application might beDevops-Guru-production-application/RDSorDevops-Guru-production-application/containers.
@Stability(value=Stable) @Nullable default List<String> getTagValues()
The tag's value is an optional field used to associate a string with the tag key (for example, 111122223333 , Production , or a team name). The key and value are the tag's key pair. Omitting the tag value is the same as using an empty string. Like tag keys , tag values are case-sensitive. You can specify a maximum of 256 characters for a tag value.
@Stability(value=Stable) static CfnResourceCollection.TagCollectionProperty.Builder builder()
Copyright © 2022. All rights reserved.