# EBSTagSpecificationProperty

The tag specifications of an Amazon EBS volume.

- Source: Generated at build time
- Type last changed: v2.117.0 · 27 Dec 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `propagateTags`: 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.

- `resourceType`: string (required) — The type of volume resource.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags applied to this Amazon EBS volume.

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