Skip to main content

Module shared

Module shared 

Source
Expand description

Primitives shared across the Amazon Managed Blockchain (managedblockchain) handlers: resource-id minting, ARN synthesis, deterministic framework endpoint derivation and timestamps. Kept in one place so the create / get paths cannot diverge on wire format.

Functionsยง

accessor_arn
The accessor ARN, arn:aws:managedblockchain:{region}:{account}:accessors/{id}.
ethereum_http_endpoint
The Ethereum JSON-RPC HTTP endpoint a node advertises.
ethereum_ws_endpoint
The Ethereum JSON-RPC WebSocket endpoint a node advertises.
fabric_ca_endpoint
The Fabric certificate-authority endpoint a member advertises.
fabric_ordering_endpoint
The Hyperledger Fabric ordering-service endpoint a network advertises. Deterministically derived from the network id; well-formed but pointing at no live orderer (see the crate-level honest gap).
fabric_peer_endpoint
The Fabric peer endpoint a node advertises.
fabric_peer_event_endpoint
The Fabric peer-event endpoint a node advertises.
invitation_arn
The invitation ARN, arn:aws:managedblockchain:{region}:{account}:invitations/{id}.
iso_now
Current time as an ISO-8601 date-time string (the format every Managed Blockchain timestamp member declares).
member_arn
The member ARN, arn:aws:managedblockchain:{region}:{account}:members/{id}.
network_arn
The network ARN. Managed Blockchain networks are global, so the ARN carries no region and no account.
new_accessor_id
An accessor id (a UUID, matching the real accessor id form).
new_billing_token
An accessor billing token (an opaque 40-char base62 token).
new_invitation_id
An invitation id, i-<26 uppercase alnum>.
new_member_id
A member id, m-<26 uppercase alnum>.
new_network_id
A network id, n-<26 uppercase alnum>.
new_node_id
A node id, nd-<26 uppercase alnum>.
new_proposal_id
A proposal id, p-<26 uppercase alnum>.
node_arn
The node ARN, arn:aws:managedblockchain:{region}:{account}:nodes/{id}.
proposal_arn
The proposal ARN, arn:aws:managedblockchain:{region}:{account}:proposals/{id}.