Skip to content
v2.278.0

ResourceTagProperty ​

Struct External

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

Example ​

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
# 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
// 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();
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
// 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 ​

resourceTagKeystringresource_tag_keystrresourceTagKeyStringResourceTagKeystringResourceTagKey*string required #
The tag key.
resourceTagValuestringresource_tag_valuestrresourceTagValueStringResourceTagValuestringResourceTagValue*string required #
The tag value.