Class CfnTaskDefinition.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.
Inheritance
System.Object
CfnTaskDefinition.HostEntryProperty
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HostEntryProperty : Object, CfnTaskDefinition.IHostEntryProperty
Syntax (vb)
Public Class HostEntryProperty
Inherits Object
Implements CfnTaskDefinition.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
Constructors
HostEntryProperty() |
Properties
Hostname | The hostname to use in the |
IpAddress | The IP address to use in the |
Constructors
HostEntryProperty()
public HostEntryProperty()
Properties
Hostname
The hostname to use in the /etc/hosts
entry.
public string Hostname { get; set; }
Property Value
System.String
Remarks
IpAddress
The IP address to use in the /etc/hosts
entry.
public string IpAddress { get; set; }
Property Value
System.String