| Modifier and Type | Method and Description |
|---|---|
Tag.Builder |
applyToLaunchedInstances(Boolean applyToLaunchedInstances)
(experimental) Whether the tag should be applied to instances in an AutoScalingGroup.
|
Tag |
build() |
static Tag.Builder |
create(String key,
String value) |
Tag.Builder |
excludeResourceTypes(List<String> excludeResourceTypes)
(experimental) An array of Resource Types that will not receive this tag.
|
Tag.Builder |
includeResourceTypes(List<String> includeResourceTypes)
(experimental) An array of Resource Types that will receive this tag.
|
Tag.Builder |
priority(Number priority)
(experimental) Priority of the tag operation.
|
@Stability(value=Experimental) public static Tag.Builder create(String key, String value)
key - This parameter is required.value - This parameter is required.Tag.Builder.@Stability(value=Experimental) public Tag.Builder applyToLaunchedInstances(Boolean applyToLaunchedInstances)
Default: true
applyToLaunchedInstances - Whether the tag should be applied to instances in an AutoScalingGroup. This parameter is required.this@Stability(value=Experimental) public Tag.Builder excludeResourceTypes(List<String> excludeResourceTypes)
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: []
excludeResourceTypes - An array of Resource Types that will not receive this tag. This parameter is required.this@Stability(value=Experimental) public Tag.Builder includeResourceTypes(List<String> includeResourceTypes)
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: []
includeResourceTypes - An array of Resource Types that will receive this tag. This parameter is required.this@Stability(value=Experimental) public Tag.Builder priority(Number priority)
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 SetTag
- 200 for RemoveTag
- 50 for tags added directly to CloudFormation resources
priority - Priority of the tag operation. This parameter is required.thisCopyright © 2021. All rights reserved.