#[non_exhaustive]pub struct ModifyDocumentPermissionInput {
pub name: Option<String>,
pub permission_type: Option<DocumentPermissionType>,
pub account_ids_to_add: Option<Vec<String>>,
pub account_ids_to_remove: Option<Vec<String>>,
pub shared_document_version: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The name of the document that you want to share.
permission_type: Option<DocumentPermissionType>
The permission type for the document. The permission type can be Share.
account_ids_to_add: Option<Vec<String>>
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.
account_ids_to_remove: Option<Vec<String>>
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.
(Optional) The version of the document to share. If it isn't specified, the system choose the Default
version to share.
Implementations§
source§impl ModifyDocumentPermissionInput
impl ModifyDocumentPermissionInput
sourcepub fn permission_type(&self) -> Option<&DocumentPermissionType>
pub fn permission_type(&self) -> Option<&DocumentPermissionType>
The permission type for the document. The permission type can be Share.
sourcepub fn account_ids_to_add(&self) -> &[String]
pub fn account_ids_to_add(&self) -> &[String]
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .account_ids_to_add.is_none()
.
sourcepub fn account_ids_to_remove(&self) -> &[String]
pub fn account_ids_to_remove(&self) -> &[String]
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .account_ids_to_remove.is_none()
.
(Optional) The version of the document to share. If it isn't specified, the system choose the Default
version to share.
source§impl ModifyDocumentPermissionInput
impl ModifyDocumentPermissionInput
sourcepub fn builder() -> ModifyDocumentPermissionInputBuilder
pub fn builder() -> ModifyDocumentPermissionInputBuilder
Creates a new builder-style object to manufacture ModifyDocumentPermissionInput
.
Trait Implementations§
source§impl Clone for ModifyDocumentPermissionInput
impl Clone for ModifyDocumentPermissionInput
source§fn clone(&self) -> ModifyDocumentPermissionInput
fn clone(&self) -> ModifyDocumentPermissionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ModifyDocumentPermissionInput
impl PartialEq for ModifyDocumentPermissionInput
source§fn eq(&self, other: &ModifyDocumentPermissionInput) -> bool
fn eq(&self, other: &ModifyDocumentPermissionInput) -> bool
self
and other
values to be equal, and is used
by ==
.