Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a node on the specified blockchain network.
Applies to Hyperledger Fabric and Ethereum.
Synopsis
- data CreateNode = CreateNode' {}
- newCreateNode :: Text -> Text -> NodeConfiguration -> CreateNode
- createNode_memberId :: Lens' CreateNode (Maybe Text)
- createNode_tags :: Lens' CreateNode (Maybe (HashMap Text Text))
- createNode_clientRequestToken :: Lens' CreateNode Text
- createNode_networkId :: Lens' CreateNode Text
- createNode_nodeConfiguration :: Lens' CreateNode NodeConfiguration
- data CreateNodeResponse = CreateNodeResponse' {
- nodeId :: Maybe Text
- httpStatus :: Int
- newCreateNodeResponse :: Int -> CreateNodeResponse
- createNodeResponse_nodeId :: Lens' CreateNodeResponse (Maybe Text)
- createNodeResponse_httpStatus :: Lens' CreateNodeResponse Int
Creating a Request
data CreateNode Source #
See: newCreateNode
smart constructor.
CreateNode' | |
|
Instances
:: Text | |
-> Text | |
-> NodeConfiguration | |
-> CreateNode |
Create a value of CreateNode
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:memberId:CreateNode'
, createNode_memberId
- The unique identifier of the member that owns this node.
Applies only to Hyperledger Fabric.
$sel:tags:CreateNode'
, createNode_tags
- Tags to assign to the node. Each tag consists of a key and optional
value.
When specifying tags during creation, you can specify multiple key-value pairs in a single request, with an overall maximum of 50 tags added to each resource.
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.
$sel:clientRequestToken:CreateNode'
, createNode_clientRequestToken
- A unique, case-sensitive identifier that you provide to ensure the
idempotency of the operation. An idempotent operation completes no more
than one time. This identifier is required only if you make a service
request directly using an HTTP client. It is generated automatically if
you use an AWS SDK or the AWS CLI.
$sel:networkId:CreateNode'
, createNode_networkId
- The unique identifier of the network for the node.
Ethereum public networks have the following NetworkId
s:
n-ethereum-mainnet
n-ethereum-rinkeby
n-ethereum-ropsten
$sel:nodeConfiguration:CreateNode'
, createNode_nodeConfiguration
- The properties of a node configuration.
Request Lenses
createNode_memberId :: Lens' CreateNode (Maybe Text) Source #
The unique identifier of the member that owns this node.
Applies only to Hyperledger Fabric.
createNode_tags :: Lens' CreateNode (Maybe (HashMap Text Text)) Source #
Tags to assign to the node. Each tag consists of a key and optional value.
When specifying tags during creation, you can specify multiple key-value pairs in a single request, with an overall maximum of 50 tags added to each resource.
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.
createNode_clientRequestToken :: Lens' CreateNode Text Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent operation completes no more than one time. This identifier is required only if you make a service request directly using an HTTP client. It is generated automatically if you use an AWS SDK or the AWS CLI.
createNode_networkId :: Lens' CreateNode Text Source #
The unique identifier of the network for the node.
Ethereum public networks have the following NetworkId
s:
n-ethereum-mainnet
n-ethereum-rinkeby
n-ethereum-ropsten
createNode_nodeConfiguration :: Lens' CreateNode NodeConfiguration Source #
The properties of a node configuration.
Destructuring the Response
data CreateNodeResponse Source #
See: newCreateNodeResponse
smart constructor.
CreateNodeResponse' | |
|
Instances
newCreateNodeResponse Source #
Create a value of CreateNodeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nodeId:CreateNodeResponse'
, createNodeResponse_nodeId
- The unique identifier of the node.
$sel:httpStatus:CreateNodeResponse'
, createNodeResponse_httpStatus
- The response's http status code.
Response Lenses
createNodeResponse_nodeId :: Lens' CreateNodeResponse (Maybe Text) Source #
The unique identifier of the node.
createNodeResponse_httpStatus :: Lens' CreateNodeResponse Int Source #
The response's http status code.