Skip to main content

members

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

Overview

Namemembers
TypeResource
Idaws.managedblockchain.members

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the member. 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 member was created.
descriptionstringAn optional description for the member.
framework_attributesobjectAttributes relevant to a member for the blockchain framework that the Managed Blockchain network uses.
idstringThe unique identifier of the member.
kms_key_arnstringThe Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the member uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key", the member uses an Amazon Web Services owned KMS key for encryption. This parameter is inherited by the nodes that this member owns. For more information, see Encryption at Rest in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
log_publishing_configurationobjectConfiguration properties for logging events associated with a member.
namestringThe name of the member. (pattern: <code>^(?!-|[0-9])(?!.-$)(?!.?--)[a-zA-Z0-9-]+$</code>)
network_idstringThe unique identifier of the network to which the member belongs.
statusstringThe status of a member. CREATING - The Amazon Web Services account is in the process of creating a member. AVAILABLE - The member has been created and can participate in the network. CREATE_FAILED - The Amazon Web Services account attempted to create a member and creation failed. UPDATING - The member is in the process of being updated. DELETING - The member and all associated resources are in the process of being deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an APPROVED PROPOSAL to remove the member. DELETED - The member can no longer participate on the network and all associated resources are deleted. Either the Amazon Web Services account that owns the member deleted it, or the member is being deleted as the result of an APPROVED PROPOSAL to remove the member. INACCESSIBLE_ENCRYPTION_KEY - The member is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked. The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the member resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource. (CREATING, AVAILABLE, CREATE_FAILED, UPDATING, DELETING, DELETED, INACCESSIBLE_ENCRYPTION_KEY)
tagsobjectTags assigned to the member. Tags consist 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.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_memberselectnetwork_id, member_id, regionReturns detailed information about a member. Applies only to Hyperledger Fabric.
list_membersselectnetwork_id, regionname, status, isOwned, maxResults, nextTokenReturns a list of the members in a network and properties of their configurations. Applies only to Hyperledger Fabric.
create_memberinsertnetwork_id, region, ClientRequestToken, InvitationId, MemberConfigurationCreates a member within a Managed Blockchain network. Applies only to Hyperledger Fabric.
update_memberupdatenetwork_id, member_id, regionUpdates a member configuration with new parameters. Applies only to Hyperledger Fabric.
delete_memberdeletenetwork_id, member_id, regionDeletes a member. Deleting a member removes the member and all associated resources from the network. DeleteMember can only be called for a specified MemberId if the principal performing the action is associated with the Amazon Web Services account that owns the member. In all other cases, the DeleteMember action is carried out as the result of an approved proposal to remove a member. If MemberId is the last member in a network specified by the last Amazon Web Services account, the network is deleted also. 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
member_idstringThe unique identifier of the member to remove.
network_idstringThe unique identifier of the network from which the member is removed.
regionstringAWS region (default: us-east-1)
isOwnedbooleanAn optional Boolean value. If provided, the request is limited either to members that the current Amazon Web Services account owns (true) or that other Amazon Web Services accountsn own (false). If omitted, all members are listed.
maxResultsintegerThe maximum number of members to return in the request.
namestringThe optional name of the member to list.
nextTokenstringThe pagination token that indicates the next set of results to retrieve.
statusstringAn optional status specifier. If provided, only members currently in this status are listed.

SELECT examples

Returns detailed information about a member. Applies only to Hyperledger Fabric.

SELECT
arn,
creation_date,
description,
framework_attributes,
id,
kms_key_arn,
log_publishing_configuration,
name,
network_id,
status,
tags
FROM aws.managedblockchain.members
WHERE network_id = '{{ network_id }}' -- required
AND member_id = '{{ member_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a member within a Managed Blockchain network. Applies only to Hyperledger Fabric.

INSERT INTO aws.managedblockchain.members (
ClientRequestToken,
InvitationId,
MemberConfiguration,
network_id,
region
)
SELECT
'{{ ClientRequestToken }}' /* required */,
'{{ InvitationId }}' /* required */,
'{{ MemberConfiguration }}' /* required */,
'{{ network_id }}',
'{{ region }}'
RETURNING
member_id
;

UPDATE examples

Updates a member configuration with new parameters. Applies only to Hyperledger Fabric.

UPDATE aws.managedblockchain.members
SET
LogPublishingConfiguration = '{{ LogPublishingConfiguration }}'
WHERE
network_id = '{{ network_id }}' --required
AND member_id = '{{ member_id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes a member. Deleting a member removes the member and all associated resources from the network. DeleteMember can only be called for a specified MemberId if the principal performing the action is associated with the Amazon Web Services account that owns the member. In all other cases, the DeleteMember action is carried out as the result of an approved proposal to remove a member. If MemberId is the last member in a network specified by the last Amazon Web Services account, the network is deleted also. Applies only to Hyperledger Fabric.

DELETE FROM aws.managedblockchain.members
WHERE network_id = '{{ network_id }}' --required
AND member_id = '{{ member_id }}' --required
AND region = '{{ region }}' --required
;