interface HostEntryProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.ECS.CfnTaskDefinitionPropsMixin.HostEntryProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsecs#CfnTaskDefinitionPropsMixin_HostEntryProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnTaskDefinitionPropsMixin.HostEntryProperty |
Python | aws_cdk.cfn_property_mixins.aws_ecs.CfnTaskDefinitionPropsMixin.HostEntryProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_ecs » CfnTaskDefinitionPropsMixin » 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/cfn-property-mixins';
const hostEntryProperty: ecs.CfnTaskDefinitionPropsMixin.HostEntryProperty = {
hostname: 'hostname',
ipAddress: 'ipAddress',
};
Properties
| Name | Type | Description |
|---|---|---|
| hostname? | string | The hostname to use in the /etc/hosts entry. |
| ip | string | The 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.

.NET
Go
Java
Python
TypeScript