Package software.amazon.awscdk.core
Interface TagProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TagProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.153Z")
@Stability(Stable)
public interface TagProps
extends software.amazon.jsii.JsiiSerializable
Properties for a tag.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.core.*; TagProps tagProps = TagProps.builder() .applyToLaunchedInstances(false) .excludeResourceTypes(List.of("excludeResourceTypes")) .includeResourceTypes(List.of("includeResourceTypes")) .priority(123) .build();
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TagProps.Builder
builder()
default Boolean
Whether the tag should be applied to instances in an AutoScalingGroup.An array of Resource Types that will not receive this tag.An array of Resource Types that will receive this tag.default Number
Priority of the tag operation.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApplyToLaunchedInstances
Whether the tag should be applied to instances in an AutoScalingGroup.Default: true
-
getExcludeResourceTypes
An array of Resource Types that will not receive this tag.An empty array will allow this tag to be applied to all resources. A non-empty array will apply this tag only if the Resource type is not in this array.
Default: []
-
getIncludeResourceTypes
An array of Resource Types that will receive this tag.An empty array will match any Resource. A non-empty array will apply this tag only to Resource types that are included in this array.
Default: []
-
getPriority
Priority of the tag operation.Higher or equal priority tags will take precedence.
Setting priority will enable the user to control tags when they need to not follow the default precedence pattern of last applied and closest to the construct in the tree.
Default: Default priorities: - 100 for
invalid @link
SetTag
RemoveTag
- 50 for tags added directly to CloudFormation resources -
builder
- Returns:
- a
TagProps.Builder
ofTagProps
-