EBSTagSpecification
- class aws_cdk.aws_ecs.EBSTagSpecification(*, propagate_tags=None, tags=None)
Bases:
object
Tag Specification for EBS volume.
- Parameters:
propagate_tags (
Optional
[EbsPropagatedTagSource
]) – 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: - undefinedtags (
Optional
[Mapping
[str
,str
]]) – The tags to apply to the volume. Default: - No tags
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ecs as ecs e_bSTag_specification = ecs.EBSTagSpecification( propagate_tags=ecs.EbsPropagatedTagSource.SERVICE, tags={ "tags_key": "tags" } )
Attributes
- propagate_tags
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
- tags
The tags to apply to the volume.
- Default:
No tags