#[non_exhaustive]pub struct PutPublicAccessBlockInput { /* private fields */ }
Implementations§
source§impl PutPublicAccessBlockInput
impl PutPublicAccessBlockInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutPublicAccessBlock, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutPublicAccessBlock, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutPublicAccessBlock
>
Examples found in repository?
src/client.rs (line 6883)
6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutPublicAccessBlock,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutPublicAccessBlockError>,
> {
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::PutPublicAccessBlockOutput,
aws_smithy_http::result::SdkError<crate::error::PutPublicAccessBlockError>,
> {
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 PutPublicAccessBlockInput
.
source§impl PutPublicAccessBlockInput
impl PutPublicAccessBlockInput
sourcepub fn public_access_block_configuration(
&self
) -> Option<&PublicAccessBlockConfiguration>
pub fn public_access_block_configuration(
&self
) -> Option<&PublicAccessBlockConfiguration>
The PublicAccessBlock
configuration that you want to apply to the specified Amazon Web Services account.
sourcepub fn account_id(&self) -> Option<&str>
pub fn account_id(&self) -> Option<&str>
The account ID for the Amazon Web Services account whose PublicAccessBlock
configuration you want to set.
Trait Implementations§
source§impl Clone for PutPublicAccessBlockInput
impl Clone for PutPublicAccessBlockInput
source§fn clone(&self) -> PutPublicAccessBlockInput
fn clone(&self) -> PutPublicAccessBlockInput
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