Skip to content
v2.278.0

CloudMapNamespaceOptionsBase Struct ​

Options shared by all ways of setting the default AWS Cloud Map namespace of a cluster.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const cloudMapNamespaceOptionsBase: ecs.CloudMapNamespaceOptionsBase = {
  useForServiceConnect: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs

cloud_map_namespace_options_base = ecs.CloudMapNamespaceOptionsBase(
    use_for_service_connect=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;

CloudMapNamespaceOptionsBase cloudMapNamespaceOptionsBase = CloudMapNamespaceOptionsBase.builder()
        .useForServiceConnect(false)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 cloudMapNamespaceOptionsBase = new CloudMapNamespaceOptionsBase {
    UseForServiceConnect = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cloudMapNamespaceOptionsBase := &CloudMapNamespaceOptionsBase{
	UseForServiceConnect: jsii.Boolean(false),
}

Properties ​

useForServiceConnectoptionalbooleanuse_for_service_connectoptionalbooluseForServiceConnectoptionalBooleanUseForServiceConnectoptionalboolUseForServiceConnectoptional*bool = false #
This property specifies whether to set the provided namespace as the service connect default in the cluster properties.