#[non_exhaustive]
pub struct NodeBuilder { /* private fields */ }
Expand description

A builder for Node.

Implementations§

source§

impl NodeBuilder

source

pub fn network_id(self, input: impl Into<String>) -> Self

The unique identifier of the network that the node is on.

source

pub fn set_network_id(self, input: Option<String>) -> Self

The unique identifier of the network that the node is on.

source

pub fn get_network_id(&self) -> &Option<String>

The unique identifier of the network that the node is on.

source

pub fn member_id(self, input: impl Into<String>) -> Self

The unique identifier of the member to which the node belongs.

Applies only to Hyperledger Fabric.

source

pub fn set_member_id(self, input: Option<String>) -> Self

The unique identifier of the member to which the node belongs.

Applies only to Hyperledger Fabric.

source

pub fn get_member_id(&self) -> &Option<String>

The unique identifier of the member to which the node belongs.

Applies only to Hyperledger Fabric.

source

pub fn id(self, input: impl Into<String>) -> Self

The unique identifier of the node.

source

pub fn set_id(self, input: Option<String>) -> Self

The unique identifier of the node.

source

pub fn get_id(&self) -> &Option<String>

The unique identifier of the node.

source

pub fn instance_type(self, input: impl Into<String>) -> Self

The instance type of the node.

source

pub fn set_instance_type(self, input: Option<String>) -> Self

The instance type of the node.

source

pub fn get_instance_type(&self) -> &Option<String>

The instance type of the node.

source

pub fn availability_zone(self, input: impl Into<String>) -> Self

The Availability Zone in which the node exists. Required for Ethereum nodes.

source

pub fn set_availability_zone(self, input: Option<String>) -> Self

The Availability Zone in which the node exists. Required for Ethereum nodes.

source

pub fn get_availability_zone(&self) -> &Option<String>

The Availability Zone in which the node exists. Required for Ethereum nodes.

source

pub fn framework_attributes(self, input: NodeFrameworkAttributes) -> Self

Attributes of the blockchain framework being used.

source

pub fn set_framework_attributes( self, input: Option<NodeFrameworkAttributes> ) -> Self

Attributes of the blockchain framework being used.

source

pub fn get_framework_attributes(&self) -> &Option<NodeFrameworkAttributes>

Attributes of the blockchain framework being used.

source

pub fn log_publishing_configuration( self, input: NodeLogPublishingConfiguration ) -> Self

Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.

source

pub fn set_log_publishing_configuration( self, input: Option<NodeLogPublishingConfiguration> ) -> Self

Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.

source

pub fn get_log_publishing_configuration( &self ) -> &Option<NodeLogPublishingConfiguration>

Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.

source

pub fn state_db(self, input: StateDbType) -> Self

The state database that the node uses. Values are LevelDB or CouchDB.

Applies only to Hyperledger Fabric.

source

pub fn set_state_db(self, input: Option<StateDbType>) -> Self

The state database that the node uses. Values are LevelDB or CouchDB.

Applies only to Hyperledger Fabric.

source

pub fn get_state_db(&self) -> &Option<StateDbType>

The state database that the node uses. Values are LevelDB or CouchDB.

Applies only to Hyperledger Fabric.

source

pub fn status(self, input: NodeStatus) -> Self

The status of the node.

  • CREATING - The Amazon Web Services account is in the process of creating a node.

  • AVAILABLE - The node has been created and can participate in the network.

  • UNHEALTHY - The node is impaired and might not function as expected. Amazon Managed Blockchain automatically finds nodes in this state and tries to recover them. If a node is recoverable, it returns to AVAILABLE. Otherwise, it moves to FAILED status.

  • CREATE_FAILED - The Amazon Web Services account attempted to create a node and creation failed.

  • UPDATING - The node is in the process of being updated.

  • DELETING - The node is in the process of being deleted.

  • DELETED - The node can no longer participate on the network.

  • FAILED - The node is no longer functional, cannot be recovered, and must be deleted.

  • INACCESSIBLE_ENCRYPTION_KEY - The node is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.

    The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the node resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource.

