aws_sdk_workdocs/client/
remove_resource_permission.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RemoveResourcePermission`](crate::operation::remove_resource_permission::builders::RemoveResourcePermissionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`authentication_token(impl Into<String>)`](crate::operation::remove_resource_permission::builders::RemoveResourcePermissionFluentBuilder::authentication_token) / [`set_authentication_token(Option<String>)`](crate::operation::remove_resource_permission::builders::RemoveResourcePermissionFluentBuilder::set_authentication_token):<br>required: **false**<br><p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p><br>
    ///   - [`resource_id(impl Into<String>)`](crate::operation::remove_resource_permission::builders::RemoveResourcePermissionFluentBuilder::resource_id) / [`set_resource_id(Option<String>)`](crate::operation::remove_resource_permission::builders::RemoveResourcePermissionFluentBuilder::set_resource_id):<br>required: **true**<br><p>The ID of the resource.</p><br>
    ///   - [`principal_id(impl Into<String>)`](crate::operation::remove_resource_permission::builders::RemoveResourcePermissionFluentBuilder::principal_id) / [`set_principal_id(Option<String>)`](crate::operation::remove_resource_permission::builders::RemoveResourcePermissionFluentBuilder::set_principal_id):<br>required: **true**<br><p>The principal ID of the resource.</p><br>
    ///   - [`principal_type(PrincipalType)`](crate::operation::remove_resource_permission::builders::RemoveResourcePermissionFluentBuilder::principal_type) / [`set_principal_type(Option<PrincipalType>)`](crate::operation::remove_resource_permission::builders::RemoveResourcePermissionFluentBuilder::set_principal_type):<br>required: **false**<br><p>The principal type of the resource.</p><br>
    /// - On success, responds with [`RemoveResourcePermissionOutput`](crate::operation::remove_resource_permission::RemoveResourcePermissionOutput)
    /// - On failure, responds with [`SdkError<RemoveResourcePermissionError>`](crate::operation::remove_resource_permission::RemoveResourcePermissionError)
    pub fn remove_resource_permission(&self) -> crate::operation::remove_resource_permission::builders::RemoveResourcePermissionFluentBuilder {
        crate::operation::remove_resource_permission::builders::RemoveResourcePermissionFluentBuilder::new(self.handle.clone())
    }
}