Skip to content
v2.278.0

KeyValueProperty Struct ​

Pair of two related strings.

Allowed characters are letters, white space, and numbers that can be represented in UTF-8 and the following characters: + - = . _ : /

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_backup as backup } from 'aws-cdk-lib';
const keyValueProperty: backup.CfnRestoreTestingSelection.KeyValueProperty = {
  key: 'key',
  value: 'value',
};
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_backup as backup

key_value_property = backup.CfnRestoreTestingSelection.KeyValueProperty(
    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.backup.*;

KeyValueProperty keyValueProperty = KeyValueProperty.builder()
        .key("key")
        .value("value")
        .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.Backup;

var keyValueProperty = new KeyValueProperty {
    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"

keyValueProperty := &KeyValueProperty{
	Key: jsii.String("key"),
	Value: jsii.String("value"),
}

Properties ​

keystringkeystrkeyStringKeystringKey*string required #
The tag key.
valuestringvaluestrvalueStringValuestringValue*string required #
The tag value.