#[non_exhaustive]pub struct PutAccessPointPolicyForObjectLambdaInput { /* private fields */ }
Implementations§
source§impl PutAccessPointPolicyForObjectLambdaInput
impl PutAccessPointPolicyForObjectLambdaInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutAccessPointPolicyForObjectLambda, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutAccessPointPolicyForObjectLambda, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutAccessPointPolicyForObjectLambda
>
Examples found in repository?
src/client.rs (line 6022)
6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutAccessPointPolicyForObjectLambda,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::PutAccessPointPolicyForObjectLambdaError,
>,
> {
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::PutAccessPointPolicyForObjectLambdaOutput,
aws_smithy_http::result::SdkError<
crate::error::PutAccessPointPolicyForObjectLambdaError,
>,
> {
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 PutAccessPointPolicyForObjectLambdaInput
.
source§impl PutAccessPointPolicyForObjectLambdaInput
impl PutAccessPointPolicyForObjectLambdaInput
sourcepub fn account_id(&self) -> Option<&str>
pub fn account_id(&self) -> Option<&str>
The account ID for the account that owns the specified Object Lambda Access Point.
Trait Implementations§
source§impl Clone for PutAccessPointPolicyForObjectLambdaInput
impl Clone for PutAccessPointPolicyForObjectLambdaInput
source§fn clone(&self) -> PutAccessPointPolicyForObjectLambdaInput
fn clone(&self) -> PutAccessPointPolicyForObjectLambdaInput
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