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 information about one or more Stage resources.
Synopsis
- data GetStages = GetStages' {
- deploymentId :: Maybe Text
- restApiId :: Text
- newGetStages :: Text -> GetStages
- getStages_deploymentId :: Lens' GetStages (Maybe Text)
- getStages_restApiId :: Lens' GetStages Text
- data GetStagesResponse = GetStagesResponse' {
- item :: Maybe [Stage]
- httpStatus :: Int
- newGetStagesResponse :: Int -> GetStagesResponse
- getStagesResponse_item :: Lens' GetStagesResponse (Maybe [Stage])
- getStagesResponse_httpStatus :: Lens' GetStagesResponse Int
Creating a Request
Requests API Gateway to get information about one or more Stage resources.
See: newGetStages
smart constructor.
GetStages' | |
|
Instances
Create a value of GetStages
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:deploymentId:GetStages'
, getStages_deploymentId
- The stages' deployment identifiers.
$sel:restApiId:GetStages'
, getStages_restApiId
- [Required] The string identifier of the associated RestApi.
Request Lenses
getStages_restApiId :: Lens' GetStages Text Source #
- Required
- The string identifier of the associated RestApi.
Destructuring the Response
data GetStagesResponse Source #
A list of Stage resources that are associated with the ApiKey resource.
See: newGetStagesResponse
smart constructor.
GetStagesResponse' | |
|
Instances
Create a value of GetStagesResponse
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:item:GetStagesResponse'
, getStagesResponse_item
- The current page of elements from this collection.
$sel:httpStatus:GetStagesResponse'
, getStagesResponse_httpStatus
- The response's http status code.
Response Lenses
getStagesResponse_item :: Lens' GetStagesResponse (Maybe [Stage]) Source #
The current page of elements from this collection.
getStagesResponse_httpStatus :: Lens' GetStagesResponse Int Source #
The response's http status code.