Show / Hide Table of Contents

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

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-hostentry.html

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 /etc/hosts entry.

IpAddress

The IP address to use in the /etc/hosts entry.

Properties

Hostname

The hostname to use in the /etc/hosts entry.

virtual string Hostname { get; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-hostentry.html#cfn-ecs-taskdefinition-hostentry-hostname

IpAddress

The IP address to use in the /etc/hosts entry.

virtual string IpAddress { get; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-hostentry.html#cfn-ecs-taskdefinition-hostentry-ipaddress

Back to top Generated by DocFX