Skip to content
v2.277.0

CfnNodeProps Struct ​

Properties for defining a CfnNode.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_managedblockchain as managedblockchain } from 'aws-cdk-lib';
const cfnNodeProps: managedblockchain.CfnNodeProps = {
  networkId: 'networkId',
  nodeConfiguration: {
    availabilityZone: 'availabilityZone',
    instanceType: 'instanceType',
  },

  // the properties below are optional
  memberId: 'memberId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_managedblockchain as managedblockchain

cfn_node_props = managedblockchain.CfnNodeProps(
    network_id="networkId",
    node_configuration=managedblockchain.CfnNode.NodeConfigurationProperty(
        availability_zone="availabilityZone",
        instance_type="instanceType"
    ),

    # the properties below are optional
    member_id="memberId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.managedblockchain.*;

CfnNodeProps cfnNodeProps = CfnNodeProps.builder()
        .networkId("networkId")
        .nodeConfiguration(NodeConfigurationProperty.builder()
                .availabilityZone("availabilityZone")
                .instanceType("instanceType")
                .build())

        // the properties below are optional
        .memberId("memberId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ManagedBlockchain;

var cfnNodeProps = new CfnNodeProps {
    NetworkId = "networkId",
    NodeConfiguration = new NodeConfigurationProperty {
        AvailabilityZone = "availabilityZone",
        InstanceType = "instanceType"
    },

    // the properties below are optional
    MemberId = "memberId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnNodeProps := &CfnNodeProps{
	NetworkId: jsii.String("networkId"),
	NodeConfiguration: &NodeConfigurationProperty{
		AvailabilityZone: jsii.String("availabilityZone"),
		InstanceType: jsii.String("instanceType"),
	},

	// the properties below are optional
	MemberId: jsii.String("memberId"),
}

Properties ​

memberIdoptionalstringmember_idoptionalstrmemberIdoptionalStringMemberIdoptionalstringMemberIdoptional*string#
The unique identifier of the member to which the node belongs.

Applies only to Hyperledger Fabric.

networkIdstringnetwork_idstrnetworkIdStringNetworkIdstringNetworkId*stringrequired#
The unique identifier of the network for the node.

Ethereum public networks have the following NetworkId s:

  • n-ethereum-mainnet
nodeConfigurationIResolvable | CfnNode.NodeConfigurationPropertynode_configurationtyping.Union[IResolvable, NodeConfigurationProperty]nodeConfigurationIResolvableNodeConfigurationIResolvableNodeConfigurationinterface{}required#
Configuration properties of a peer node.