interface CloudMapNamespaceOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.CloudMapNamespaceOptions |
Java | software.amazon.awscdk.services.ecs.CloudMapNamespaceOptions |
Python | aws_cdk.aws_ecs.CloudMapNamespaceOptions |
TypeScript (source) | @aws-cdk/aws-ecs » CloudMapNamespaceOptions |
The options for creating an AWS Cloud Map namespace.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
import * as ecs from '@aws-cdk/aws-ecs';
import * as servicediscovery from '@aws-cdk/aws-servicediscovery';
declare const vpc: ec2.Vpc;
const cloudMapNamespaceOptions: ecs.CloudMapNamespaceOptions = {
name: 'name',
// the properties below are optional
type: servicediscovery.NamespaceType.HTTP,
vpc: vpc,
};
Properties
Name | Type | Description |
---|---|---|
name | string | The name of the namespace, such as example.com. |
type? | Namespace | The type of CloudMap Namespace to create. |
vpc? | IVpc | The VPC to associate the namespace with. |
name
Type:
string
The name of the namespace, such as example.com.
type?
Type:
Namespace
(optional, default: PrivateDns)
The type of CloudMap Namespace to create.
vpc?
Type:
IVpc
(optional, default: VPC of the cluster for Private DNS Namespace, otherwise none)
The VPC to associate the namespace with.
This property is required for private DNS namespaces.