|
| 1 | +// smithy-typescript generated code |
| 2 | +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; |
| 3 | +import { getSerdePlugin } from "@smithy/middleware-serde"; |
| 4 | +import { Command as $Command } from "@smithy/smithy-client"; |
| 5 | +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; |
| 6 | + |
| 7 | +import { commonParams } from "../endpoint/EndpointParameters"; |
| 8 | +import { GetOutpostBillingInformationInput, GetOutpostBillingInformationOutput } from "../models/models_0"; |
| 9 | +import { OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OutpostsClient"; |
| 10 | +import { |
| 11 | + de_GetOutpostBillingInformationCommand, |
| 12 | + se_GetOutpostBillingInformationCommand, |
| 13 | +} from "../protocols/Aws_restJson1"; |
| 14 | + |
| 15 | +/** |
| 16 | + * @public |
| 17 | + */ |
| 18 | +export type { __MetadataBearer }; |
| 19 | +export { $Command }; |
| 20 | +/** |
| 21 | + * @public |
| 22 | + * |
| 23 | + * The input for {@link GetOutpostBillingInformationCommand}. |
| 24 | + */ |
| 25 | +export interface GetOutpostBillingInformationCommandInput extends GetOutpostBillingInformationInput {} |
| 26 | +/** |
| 27 | + * @public |
| 28 | + * |
| 29 | + * The output of {@link GetOutpostBillingInformationCommand}. |
| 30 | + */ |
| 31 | +export interface GetOutpostBillingInformationCommandOutput |
| 32 | + extends GetOutpostBillingInformationOutput, |
| 33 | + __MetadataBearer {} |
| 34 | + |
| 35 | +/** |
| 36 | + * <p>Gets current and historical billing information about the specified Outpost.</p> |
| 37 | + * @example |
| 38 | + * Use a bare-bones client and the command you need to make an API call. |
| 39 | + * ```javascript |
| 40 | + * import { OutpostsClient, GetOutpostBillingInformationCommand } from "@aws-sdk/client-outposts"; // ES Modules import |
| 41 | + * // const { OutpostsClient, GetOutpostBillingInformationCommand } = require("@aws-sdk/client-outposts"); // CommonJS import |
| 42 | + * const client = new OutpostsClient(config); |
| 43 | + * const input = { // GetOutpostBillingInformationInput |
| 44 | + * NextToken: "STRING_VALUE", |
| 45 | + * MaxResults: Number("int"), |
| 46 | + * OutpostIdentifier: "STRING_VALUE", // required |
| 47 | + * }; |
| 48 | + * const command = new GetOutpostBillingInformationCommand(input); |
| 49 | + * const response = await client.send(command); |
| 50 | + * // { // GetOutpostBillingInformationOutput |
| 51 | + * // NextToken: "STRING_VALUE", |
| 52 | + * // Subscriptions: [ // SubscriptionList |
| 53 | + * // { // Subscription |
| 54 | + * // SubscriptionId: "STRING_VALUE", |
| 55 | + * // SubscriptionType: "ORIGINAL" || "RENEWAL" || "CAPACITY_INCREASE", |
| 56 | + * // SubscriptionStatus: "ACTIVE" || "INACTIVE" || "CANCELLED", |
| 57 | + * // OrderIds: [ // OrderIdList |
| 58 | + * // "STRING_VALUE", |
| 59 | + * // ], |
| 60 | + * // BeginDate: new Date("TIMESTAMP"), |
| 61 | + * // EndDate: new Date("TIMESTAMP"), |
| 62 | + * // MonthlyRecurringPrice: Number("double"), |
| 63 | + * // UpfrontPrice: Number("double"), |
| 64 | + * // }, |
| 65 | + * // ], |
| 66 | + * // ContractEndDate: "STRING_VALUE", |
| 67 | + * // }; |
| 68 | + * |
| 69 | + * ``` |
| 70 | + * |
| 71 | + * @param GetOutpostBillingInformationCommandInput - {@link GetOutpostBillingInformationCommandInput} |
| 72 | + * @returns {@link GetOutpostBillingInformationCommandOutput} |
| 73 | + * @see {@link GetOutpostBillingInformationCommandInput} for command's `input` shape. |
| 74 | + * @see {@link GetOutpostBillingInformationCommandOutput} for command's `response` shape. |
| 75 | + * @see {@link OutpostsClientResolvedConfig | config} for OutpostsClient's `config` shape. |
| 76 | + * |
| 77 | + * @throws {@link AccessDeniedException} (client fault) |
| 78 | + * <p>You do not have permission to perform this operation.</p> |
| 79 | + * |
| 80 | + * @throws {@link InternalServerException} (server fault) |
| 81 | + * <p>An internal error has occurred.</p> |
| 82 | + * |
| 83 | + * @throws {@link NotFoundException} (client fault) |
| 84 | + * <p>The specified request is not valid.</p> |
| 85 | + * |
| 86 | + * @throws {@link OutpostsServiceException} |
| 87 | + * <p>Base exception class for all service exceptions from Outposts service.</p> |
| 88 | + * |
| 89 | + * |
| 90 | + * @public |
| 91 | + */ |
| 92 | +export class GetOutpostBillingInformationCommand extends $Command |
| 93 | + .classBuilder< |
| 94 | + GetOutpostBillingInformationCommandInput, |
| 95 | + GetOutpostBillingInformationCommandOutput, |
| 96 | + OutpostsClientResolvedConfig, |
| 97 | + ServiceInputTypes, |
| 98 | + ServiceOutputTypes |
| 99 | + >() |
| 100 | + .ep(commonParams) |
| 101 | + .m(function (this: any, Command: any, cs: any, config: OutpostsClientResolvedConfig, o: any) { |
| 102 | + return [ |
| 103 | + getSerdePlugin(config, this.serialize, this.deserialize), |
| 104 | + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), |
| 105 | + ]; |
| 106 | + }) |
| 107 | + .s("OutpostsOlafService", "GetOutpostBillingInformation", {}) |
| 108 | + .n("OutpostsClient", "GetOutpostBillingInformationCommand") |
| 109 | + .f(void 0, void 0) |
| 110 | + .ser(se_GetOutpostBillingInformationCommand) |
| 111 | + .de(de_GetOutpostBillingInformationCommand) |
| 112 | + .build() { |
| 113 | + /** @internal type navigation helper, not in runtime. */ |
| 114 | + protected declare static __types: { |
| 115 | + api: { |
| 116 | + input: GetOutpostBillingInformationInput; |
| 117 | + output: GetOutpostBillingInformationOutput; |
| 118 | + }; |
| 119 | + sdk: { |
| 120 | + input: GetOutpostBillingInformationCommandInput; |
| 121 | + output: GetOutpostBillingInformationCommandOutput; |
| 122 | + }; |
| 123 | + }; |
| 124 | +} |
0 commit comments