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 |
Lists the available versions of the specified RAM permission.
Synopsis
- data ListPermissionVersions = ListPermissionVersions' {}
- newListPermissionVersions :: Text -> ListPermissionVersions
- listPermissionVersions_maxResults :: Lens' ListPermissionVersions (Maybe Natural)
- listPermissionVersions_nextToken :: Lens' ListPermissionVersions (Maybe Text)
- listPermissionVersions_permissionArn :: Lens' ListPermissionVersions Text
- data ListPermissionVersionsResponse = ListPermissionVersionsResponse' {}
- newListPermissionVersionsResponse :: Int -> ListPermissionVersionsResponse
- listPermissionVersionsResponse_nextToken :: Lens' ListPermissionVersionsResponse (Maybe Text)
- listPermissionVersionsResponse_permissions :: Lens' ListPermissionVersionsResponse (Maybe [ResourceSharePermissionSummary])
- listPermissionVersionsResponse_httpStatus :: Lens' ListPermissionVersionsResponse Int
Creating a Request
data ListPermissionVersions Source #
See: newListPermissionVersions
smart constructor.
ListPermissionVersions' | |
|
Instances
newListPermissionVersions Source #
Create a value of ListPermissionVersions
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:ListPermissionVersions'
, listPermissionVersions_maxResults
- Specifies the total number of results that you want included on each
page of the response. If you do not include this parameter, it defaults
to a value that is specific to the operation. If additional items exist
beyond the number you specify, the NextToken
response element is
returned with a value (not null). Include the specified value as the
NextToken
request parameter in the next call to the operation to get
the next part of the results. Note that the service might return fewer
results than the maximum even when there are more results available. You
should check NextToken
after every operation to ensure that you
receive all of the results.
ListPermissionVersions
, listPermissionVersions_nextToken
- Specifies that you want to receive the next page of results. Valid only
if you received a NextToken
response in the previous request. If you
did, it indicates that more output is available. Set this parameter to
the value provided by the previous call's NextToken
response to
request the next page of results.
$sel:permissionArn:ListPermissionVersions'
, listPermissionVersions_permissionArn
- Specifies the
Amazon Resoure Name (ARN)
of the RAM permission whose versions you want to list. You can use the
permissionVersion
parameter on the AssociateResourceSharePermission
operation to specify a non-default version to attach.
Request Lenses
listPermissionVersions_maxResults :: Lens' ListPermissionVersions (Maybe Natural) Source #
Specifies the total number of results that you want included on each
page of the response. If you do not include this parameter, it defaults
to a value that is specific to the operation. If additional items exist
beyond the number you specify, the NextToken
response element is
returned with a value (not null). Include the specified value as the
NextToken
request parameter in the next call to the operation to get
the next part of the results. Note that the service might return fewer
results than the maximum even when there are more results available. You
should check NextToken
after every operation to ensure that you
receive all of the results.
listPermissionVersions_nextToken :: Lens' ListPermissionVersions (Maybe Text) Source #
Specifies that you want to receive the next page of results. Valid only
if you received a NextToken
response in the previous request. If you
did, it indicates that more output is available. Set this parameter to
the value provided by the previous call's NextToken
response to
request the next page of results.
listPermissionVersions_permissionArn :: Lens' ListPermissionVersions Text Source #
Specifies the
Amazon Resoure Name (ARN)
of the RAM permission whose versions you want to list. You can use the
permissionVersion
parameter on the AssociateResourceSharePermission
operation to specify a non-default version to attach.
Destructuring the Response
data ListPermissionVersionsResponse Source #
See: newListPermissionVersionsResponse
smart constructor.
ListPermissionVersionsResponse' | |
|
Instances
newListPermissionVersionsResponse Source #
Create a value of ListPermissionVersionsResponse
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:
ListPermissionVersions
, listPermissionVersionsResponse_nextToken
- If present, this value indicates that more output is available than is
included in the current response. Use this value in the NextToken
request parameter in a subsequent call to the operation to get the next
part of the output. You should repeat this until the NextToken
response element comes back as null
. This indicates that this is the
last page of results.
$sel:permissions:ListPermissionVersionsResponse'
, listPermissionVersionsResponse_permissions
- An array of objects that contain details for each of the available
versions.
$sel:httpStatus:ListPermissionVersionsResponse'
, listPermissionVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
listPermissionVersionsResponse_nextToken :: Lens' ListPermissionVersionsResponse (Maybe Text) Source #
If present, this value indicates that more output is available than is
included in the current response. Use this value in the NextToken
request parameter in a subsequent call to the operation to get the next
part of the output. You should repeat this until the NextToken
response element comes back as null
. This indicates that this is the
last page of results.
listPermissionVersionsResponse_permissions :: Lens' ListPermissionVersionsResponse (Maybe [ResourceSharePermissionSummary]) Source #
An array of objects that contain details for each of the available versions.
listPermissionVersionsResponse_httpStatus :: Lens' ListPermissionVersionsResponse Int Source #
The response's http status code.