Shares a Systems Manager 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.
ssm_modify_document_permission(Name, PermissionType, AccountIdsToAdd,
AccountIdsToRemove)
[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 AWS user accounts that should have access to the document. The account IDs can either be a group of account IDs or All.
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.
svc$modify_document_permission( Name = "string", PermissionType = "Share", AccountIdsToAdd = list( "string" ), AccountIdsToRemove = list( "string" ) )