|
| 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 { CloudFormationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFormationClient"; |
| 8 | +import { commonParams } from "../endpoint/EndpointParameters"; |
| 9 | +import { ListStackSetAutoDeploymentTargetsInput, ListStackSetAutoDeploymentTargetsOutput } from "../models/models_0"; |
| 10 | +import { |
| 11 | + de_ListStackSetAutoDeploymentTargetsCommand, |
| 12 | + se_ListStackSetAutoDeploymentTargetsCommand, |
| 13 | +} from "../protocols/Aws_query"; |
| 14 | + |
| 15 | +/** |
| 16 | + * @public |
| 17 | + */ |
| 18 | +export { __MetadataBearer, $Command }; |
| 19 | +/** |
| 20 | + * @public |
| 21 | + * |
| 22 | + * The input for {@link ListStackSetAutoDeploymentTargetsCommand}. |
| 23 | + */ |
| 24 | +export interface ListStackSetAutoDeploymentTargetsCommandInput extends ListStackSetAutoDeploymentTargetsInput {} |
| 25 | +/** |
| 26 | + * @public |
| 27 | + * |
| 28 | + * The output of {@link ListStackSetAutoDeploymentTargetsCommand}. |
| 29 | + */ |
| 30 | +export interface ListStackSetAutoDeploymentTargetsCommandOutput |
| 31 | + extends ListStackSetAutoDeploymentTargetsOutput, |
| 32 | + __MetadataBearer {} |
| 33 | + |
| 34 | +/** |
| 35 | + * <p>Returns summary information about deployment targets for a stack set.</p> |
| 36 | + * @example |
| 37 | + * Use a bare-bones client and the command you need to make an API call. |
| 38 | + * ```javascript |
| 39 | + * import { CloudFormationClient, ListStackSetAutoDeploymentTargetsCommand } from "@aws-sdk/client-cloudformation"; // ES Modules import |
| 40 | + * // const { CloudFormationClient, ListStackSetAutoDeploymentTargetsCommand } = require("@aws-sdk/client-cloudformation"); // CommonJS import |
| 41 | + * const client = new CloudFormationClient(config); |
| 42 | + * const input = { // ListStackSetAutoDeploymentTargetsInput |
| 43 | + * StackSetName: "STRING_VALUE", // required |
| 44 | + * NextToken: "STRING_VALUE", |
| 45 | + * MaxResults: Number("int"), |
| 46 | + * CallAs: "SELF" || "DELEGATED_ADMIN", |
| 47 | + * }; |
| 48 | + * const command = new ListStackSetAutoDeploymentTargetsCommand(input); |
| 49 | + * const response = await client.send(command); |
| 50 | + * // { // ListStackSetAutoDeploymentTargetsOutput |
| 51 | + * // Summaries: [ // StackSetAutoDeploymentTargetSummaries |
| 52 | + * // { // StackSetAutoDeploymentTargetSummary |
| 53 | + * // OrganizationalUnitId: "STRING_VALUE", |
| 54 | + * // Regions: [ // RegionList |
| 55 | + * // "STRING_VALUE", |
| 56 | + * // ], |
| 57 | + * // }, |
| 58 | + * // ], |
| 59 | + * // NextToken: "STRING_VALUE", |
| 60 | + * // }; |
| 61 | + * |
| 62 | + * ``` |
| 63 | + * |
| 64 | + * @param ListStackSetAutoDeploymentTargetsCommandInput - {@link ListStackSetAutoDeploymentTargetsCommandInput} |
| 65 | + * @returns {@link ListStackSetAutoDeploymentTargetsCommandOutput} |
| 66 | + * @see {@link ListStackSetAutoDeploymentTargetsCommandInput} for command's `input` shape. |
| 67 | + * @see {@link ListStackSetAutoDeploymentTargetsCommandOutput} for command's `response` shape. |
| 68 | + * @see {@link CloudFormationClientResolvedConfig | config} for CloudFormationClient's `config` shape. |
| 69 | + * |
| 70 | + * @throws {@link StackSetNotFoundException} (client fault) |
| 71 | + * <p>The specified stack set doesn't exist.</p> |
| 72 | + * |
| 73 | + * @throws {@link CloudFormationServiceException} |
| 74 | + * <p>Base exception class for all service exceptions from CloudFormation service.</p> |
| 75 | + * |
| 76 | + * @public |
| 77 | + */ |
| 78 | +export class ListStackSetAutoDeploymentTargetsCommand extends $Command |
| 79 | + .classBuilder< |
| 80 | + ListStackSetAutoDeploymentTargetsCommandInput, |
| 81 | + ListStackSetAutoDeploymentTargetsCommandOutput, |
| 82 | + CloudFormationClientResolvedConfig, |
| 83 | + ServiceInputTypes, |
| 84 | + ServiceOutputTypes |
| 85 | + >() |
| 86 | + .ep({ |
| 87 | + ...commonParams, |
| 88 | + }) |
| 89 | + .m(function (this: any, Command: any, cs: any, config: CloudFormationClientResolvedConfig, o: any) { |
| 90 | + return [ |
| 91 | + getSerdePlugin(config, this.serialize, this.deserialize), |
| 92 | + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), |
| 93 | + ]; |
| 94 | + }) |
| 95 | + .s("CloudFormation", "ListStackSetAutoDeploymentTargets", {}) |
| 96 | + .n("CloudFormationClient", "ListStackSetAutoDeploymentTargetsCommand") |
| 97 | + .f(void 0, void 0) |
| 98 | + .ser(se_ListStackSetAutoDeploymentTargetsCommand) |
| 99 | + .de(de_ListStackSetAutoDeploymentTargetsCommand) |
| 100 | + .build() {} |
0 commit comments