Interface EBSTagSpecification

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
EBSTagSpecification.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-06T23:25:09.359Z") @Stability(Stable) public interface EBSTagSpecification extends software.amazon.jsii.JsiiSerializable
Tag Specification for EBS volume.

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.ecs.*;
 EBSTagSpecification eBSTagSpecification = EBSTagSpecification.builder()
         .propagateTags(EbsPropagatedTagSource.SERVICE)
         .tags(Map.of(
                 "tagsKey", "tags"))
         .build();
 
  • Method Details

    • getPropagateTags

      @Stability(Stable) @Nullable default EbsPropagatedTagSource getPropagateTags()
      Specifies whether to propagate the tags from the task definition or the service to the task.

      Valid values are: PropagatedTagSource.SERVICE, PropagatedTagSource.TASK_DEFINITION

      Default: - undefined

    • getTags

      @Stability(Stable) @Nullable default Map<String,String> getTags()
      The tags to apply to the volume.

      Default: - No tags

    • builder

      @Stability(Stable) static EBSTagSpecification.Builder builder()
      Returns:
      a EBSTagSpecification.Builder of EBSTagSpecification