aws-cdk-lib.aws_ecs.CfnTaskDefinition.HostEntryProperty

interface HostEntryProperty

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

The HostEntry property specifies a hostname and an IP address that are added to the /etc/hosts file of a container through the extraHosts parameter of its ContainerDefinition resource.

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 hostEntryProperty: ecs.CfnTaskDefinition.HostEntryProperty = {
  hostname: 'hostname',
  ipAddress: 'ipAddress',
};

Properties

NameTypeDescription
hostname?stringThe hostname to use in the /etc/hosts entry.
ipAddress?stringThe IP address to use in the /etc/hosts entry.

hostname?

Type: string (optional)

The hostname to use in the /etc/hosts entry.


ipAddress?

Type: string (optional)

The IP address to use in the /etc/hosts entry.