aws_sdk_managedblockchain/client/
create_node.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 [`CreateNode`](crate::operation::create_node::builders::CreateNodeFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_request_token(impl Into<String>)`](crate::operation::create_node::builders::CreateNodeFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_node::builders::CreateNodeFluentBuilder::set_client_request_token):<br>required: **true**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent operation completes no more than one time. 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 CLI.</p><br>
7    ///   - [`network_id(impl Into<String>)`](crate::operation::create_node::builders::CreateNodeFluentBuilder::network_id) / [`set_network_id(Option<String>)`](crate::operation::create_node::builders::CreateNodeFluentBuilder::set_network_id):<br>required: **true**<br><p>The unique identifier of the network for the node.</p> <p>Ethereum public networks have the following <code>NetworkId</code>s:</p> <ul>  <li>   <p><code>n-ethereum-mainnet</code></p></li> </ul><br>
8    ///   - [`member_id(impl Into<String>)`](crate::operation::create_node::builders::CreateNodeFluentBuilder::member_id) / [`set_member_id(Option<String>)`](crate::operation::create_node::builders::CreateNodeFluentBuilder::set_member_id):<br>required: **false**<br><p>The unique identifier of the member that owns this node.</p> <p>Applies only to Hyperledger Fabric.</p><br>
9    ///   - [`node_configuration(NodeConfiguration)`](crate::operation::create_node::builders::CreateNodeFluentBuilder::node_configuration) / [`set_node_configuration(Option<NodeConfiguration>)`](crate::operation::create_node::builders::CreateNodeFluentBuilder::set_node_configuration):<br>required: **true**<br><p>The properties of a node configuration.</p><br>
10    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_node::builders::CreateNodeFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_node::builders::CreateNodeFluentBuilder::set_tags):<br>required: **false**<br><p>Tags to assign to the node.</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>
11    /// - On success, responds with [`CreateNodeOutput`](crate::operation::create_node::CreateNodeOutput) with field(s):
12    ///   - [`node_id(Option<String>)`](crate::operation::create_node::CreateNodeOutput::node_id): <p>The unique identifier of the node.</p>
13    /// - On failure, responds with [`SdkError<CreateNodeError>`](crate::operation::create_node::CreateNodeError)
14    pub fn create_node(&self) -> crate::operation::create_node::builders::CreateNodeFluentBuilder {
15        crate::operation::create_node::builders::CreateNodeFluentBuilder::new(self.handle.clone())
16    }
17}