Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a private namespace based on DNS, which will be visible only inside a specified Amazon VPC. 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 will be backend.example.com
. For the current limit on the number of namespaces that you can create using the same AWS account, see Limits on Auto Naming in the Route 53 Developer Guide .
- createPrivateDNSNamespace :: Text -> Text -> CreatePrivateDNSNamespace
- data CreatePrivateDNSNamespace
- cpdnsnCreatorRequestId :: Lens' CreatePrivateDNSNamespace (Maybe Text)
- cpdnsnDescription :: Lens' CreatePrivateDNSNamespace (Maybe Text)
- cpdnsnName :: Lens' CreatePrivateDNSNamespace Text
- cpdnsnVPC :: Lens' CreatePrivateDNSNamespace Text
- createPrivateDNSNamespaceResponse :: Int -> CreatePrivateDNSNamespaceResponse
- data CreatePrivateDNSNamespaceResponse
- cpdnsnrsOperationId :: Lens' CreatePrivateDNSNamespaceResponse (Maybe Text)
- cpdnsnrsResponseStatus :: Lens' CreatePrivateDNSNamespaceResponse Int
Creating a Request
createPrivateDNSNamespace Source #
Creates a value of CreatePrivateDNSNamespace
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cpdnsnCreatorRequestId
- A unique string that identifies the request and that allows failedCreatePrivateDnsNamespace
requests to be retried without the risk of executing the operation twice.CreatorRequestId
can be any unique string, for example, a date/time stamp.cpdnsnDescription
- A description for the namespace.cpdnsnName
- The name that you want to assign to this namespace. When you create a namespace, Amazon Route 53 automatically creates a hosted zone that has the same name as the namespace.cpdnsnVPC
- The ID of the Amazon VPC that you want to associate the namespace with.
data CreatePrivateDNSNamespace Source #
See: createPrivateDNSNamespace
smart constructor.
Request Lenses
cpdnsnCreatorRequestId :: Lens' CreatePrivateDNSNamespace (Maybe Text) Source #
A unique string that identifies the request and that allows failed CreatePrivateDnsNamespace
requests to be retried without the risk of executing the operation twice. CreatorRequestId
can be any unique string, for example, a date/time stamp.
cpdnsnDescription :: Lens' CreatePrivateDNSNamespace (Maybe Text) Source #
A description for the namespace.
cpdnsnName :: Lens' CreatePrivateDNSNamespace Text Source #
The name that you want to assign to this namespace. When you create a namespace, Amazon Route 53 automatically creates a hosted zone that has the same name as the namespace.
cpdnsnVPC :: Lens' CreatePrivateDNSNamespace Text Source #
The ID of the Amazon VPC that you want to associate the namespace with.
Destructuring the Response
createPrivateDNSNamespaceResponse Source #
Creates a value of CreatePrivateDNSNamespaceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cpdnsnrsOperationId
- A value that you can use to determine whether the request completed successfully. To get the status of the operation, seeGetOperation
.cpdnsnrsResponseStatus
- -- | The response status code.
data CreatePrivateDNSNamespaceResponse Source #
See: createPrivateDNSNamespaceResponse
smart constructor.
Response Lenses
cpdnsnrsOperationId :: Lens' CreatePrivateDNSNamespaceResponse (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
.
cpdnsnrsResponseStatus :: Lens' CreatePrivateDNSNamespaceResponse Int Source #
- - | The response status code.