import { EthereumNode } from '@cdklabs/cdk-ethereum-node'
new EthereumNode(scope: Construct, id: string, props?: EthereumNodeProps)| Name | Type | Description |
|---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
EthereumNodeProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: EthereumNodeProps
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
with |
Applies one or more mixins to this construct. |
public toString(): stringReturns a string representation of this construct.
public with(mixins: ...IMixin[]): IConstructApplies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
- Type: ...constructs.IMixin[]
The mixins to apply.
| Name | Description |
|---|---|
isConstruct |
Checks if x is a construct. |
import { EthereumNode } from '@cdklabs/cdk-ethereum-node'
EthereumNode.isConstruct(x: any)Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
- Type: any
Any object.
| Name | Type | Description |
|---|---|---|
node |
constructs.Node |
The tree node. |
availabilityZone |
string |
The Availability Zone in which the node exists. |
instanceType |
InstanceType |
The Amazon Managed Blockchain instance type for the node. |
network |
Network |
Managed Blockchain Ethereum network identifier. |
region |
string |
The Region in which the node exists. |
public readonly node: Node;- Type: constructs.Node
The tree node.
public readonly availabilityZone: string;- Type: string
The Availability Zone in which the node exists.
public readonly instanceType: InstanceType;- Type: InstanceType
The Amazon Managed Blockchain instance type for the node.
public readonly network: Network;- Type: Network
Managed Blockchain Ethereum network identifier.
public readonly region: string;- Type: string
The Region in which the node exists.
Construct properties for EthereumNode.
import { EthereumNodeProps } from '@cdklabs/cdk-ethereum-node'
const ethereumNodeProps: EthereumNodeProps = { ... }| Name | Type | Description |
|---|---|---|
availabilityZone |
string |
The Availability Zone in which the node will be created. |
instanceType |
InstanceType |
The Amazon Managed Blockchain instance type for the Ethereum node. |
network |
Network |
The Ethereum Network in which the node will be created. |
public readonly availabilityZone: string;- Type: string
- Default: us-east-1a
The Availability Zone in which the node will be created.
public readonly instanceType: InstanceType;- Type: InstanceType
- Default: BURSTABLE3_LARGE
The Amazon Managed Blockchain instance type for the Ethereum node.
public readonly network: Network;- Type: Network
- Default: The default network selected is Mainnet network
The Ethereum Network in which the node will be created.
Supported instance types for Managed Blockchain nodes.
| Name | Description |
|---|---|
BURSTABLE3_XLARGE |
No description. |
STANDARD5_XLARGE |
No description. |
STANDARD5_XLARGE2 |
No description. |
STANDARD5_XLARGE4 |
No description. |
COMPUTE5_XLARGE2 |
No description. |
COMPUTE5_XLARGE4 |
No description. |
Supported Ethereum networks for Managed Blockchain nodes.
| Name | Description |
|---|---|
MAINNET |
No description. |
GOERLI |
No description. |
RINKEBY |
No description. |
ROPSTEN |
No description. |