import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetProposalInput, GetProposalOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetProposalCommand}. */ export interface GetProposalCommandInput extends GetProposalInput { } /** * @public * * The output of {@link GetProposalCommand}. */ export interface GetProposalCommandOutput extends GetProposalOutput, __MetadataBearer { } declare const GetProposalCommand_base: { new (input: GetProposalCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetProposalCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Returns detailed information about a proposal.

*

Applies only to Hyperledger Fabric.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ManagedBlockchainClient, GetProposalCommand } from "@aws-sdk/client-managedblockchain"; // ES Modules import * // const { ManagedBlockchainClient, GetProposalCommand } = require("@aws-sdk/client-managedblockchain"); // CommonJS import * // import type { ManagedBlockchainClientConfig } from "@aws-sdk/client-managedblockchain"; * const config = {}; // type is ManagedBlockchainClientConfig * const client = new ManagedBlockchainClient(config); * const input = { // GetProposalInput * NetworkId: "STRING_VALUE", // required * ProposalId: "STRING_VALUE", // required * }; * const command = new GetProposalCommand(input); * const response = await client.send(command); * // { // GetProposalOutput * // Proposal: { // Proposal * // ProposalId: "STRING_VALUE", * // NetworkId: "STRING_VALUE", * // Description: "STRING_VALUE", * // Actions: { // ProposalActions * // Invitations: [ // InviteActionList * // { // InviteAction * // Principal: "STRING_VALUE", // required * // }, * // ], * // Removals: [ // RemoveActionList * // { // RemoveAction * // MemberId: "STRING_VALUE", // required * // }, * // ], * // }, * // ProposedByMemberId: "STRING_VALUE", * // ProposedByMemberName: "STRING_VALUE", * // Status: "IN_PROGRESS" || "APPROVED" || "REJECTED" || "EXPIRED" || "ACTION_FAILED", * // CreationDate: new Date("TIMESTAMP"), * // ExpirationDate: new Date("TIMESTAMP"), * // YesVoteCount: Number("int"), * // NoVoteCount: Number("int"), * // OutstandingVoteCount: Number("int"), * // Tags: { // OutputTagMap * // "": "STRING_VALUE", * // }, * // Arn: "STRING_VALUE", * // }, * // }; * * ``` * * @param GetProposalCommandInput - {@link GetProposalCommandInput} * @returns {@link GetProposalCommandOutput} * @see {@link GetProposalCommandInput} for command's `input` shape. * @see {@link GetProposalCommandOutput} for command's `response` shape. * @see {@link ManagedBlockchainClientResolvedConfig | config} for ManagedBlockchainClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You don't have sufficient access to perform this action.

* * @throws {@link InternalServiceErrorException} (server fault) *

The request processing has failed because of an unknown error, exception or failure.

* * @throws {@link InvalidRequestException} (client fault) *

The action or operation requested is invalid. Verify that the action is typed correctly.

* * @throws {@link ResourceNotFoundException} (client fault) *

A requested resource doesn't exist. It may have been deleted or referenced incorrectly.

* * @throws {@link ThrottlingException} (client fault) *

The request or operation couldn't be performed because a service is * throttling requests. The most common source of throttling errors is * creating resources that exceed your service limit for this resource type. * Request a limit increase or delete unused resources if possible.

* * @throws {@link ManagedBlockchainServiceException} *

Base exception class for all service exceptions from ManagedBlockchain service.

* * * @public */ export declare class GetProposalCommand extends GetProposalCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetProposalInput; output: GetProposalOutput; }; sdk: { input: GetProposalCommandInput; output: GetProposalCommandOutput; }; }; }