#[non_exhaustive]pub struct PutBackupVaultAccessPolicyInput { /* private fields */ }
Implementations§
source§impl PutBackupVaultAccessPolicyInput
impl PutBackupVaultAccessPolicyInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutBackupVaultAccessPolicy, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutBackupVaultAccessPolicy, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutBackupVaultAccessPolicy
>
Examples found in repository?
src/client.rs (line 5943)
5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutBackupVaultAccessPolicy,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutBackupVaultAccessPolicyError>,
> {
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::PutBackupVaultAccessPolicyOutput,
aws_smithy_http::result::SdkError<crate::error::PutBackupVaultAccessPolicyError>,
> {
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 PutBackupVaultAccessPolicyInput
.
source§impl PutBackupVaultAccessPolicyInput
impl PutBackupVaultAccessPolicyInput
sourcepub fn backup_vault_name(&self) -> Option<&str>
pub fn backup_vault_name(&self) -> Option<&str>
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
Trait Implementations§
source§impl Clone for PutBackupVaultAccessPolicyInput
impl Clone for PutBackupVaultAccessPolicyInput
source§fn clone(&self) -> PutBackupVaultAccessPolicyInput
fn clone(&self) -> PutBackupVaultAccessPolicyInput
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