create_network
async
¶
create_network(
client_request_token: ClientRequestTokenString,
name: NameString,
framework: Framework,
framework_version: FrameworkVersionString,
voting_policy: VotingPolicy,
member_configuration: MemberConfiguration,
*,
config_overrides: Optional[AsyncManagedBlockchainClientConfig] = None,
description: Optional[DescriptionString] = None,
framework_configuration: Optional[NetworkFrameworkConfiguration] = None,
tags: Optional[InputTagMap] = None,
) -> CreateNetworkOutput
Creates a new blockchain network using Amazon Managed Blockchain.
Applies only to Hyperledger Fabric.
Parameters:
-
client_request_token(ClientRequestTokenString) –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.
-
name(NameString) –The name of the network.
-
description(Optional[DescriptionString], default:None) –An optional description for the network.
-
framework(Framework) –The blockchain framework that the network uses.
-
framework_version(FrameworkVersionString) –The version of the blockchain framework that the network uses.
-
framework_configuration(Optional[NetworkFrameworkConfiguration], default:None) –Configuration properties of the blockchain framework relevant to the network configuration.
-
voting_policy(VotingPolicy) –The voting rules used by the network to determine if a proposal is approved.
-
member_configuration(MemberConfiguration) –Configuration properties for the first member within the network.
-
tags(Optional[InputTagMap], default:None) –Tags to assign to the network.
Each tag consists of a key and an optional value. You can specify multiple key-value pairs in a single request with an overall maximum of 50 tags allowed per 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.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
InternalServiceErrorException–The request processing has failed because of an unknown error, exception or failure.
-
InvalidRequestException–The action or operation requested is invalid. Verify that the action is typed correctly.
-
ResourceAlreadyExistsException–A resource request is issued for a resource that already exists.
-
ResourceLimitExceededException–The maximum number of resources of that type already exist. Ensure the resources requested are within the boundaries of the service edition and your account limits.
-
ThrottlingException–The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
-
TooManyTagsException– -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_managedblockchain/_services/async_managed_blockchain.py
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 | |