AWS CloudFormation
User Guide (Version )

AWS::ManagedBlockchain::Node

Creates a peer node in a member.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::ManagedBlockchain::Node", "Properties" : { "MemberId" : String, "NetworkId" : String, "NodeConfiguration" : NodeConfiguration } }

YAML

Type: AWS::ManagedBlockchain::Node Properties: MemberId: String NetworkId: String NodeConfiguration: NodeConfiguration

Properties

MemberId

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

Required: Yes

Type: String

Update requires: No interruption

NetworkId

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

Required: Yes

Type: String

Update requires: No interruption

NodeConfiguration

Configuration properties of a peer node.

Required: Yes

Type: NodeConfiguration

Update requires: No interruption

Return Values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the node ID.

For more information about using the Ref function, see Ref.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

Arn

The Amazon Resource Name (ARN) of the node.

MemberId

The unique identifier of the member in which the node is created.

NetworkId

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

NodeId

The unique identifier of the node.

Examples

Create a Peer Node in a Member

YAML

Description: "Basic Node template" Parameters: NetworkId: Type: String MemberId: Type: String InstanceType: Type: String AvailabilityZone: Type: String Resources: InitialNode: Type: "AWS::ManagedBlockchain::Node" Properties: NetworkId: !Ref NetworkId MemberId: !Ref MemberId NodeConfiguration: InstanceType: !Ref InstanceType AvailabilityZone: !Ref AvailabilityZone

JSON

{ "Description": "Basic Node template", "Parameters": { "NetworkId": { "Type": "String" }, "MemberId": { "Type": "String" }, "InstanceType": { "Type": "String" }, "AvailabilityZone": { "Type": "String" } }, "Resources": { "InitialNode": { "Type": "AWS::ManagedBlockchain::Node", "Properties": { "NetworkId": "NetworkId", "MemberId": "MemberId", "NodeConfiguration": { "InstanceType": "InstanceType", "AvailabilityZone": "AvailabilityZone" } } } } }