aws_sdk_cloudhsm/client/
create_luna_client.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateLunaClient`](crate::operation::create_luna_client::builders::CreateLunaClientFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`label(impl Into<String>)`](crate::operation::create_luna_client::builders::CreateLunaClientFluentBuilder::label) / [`set_label(Option<String>)`](crate::operation::create_luna_client::builders::CreateLunaClientFluentBuilder::set_label):<br>required: **false**<br><p>The label for the client.</p><br>
7    ///   - [`certificate(impl Into<String>)`](crate::operation::create_luna_client::builders::CreateLunaClientFluentBuilder::certificate) / [`set_certificate(Option<String>)`](crate::operation::create_luna_client::builders::CreateLunaClientFluentBuilder::set_certificate):<br>required: **true**<br><p>The contents of a Base64-Encoded X.509 v3 certificate to be installed on the HSMs used by this client.</p><br>
8    /// - On success, responds with [`CreateLunaClientOutput`](crate::operation::create_luna_client::CreateLunaClientOutput) with field(s):
9    ///   - [`client_arn(Option<String>)`](crate::operation::create_luna_client::CreateLunaClientOutput::client_arn): <p>The ARN of the client.</p>
10    /// - On failure, responds with [`SdkError<CreateLunaClientError>`](crate::operation::create_luna_client::CreateLunaClientError)
11    #[deprecated(note = "This API is deprecated.")]
12    pub fn create_luna_client(&self) -> crate::operation::create_luna_client::builders::CreateLunaClientFluentBuilder {
13        crate::operation::create_luna_client::builders::CreateLunaClientFluentBuilder::new(self.handle.clone())
14    }
15}