# CloudMapNamespaceOptionsBase

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

- Source: [`aws-ecs/lib/cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ecs/lib/cluster.ts#L1241)
- Type last changed: v2.263.0 · 31 Jul 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `useForServiceConnect`: boolean = false — This property specifies whether to set the provided namespace as the service connect default in the cluster properties.
