interface HostEntryProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ECS.Mixins.CfnTaskDefinitionPropsMixin.HostEntryProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsecs/mixins#CfnTaskDefinitionPropsMixin_HostEntryProperty |
Java | software.amazon.awscdk.mixins.preview.services.ecs.mixins.CfnTaskDefinitionPropsMixin.HostEntryProperty |
Python | aws_cdk.mixins_preview.aws_ecs.mixins.CfnTaskDefinitionPropsMixin.HostEntryProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ecs » mixins » 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 { mixins as ecs_mixins } from '@aws-cdk/mixins-preview/aws-ecs';
const hostEntryProperty: ecs_mixins.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