| 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.Proton.GetService
Description
Get detailed data for a service.
Synopsis
- data GetService = GetService' {}
- newGetService :: Text -> GetService
- getService_name :: Lens' GetService Text
- data GetServiceResponse = GetServiceResponse' {
- service :: Maybe Service
- httpStatus :: Int
- newGetServiceResponse :: Int -> GetServiceResponse
- getServiceResponse_service :: Lens' GetServiceResponse (Maybe Service)
- getServiceResponse_httpStatus :: Lens' GetServiceResponse Int
Creating a Request
data GetService Source #
See: newGetService smart constructor.
Constructors
| GetService' | |
Instances
Arguments
| :: Text | |
| -> GetService |
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:
GetService, getService_name - The name of the service that you want to get the detailed data for.
Request Lenses
getService_name :: Lens' GetService Text Source #
The name of the service that you want to get the detailed data for.
Destructuring the Response
data GetServiceResponse Source #
See: newGetServiceResponse smart constructor.
Constructors
| GetServiceResponse' | |
Fields
| |
Instances
newGetServiceResponse Source #
Arguments
| :: Int | |
| -> GetServiceResponse |
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 - The detailed data of the requested service.
$sel:httpStatus:GetServiceResponse', getServiceResponse_httpStatus - The response's http status code.
Response Lenses
getServiceResponse_service :: Lens' GetServiceResponse (Maybe Service) Source #
The detailed data of the requested service.
getServiceResponse_httpStatus :: Lens' GetServiceResponse Int Source #
The response's http status code.