| 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.SSM.DescribeDocumentPermission
Description
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_maxResults :: Lens' DescribeDocumentPermission (Maybe Natural)
- describeDocumentPermission_nextToken :: Lens' DescribeDocumentPermission (Maybe Text)
- 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.
Constructors
| DescribeDocumentPermission' | |
Fields
| |
Instances
newDescribeDocumentPermission Source #
Arguments
| :: Text | |
| -> DocumentPermissionType | |
| -> DescribeDocumentPermission |
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: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.
DescribeDocumentPermission, describeDocumentPermission_nextToken - The token for the next set of items to return. (You received this token
from a previous call.)
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_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_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_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.
Constructors
| DescribeDocumentPermissionResponse' | |
Fields
| |
Instances
newDescribeDocumentPermissionResponse Source #
Arguments
| :: Int | |
| -> DescribeDocumentPermissionResponse |
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.
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.