Skip to content
v2.274.0

KeyValuePairProperty Struct ​

A key-value pair object.

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 keyValuePairProperty: ecs.CfnDaemonTaskDefinition.KeyValuePairProperty = {
  name: 'name',
  value: 'value',
};

Properties ​

namestringnamestrnameStringNamestringName*string#
The name of the key-value pair.

For environment variables, this is the name of the environment variable.

valuestringvaluestrvalueStringValuestringValue*string#
The value of the key-value pair.

For environment variables, this is the value of the environment variable.