#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GenerateEccKeyPair;
impl GenerateEccKeyPair {
pub fn new() -> Self {
Self
}
pub(crate) async fn send(
client: &crate::deps::aws_cryptography_primitives::client::Client,
input: crate::deps::aws_cryptography_primitives::operation::generate_ecc_key_pair::GenerateEccKeyPairInput,
) -> ::std::result::Result<
crate::deps::aws_cryptography_primitives::operation::generate_ecc_key_pair::GenerateEccKeyPairOutput,
crate::deps::aws_cryptography_primitives::types::error::Error,
>{
crate::deps::aws_cryptography_primitives::validation::validate_aws_Pcryptography_Pprimitives_HGenerateECCKeyPairInput_for_AwsCryptographicPrimitives_GenerateECCKeyPair(&input)
.map_err(crate::deps::aws_cryptography_primitives::types::error::Error::wrap_validation_err)?;
let inner_input = crate::deps::aws_cryptography_primitives::conversions::generate_ecc_key_pair::_generate_ecc_key_pair_input::to_dafny(input);
let inner_result =
::dafny_runtime::md!(client.dafny_client.clone()).GenerateECCKeyPair(&inner_input);
if matches!(
inner_result.as_ref(),
crate::r#_Wrappers_Compile::Result::Success { .. }
) {
Ok(
crate::deps::aws_cryptography_primitives::conversions::generate_ecc_key_pair::_generate_ecc_key_pair_output::from_dafny(inner_result.value().clone()),
)
} else {
Err(
crate::deps::aws_cryptography_primitives::conversions::error::from_dafny(
inner_result.error().clone(),
),
)
}
}
}
pub use crate::deps::aws_cryptography_primitives::operation::generate_ecc_key_pair::_generate_ecc_key_pair_output::GenerateEccKeyPairOutput;
pub use crate::deps::aws_cryptography_primitives::operation::generate_ecc_key_pair::_generate_ecc_key_pair_input::GenerateEccKeyPairInput;
pub(crate) mod _generate_ecc_key_pair_output;
pub(crate) mod _generate_ecc_key_pair_input;
pub mod builders;