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 new blockchain network using Amazon Managed Blockchain.
Applies only to Hyperledger Fabric.
Synopsis
- data CreateNetwork = CreateNetwork' {}
- newCreateNetwork :: Text -> Text -> Framework -> Text -> VotingPolicy -> MemberConfiguration -> CreateNetwork
- createNetwork_frameworkConfiguration :: Lens' CreateNetwork (Maybe NetworkFrameworkConfiguration)
- createNetwork_description :: Lens' CreateNetwork (Maybe Text)
- createNetwork_tags :: Lens' CreateNetwork (Maybe (HashMap Text Text))
- createNetwork_clientRequestToken :: Lens' CreateNetwork Text
- createNetwork_name :: Lens' CreateNetwork Text
- createNetwork_framework :: Lens' CreateNetwork Framework
- createNetwork_frameworkVersion :: Lens' CreateNetwork Text
- createNetwork_votingPolicy :: Lens' CreateNetwork VotingPolicy
- createNetwork_memberConfiguration :: Lens' CreateNetwork MemberConfiguration
- data CreateNetworkResponse = CreateNetworkResponse' {}
- newCreateNetworkResponse :: Int -> CreateNetworkResponse
- createNetworkResponse_memberId :: Lens' CreateNetworkResponse (Maybe Text)
- createNetworkResponse_networkId :: Lens' CreateNetworkResponse (Maybe Text)
- createNetworkResponse_httpStatus :: Lens' CreateNetworkResponse Int
Creating a Request
data CreateNetwork Source #
See: newCreateNetwork
smart constructor.
CreateNetwork' | |
|
Instances
:: Text | |
-> Text | |
-> Framework | |
-> Text | |
-> VotingPolicy | |
-> MemberConfiguration | |
-> CreateNetwork |
Create a value of CreateNetwork
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:frameworkConfiguration:CreateNetwork'
, createNetwork_frameworkConfiguration
- Configuration properties of the blockchain framework relevant to the
network configuration.
$sel:description:CreateNetwork'
, createNetwork_description
- An optional description for the network.
$sel:tags:CreateNetwork'
, createNetwork_tags
- Tags to assign to the network. 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:CreateNetwork'
, createNetwork_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:name:CreateNetwork'
, createNetwork_name
- The name of the network.
$sel:framework:CreateNetwork'
, createNetwork_framework
- The blockchain framework that the network uses.
$sel:frameworkVersion:CreateNetwork'
, createNetwork_frameworkVersion
- The version of the blockchain framework that the network uses.
$sel:votingPolicy:CreateNetwork'
, createNetwork_votingPolicy
- The voting rules used by the network to determine if a proposal is
approved.
$sel:memberConfiguration:CreateNetwork'
, createNetwork_memberConfiguration
- Configuration properties for the first member within the network.
Request Lenses
createNetwork_frameworkConfiguration :: Lens' CreateNetwork (Maybe NetworkFrameworkConfiguration) Source #
Configuration properties of the blockchain framework relevant to the network configuration.
createNetwork_description :: Lens' CreateNetwork (Maybe Text) Source #
An optional description for the network.
createNetwork_tags :: Lens' CreateNetwork (Maybe (HashMap Text Text)) Source #
Tags to assign to the network. 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.
createNetwork_clientRequestToken :: Lens' CreateNetwork 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.
createNetwork_name :: Lens' CreateNetwork Text Source #
The name of the network.
createNetwork_framework :: Lens' CreateNetwork Framework Source #
The blockchain framework that the network uses.
createNetwork_frameworkVersion :: Lens' CreateNetwork Text Source #
The version of the blockchain framework that the network uses.
createNetwork_votingPolicy :: Lens' CreateNetwork VotingPolicy Source #
The voting rules used by the network to determine if a proposal is approved.
createNetwork_memberConfiguration :: Lens' CreateNetwork MemberConfiguration Source #
Configuration properties for the first member within the network.
Destructuring the Response
data CreateNetworkResponse Source #
See: newCreateNetworkResponse
smart constructor.
Instances
newCreateNetworkResponse Source #
Create a value of CreateNetworkResponse
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:CreateNetworkResponse'
, createNetworkResponse_memberId
- The unique identifier for the first member within the network.
$sel:networkId:CreateNetworkResponse'
, createNetworkResponse_networkId
- The unique identifier for the network.
$sel:httpStatus:CreateNetworkResponse'
, createNetworkResponse_httpStatus
- The response's http status code.
Response Lenses
createNetworkResponse_memberId :: Lens' CreateNetworkResponse (Maybe Text) Source #
The unique identifier for the first member within the network.
createNetworkResponse_networkId :: Lens' CreateNetworkResponse (Maybe Text) Source #
The unique identifier for the network.
createNetworkResponse_httpStatus :: Lens' CreateNetworkResponse Int Source #
The response's http status code.