aws_db_esdk/operation/
batch_execute_statement_input_transform.rs

1// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2// SPDX-License-Identifier: Apache-2.0
3// Do not modify this file. This file is machine generated, and any changes to it will be overwritten.
4/// Orchestration and serialization glue logic for `BatchExecuteStatementInputTransform`.
5#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
6#[non_exhaustive]
7pub struct BatchExecuteStatementInputTransform;
8impl BatchExecuteStatementInputTransform {
9    /// Creates a new `BatchExecuteStatementInputTransform`
10    pub fn new() -> Self {
11        Self
12    }
13
14    pub(crate) async fn send(
15        client: &crate::client::Client,
16        input: crate::operation::batch_execute_statement_input_transform::BatchExecuteStatementInputTransformInput,
17    ) -> ::std::result::Result<
18        crate::operation::batch_execute_statement_input_transform::BatchExecuteStatementInputTransformOutput,
19        crate::types::error::Error,
20    >{
21        crate::validation::validate_aws_Pcryptography_PdbEncryptionSdk_PdynamoDb_Ptransforms_HBatchExecuteStatementInputTransformInput_for_DynamoDbEncryptionTransforms_BatchExecuteStatementInputTransform(&input)
22            .map_err(crate::types::error::Error::wrap_validation_err)?;
23        let inner_input = crate::conversions::batch_execute_statement_input_transform::_batch_execute_statement_input_transform_input::to_dafny(input);
24        let inner_result = ::dafny_runtime::md!(client.dafny_client.clone())
25            .BatchExecuteStatementInputTransform(&inner_input);
26        if matches!(
27            inner_result.as_ref(),
28            crate::r#_Wrappers_Compile::Result::Success { .. }
29        ) {
30            Ok(
31                crate::conversions::batch_execute_statement_input_transform::_batch_execute_statement_input_transform_output::from_dafny(inner_result.value().clone()),
32            )
33        } else {
34            Err(crate::conversions::error::from_dafny(
35                inner_result.error().clone(),
36            ))
37        }
38    }
39}
40
41pub use crate::operation::batch_execute_statement_input_transform::_batch_execute_statement_input_transform_output::BatchExecuteStatementInputTransformOutput;
42
43pub use crate::operation::batch_execute_statement_input_transform::_batch_execute_statement_input_transform_input::BatchExecuteStatementInputTransformInput;
44
45pub(crate) mod _batch_execute_statement_input_transform_output;
46
47pub(crate) mod _batch_execute_statement_input_transform_input;
48
49/// Builders
50pub mod builders;