Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Share a document publicly or privately. If you share a document privately, you must specify the AWS user account IDs for those people who can use the document. If you share a document publicly, you must specify All as the account ID.
- modifyDocumentPermission :: Text -> DocumentPermissionType -> ModifyDocumentPermission
- data ModifyDocumentPermission
- mdpAccountIdsToAdd :: Lens' ModifyDocumentPermission [Text]
- mdpAccountIdsToRemove :: Lens' ModifyDocumentPermission [Text]
- mdpName :: Lens' ModifyDocumentPermission Text
- mdpPermissionType :: Lens' ModifyDocumentPermission DocumentPermissionType
- modifyDocumentPermissionResponse :: Int -> ModifyDocumentPermissionResponse
- data ModifyDocumentPermissionResponse
- mdprsResponseStatus :: Lens' ModifyDocumentPermissionResponse Int
Creating a Request
modifyDocumentPermission Source #
Creates a value of ModifyDocumentPermission
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mdpAccountIdsToAdd
- The AWS user accounts that should have access to the document. The account IDs can either be a group of account IDs or All .mdpAccountIdsToRemove
- The AWS user accounts that should no longer have access to the document. The AWS user account can either be a group of account IDs or All . This action has a higher priority than AccountIdsToAdd . If you specify an account ID to add and the same ID to remove, the system removes access to the document.mdpName
- The name of the document that you want to share.mdpPermissionType
- The permission type for the document. The permission type can be Share .
data ModifyDocumentPermission Source #
See: modifyDocumentPermission
smart constructor.
Request Lenses
mdpAccountIdsToAdd :: Lens' ModifyDocumentPermission [Text] Source #
The AWS user accounts that should have access to the document. The account IDs can either be a group of account IDs or All .
mdpAccountIdsToRemove :: Lens' ModifyDocumentPermission [Text] Source #
The AWS user accounts that should no longer have access to the document. The AWS user account can either be a group of account IDs or All . This action has a higher priority than AccountIdsToAdd . If you specify an account ID to add and the same ID to remove, the system removes access to the document.
mdpName :: Lens' ModifyDocumentPermission Text Source #
The name of the document that you want to share.
mdpPermissionType :: Lens' ModifyDocumentPermission DocumentPermissionType Source #
The permission type for the document. The permission type can be Share .
Destructuring the Response
modifyDocumentPermissionResponse Source #
Creates a value of ModifyDocumentPermissionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mdprsResponseStatus
- -- | The response status code.
data ModifyDocumentPermissionResponse Source #
See: modifyDocumentPermissionResponse
smart constructor.
Response Lenses
mdprsResponseStatus :: Lens' ModifyDocumentPermissionResponse Int Source #
- - | The response status code.