createHttpNamespace

Creates an HTTP namespace. Service instances registered using an HTTP namespace can be discovered using a DiscoverInstances request but can't be discovered using DNS.

For the current quota on the number of namespaces that you can create using the same Amazon Web Services account, see Cloud Map quotas in the Cloud Map Developer Guide.

Samples


fun main() { 
   //sampleStart 
   // This example creates an HTTP namespace.
val resp = serviceDiscoveryClient.createHttpNamespace {
    creatorRequestId = "example-creator-request-id-0001"
    name = "example-http.com"
    description = "Example.com AWS Cloud Map HTTP Namespace"
} 
   //sampleEnd
}