Class RemoveTag.Builder

java.lang.Object
software.amazon.awscdk.RemoveTag.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<RemoveTag>
Enclosing class:
RemoveTag

@Stability(Stable) public static final class RemoveTag.Builder extends Object implements software.amazon.jsii.Builder<RemoveTag>
A fluent builder for RemoveTag.
  • Method Details

    • create

      @Stability(Stable) public static RemoveTag.Builder create(String key)
      Parameters:
      key - The string key for the tag. This parameter is required.
      Returns:
      a new instance of RemoveTag.Builder.
    • applyToLaunchedInstances

      @Stability(Stable) public RemoveTag.Builder applyToLaunchedInstances(Boolean applyToLaunchedInstances)
      Whether the tag should be applied to instances in an AutoScalingGroup.

      Default: true

      Parameters:
      applyToLaunchedInstances - Whether the tag should be applied to instances in an AutoScalingGroup. This parameter is required.
      Returns:
      this
    • excludeResourceTypes

      @Stability(Stable) public RemoveTag.Builder excludeResourceTypes(List<String> excludeResourceTypes)
      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: []

      Parameters:
      excludeResourceTypes - An array of Resource Types that will not receive this tag. This parameter is required.
      Returns:
      this
    • includeResourceTypes

      @Stability(Stable) public RemoveTag.Builder includeResourceTypes(List<String> includeResourceTypes)
      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: []

      Parameters:
      includeResourceTypes - An array of Resource Types that will receive this tag. This parameter is required.
      Returns:
      this
    • priority

      @Stability(Stable) public RemoveTag.Builder priority(Number priority)
      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 `SetTag` - 200 for `RemoveTag` - 50 for tags added directly to CloudFormation resources

      Parameters:
      priority - Priority of the tag operation. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public RemoveTag build()
      Specified by:
      build in interface software.amazon.jsii.Builder<RemoveTag>
      Returns:
      a newly built instance of RemoveTag.