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:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnTaskDefinition.HostEntryProperty
static final class
An implementation forCfnTaskDefinition.HostEntryProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHostname
The hostname to use in the/etc/hosts
entry.- See Also:
-
getIpAddress
The IP address to use in the/etc/hosts
entry.- See Also:
-
builder
-