modify_document_permission
(**kwargs)¶Shares a Amazon Web Services Systems Manager document (SSM document)publicly or privately. If you share a document privately, you must specify the Amazon Web Services user IDs for those people who can use the document. If you share a document publicly, you must specify All as the account ID.
See also: AWS API Documentation
Request Syntax
response = client.modify_document_permission(
Name='string',
PermissionType='Share',
AccountIdsToAdd=[
'string',
],
AccountIdsToRemove=[
'string',
],
SharedDocumentVersion='string'
)
[REQUIRED]
The name of the document that you want to share.
[REQUIRED]
The permission type for the document. The permission type can be Share .
The Amazon Web Services users that should have access to the document. The account IDs can either be a group of account IDs or All .
The Amazon Web Services users that should no longer have access to the document. The Amazon Web Services user can either be a group of account IDs or All . This action has a higher priority than AccountIdsToAdd . If you specify an ID to add and the same ID to remove, the system removes access to the document.
Default
version to share.dict
Response Syntax
{}
Response Structure
Exceptions
SSM.Client.exceptions.InternalServerError
SSM.Client.exceptions.InvalidDocument
SSM.Client.exceptions.InvalidPermissionType
SSM.Client.exceptions.DocumentPermissionLimit
SSM.Client.exceptions.DocumentLimitExceeded