AWS::ServiceDiscovery::HttpNamespace - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


The HttpNamespace resource is an Amazon Cloud Map resource type that contains information about an HTTP namespace. Service instances that you register 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 account, see Amazon Cloud Map quotas in the Amazon Cloud Map Developer Guide.


To declare this entity in your Amazon CloudFormation template, use the following syntax:


{ "Type" : "AWS::ServiceDiscovery::HttpNamespace", "Properties" : { "Description" : String, "Name" : String, "Tags" : [ Tag, ... ] } }


Type: AWS::ServiceDiscovery::HttpNamespace Properties: Description: String Name: String Tags: - Tag



A description for the namespace.

Required: No

Type: String

Maximum: 1024

Update requires: No interruption


The name that you want to assign to this namespace.

Required: Yes

Type: String

Pattern: ^[!-~]{1,1024}$

Maximum: 1024

Update requires: Replacement


The tags for the namespace. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

Required: No

Type: Array of Tag

Minimum: 0

Maximum: 200

Update requires: Updates are not supported.

Return values


When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the Id for the namespace, such as ns-e4anhexample0004.

For more information about using the Ref function, see Ref.


The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.


The Amazon Resource Name (ARN) of the namespace, such as arn:aws:service-discovery:us-east-1:123456789012:http-namespace/http-namespace-a1bzhi.


The ID of the namespace.


Create an HTTP namespace

The following example creates an HTTP namespace named example-namespace.


{ "Type" : "AWS::ServiceDiscovery::HttpNamespace", "Properties" : { "Description" : "Amazon Cloud Map HTTP namespace for resources for website", "Name" : "example-namespace" } }


Type: 'AWS::ServiceDiscovery::HttpNamespace' Properties: Description: Amazon Cloud Map HTTP namespace for resources for website Name: example-namespace

See also