Interface CfnTaskDefinition.HostEntryProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTaskDefinition.HostEntryProperty.Jsii$Proxy
Enclosing class:
CfnTaskDefinition

@Stability(Stable) public static interface CfnTaskDefinition.HostEntryProperty extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.ecs.*;
 HostEntryProperty hostEntryProperty = HostEntryProperty.builder()
         .hostname("hostname")
         .ipAddress("ipAddress")
         .build();
 

See Also: