Class CloudMapNamespaceOptions
The options for creating an AWS Cloud Map namespace.
Inheritance
System.Object
CloudMapNamespaceOptions
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class CloudMapNamespaceOptions : Object, ICloudMapNamespaceOptions
Syntax (vb)
Public Class CloudMapNamespaceOptions
Inherits Object
Implements ICloudMapNamespaceOptions
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.EC2;
using Amazon.CDK.AWS.ECS;
using Amazon.CDK.AWS.ServiceDiscovery;
Vpc vpc;
var cloudMapNamespaceOptions = new CloudMapNamespaceOptions {
Name = "name",
// the properties below are optional
Type = NamespaceType.HTTP,
Vpc = vpc
};
Synopsis
Constructors
CloudMapNamespaceOptions() |
Properties
Name | The name of the namespace, such as example.com. |
Type | The type of CloudMap Namespace to create. |
Vpc | The VPC to associate the namespace with. |
Constructors
CloudMapNamespaceOptions()
public CloudMapNamespaceOptions()
Properties
Name
The name of the namespace, such as example.com.
public string Name { get; set; }
Property Value
System.String
Type
The type of CloudMap Namespace to create.
public Nullable<NamespaceType> Type { get; set; }
Property Value
System.Nullable<NamespaceType>
Remarks
Default: PrivateDns
Vpc
The VPC to associate the namespace with.
public IVpc Vpc { get; set; }
Property Value
Remarks
This property is required for private DNS namespaces.
Default: VPC of the cluster for Private DNS Namespace, otherwise none