#[non_exhaustive]pub struct RemoveResourcePermissionInput { /* private fields */ }
Implementations§
source§impl RemoveResourcePermissionInput
impl RemoveResourcePermissionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RemoveResourcePermission, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RemoveResourcePermission, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<RemoveResourcePermission
>
Examples found in repository?
src/client.rs (line 4797)
4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RemoveResourcePermission,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::RemoveResourcePermissionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::RemoveResourcePermissionOutput,
aws_smithy_http::result::SdkError<crate::error::RemoveResourcePermissionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RemoveResourcePermissionInput
.
source§impl RemoveResourcePermissionInput
impl RemoveResourcePermissionInput
sourcepub fn authentication_token(&self) -> Option<&str>
pub fn authentication_token(&self) -> Option<&str>
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
The ID of the resource.
sourcepub fn principal_id(&self) -> Option<&str>
pub fn principal_id(&self) -> Option<&str>
The principal ID of the resource.
sourcepub fn principal_type(&self) -> Option<&PrincipalType>
pub fn principal_type(&self) -> Option<&PrincipalType>
The principal type of the resource.
Trait Implementations§
source§impl Clone for RemoveResourcePermissionInput
impl Clone for RemoveResourcePermissionInput
source§fn clone(&self) -> RemoveResourcePermissionInput
fn clone(&self) -> RemoveResourcePermissionInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more