Interface ICloudMapNamespaceOptions
The options for creating an AWS Cloud Map namespace.
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface ICloudMapNamespaceOptions
Syntax (vb)
Public Interface 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
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. |
Properties
Name
The name of the namespace, such as example.com.
string Name { get; }
Property Value
System.String
Type
The type of CloudMap Namespace to create.
virtual Nullable<NamespaceType> Type { get; }
Property Value
System.Nullable<NamespaceType>
Remarks
Default: PrivateDns
Vpc
The VPC to associate the namespace with.
virtual IVpc Vpc { get; }
Property Value
Remarks
This property is required for private DNS namespaces.
Default: VPC of the cluster for Private DNS Namespace, otherwise none