Skip to main content

invitations

Creates, updates, deletes, gets or lists an invitations resource.

Overview

Nameinvitations
TypeResource
Idaws.managedblockchain.invitations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
invitationsarrayThe invitations for the network.
next_tokenstringThe pagination token that indicates the next set of results to retrieve.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_invitationsselectregionmaxResults, nextTokenReturns a list of all invitations for the current Amazon Web Services account. Applies only to Hyperledger Fabric.
reject_invitationexecinvitation_id, regionRejects an invitation to join a network. This action can be called by a principal in an Amazon Web Services account that has received an invitation to create a member and join a network. 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
invitation_idstringThe unique identifier of the invitation to reject.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of invitations to return.
nextTokenstringThe pagination token that indicates the next set of results to retrieve.

SELECT examples

Returns a list of all invitations for the current Amazon Web Services account. Applies only to Hyperledger Fabric.

SELECT
invitations,
next_token
FROM aws.managedblockchain.invitations
WHERE region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

Lifecycle Methods

Rejects an invitation to join a network. This action can be called by a principal in an Amazon Web Services account that has received an invitation to create a member and join a network. Applies only to Hyperledger Fabric.

EXEC aws.managedblockchain.invitations.reject_invitation
@invitation_id='{{ invitation_id }}' --required,
@region='{{ region }}' --required
;