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 |
Lists all versions of the specified license.
Synopsis
- data ListLicenseVersions = ListLicenseVersions' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- licenseArn :: Text
- newListLicenseVersions :: Text -> ListLicenseVersions
- listLicenseVersions_nextToken :: Lens' ListLicenseVersions (Maybe Text)
- listLicenseVersions_maxResults :: Lens' ListLicenseVersions (Maybe Natural)
- listLicenseVersions_licenseArn :: Lens' ListLicenseVersions Text
- data ListLicenseVersionsResponse = ListLicenseVersionsResponse' {}
- newListLicenseVersionsResponse :: Int -> ListLicenseVersionsResponse
- listLicenseVersionsResponse_nextToken :: Lens' ListLicenseVersionsResponse (Maybe Text)
- listLicenseVersionsResponse_licenses :: Lens' ListLicenseVersionsResponse (Maybe [License])
- listLicenseVersionsResponse_httpStatus :: Lens' ListLicenseVersionsResponse Int
Creating a Request
data ListLicenseVersions Source #
See: newListLicenseVersions
smart constructor.
ListLicenseVersions' | |
|
Instances
newListLicenseVersions Source #
Create a value of ListLicenseVersions
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:ListLicenseVersions'
, listLicenseVersions_nextToken
- Token for the next set of results.
$sel:maxResults:ListLicenseVersions'
, listLicenseVersions_maxResults
- Maximum number of results to return in a single call.
$sel:licenseArn:ListLicenseVersions'
, listLicenseVersions_licenseArn
- Amazon Resource Name (ARN) of the license.
Request Lenses
listLicenseVersions_nextToken :: Lens' ListLicenseVersions (Maybe Text) Source #
Token for the next set of results.
listLicenseVersions_maxResults :: Lens' ListLicenseVersions (Maybe Natural) Source #
Maximum number of results to return in a single call.
listLicenseVersions_licenseArn :: Lens' ListLicenseVersions Text Source #
Amazon Resource Name (ARN) of the license.
Destructuring the Response
data ListLicenseVersionsResponse Source #
See: newListLicenseVersionsResponse
smart constructor.
Instances
newListLicenseVersionsResponse Source #
Create a value of ListLicenseVersionsResponse
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:ListLicenseVersions'
, listLicenseVersionsResponse_nextToken
- Token for the next set of results.
$sel:licenses:ListLicenseVersionsResponse'
, listLicenseVersionsResponse_licenses
- License details.
$sel:httpStatus:ListLicenseVersionsResponse'
, listLicenseVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
listLicenseVersionsResponse_nextToken :: Lens' ListLicenseVersionsResponse (Maybe Text) Source #
Token for the next set of results.
listLicenseVersionsResponse_licenses :: Lens' ListLicenseVersionsResponse (Maybe [License]) Source #
License details.
listLicenseVersionsResponse_httpStatus :: Lens' ListLicenseVersionsResponse Int Source #
The response's http status code.