| 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.APIGateway.GetStages
Description
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.
Constructors
| GetStages' | |
Fields
| |
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:
GetStages, getStages_deploymentId - The stages' deployment identifiers.
GetStages, getStages_restApiId - The string identifier of the associated RestApi.
Request Lenses
getStages_restApiId :: Lens' GetStages Text Source #
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.
Constructors
| GetStagesResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetStagesResponse |
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.