{"files":{"SKILL.md":"---\nname: amazon-managed-blockchain\ndescription: \"Amazon Managed Blockchain API skill. Use when working with Amazon Managed Blockchain for accessors, networks, invitations. Covers 27 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Amazon Managed Blockchain\nAPI version: 2018-09-24\n\n## Auth\nAWS SigV4\n\n## Base URL\nNot specified.\n\n## Setup\n1. Configure auth: AWS SigV4\n2. GET /accessors -- returns a list of the accessors and their properties. accessor objects are containers that have the information required for token based access to your ethereum nodes.\n3. POST /accessors -- create first accessor\n\n## Endpoints\n27 endpoints across 4 groups. See references/api-spec.lap for full details.\n\n### Accessors\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /accessors | Creates a new accessor for use with Amazon Managed Blockchain service that supports token based access. The accessor contains information required for token based access. |\n| DELETE | /accessors/{AccessorId} | Deletes an accessor that your Amazon Web Services account owns. An accessor object is a container that has the information required for token based access to your Ethereum nodes including, the BILLING_TOKEN. After an accessor is deleted, the status of the accessor changes from AVAILABLE to PENDING_DELETION. An accessor in the PENDING_DELETION state can’t be used for new WebSocket requests or HTTP requests. However, WebSocket connections that were initiated while the accessor was in the AVAILABLE state remain open until they expire (up to 2 hours). |\n| GET | /accessors/{AccessorId} | Returns detailed information about an accessor. An accessor object is a container that has the information required for token based access to your Ethereum nodes. |\n| GET | /accessors | Returns a list of the accessors and their properties. Accessor objects are containers that have the information required for token based access to your Ethereum nodes. |\n\n### Networks\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /networks/{networkId}/members | Creates a member within a Managed Blockchain network. Applies only to Hyperledger Fabric. |\n| POST | /networks | Creates a new blockchain network using Amazon Managed Blockchain. Applies only to Hyperledger Fabric. |\n| POST | /networks/{networkId}/nodes | Creates a node on the specified blockchain network. Applies to Hyperledger Fabric and Ethereum. |\n| POST | /networks/{networkId}/proposals | Creates a proposal for a change to the network that other members of the network can vote on, for example, a proposal to add a new member to the network. Any member can create a proposal. Applies only to Hyperledger Fabric. |\n| DELETE | /networks/{networkId}/members/{memberId} | 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. |\n| DELETE | /networks/{networkId}/nodes/{nodeId} | Deletes a node that your Amazon Web Services account owns. All data on the node is lost and cannot be recovered. Applies to Hyperledger Fabric and Ethereum. |\n| GET | /networks/{networkId}/members/{memberId} | Returns detailed information about a member. Applies only to Hyperledger Fabric. |\n| GET | /networks/{networkId} | Returns detailed information about a network. Applies to Hyperledger Fabric and Ethereum. |\n| GET | /networks/{networkId}/nodes/{nodeId} | Returns detailed information about a node. Applies to Hyperledger Fabric and Ethereum. |\n| GET | /networks/{networkId}/proposals/{proposalId} | Returns detailed information about a proposal. Applies only to Hyperledger Fabric. |\n| GET | /networks/{networkId}/members | Returns a list of the members in a network and properties of their configurations. Applies only to Hyperledger Fabric. |\n| GET | /networks | Returns information about the networks in which the current Amazon Web Services account participates. Applies to Hyperledger Fabric and Ethereum. |\n| GET | /networks/{networkId}/nodes | Returns information about the nodes within a network. Applies to Hyperledger Fabric and Ethereum. |\n| GET | /networks/{networkId}/proposals/{proposalId}/votes | Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote. Applies only to Hyperledger Fabric. |\n| GET | /networks/{networkId}/proposals | Returns a list of proposals for the network. Applies only to Hyperledger Fabric. |\n| PATCH | /networks/{networkId}/members/{memberId} | Updates a member configuration with new parameters. Applies only to Hyperledger Fabric. |\n| PATCH | /networks/{networkId}/nodes/{nodeId} | Updates a node configuration with new parameters. Applies only to Hyperledger Fabric. |\n| POST | /networks/{networkId}/proposals/{proposalId}/votes | Casts a vote for a specified ProposalId on behalf of a member. The member to vote as, specified by VoterMemberId, must be in the same Amazon Web Services account as the principal that calls the action. Applies only to Hyperledger Fabric. |\n\n### Invitations\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /invitations | Returns a list of all invitations for the current Amazon Web Services account. Applies only to Hyperledger Fabric. |\n| DELETE | /invitations/{invitationId} | 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. |\n\n### Tags\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /tags/{resourceArn} | Returns a list of tags for the specified resource. 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. |\n| POST | /tags/{resourceArn} | Adds or overwrites the specified tags for the specified Amazon Managed Blockchain resource. Each tag consists of a key and optional value. When you specify a tag key that already exists, the tag value is overwritten with the new value. Use UntagResource to remove tag keys. A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, your request fails and returns an error. 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. |\n| DELETE | /tags/{resourceArn} | Removes the specified tags from the Amazon Managed Blockchain 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. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Create a accessor?\" -> POST /accessors\n- \"Create a member?\" -> POST /networks/{networkId}/members\n- \"Create a network?\" -> POST /networks\n- \"Create a node?\" -> POST /networks/{networkId}/nodes\n- \"Create a proposal?\" -> POST /networks/{networkId}/proposals\n- \"Delete a accessor?\" -> DELETE /accessors/{AccessorId}\n- \"Delete a member?\" -> DELETE /networks/{networkId}/members/{memberId}\n- \"Delete a node?\" -> DELETE /networks/{networkId}/nodes/{nodeId}\n- \"Get accessor details?\" -> GET /accessors/{AccessorId}\n- \"Get member details?\" -> GET /networks/{networkId}/members/{memberId}\n- \"Get network details?\" -> GET /networks/{networkId}\n- \"Get node details?\" -> GET /networks/{networkId}/nodes/{nodeId}\n- \"Get proposal details?\" -> GET /networks/{networkId}/proposals/{proposalId}\n- \"List all accessors?\" -> GET /accessors\n- \"List all invitations?\" -> GET /invitations\n- \"List all members?\" -> GET /networks/{networkId}/members\n- \"List all networks?\" -> GET /networks\n- \"List all nodes?\" -> GET /networks/{networkId}/nodes\n- \"List all votes?\" -> GET /networks/{networkId}/proposals/{proposalId}/votes\n- \"List all proposals?\" -> GET /networks/{networkId}/proposals\n- \"Get tag details?\" -> GET /tags/{resourceArn}\n- \"Delete a invitation?\" -> DELETE /invitations/{invitationId}\n- \"Delete a tag?\" -> DELETE /tags/{resourceArn}\n- \"Partially update a member?\" -> PATCH /networks/{networkId}/members/{memberId}\n- \"Partially update a node?\" -> PATCH /networks/{networkId}/nodes/{nodeId}\n- \"Create a vote?\" -> POST /networks/{networkId}/proposals/{proposalId}/votes\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Amazon Managed Blockchain\n@version 2018-09-24\n@auth AWS SigV4\n@endpoints 27\n@hint download_for_search\n@toc accessors(4), networks(18), invitations(2), tags(3)\n\n@group accessors\n@endpoint POST /accessors\n@desc Creates a new accessor for use with Amazon Managed Blockchain service that supports token based access. The accessor contains information required for token based access.\n@required {ClientRequestToken: str, AccessorType: str}\n@optional {Tags: map<str,str>, NetworkType: str}\n@returns(200) {AccessorId: str?, BillingToken: str?, NetworkType: str?}\n\n@endgroup\n\n@group networks\n@endpoint POST /networks/{networkId}/members\n@desc Creates a member within a Managed Blockchain network. Applies only to Hyperledger Fabric.\n@required {NetworkId: str, ClientRequestToken: str, InvitationId: str, MemberConfiguration: MemberConfiguration}\n@returns(200) {MemberId: str?}\n\n@endpoint POST /networks\n@desc Creates a new blockchain network using Amazon Managed Blockchain. Applies only to Hyperledger Fabric.\n@required {ClientRequestToken: str, Name: str, Framework: str, FrameworkVersion: str, VotingPolicy: VotingPolicy, MemberConfiguration: MemberConfiguration}\n@optional {Description: str, FrameworkConfiguration: NetworkFrameworkConfiguration, Tags: map<str,str>}\n@returns(200) {NetworkId: str?, MemberId: str?}\n\n@endpoint POST /networks/{networkId}/nodes\n@desc Creates a node on the specified blockchain network. Applies to Hyperledger Fabric and Ethereum.\n@required {NetworkId: str, ClientRequestToken: str, NodeConfiguration: NodeConfiguration}\n@optional {MemberId: str, Tags: map<str,str>}\n@returns(200) {NodeId: str?}\n\n@endpoint POST /networks/{networkId}/proposals\n@desc Creates a proposal for a change to the network that other members of the network can vote on, for example, a proposal to add a new member to the network. Any member can create a proposal. Applies only to Hyperledger Fabric.\n@required {NetworkId: str, ClientRequestToken: str, MemberId: str, Actions: ProposalActions}\n@optional {Description: str, Tags: map<str,str>}\n@returns(200) {ProposalId: str?}\n\n@endgroup\n\n@group accessors\n@endpoint DELETE /accessors/{AccessorId}\n@desc Deletes an accessor that your Amazon Web Services account owns. An accessor object is a container that has the information required for token based access to your Ethereum nodes including, the BILLING_TOKEN. After an accessor is deleted, the status of the accessor changes from AVAILABLE to PENDING_DELETION. An accessor in the PENDING_DELETION state can’t be used for new WebSocket requests or HTTP requests. However, WebSocket connections that were initiated while the accessor was in the AVAILABLE state remain open until they expire (up to 2 hours).\n@required {AccessorId: str}\n\n@endgroup\n\n@group networks\n@endpoint DELETE /networks/{networkId}/members/{memberId}\n@desc 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.\n@required {NetworkId: str, MemberId: str}\n\n@endpoint DELETE /networks/{networkId}/nodes/{nodeId}\n@desc Deletes a node that your Amazon Web Services account owns. All data on the node is lost and cannot be recovered. Applies to Hyperledger Fabric and Ethereum.\n@required {NetworkId: str, NodeId: str}\n@optional {memberId: str}\n\n@endgroup\n\n@group accessors\n@endpoint GET /accessors/{AccessorId}\n@desc Returns detailed information about an accessor. An accessor object is a container that has the information required for token based access to your Ethereum nodes.\n@required {AccessorId: str}\n@returns(200) {Accessor: Accessor?{Id: str?, Type: str?, BillingToken: str?, Status: str?, CreationDate: str(timestamp)?, Arn: str?, Tags: map<str, str>?: any, NetworkType: str?}}\n\n@endgroup\n\n@group networks\n@endpoint GET /networks/{networkId}/members/{memberId}\n@desc Returns detailed information about a member. Applies only to Hyperledger Fabric.\n@required {NetworkId: str, MemberId: str}\n@returns(200) {Member: Member?{NetworkId: str?, Id: str?, Name: str?, Description: str?, FrameworkAttributes: MemberFrameworkAttributes?{Fabric: MemberFabricAttributes?{AdminUsername: str?, CaEndpoint: str?}}, LogPublishingConfiguration: MemberLogPublishingConfiguration?{Fabric: MemberFabricLogPublishingConfiguration?{CaLogs: LogConfigurations?}}, Status: str?, CreationDate: str(timestamp)?, Tags: map<str, str>?: any, Arn: str?, KmsKeyArn: str?}}\n\n@endpoint GET /networks/{networkId}\n@desc Returns detailed information about a network. Applies to Hyperledger Fabric and Ethereum.\n@required {NetworkId: str}\n@returns(200) {Network: Network?{Id: str?, Name: str?, Description: str?, Framework: str?, FrameworkVersion: str?, FrameworkAttributes: NetworkFrameworkAttributes?{Fabric: NetworkFabricAttributes?{OrderingServiceEndpoint: str?, Edition: str?}, Ethereum: NetworkEthereumAttributes?{ChainId: str?}}, VpcEndpointServiceName: str?, VotingPolicy: VotingPolicy?{ApprovalThresholdPolicy: ApprovalThresholdPolicy?{ThresholdPercentage: int?, ProposalDurationInHours: int?, ThresholdComparator: str?}}, Status: str?, CreationDate: str(timestamp)?, Tags: map<str, str>?: any, Arn: str?}}\n\n@endpoint GET /networks/{networkId}/nodes/{nodeId}\n@desc Returns detailed information about a node. Applies to Hyperledger Fabric and Ethereum.\n@required {NetworkId: str, NodeId: str}\n@optional {memberId: str}\n@returns(200) {Node: Node?{NetworkId: str?, MemberId: str?, Id: str?, InstanceType: str?, AvailabilityZone: str?, FrameworkAttributes: NodeFrameworkAttributes?{Fabric: NodeFabricAttributes?{PeerEndpoint: str?, PeerEventEndpoint: str?}, Ethereum: NodeEthereumAttributes?{HttpEndpoint: str?, WebSocketEndpoint: str?}}, LogPublishingConfiguration: NodeLogPublishingConfiguration?{Fabric: NodeFabricLogPublishingConfiguration?{ChaincodeLogs: LogConfigurations?, PeerLogs: LogConfigurations?}}, StateDB: str?, Status: str?, CreationDate: str(timestamp)?, Tags: map<str, str>?: any, Arn: str?, KmsKeyArn: str?}}\n\n@endpoint GET /networks/{networkId}/proposals/{proposalId}\n@desc Returns detailed information about a proposal. Applies only to Hyperledger Fabric.\n@required {NetworkId: str, ProposalId: str}\n@returns(200) {Proposal: Proposal?{ProposalId: str?, NetworkId: str?, Description: str?, Actions: ProposalActions?{Invitations: [InviteAction]?, Removals: [RemoveAction]?}, ProposedByMemberId: str?, ProposedByMemberName: str?, Status: str?, CreationDate: str(timestamp)?, ExpirationDate: str(timestamp)?, YesVoteCount: int?, NoVoteCount: int?, OutstandingVoteCount: int?, Tags: map<str, str>?: any, Arn: str?}}\n\n@endgroup\n\n@group accessors\n@endpoint GET /accessors\n@desc Returns a list of the accessors and their properties. Accessor objects are containers that have the information required for token based access to your Ethereum nodes.\n@optional {maxResults: int, nextToken: str, networkType: str}\n@returns(200) {Accessors: [AccessorSummary]?, NextToken: str?}\n\n@endgroup\n\n@group invitations\n@endpoint GET /invitations\n@desc Returns a list of all invitations for the current Amazon Web Services account. Applies only to Hyperledger Fabric.\n@optional {maxResults: int, nextToken: str}\n@returns(200) {Invitations: [Invitation]?, NextToken: str?}\n\n@endgroup\n\n@group networks\n@endpoint GET /networks/{networkId}/members\n@desc Returns a list of the members in a network and properties of their configurations. Applies only to Hyperledger Fabric.\n@required {NetworkId: str}\n@optional {name: str, status: str, isOwned: bool, maxResults: int, nextToken: str}\n@returns(200) {Members: [MemberSummary]?, NextToken: str?}\n\n@endpoint GET /networks\n@desc Returns information about the networks in which the current Amazon Web Services account participates. Applies to Hyperledger Fabric and Ethereum.\n@optional {name: str, framework: str, status: str, maxResults: int, nextToken: str}\n@returns(200) {Networks: [NetworkSummary]?, NextToken: str?}\n\n@endpoint GET /networks/{networkId}/nodes\n@desc Returns information about the nodes within a network. Applies to Hyperledger Fabric and Ethereum.\n@required {NetworkId: str}\n@optional {memberId: str, status: str, maxResults: int, nextToken: str}\n@returns(200) {Nodes: [NodeSummary]?, NextToken: str?}\n\n@endpoint GET /networks/{networkId}/proposals/{proposalId}/votes\n@desc Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote. Applies only to Hyperledger Fabric.\n@required {NetworkId: str, ProposalId: str}\n@optional {maxResults: int, nextToken: str}\n@returns(200) {ProposalVotes: [VoteSummary]?, NextToken: str?}\n\n@endpoint GET /networks/{networkId}/proposals\n@desc Returns a list of proposals for the network. Applies only to Hyperledger Fabric.\n@required {NetworkId: str}\n@optional {maxResults: int, nextToken: str}\n@returns(200) {Proposals: [ProposalSummary]?, NextToken: str?}\n\n@endgroup\n\n@group tags\n@endpoint GET /tags/{resourceArn}\n@desc Returns a list of tags for the specified resource. 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.\n@required {ResourceArn: str}\n@returns(200) {Tags: map<str,str>?}\n\n@endgroup\n\n@group invitations\n@endpoint DELETE /invitations/{invitationId}\n@desc 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.\n@required {InvitationId: str}\n\n@endgroup\n\n@group tags\n@endpoint POST /tags/{resourceArn}\n@desc Adds or overwrites the specified tags for the specified Amazon Managed Blockchain resource. Each tag consists of a key and optional value. When you specify a tag key that already exists, the tag value is overwritten with the new value. Use UntagResource to remove tag keys. A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, your request fails and returns an error. 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.\n@required {ResourceArn: str, Tags: map<str,str>}\n\n@endpoint DELETE /tags/{resourceArn}\n@desc Removes the specified tags from the Amazon Managed Blockchain 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.\n@required {ResourceArn: str, tagKeys: [str]}\n\n@endgroup\n\n@group networks\n@endpoint PATCH /networks/{networkId}/members/{memberId}\n@desc Updates a member configuration with new parameters. Applies only to Hyperledger Fabric.\n@required {NetworkId: str, MemberId: str}\n@optional {LogPublishingConfiguration: MemberLogPublishingConfiguration}\n\n@endpoint PATCH /networks/{networkId}/nodes/{nodeId}\n@desc Updates a node configuration with new parameters. Applies only to Hyperledger Fabric.\n@required {NetworkId: str, NodeId: str}\n@optional {MemberId: str, LogPublishingConfiguration: NodeLogPublishingConfiguration}\n\n@endpoint POST /networks/{networkId}/proposals/{proposalId}/votes\n@desc Casts a vote for a specified ProposalId on behalf of a member. The member to vote as, specified by VoterMemberId, must be in the same Amazon Web Services account as the principal that calls the action. Applies only to Hyperledger Fabric.\n@required {NetworkId: str, ProposalId: str, VoterMemberId: str, Vote: str}\n\n@endgroup\n\n@end\n"}}