| 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.ApiGatewayV2.GetDeployments
Description
Gets the Deployments for an API.
This operation returns paginated results.
Synopsis
- data GetDeployments = GetDeployments' {}
- newGetDeployments :: Text -> GetDeployments
- getDeployments_maxResults :: Lens' GetDeployments (Maybe Text)
- getDeployments_nextToken :: Lens' GetDeployments (Maybe Text)
- getDeployments_apiId :: Lens' GetDeployments Text
- data GetDeploymentsResponse = GetDeploymentsResponse' {
- items :: Maybe [Deployment]
- nextToken :: Maybe Text
- httpStatus :: Int
- newGetDeploymentsResponse :: Int -> GetDeploymentsResponse
- getDeploymentsResponse_items :: Lens' GetDeploymentsResponse (Maybe [Deployment])
- getDeploymentsResponse_nextToken :: Lens' GetDeploymentsResponse (Maybe Text)
- getDeploymentsResponse_httpStatus :: Lens' GetDeploymentsResponse Int
Creating a Request
data GetDeployments Source #
See: newGetDeployments smart constructor.
Constructors
| GetDeployments' | |
Instances
Arguments
| :: Text | |
| -> GetDeployments |
Create a value of GetDeployments 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:maxResults:GetDeployments', getDeployments_maxResults - The maximum number of elements to be returned for this resource.
GetDeployments, getDeployments_nextToken - The next page of elements from this collection. Not valid for the last
element of the collection.
GetDeployments, getDeployments_apiId - The API identifier.
Request Lenses
getDeployments_maxResults :: Lens' GetDeployments (Maybe Text) Source #
The maximum number of elements to be returned for this resource.
getDeployments_nextToken :: Lens' GetDeployments (Maybe Text) Source #
The next page of elements from this collection. Not valid for the last element of the collection.
getDeployments_apiId :: Lens' GetDeployments Text Source #
The API identifier.
Destructuring the Response
data GetDeploymentsResponse Source #
See: newGetDeploymentsResponse smart constructor.
Constructors
| GetDeploymentsResponse' | |
Fields
| |
Instances
newGetDeploymentsResponse Source #
Create a value of GetDeploymentsResponse 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:items:GetDeploymentsResponse', getDeploymentsResponse_items - The elements from this collection.
GetDeployments, getDeploymentsResponse_nextToken - The next page of elements from this collection. Not valid for the last
element of the collection.
$sel:httpStatus:GetDeploymentsResponse', getDeploymentsResponse_httpStatus - The response's http status code.
Response Lenses
getDeploymentsResponse_items :: Lens' GetDeploymentsResponse (Maybe [Deployment]) Source #
The elements from this collection.
getDeploymentsResponse_nextToken :: Lens' GetDeploymentsResponse (Maybe Text) Source #
The next page of elements from this collection. Not valid for the last element of the collection.
getDeploymentsResponse_httpStatus :: Lens' GetDeploymentsResponse Int Source #
The response's http status code.