# ResourceTagProperty

Struct · External

[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.

- Source: Generated at build time
- Type last changed: v2.169.0 · 21 Nov 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rbin as rbin } from 'aws-cdk-lib';
const resourceTagProperty: rbin.CfnRule.ResourceTagProperty = {
  resourceTagKey: 'resourceTagKey',
  resourceTagValue: 'resourceTagValue',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_rbin as rbin

resource_tag_property = rbin.CfnRule.ResourceTagProperty(
    resource_tag_key="resourceTagKey",
    resource_tag_value="resourceTagValue"
)
```

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.rbin.*;

ResourceTagProperty resourceTagProperty = ResourceTagProperty.builder()
        .resourceTagKey("resourceTagKey")
        .resourceTagValue("resourceTagValue")
        .build();
```

C#:

```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.Rbin;

var resourceTagProperty = new ResourceTagProperty {
    ResourceTagKey = "resourceTagKey",
    ResourceTagValue = "resourceTagValue"
};
```

Go:

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

resourceTagProperty := &ResourceTagProperty{
	ResourceTagKey: jsii.String("resourceTagKey"),
	ResourceTagValue: jsii.String("resourceTagValue"),
}
```

## Properties

- `resourceTagKey`: string (required) — The tag key.

- `resourceTagValue`: string (required) — The tag value.