source

pub fn set_status(self, input: Option<NodeStatus>) -> Self

The status of the node.

  • CREATING - The Amazon Web Services account is in the process of creating a node.

  • AVAILABLE - The node has been created and can participate in the network.

  • UNHEALTHY - The node is impaired and might not function as expected. Amazon Managed Blockchain automatically finds nodes in this state and tries to recover them. If a node is recoverable, it returns to AVAILABLE. Otherwise, it moves to FAILED status.

  • CREATE_FAILED - The Amazon Web Services account attempted to create a node and creation failed.

  • UPDATING - The node is in the process of being updated.

  • DELETING - The node is in the process of being deleted.

  • DELETED - The node can no longer participate on the network.

  • FAILED - The node is no longer functional, cannot be recovered, and must be deleted.

  • INACCESSIBLE_ENCRYPTION_KEY - The node is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.

    The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the node resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource.

source

pub fn get_status(&self) -> &Option<NodeStatus>

The status of the node.

  • CREATING - The Amazon Web Services account is in the process of creating a node.

  • AVAILABLE - The node has been created and can participate in the network.

  • UNHEALTHY - The node is impaired and might not function as expected. Amazon Managed Blockchain automatically finds nodes in this state and tries to recover them. If a node is recoverable, it returns to AVAILABLE. Otherwise, it moves to FAILED status.

  • CREATE_FAILED - The Amazon Web Services account attempted to create a node and creation failed.

  • UPDATING - The node is in the process of being updated.

  • DELETING - The node is in the process of being deleted.

  • DELETED - The node can no longer participate on the network.

  • FAILED - The node is no longer functional, cannot be recovered, and must be deleted.

  • INACCESSIBLE_ENCRYPTION_KEY - The node is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.

    The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the node resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource.

source

pub fn creation_date(self, input: DateTime) -> Self

The date and time that the node was created.

source

pub fn set_creation_date(self, input: Option<DateTime>) -> Self

The date and time that the node was created.

source

pub fn get_creation_date(&self) -> &Option<DateTime>

The date and time that the node was created.

source

pub fn tags(self, k: impl Into<String>, v: impl Into<String>) -> Self

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

Tags assigned to the node. Each tag consists of a key and optional value.

For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

source

pub fn set_tags(self, input: Option<HashMap<String, String>>) -> Self

Tags assigned to the node. Each tag consists of a key and optional value.

For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

source

pub fn get_tags(&self) -> &Option<HashMap<String, String>>

Tags assigned to the node. Each tag consists of a key and optional value.

For more information about tags, see Tagging Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

source

pub fn arn(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

source

pub fn set_arn(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

source

pub fn get_arn(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

source

pub fn kms_key_arn(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the node uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key", the node uses an Amazon Web Services owned KMS key for encryption. The node inherits this parameter from the member that it belongs to.

For more information, see Encryption at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

Applies only to Hyperledger Fabric.

source

pub fn set_kms_key_arn(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the node uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key", the node uses an Amazon Web Services owned KMS key for encryption. The node inherits this parameter from the member that it belongs to.

For more information, see Encryption at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

Applies only to Hyperledger Fabric.

source

pub fn get_kms_key_arn(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the node uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key", the node uses an Amazon Web Services owned KMS key for encryption. The node inherits this parameter from the member that it belongs to.

For more information, see Encryption at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.

Applies only to Hyperledger Fabric.

source

pub fn build(self) -> Node

Consumes the builder and constructs a Node.

Trait Implementations§

source§

impl Clone for NodeBuilder

source§

fn clone(&self) -> NodeBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NodeBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for NodeBuilder

source§

fn default() -> NodeBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for NodeBuilder

source§

fn eq(&self, other: &NodeBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for NodeBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more