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 service, which defines the configuration for the following entities:
- Up to three records (A, AAAA, and SRV) or one CNAME record
- Optionally, a health check
After you create the service, you can submit a RegisterInstance
request, and Amazon Route 53 uses the values in the configuration to create the specified entities.
For the current limit on the number of instances that you can register using the same namespace and using the same service, see Limits on Auto Naming in the Route 53 Developer Guide .
- createService :: Text -> DNSConfig -> CreateService
- data CreateService
- csHealthCheckConfig :: Lens' CreateService (Maybe HealthCheckConfig)
- csCreatorRequestId :: Lens' CreateService (Maybe Text)
- csHealthCheckCustomConfig :: Lens' CreateService (Maybe HealthCheckCustomConfig)
- csDescription :: Lens' CreateService (Maybe Text)
- csName :: Lens' CreateService Text
- csDNSConfig :: Lens' CreateService DNSConfig
- createServiceResponse :: Int -> CreateServiceResponse
- data CreateServiceResponse
- csrsService :: Lens' CreateServiceResponse (Maybe ServiceInfo)
- csrsResponseStatus :: Lens' CreateServiceResponse Int
Creating a Request
Creates a value of CreateService
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csHealthCheckConfig
- Public DNS namespaces only. A complex type that contains settings for an optional health check. If you specify settings for a health check, Route 53 associates the health check with all the records that you specify inDnsConfig
. For information about the charges for health checks, see Route 53 Pricing .csCreatorRequestId
- A unique string that identifies the request and that allows failedCreateService
requests to be retried without the risk of executing the operation twice.CreatorRequestId
can be any unique string, for example, a date/time stamp.csHealthCheckCustomConfig
- Undocumented member.csDescription
- A description for the service.csName
- The name that you want to assign to the service.csDNSConfig
- A complex type that contains information about the records that you want Route 53 to create when you register an instance.
data CreateService Source #
See: createService
smart constructor.
Request Lenses
csHealthCheckConfig :: Lens' CreateService (Maybe HealthCheckConfig) Source #
Public DNS namespaces only. A complex type that contains settings for an optional health check. If you specify settings for a health check, Route 53 associates the health check with all the records that you specify in DnsConfig
. For information about the charges for health checks, see Route 53 Pricing .
csCreatorRequestId :: Lens' CreateService (Maybe Text) Source #
A unique string that identifies the request and that allows failed CreateService
requests to be retried without the risk of executing the operation twice. CreatorRequestId
can be any unique string, for example, a date/time stamp.
csHealthCheckCustomConfig :: Lens' CreateService (Maybe HealthCheckCustomConfig) Source #
Undocumented member.
csDescription :: Lens' CreateService (Maybe Text) Source #
A description for the service.
csDNSConfig :: Lens' CreateService DNSConfig Source #
A complex type that contains information about the records that you want Route 53 to create when you register an instance.
Destructuring the Response
createServiceResponse Source #
Creates a value of CreateServiceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csrsService
- A complex type that contains information about the new service.csrsResponseStatus
- -- | The response status code.
data CreateServiceResponse Source #
See: createServiceResponse
smart constructor.
Response Lenses
csrsService :: Lens' CreateServiceResponse (Maybe ServiceInfo) Source #
A complex type that contains information about the new service.
csrsResponseStatus :: Lens' CreateServiceResponse Int Source #
- - | The response status code.