aws_sdk_wickr/client/
create_network.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 [`CreateNetwork`](crate::operation::create_network::builders::CreateNetworkFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`network_name(impl Into<String>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::network_name) / [`set_network_name(Option<String>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::set_network_name):<br>required: **true**<br><p>The name for the new network. Must be between 1 and 20 characters.</p><br>
7    ///   - [`access_level(AccessLevel)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::access_level) / [`set_access_level(Option<AccessLevel>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::set_access_level):<br>required: **true**<br><p>The access level for the network. Valid values are STANDARD or PREMIUM, which determine the features and capabilities available to network members.</p><br>
8    ///   - [`enable_premium_free_trial(bool)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::enable_premium_free_trial) / [`set_enable_premium_free_trial(Option<bool>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::set_enable_premium_free_trial):<br>required: **false**<br><p>Specifies whether to enable a premium free trial for the network. It is optional and has a default value as false. When set to true, the network starts with premium features for a limited trial period.</p><br>
9    ///   - [`encryption_key_arn(impl Into<String>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::encryption_key_arn) / [`set_encryption_key_arn(Option<String>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::set_encryption_key_arn):<br>required: **false**<br><p>The ARN of the Amazon Web Services KMS customer managed key to use for encrypting sensitive data in the network.</p><br>
10    /// - On success, responds with [`CreateNetworkOutput`](crate::operation::create_network::CreateNetworkOutput) with field(s):
11    ///   - [`network_id(Option<String>)`](crate::operation::create_network::CreateNetworkOutput::network_id): <p>The unique identifier assigned to the newly created network.</p>
12    ///   - [`network_name(Option<String>)`](crate::operation::create_network::CreateNetworkOutput::network_name): <p>The name of the newly created network.</p>
13    ///   - [`encryption_key_arn(Option<String>)`](crate::operation::create_network::CreateNetworkOutput::encryption_key_arn): <p>The ARN of the KMS key being used to encrypt sensitive data in the network.</p>
14    /// - On failure, responds with [`SdkError<CreateNetworkError>`](crate::operation::create_network::CreateNetworkError)
15    pub fn create_network(&self) -> crate::operation::create_network::builders::CreateNetworkFluentBuilder {
16        crate::operation::create_network::builders::CreateNetworkFluentBuilder::new(self.handle.clone())
17    }
18}