libZSservicesZSamazonka-managedblockchainZSamazonka-managedblockchain
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ManagedBlockChain.CreateNetwork

Description

Creates a new blockchain network using Amazon Managed Blockchain.

Applies only to Hyperledger Fabric.

Synopsis

Creating a Request

data CreateNetwork Source #

See: newCreateNetwork smart constructor.

Constructors

CreateNetwork' 

Fields

  • frameworkConfiguration :: Maybe NetworkFrameworkConfiguration

    Configuration properties of the blockchain framework relevant to the network configuration.

  • description :: Maybe Text

    An optional description for the network.

  • tags :: Maybe (HashMap Text Text)

    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.

  • clientRequestToken :: Text

    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.

  • name :: Text

    The name of the network.

  • framework :: Framework

    The blockchain framework that the network uses.

  • frameworkVersion :: Text

    The version of the blockchain framework that the network uses.

  • votingPolicy :: VotingPolicy

    The voting rules used by the network to determine if a proposal is approved.

  • memberConfiguration :: MemberConfiguration

    Configuration properties for the first member within the network.

Instances

Instances details
Eq CreateNetwork Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

Show CreateNetwork Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

Generic CreateNetwork Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

Associated Types

type Rep CreateNetwork :: Type -> Type #

NFData CreateNetwork Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

Methods

rnf :: CreateNetwork -> () #

Hashable CreateNetwork Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

ToJSON CreateNetwork Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

AWSRequest CreateNetwork Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

Associated Types

type AWSResponse CreateNetwork #

ToHeaders CreateNetwork Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

ToPath CreateNetwork Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

ToQuery CreateNetwork Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

type Rep CreateNetwork Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

type AWSResponse CreateNetwork Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

newCreateNetwork Source #

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.

Constructors

CreateNetworkResponse' 

Fields

Instances

Instances details
Eq CreateNetworkResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

Read CreateNetworkResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

Show CreateNetworkResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

Generic CreateNetworkResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

Associated Types

type Rep CreateNetworkResponse :: Type -> Type #

NFData CreateNetworkResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

Methods

rnf :: CreateNetworkResponse -> () #

type Rep CreateNetworkResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.CreateNetwork

type Rep CreateNetworkResponse = D1 ('MetaData "CreateNetworkResponse" "Amazonka.ManagedBlockChain.CreateNetwork" "libZSservicesZSamazonka-managedblockchainZSamazonka-managedblockchain" 'False) (C1 ('MetaCons "CreateNetworkResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "memberId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "networkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.