aws-sdk-workspacesinstances 1.35.0

AWS SDK for Amazon Workspaces Instances
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_ebs_block_device(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::types::EbsBlockDevice,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.volume_type {
        encoder.str("VolumeType").str(var_1.as_str());
    }
    if let Some(var_2) = &input.encrypted {
        encoder.str("Encrypted").boolean(*var_2);
    }
    if let Some(var_3) = &input.kms_key_id {
        encoder.str("KmsKeyId").str(var_3.as_str());
    }
    if let Some(var_4) = &input.iops {
        encoder.str("Iops").integer(*var_4);
    }
    if let Some(var_5) = &input.throughput {
        encoder.str("Throughput").integer(*var_5);
    }
    if let Some(var_6) = &input.volume_size {
        encoder.str("VolumeSize").integer(*var_6);
    }
    encoder.end();
    Ok(())
}