Interface CfnTaskDefinition.IHostEntryProperty
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.
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface IHostEntryProperty
Syntax (vb)
Public Interface IHostEntryProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var hostEntryProperty = new HostEntryProperty {
Hostname = "hostname",
IpAddress = "ipAddress"
};
Synopsis
Properties
Hostname | The hostname to use in the |
IpAddress | The IP address to use in the |
Properties
Hostname
The hostname to use in the /etc/hosts
entry.
virtual string Hostname { get; }
Property Value
System.String
Remarks
IpAddress
The IP address to use in the /etc/hosts
entry.
virtual string IpAddress { get; }
Property Value
System.String