# PrivateDnsNamespaceAttributes

- Source: [`aws-servicediscovery/lib/private-dns-namespace.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-servicediscovery/lib/private-dns-namespace.ts#L23)

## Example

```ts
declare const vpc: ec2.Vpc;

const importedNamespace = cloudmap.PrivateDnsNamespace.fromPrivateDnsNamespaceAttributes(
  this, 'ImportedNamespace', {
    namespaceId: 'ns-xxxxxxxxxxxxx',
    namespaceArn: 'arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-xxxxxxxxxxxxx',
    namespaceName: 'example.local',
  }
);

const cluster = new ecs.Cluster(this, 'Cluster', { vpc });

cluster.addExistingDefaultCloudMapNamespace({
  namespace: importedNamespace,
});
```

## Properties

- `namespaceArn`: string (required) — Namespace ARN for the Namespace.

- `namespaceId`: string (required) — Namespace Id for the Namespace.

- `namespaceName`: string (required) — A name for the Namespace.
