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 a public namespace based on DNS, which is visible on the
internet. The namespace defines your service naming scheme. For example,
if you name your namespace example.com
and name your service
backend
, the resulting DNS name for the service is
backend.example.com
. You can discover instances that were registered
with a public DNS namespace by using either a DiscoverInstances
request or 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 CreatePublicDnsNamespace = CreatePublicDnsNamespace' {}
- newCreatePublicDnsNamespace :: Text -> CreatePublicDnsNamespace
- createPublicDnsNamespace_creatorRequestId :: Lens' CreatePublicDnsNamespace (Maybe Text)
- createPublicDnsNamespace_description :: Lens' CreatePublicDnsNamespace (Maybe Text)
- createPublicDnsNamespace_tags :: Lens' CreatePublicDnsNamespace (Maybe [Tag])
- createPublicDnsNamespace_properties :: Lens' CreatePublicDnsNamespace (Maybe PublicDnsNamespaceProperties)
- createPublicDnsNamespace_name :: Lens' CreatePublicDnsNamespace Text
- data CreatePublicDnsNamespaceResponse = CreatePublicDnsNamespaceResponse' {
- operationId :: Maybe Text
- httpStatus :: Int
- newCreatePublicDnsNamespaceResponse :: Int -> CreatePublicDnsNamespaceResponse
- createPublicDnsNamespaceResponse_operationId :: Lens' CreatePublicDnsNamespaceResponse (Maybe Text)
- createPublicDnsNamespaceResponse_httpStatus :: Lens' CreatePublicDnsNamespaceResponse Int
Creating a Request
data CreatePublicDnsNamespace Source #
See: newCreatePublicDnsNamespace
smart constructor.
CreatePublicDnsNamespace' | |
|
Instances
newCreatePublicDnsNamespace Source #
Create a value of CreatePublicDnsNamespace
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:CreatePublicDnsNamespace'
, createPublicDnsNamespace_creatorRequestId
- A unique string that identifies the request and that allows failed
CreatePublicDnsNamespace
requests to be retried without the risk of
running the operation twice. CreatorRequestId
can be any unique string
(for example, a date/timestamp).
$sel:description:CreatePublicDnsNamespace'
, createPublicDnsNamespace_description
- A description for the namespace.
$sel:tags:CreatePublicDnsNamespace'
, createPublicDnsNamespace_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:properties:CreatePublicDnsNamespace'
, createPublicDnsNamespace_properties
- Properties for the public DNS namespace.
$sel:name:CreatePublicDnsNamespace'
, createPublicDnsNamespace_name
- The name that you want to assign to this namespace.
Request Lenses
createPublicDnsNamespace_creatorRequestId :: Lens' CreatePublicDnsNamespace (Maybe Text) Source #
A unique string that identifies the request and that allows failed
CreatePublicDnsNamespace
requests to be retried without the risk of
running the operation twice. CreatorRequestId
can be any unique string
(for example, a date/timestamp).
createPublicDnsNamespace_description :: Lens' CreatePublicDnsNamespace (Maybe Text) Source #
A description for the namespace.
createPublicDnsNamespace_tags :: Lens' CreatePublicDnsNamespace (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.
createPublicDnsNamespace_properties :: Lens' CreatePublicDnsNamespace (Maybe PublicDnsNamespaceProperties) Source #
Properties for the public DNS namespace.
createPublicDnsNamespace_name :: Lens' CreatePublicDnsNamespace Text Source #
The name that you want to assign to this namespace.
Destructuring the Response
data CreatePublicDnsNamespaceResponse Source #
See: newCreatePublicDnsNamespaceResponse
smart constructor.
CreatePublicDnsNamespaceResponse' | |
|
Instances
Eq CreatePublicDnsNamespaceResponse Source # | |
Read CreatePublicDnsNamespaceResponse Source # | |
Show CreatePublicDnsNamespaceResponse Source # | |
Generic CreatePublicDnsNamespaceResponse Source # | |
NFData CreatePublicDnsNamespaceResponse Source # | |
Defined in Amazonka.Route53AutoNaming.CreatePublicDnsNamespace rnf :: CreatePublicDnsNamespaceResponse -> () # | |
type Rep CreatePublicDnsNamespaceResponse Source # | |
Defined in Amazonka.Route53AutoNaming.CreatePublicDnsNamespace type Rep CreatePublicDnsNamespaceResponse = D1 ('MetaData "CreatePublicDnsNamespaceResponse" "Amazonka.Route53AutoNaming.CreatePublicDnsNamespace" "libZSservicesZSamazonka-route53-autonamingZSamazonka-route53-autonaming" 'False) (C1 ('MetaCons "CreatePublicDnsNamespaceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreatePublicDnsNamespaceResponse Source #
Create a value of CreatePublicDnsNamespaceResponse
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:CreatePublicDnsNamespaceResponse'
, createPublicDnsNamespaceResponse_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:CreatePublicDnsNamespaceResponse'
, createPublicDnsNamespaceResponse_httpStatus
- The response's http status code.
Response Lenses
createPublicDnsNamespaceResponse_operationId :: Lens' CreatePublicDnsNamespaceResponse (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.
createPublicDnsNamespaceResponse_httpStatus :: Lens' CreatePublicDnsNamespaceResponse Int Source #
The response's http status code.