aws-cdk-lib.aws_ecs.CfnTaskDefinition.KeyValuePairProperty

interface KeyValuePairProperty

LanguageType name
.NETAmazon.CDK.AWS.ECS.CfnTaskDefinition.KeyValuePairProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnTaskDefinition_KeyValuePairProperty
Javasoftware.amazon.awscdk.services.ecs.CfnTaskDefinition.KeyValuePairProperty
Pythonaws_cdk.aws_ecs.CfnTaskDefinition.KeyValuePairProperty
TypeScript aws-cdk-lib » aws_ecs » CfnTaskDefinition » KeyValuePairProperty

A key-value pair object.

Example

// 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.CfnTaskDefinition.KeyValuePairProperty = {
  name: 'name',
  value: 'value',
};

Properties

NameTypeDescription
name?stringThe name of the key-value pair.
value?stringThe value of the key-value pair.

name?

Type: string (optional)

The name of the key-value pair.

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


value?

Type: string (optional)

The value of the key-value pair.

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