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 the Deployments for an API.
This operation returns paginated results.
Synopsis
- data GetDeployments = GetDeployments' {}
- newGetDeployments :: Text -> GetDeployments
- getDeployments_nextToken :: Lens' GetDeployments (Maybe Text)
- getDeployments_maxResults :: 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.
Instances
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:nextToken:GetDeployments'
, getDeployments_nextToken
- The next page of elements from this collection. Not valid for the last
element of the collection.
$sel:maxResults:GetDeployments'
, getDeployments_maxResults
- The maximum number of elements to be returned for this resource.
$sel:apiId:GetDeployments'
, getDeployments_apiId
- The API identifier.
Request Lenses
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_maxResults :: Lens' GetDeployments (Maybe Text) Source #
The maximum number of elements to be returned for this resource.
getDeployments_apiId :: Lens' GetDeployments Text Source #
The API identifier.
Destructuring the Response
data GetDeploymentsResponse Source #
See: newGetDeploymentsResponse
smart constructor.
GetDeploymentsResponse' | |
|
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.
$sel:nextToken: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.