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 |
Get detail 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.
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:name:GetService'
, getService_name
- The name of the service that you want to get the detail data for.
Request Lenses
getService_name :: Lens' GetService Text Source #
The name of the service that you want to get the detail data 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
- The service detail data that's returned by AWS Proton.
$sel:httpStatus:GetServiceResponse'
, getServiceResponse_httpStatus
- The response's http status code.
Response Lenses
getServiceResponse_service :: Lens' GetServiceResponse (Maybe Service) Source #
The service detail data that's returned by AWS Proton.
getServiceResponse_httpStatus :: Lens' GetServiceResponse Int Source #
The response's http status code.