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 |
Gets the settings for a specified service.
Synopsis
- data GetService = GetService' {}
- newGetService :: Text -> GetService
- getService_id :: Lens' GetService Text
- data GetServiceResponse = GetServiceResponse' {
- service :: Maybe ServiceInfo
- httpStatus :: Int
- newGetServiceResponse :: Int -> GetServiceResponse
- getServiceResponse_service :: Lens' GetServiceResponse (Maybe ServiceInfo)
- getServiceResponse_httpStatus :: Lens' GetServiceResponse Int
Creating a Request
data GetService Source #
See: newGetService
smart constructor.
Instances
Create a value of GetService
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:GetService'
, getService_id
- The ID of the service that you want to get settings for.
Request Lenses
getService_id :: Lens' GetService Text Source #
The ID of the service that you want to get settings for.
Destructuring the Response
data GetServiceResponse Source #
See: newGetServiceResponse
smart constructor.
GetServiceResponse' | |
|
Instances
newGetServiceResponse Source #
Create a value of GetServiceResponse
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:service:GetServiceResponse'
, getServiceResponse_service
- A complex type that contains information about the service.
$sel:httpStatus:GetServiceResponse'
, getServiceResponse_httpStatus
- The response's http status code.
Response Lenses
getServiceResponse_service :: Lens' GetServiceResponse (Maybe ServiceInfo) Source #
A complex type that contains information about the service.
getServiceResponse_httpStatus :: Lens' GetServiceResponse Int Source #
The response's http status code.