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 |
Submits a request to perform the following operations:
- Update the TTL setting for existing
DnsRecords
configurations Add, update, or delete
HealthCheckConfig
for a specified serviceYou can't add, update, or delete a
HealthCheckCustomConfig
configuration.
For public and private DNS namespaces, note the following:
- If you omit any existing
DnsRecords
orHealthCheckConfig
configurations from anUpdateService
request, the configurations are deleted from the service. - If you omit an existing
HealthCheckCustomConfig
configuration from anUpdateService
request, the configuration isn't deleted from the service.
When you update settings for a service, Cloud Map also updates the corresponding settings in all the records and health checks that were created by using the specified service.
Synopsis
- data UpdateService = UpdateService' {
- id :: Text
- service :: ServiceChange
- newUpdateService :: Text -> ServiceChange -> UpdateService
- updateService_id :: Lens' UpdateService Text
- updateService_service :: Lens' UpdateService ServiceChange
- data UpdateServiceResponse = UpdateServiceResponse' {
- operationId :: Maybe Text
- httpStatus :: Int
- newUpdateServiceResponse :: Int -> UpdateServiceResponse
- updateServiceResponse_operationId :: Lens' UpdateServiceResponse (Maybe Text)
- updateServiceResponse_httpStatus :: Lens' UpdateServiceResponse Int
Creating a Request
data UpdateService Source #
See: newUpdateService
smart constructor.
UpdateService' | |
|
Instances
Create a value of UpdateService
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:id:UpdateService'
, updateService_id
- The ID of the service that you want to update.
$sel:service:UpdateService'
, updateService_service
- A complex type that contains the new settings for the service.
Request Lenses
updateService_id :: Lens' UpdateService Text Source #
The ID of the service that you want to update.
updateService_service :: Lens' UpdateService ServiceChange Source #
A complex type that contains the new settings for the service.
Destructuring the Response
data UpdateServiceResponse Source #
See: newUpdateServiceResponse
smart constructor.
UpdateServiceResponse' | |
|
Instances
newUpdateServiceResponse Source #
Create a value of UpdateServiceResponse
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:UpdateServiceResponse'
, updateServiceResponse_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:UpdateServiceResponse'
, updateServiceResponse_httpStatus
- The response's http status code.
Response Lenses
updateServiceResponse_operationId :: Lens' UpdateServiceResponse (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.
updateServiceResponse_httpStatus :: Lens' UpdateServiceResponse Int Source #
The response's http status code.