Skip to content

Create Http Namespace

servicediscovery_create_http_namespace R Documentation

Creates an HTTP namespace

Description

Creates an HTTP namespace. Service instances registered using an HTTP namespace can be discovered using a discover_instances 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.

Usage

servicediscovery_create_http_namespace(Name, CreatorRequestId,
  Description, Tags)

Arguments

Name

[required] The name that you want to assign to this namespace.

CreatorRequestId

A unique string that identifies the request and that allows failed create_http_namespace requests to be retried without the risk of running the operation twice. CreatorRequestId can be any unique string (for example, a date/time stamp).

Description

A description for the namespace.

Tags

The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.

Value

A list with the following syntax:

list(
  OperationId = "string"
)

Request syntax

svc$create_http_namespace(
  Name = "string",
  CreatorRequestId = "string",
  Description = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Examples

## Not run: 
# This example creates an HTTP namespace.
svc$create_http_namespace(
  CreatorRequestId = "example-creator-request-id-0001",
  Description = "Example.com AWS Cloud Map HTTP Namespace",
  Name = "example-http.com"
)

## End(Not run)