Skip to content
v2.277.0

EBSTagSpecificationProperty Struct ​

The tag specifications of an Amazon EBS volume.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const eBSTagSpecificationProperty: ecs.CfnService.EBSTagSpecificationProperty = {
  resourceType: 'resourceType',

  // the properties below are optional
  propagateTags: 'propagateTags',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# 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_bs_tag_specification_property = ecs.CfnService.EBSTagSpecificationProperty(
    resource_type="resourceType",

    # the properties below are optional
    propagate_tags="propagateTags",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// 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.*;

EBSTagSpecificationProperty eBSTagSpecificationProperty = EBSTagSpecificationProperty.builder()
        .resourceType("resourceType")

        // the properties below are optional
        .propagateTags("propagateTags")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;

var eBSTagSpecificationProperty = new EBSTagSpecificationProperty {
    ResourceType = "resourceType",

    // the properties below are optional
    PropagateTags = "propagateTags",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

eBSTagSpecificationProperty := &EBSTagSpecificationProperty{
	ResourceType: jsii.String("resourceType"),

	// the properties below are optional
	PropagateTags: jsii.String("propagateTags"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

propagateTagsoptionalstringpropagate_tagsoptionalstrpropagateTagsoptionalStringPropagateTagsoptionalstringPropagateTagsoptional*string #
Determines whether to propagate the tags from the task definition to the Amazon EBS volume.

Tags can only propagate to a SERVICE specified in ServiceVolumeConfiguration . If no value is specified, the tags aren't propagated.

resourceTypestringresource_typestrresourceTypeStringResourceTypestringResourceType*string required #
The type of volume resource.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags applied to this Amazon EBS volume.

AmazonECSCreated and AmazonECSManaged are reserved tags that can't be used.