Struct aws_sdk_config::input::PutDeliveryChannelInput
source · #[non_exhaustive]pub struct PutDeliveryChannelInput { /* private fields */ }Expand description
The input for the PutDeliveryChannel action.
Implementations§
source§impl PutDeliveryChannelInput
impl PutDeliveryChannelInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutDeliveryChannel, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutDeliveryChannel, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutDeliveryChannel>
Examples found in repository?
src/client.rs (line 8961)
8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutDeliveryChannel,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutDeliveryChannelError>,
> {
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::PutDeliveryChannelOutput,
aws_smithy_http::result::SdkError<crate::error::PutDeliveryChannelError>,
> {
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 PutDeliveryChannelInput.
source§impl PutDeliveryChannelInput
impl PutDeliveryChannelInput
sourcepub fn delivery_channel(&self) -> Option<&DeliveryChannel>
pub fn delivery_channel(&self) -> Option<&DeliveryChannel>
The configuration delivery channel object that delivers the configuration information to an Amazon S3 bucket and to an Amazon SNS topic.
Trait Implementations§
source§impl Clone for PutDeliveryChannelInput
impl Clone for PutDeliveryChannelInput
source§fn clone(&self) -> PutDeliveryChannelInput
fn clone(&self) -> PutDeliveryChannelInput
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