|
| 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 { GetConfigurationInput, GetConfigurationOutput } from "../models/models_0"; |
| 9 | +import { de_GetConfigurationCommand, se_GetConfigurationCommand } from "../protocols/Aws_restJson1"; |
| 10 | +import { ServiceInputTypes, ServiceOutputTypes, SSMQuickSetupClientResolvedConfig } from "../SSMQuickSetupClient"; |
| 11 | + |
| 12 | +/** |
| 13 | + * @public |
| 14 | + */ |
| 15 | +export type { __MetadataBearer }; |
| 16 | +export { $Command }; |
| 17 | +/** |
| 18 | + * @public |
| 19 | + * |
| 20 | + * The input for {@link GetConfigurationCommand}. |
| 21 | + */ |
| 22 | +export interface GetConfigurationCommandInput extends GetConfigurationInput {} |
| 23 | +/** |
| 24 | + * @public |
| 25 | + * |
| 26 | + * The output of {@link GetConfigurationCommand}. |
| 27 | + */ |
| 28 | +export interface GetConfigurationCommandOutput extends GetConfigurationOutput, __MetadataBearer {} |
| 29 | + |
| 30 | +/** |
| 31 | + * <p>Returns details about the specified configuration.</p> |
| 32 | + * @example |
| 33 | + * Use a bare-bones client and the command you need to make an API call. |
| 34 | + * ```javascript |
| 35 | + * import { SSMQuickSetupClient, GetConfigurationCommand } from "@aws-sdk/client-ssm-quicksetup"; // ES Modules import |
| 36 | + * // const { SSMQuickSetupClient, GetConfigurationCommand } = require("@aws-sdk/client-ssm-quicksetup"); // CommonJS import |
| 37 | + * const client = new SSMQuickSetupClient(config); |
| 38 | + * const input = { // GetConfigurationInput |
| 39 | + * ConfigurationId: "STRING_VALUE", // required |
| 40 | + * }; |
| 41 | + * const command = new GetConfigurationCommand(input); |
| 42 | + * const response = await client.send(command); |
| 43 | + * // { // GetConfigurationOutput |
| 44 | + * // Id: "STRING_VALUE", |
| 45 | + * // ManagerArn: "STRING_VALUE", |
| 46 | + * // ConfigurationDefinitionId: "STRING_VALUE", |
| 47 | + * // Type: "STRING_VALUE", |
| 48 | + * // TypeVersion: "STRING_VALUE", |
| 49 | + * // Account: "STRING_VALUE", |
| 50 | + * // Region: "STRING_VALUE", |
| 51 | + * // CreatedAt: new Date("TIMESTAMP"), |
| 52 | + * // LastModifiedAt: new Date("TIMESTAMP"), |
| 53 | + * // StatusSummaries: [ // StatusSummariesList |
| 54 | + * // { // StatusSummary |
| 55 | + * // StatusType: "Deployment" || "AsyncExecutions", // required |
| 56 | + * // Status: "INITIALIZING" || "DEPLOYING" || "SUCCEEDED" || "DELETING" || "STOPPING" || "FAILED" || "STOPPED" || "DELETE_FAILED" || "STOP_FAILED" || "NONE", |
| 57 | + * // StatusMessage: "STRING_VALUE", |
| 58 | + * // LastUpdatedAt: new Date("TIMESTAMP"), // required |
| 59 | + * // StatusDetails: { // StatusDetails |
| 60 | + * // "<keys>": "STRING_VALUE", |
| 61 | + * // }, |
| 62 | + * // }, |
| 63 | + * // ], |
| 64 | + * // Parameters: { // ConfigurationParametersMap |
| 65 | + * // "<keys>": "STRING_VALUE", |
| 66 | + * // }, |
| 67 | + * // }; |
| 68 | + * |
| 69 | + * ``` |
| 70 | + * |
| 71 | + * @param GetConfigurationCommandInput - {@link GetConfigurationCommandInput} |
| 72 | + * @returns {@link GetConfigurationCommandOutput} |
| 73 | + * @see {@link GetConfigurationCommandInput} for command's `input` shape. |
| 74 | + * @see {@link GetConfigurationCommandOutput} for command's `response` shape. |
| 75 | + * @see {@link SSMQuickSetupClientResolvedConfig | config} for SSMQuickSetupClient's `config` shape. |
| 76 | + * |
| 77 | + * @throws {@link AccessDeniedException} (client fault) |
| 78 | + * <p>The requester has insufficient permissions to perform the operation.</p> |
| 79 | + * |
| 80 | + * @throws {@link ConflictException} (client fault) |
| 81 | + * <p>Another request is being processed. Wait a few minutes and try again.</p> |
| 82 | + * |
| 83 | + * @throws {@link InternalServerException} (server fault) |
| 84 | + * <p>An error occurred on the server side.</p> |
| 85 | + * |
| 86 | + * @throws {@link ResourceNotFoundException} (client fault) |
| 87 | + * <p>The resource couldn't be found. Check the ID or name and try again.</p> |
| 88 | + * |
| 89 | + * @throws {@link ThrottlingException} (client fault) |
| 90 | + * <p>The request or operation exceeds the maximum allowed request rate per Amazon Web Services account and Amazon Web Services Region.</p> |
| 91 | + * |
| 92 | + * @throws {@link ValidationException} (client fault) |
| 93 | + * <p>The request is invalid. Verify the values provided for the request parameters are |
| 94 | + * accurate.</p> |
| 95 | + * |
| 96 | + * @throws {@link SSMQuickSetupServiceException} |
| 97 | + * <p>Base exception class for all service exceptions from SSMQuickSetup service.</p> |
| 98 | + * |
| 99 | + * @public |
| 100 | + */ |
| 101 | +export class GetConfigurationCommand extends $Command |
| 102 | + .classBuilder< |
| 103 | + GetConfigurationCommandInput, |
| 104 | + GetConfigurationCommandOutput, |
| 105 | + SSMQuickSetupClientResolvedConfig, |
| 106 | + ServiceInputTypes, |
| 107 | + ServiceOutputTypes |
| 108 | + >() |
| 109 | + .ep(commonParams) |
| 110 | + .m(function (this: any, Command: any, cs: any, config: SSMQuickSetupClientResolvedConfig, o: any) { |
| 111 | + return [ |
| 112 | + getSerdePlugin(config, this.serialize, this.deserialize), |
| 113 | + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), |
| 114 | + ]; |
| 115 | + }) |
| 116 | + .s("QuickSetup", "GetConfiguration", {}) |
| 117 | + .n("SSMQuickSetupClient", "GetConfigurationCommand") |
| 118 | + .f(void 0, void 0) |
| 119 | + .ser(se_GetConfigurationCommand) |
| 120 | + .de(de_GetConfigurationCommand) |
| 121 | + .build() { |
| 122 | + /** @internal type navigation helper, not in runtime. */ |
| 123 | + protected declare static __types: { |
| 124 | + api: { |
| 125 | + input: GetConfigurationInput; |
| 126 | + output: GetConfigurationOutput; |
| 127 | + }; |
| 128 | + sdk: { |
| 129 | + input: GetConfigurationCommandInput; |
| 130 | + output: GetConfigurationCommandOutput; |
| 131 | + }; |
| 132 | + }; |
| 133 | +} |
0 commit comments