ExistingCloudMapNamespaceOptions Struct
The options for using an existing AWS Cloud Map namespace as the default namespace of a cluster.
Example
ts
declare const vpc: ec2.Vpc;
// Create or reference an existing namespace
const existingNamespace = new cloudmap.PrivateDnsNamespace(this, 'Namespace', {
name: 'example.local',
vpc,
});
const cluster = new ecs.Cluster(this, 'Cluster', { vpc });
// Use the existing namespace as the default
cluster.addExistingDefaultCloudMapNamespace({
namespace: existingNamespace,
useForServiceConnect: true,
});
Properties
namespaceINamespacenamespaceINamespacenamespaceINamespaceNamespaceINamespaceNamespaceINamespacerequired#The existing Cloud Map namespace to use as the cluster's default namespace.
The full INamespace is required (rather than a ref) because the cluster needs the namespace name, ARN and type to wire up Service Discovery and Service Connect.
[disable-awslint:prefer-ref-interface]
useForServiceConnectoptionalbooleanuse_for_service_connectoptionalbooluseForServiceConnectoptionalBooleanUseForServiceConnectoptionalboolUseForServiceConnectoptional*bool= false#This property specifies whether to set the provided namespace as the service connect default in the cluster properties.