HttpNamespace
Source:
src/AWS/CloudMap/HttpNamespace.ts
An AWS Cloud Map HTTP namespace — an API-only service registry. Instances
registered in an HTTP namespace are discoverable via the
DiscoverInstances API but not via DNS, so no VPC or hosted zone is
required.
Namespace creation and deletion are asynchronous — the provider polls the Cloud Map operations API (bounded) until they complete.
Creating Namespaces
Section titled “Creating Namespaces”import * as AWS from "alchemy/AWS";
const namespace = yield* AWS.CloudMap.HttpNamespace("AppNamespace", { description: "API-only service discovery",});Registering Services
Section titled “Registering Services”const service = yield* AWS.CloudMap.Service("Backend", { namespaceId: namespace.namespaceId,});