Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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_description :: Lens' CreateNetwork (Maybe Text)
- createNetwork_frameworkConfiguration :: Lens' CreateNetwork (Maybe NetworkFrameworkConfiguration)
- 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:
CreateNetwork
, createNetwork_description
- An optional description for the network.
CreateNetwork
, createNetwork_frameworkConfiguration
- Configuration properties of the blockchain framework relevant to the
network configuration.
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
- This is a unique, case-sensitive identifier that you provide to ensure
the idempotency of the operation. An idempotent operation completes no
more than once. This identifier is required only if you make a service
request directly using an HTTP client. It is generated automatically if
you use an Amazon Web Services SDK or the Amazon Web Services CLI.
CreateNetwork
, createNetwork_name
- The name of the network.
CreateNetwork
, createNetwork_framework
- The blockchain framework that the network uses.
CreateNetwork
, createNetwork_frameworkVersion
- The version of the blockchain framework that the network uses.
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_description :: Lens' CreateNetwork (Maybe Text) Source #
An optional description for the network.
createNetwork_frameworkConfiguration :: Lens' CreateNetwork (Maybe NetworkFrameworkConfiguration) Source #
Configuration properties of the blockchain framework relevant to the network configuration.
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 #
This is a unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent operation completes no more than once. This identifier is required only if you make a service request directly using an HTTP client. It is generated automatically if you use an Amazon Web Services SDK or the Amazon Web Services 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:
CreateNetworkResponse
, createNetworkResponse_memberId
- The unique identifier for the first member within the network.
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.