aws_sdk_managedblockchain/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    ///   - [`client_request_token(impl Into<String>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::set_client_request_token):<br>required: **true**<br><p>This is a unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent operation completes no more than once. This identifier is required only if you make a service request directly using an HTTP client. It is generated automatically if you use an Amazon Web Services SDK or the Amazon Web Services CLI.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::set_name):<br>required: **true**<br><p>The name of the network.</p><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::set_description):<br>required: **false**<br><p>An optional description for the network.</p><br>
9    ///   - [`framework(Framework)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::framework) / [`set_framework(Option<Framework>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::set_framework):<br>required: **true**<br><p>The blockchain framework that the network uses.</p><br>
10    ///   - [`framework_version(impl Into<String>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::framework_version) / [`set_framework_version(Option<String>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::set_framework_version):<br>required: **true**<br><p>The version of the blockchain framework that the network uses.</p><br>
11    ///   - [`framework_configuration(NetworkFrameworkConfiguration)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::framework_configuration) / [`set_framework_configuration(Option<NetworkFrameworkConfiguration>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::set_framework_configuration):<br>required: **false**<br><p>Configuration properties of the blockchain framework relevant to the network configuration.</p><br>
12    ///   - [`voting_policy(VotingPolicy)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::voting_policy) / [`set_voting_policy(Option<VotingPolicy>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::set_voting_policy):<br>required: **true**<br><p>The voting rules used by the network to determine if a proposal is approved.</p><br>
13    ///   - [`member_configuration(MemberConfiguration)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::member_configuration) / [`set_member_configuration(Option<MemberConfiguration>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::set_member_configuration):<br>required: **true**<br><p>Configuration properties for the first member within the network.</p><br>
14    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_network::builders::CreateNetworkFluentBuilder::set_tags):<br>required: **false**<br><p>Tags to assign to the network.</p> <p>Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single request with an overall maximum of 50 tags allowed per resource.</p> <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p><br>
15    /// - On success, responds with [`CreateNetworkOutput`](crate::operation::create_network::CreateNetworkOutput) with field(s):
16    ///   - [`network_id(Option<String>)`](crate::operation::create_network::CreateNetworkOutput::network_id): <p>The unique identifier for the network.</p>
17    ///   - [`member_id(Option<String>)`](crate::operation::create_network::CreateNetworkOutput::member_id): <p>The unique identifier for the first member within the network.</p>
18    /// - On failure, responds with [`SdkError<CreateNetworkError>`](crate::operation::create_network::CreateNetworkError)
19    pub fn create_network(&self) -> crate::operation::create_network::builders::CreateNetworkFluentBuilder {
20        crate::operation::create_network::builders::CreateNetworkFluentBuilder::new(self.handle.clone())
21    }
22}