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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTaskDefinition.HostEntryPropertystatic final classAn 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/hostsentry.- See Also:
-
getIpAddress
The IP address to use in the/etc/hostsentry.- See Also:
-
builder
-