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 |
Describes the permissions for a Amazon Web Services Systems Manager document (SSM document). If you created the document, you are the owner. If a document is shared, it can either be shared privately (by specifying a user's Amazon Web Services account ID) or publicly (All).
Synopsis
- data DescribeDocumentPermission = DescribeDocumentPermission' {}
- newDescribeDocumentPermission :: Text -> DocumentPermissionType -> DescribeDocumentPermission
- describeDocumentPermission_nextToken :: Lens' DescribeDocumentPermission (Maybe Text)
- describeDocumentPermission_maxResults :: Lens' DescribeDocumentPermission (Maybe Natural)
- describeDocumentPermission_name :: Lens' DescribeDocumentPermission Text
- describeDocumentPermission_permissionType :: Lens' DescribeDocumentPermission DocumentPermissionType
- data DescribeDocumentPermissionResponse = DescribeDocumentPermissionResponse' {}
- newDescribeDocumentPermissionResponse :: Int -> DescribeDocumentPermissionResponse
- describeDocumentPermissionResponse_accountIds :: Lens' DescribeDocumentPermissionResponse (Maybe [Text])
- describeDocumentPermissionResponse_accountSharingInfoList :: Lens' DescribeDocumentPermissionResponse (Maybe [AccountSharingInfo])
- describeDocumentPermissionResponse_nextToken :: Lens' DescribeDocumentPermissionResponse (Maybe Text)
- describeDocumentPermissionResponse_httpStatus :: Lens' DescribeDocumentPermissionResponse Int
Creating a Request
data DescribeDocumentPermission Source #
See: newDescribeDocumentPermission
smart constructor.
DescribeDocumentPermission' | |
|
Instances
newDescribeDocumentPermission Source #
Create a value of DescribeDocumentPermission
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:DescribeDocumentPermission'
, describeDocumentPermission_nextToken
- The token for the next set of items to return. (You received this token
from a previous call.)
$sel:maxResults:DescribeDocumentPermission'
, describeDocumentPermission_maxResults
- The maximum number of items to return for this call. The call also
returns a token that you can specify in a subsequent call to get the
next set of results.
$sel:name:DescribeDocumentPermission'
, describeDocumentPermission_name
- The name of the document for which you are the owner.
$sel:permissionType:DescribeDocumentPermission'
, describeDocumentPermission_permissionType
- The permission type for the document. The permission type can be
Share.
Request Lenses
describeDocumentPermission_nextToken :: Lens' DescribeDocumentPermission (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
describeDocumentPermission_maxResults :: Lens' DescribeDocumentPermission (Maybe Natural) Source #
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
describeDocumentPermission_name :: Lens' DescribeDocumentPermission Text Source #
The name of the document for which you are the owner.
describeDocumentPermission_permissionType :: Lens' DescribeDocumentPermission DocumentPermissionType Source #
The permission type for the document. The permission type can be Share.
Destructuring the Response
data DescribeDocumentPermissionResponse Source #
See: newDescribeDocumentPermissionResponse
smart constructor.
DescribeDocumentPermissionResponse' | |
|
Instances
newDescribeDocumentPermissionResponse Source #
Create a value of DescribeDocumentPermissionResponse
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:accountIds:DescribeDocumentPermissionResponse'
, describeDocumentPermissionResponse_accountIds
- The account IDs that have permission to use this document. The ID can be
either an Amazon Web Services account or All.
$sel:accountSharingInfoList:DescribeDocumentPermissionResponse'
, describeDocumentPermissionResponse_accountSharingInfoList
- A list of Amazon Web Services accounts where the current document is
shared and the version shared with each account.
$sel:nextToken:DescribeDocumentPermission'
, describeDocumentPermissionResponse_nextToken
- The token for the next set of items to return. Use this token to get the
next set of results.
$sel:httpStatus:DescribeDocumentPermissionResponse'
, describeDocumentPermissionResponse_httpStatus
- The response's http status code.
Response Lenses
describeDocumentPermissionResponse_accountIds :: Lens' DescribeDocumentPermissionResponse (Maybe [Text]) Source #
The account IDs that have permission to use this document. The ID can be either an Amazon Web Services account or All.
describeDocumentPermissionResponse_accountSharingInfoList :: Lens' DescribeDocumentPermissionResponse (Maybe [AccountSharingInfo]) Source #
A list of Amazon Web Services accounts where the current document is shared and the version shared with each account.
describeDocumentPermissionResponse_nextToken :: Lens' DescribeDocumentPermissionResponse (Maybe Text) Source #
The token for the next set of items to return. Use this token to get the next set of results.
describeDocumentPermissionResponse_httpStatus :: Lens' DescribeDocumentPermissionResponse Int Source #
The response's http status code.