AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Note:

For PCL this operation is only available in asynchronous form. Please refer to ModifyDocumentPermissionAsync.

Namespace: Amazon.SimpleSystemsManagement
Assembly: AWSSDK.SimpleSystemsManagement.dll
Version: 3.x.y.z

Syntax

C#
public abstract ModifyDocumentPermissionResponse ModifyDocumentPermission(
         ModifyDocumentPermissionRequest request
)
Parameters
request
Type: Amazon.SimpleSystemsManagement.Model.ModifyDocumentPermissionRequest

Container for the necessary parameters to execute the ModifyDocumentPermission service method.

Return Value
The response from the ModifyDocumentPermission service method, as returned by SimpleSystemsManagement.

Exceptions

ExceptionCondition
DocumentLimitExceededException You can have at most 200 active Systems Manager documents.
DocumentPermissionLimitException The document cannot be shared with more AWS user accounts. You can share a document with a maximum of 20 accounts. You can publicly share up to five documents. If you need to increase this limit, contact AWS Support.
InternalServerErrorException An error occurred on the server side.
InvalidDocumentException The specified document does not exist.
InvalidPermissionTypeException The permission type is not supported. Share is the only supported permission type.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also