# CfnNodeProps

Properties for defining a `CfnNode`.

Used as props by: [CfnNode](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_managedblockchain.CfnNode.html)

- Source: Generated at build time
- Type last changed: v2.110.0 · 17 Nov 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `memberId`: string — The unique identifier of the member to which the node belongs.

  Applies only to Hyperledger Fabric.

- `networkId`: string (required) — The unique identifier of the network for the node.

  Ethereum public networks have the following `NetworkId` s:

  - `n-ethereum-mainnet`

- `nodeConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNode.NodeConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_managedblockchain.CfnNode.NodeConfigurationProperty.html) (required) — Configuration properties of a peer node.
