Learn R Programming

paws.networking (version 0.1.9)

servicediscovery_create_http_namespace: Creates an HTTP namespace

Description

Creates 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.

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 CreateHttpNamespace requests to be retried without the risk of executing 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, 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.

Request syntax

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

Details

For the current limit on the number of namespaces that you can create using the same AWS account, see AWS Cloud Map Limits in the AWS Cloud Map Developer Guide.

Examples

Run this code
# 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"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab