aws ssm modify-document-permission
Shares a Amazon Web Services Systems Manager document (SSM document)publicly or privately. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To modify document permissions
The following modify-document-permission example shares a Systems Manager document publicly.
aws ssm modify-document-permission --name "Example" --permission-type "Share" --account-ids-to-add "All"Identify--nameThe name of the document that you want to share.--permission-typeThe permission type for the document.--account-ids-to-addThe Amazon Web Services users that should have access to the document.This command produces no output.
For more information, see Share a Systems Manager Document in the AWS Systems Manager User Guide.
Options
--account-ids-to-addThe Amazon Web Services users that should have access to the document.--account-ids-to-removeThe Amazon Web Services users that should no longer have access to the document.--nameThe name of the document that you want to share.--permission-typeThe permission type for the document.--shared-document-version(Optional) The version of the document to share.