Skip to main content

networks

Creates, updates, deletes, gets or lists a networks resource.

Overview

Namenetworks
TypeResource
Idaws.managedblockchain.networks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the network. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. (pattern: <code>^arn:.+:.+:.+:.+:.+</code>)
creation_datestring (date-time)The date and time that the network was created.
descriptionstringAttributes of the blockchain framework for the network.
frameworkstringThe blockchain framework that the network uses. (HYPERLEDGER_FABRIC, ETHEREUM)
framework_attributesobjectAttributes of the blockchain framework that the network uses.
framework_versionstringThe version of the blockchain framework that the network uses.
idstringThe unique identifier of the network.
namestringThe name of the network. (pattern: <code>.\S.</code>)
statusstringThe current status of the network. (CREATING, AVAILABLE, CREATE_FAILED, DELETING, DELETED)
tagsobjectTags assigned to the network. Each tag consists of a key and optional value. 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.
voting_policyobjectThe voting rules for the network to decide if a proposal is accepted Applies only to Hyperledger Fabric.
vpc_endpoint_service_namestringThe VPC endpoint service name of the VPC endpoint service of the network. Members use the VPC endpoint service name to create a VPC endpoint to access network resources.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_networkselectnetwork_id, regionReturns detailed information about a network. Applies to Hyperledger Fabric and Ethereum.
list_networksselectregionname, framework, status, maxResults, nextTokenReturns information about the networks in which the current Amazon Web Services account participates. Applies to Hyperledger Fabric and Ethereum.
create_networkinsertregion, ClientRequestToken, Name, Framework, FrameworkVersion, VotingPolicy, MemberConfigurationCreates a new blockchain network using Amazon Managed Blockchain. Applies only to Hyperledger Fabric.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
network_idstringThe unique identifier of the network to get information about.
regionstringAWS region (default: us-east-1)
frameworkstringAn optional framework specifier. If provided, only networks of this framework type are listed.
maxResultsintegerThe maximum number of networks to list.
namestringThe name of the network.
nextTokenstringThe pagination token that indicates the next set of results to retrieve.
statusstringAn optional status specifier. If provided, only networks currently in this status are listed. Applies only to Hyperledger Fabric.

SELECT examples

Returns detailed information about a network. Applies to Hyperledger Fabric and Ethereum.

SELECT
arn,
creation_date,
description,
framework,
framework_attributes,
framework_version,
id,
name,
status,
tags,
voting_policy,
vpc_endpoint_service_name
FROM aws.managedblockchain.networks
WHERE network_id = '{{ network_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new blockchain network using Amazon Managed Blockchain. Applies only to Hyperledger Fabric.

INSERT INTO aws.managedblockchain.networks (
ClientRequestToken,
Name,
Description,
Framework,
FrameworkVersion,
FrameworkConfiguration,
VotingPolicy,
MemberConfiguration,
Tags,
region
)
SELECT
'{{ ClientRequestToken }}' /* required */,
'{{ Name }}' /* required */,
'{{ Description }}',
'{{ Framework }}' /* required */,
'{{ FrameworkVersion }}' /* required */,
'{{ FrameworkConfiguration }}',
'{{ VotingPolicy }}' /* required */,
'{{ MemberConfiguration }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
member_id,
network_id
;