Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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 account, see Cloud Map quotas in the Cloud Map Developer Guide.
Synopsis
- data CreateHttpNamespace = CreateHttpNamespace' {}
- newCreateHttpNamespace :: Text -> CreateHttpNamespace
- createHttpNamespace_creatorRequestId :: Lens' CreateHttpNamespace (Maybe Text)
- createHttpNamespace_description :: Lens' CreateHttpNamespace (Maybe Text)
- createHttpNamespace_tags :: Lens' CreateHttpNamespace (Maybe [Tag])
- createHttpNamespace_name :: Lens' CreateHttpNamespace Text
- data CreateHttpNamespaceResponse = CreateHttpNamespaceResponse' {
- operationId :: Maybe Text
- httpStatus :: Int
- newCreateHttpNamespaceResponse :: Int -> CreateHttpNamespaceResponse
- createHttpNamespaceResponse_operationId :: Lens' CreateHttpNamespaceResponse (Maybe Text)
- createHttpNamespaceResponse_httpStatus :: Lens' CreateHttpNamespaceResponse Int
Creating a Request
data CreateHttpNamespace Source #
See: newCreateHttpNamespace
smart constructor.
CreateHttpNamespace' | |
|
Instances
newCreateHttpNamespace Source #
Create a value of CreateHttpNamespace
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:creatorRequestId:CreateHttpNamespace'
, createHttpNamespace_creatorRequestId
- A unique string that identifies the request and that allows failed
CreateHttpNamespace
requests to be retried without the risk of running
the operation twice. CreatorRequestId
can be any unique string (for
example, a date/time stamp).
$sel:description:CreateHttpNamespace'
, createHttpNamespace_description
- A description for the namespace.
$sel:tags:CreateHttpNamespace'
, createHttpNamespace_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.
$sel:name:CreateHttpNamespace'
, createHttpNamespace_name
- The name that you want to assign to this namespace.
Request Lenses
createHttpNamespace_creatorRequestId :: Lens' CreateHttpNamespace (Maybe Text) Source #
A unique string that identifies the request and that allows failed
CreateHttpNamespace
requests to be retried without the risk of running
the operation twice. CreatorRequestId
can be any unique string (for
example, a date/time stamp).
createHttpNamespace_description :: Lens' CreateHttpNamespace (Maybe Text) Source #
A description for the namespace.
createHttpNamespace_tags :: Lens' CreateHttpNamespace (Maybe [Tag]) Source #
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.
createHttpNamespace_name :: Lens' CreateHttpNamespace Text Source #
The name that you want to assign to this namespace.
Destructuring the Response
data CreateHttpNamespaceResponse Source #
See: newCreateHttpNamespaceResponse
smart constructor.
CreateHttpNamespaceResponse' | |
|
Instances
newCreateHttpNamespaceResponse Source #
Create a value of CreateHttpNamespaceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:operationId:CreateHttpNamespaceResponse'
, createHttpNamespaceResponse_operationId
- A value that you can use to determine whether the request completed
successfully. To get the status of the operation, see
GetOperation.
$sel:httpStatus:CreateHttpNamespaceResponse'
, createHttpNamespaceResponse_httpStatus
- The response's http status code.
Response Lenses
createHttpNamespaceResponse_operationId :: Lens' CreateHttpNamespaceResponse (Maybe Text) Source #
A value that you can use to determine whether the request completed successfully. To get the status of the operation, see GetOperation.
createHttpNamespaceResponse_httpStatus :: Lens' CreateHttpNamespaceResponse Int Source #
The response's http status code.