describe_document_permission
¶
describe_document_permission(
name: DocumentName,
permission_type: DocumentPermissionType,
*,
config_overrides: Optional[SSMClientConfig] = None,
max_results: Optional[DocumentPermissionMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> DescribeDocumentPermissionResponse
Describes the permissions for a Amazon Web Services Systems Manager document (SSM document). If you created the document, you are the owner. If a document is shared, it can either be shared privately (by specifying a user's Amazon Web Services account ID) or publicly (All).
Parameters:
-
name(DocumentName) –The name of the document for which you are the owner.
-
permission_type(DocumentPermissionType) –The permission type for the document. The permission type can be Share.
-
max_results(Optional[DocumentPermissionMaxResults], default:None) –The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
-
next_token(Optional[NextToken], default:None) –The token for the next set of items to return. (You received this token from a previous call.)
Raises:
-
InternalServerError–An error occurred on the server side.
-
InvalidDocument–The specified SSM document doesn't exist.
-
InvalidDocumentOperation–You attempted to delete a document while it is still shared. You must stop sharing the document before you can delete it.
-
InvalidNextToken–The specified token isn't valid.
-
InvalidPermissionType–The permission type isn't supported. Share is the only supported permission type.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/ssm.py
3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 | |