| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Route53AutoNaming.UpdateService
Description
Submits a request to perform the following operations:
- Update the TTL setting for existing
DnsRecordsconfigurations Add, update, or delete
HealthCheckConfigfor a specified serviceYou can't add, update, or delete a
HealthCheckCustomConfigconfiguration.
For public and private DNS namespaces, note the following:
- If you omit any existing
DnsRecordsorHealthCheckConfigconfigurations from anUpdateServicerequest, the configurations are deleted from the service. - If you omit an existing
HealthCheckCustomConfigconfiguration from anUpdateServicerequest, 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.
Constructors
| UpdateService' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ServiceChange | |
| -> UpdateService |
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:
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.
Constructors
| UpdateServiceResponse' | |
Fields
| |
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.