|
| 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 { GetGlobalSettingsOutput } from "../models/models_0"; |
| 9 | +import { de_GetGlobalSettingsCommand, se_GetGlobalSettingsCommand } from "../protocols/Aws_restJson1"; |
| 10 | +import { ServiceInputTypes, ServiceOutputTypes, WellArchitectedClientResolvedConfig } from "../WellArchitectedClient"; |
| 11 | + |
| 12 | +/** |
| 13 | + * @public |
| 14 | + */ |
| 15 | +export { __MetadataBearer, $Command }; |
| 16 | +/** |
| 17 | + * @public |
| 18 | + * |
| 19 | + * The input for {@link GetGlobalSettingsCommand}. |
| 20 | + */ |
| 21 | +export interface GetGlobalSettingsCommandInput {} |
| 22 | +/** |
| 23 | + * @public |
| 24 | + * |
| 25 | + * The output of {@link GetGlobalSettingsCommand}. |
| 26 | + */ |
| 27 | +export interface GetGlobalSettingsCommandOutput extends GetGlobalSettingsOutput, __MetadataBearer {} |
| 28 | + |
| 29 | +/** |
| 30 | + * <p>Global settings for all workloads.</p> |
| 31 | + * @example |
| 32 | + * Use a bare-bones client and the command you need to make an API call. |
| 33 | + * ```javascript |
| 34 | + * import { WellArchitectedClient, GetGlobalSettingsCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import |
| 35 | + * // const { WellArchitectedClient, GetGlobalSettingsCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS import |
| 36 | + * const client = new WellArchitectedClient(config); |
| 37 | + * const input = {}; |
| 38 | + * const command = new GetGlobalSettingsCommand(input); |
| 39 | + * const response = await client.send(command); |
| 40 | + * // { // GetGlobalSettingsOutput |
| 41 | + * // OrganizationSharingStatus: "ENABLED" || "DISABLED", |
| 42 | + * // DiscoveryIntegrationStatus: "ENABLED" || "DISABLED", |
| 43 | + * // JiraConfiguration: { // AccountJiraConfigurationOutput |
| 44 | + * // IntegrationStatus: "CONFIGURED" || "NOT_CONFIGURED", |
| 45 | + * // IssueManagementStatus: "ENABLED" || "DISABLED", |
| 46 | + * // IssueManagementType: "AUTO" || "MANUAL", |
| 47 | + * // Subdomain: "STRING_VALUE", |
| 48 | + * // JiraProjectKey: "STRING_VALUE", |
| 49 | + * // StatusMessage: "STRING_VALUE", |
| 50 | + * // }, |
| 51 | + * // }; |
| 52 | + * |
| 53 | + * ``` |
| 54 | + * |
| 55 | + * @param GetGlobalSettingsCommandInput - {@link GetGlobalSettingsCommandInput} |
| 56 | + * @returns {@link GetGlobalSettingsCommandOutput} |
| 57 | + * @see {@link GetGlobalSettingsCommandInput} for command's `input` shape. |
| 58 | + * @see {@link GetGlobalSettingsCommandOutput} for command's `response` shape. |
| 59 | + * @see {@link WellArchitectedClientResolvedConfig | config} for WellArchitectedClient's `config` shape. |
| 60 | + * |
| 61 | + * @throws {@link AccessDeniedException} (client fault) |
| 62 | + * <p>User does not have sufficient access to perform this action.</p> |
| 63 | + * |
| 64 | + * @throws {@link InternalServerException} (server fault) |
| 65 | + * <p>There is a problem with the Well-Architected Tool API service.</p> |
| 66 | + * |
| 67 | + * @throws {@link ThrottlingException} (client fault) |
| 68 | + * <p>Request was denied due to request throttling.</p> |
| 69 | + * |
| 70 | + * @throws {@link ValidationException} (client fault) |
| 71 | + * <p>The user input is not valid.</p> |
| 72 | + * |
| 73 | + * @throws {@link WellArchitectedServiceException} |
| 74 | + * <p>Base exception class for all service exceptions from WellArchitected service.</p> |
| 75 | + * |
| 76 | + * @public |
| 77 | + */ |
| 78 | +export class GetGlobalSettingsCommand extends $Command |
| 79 | + .classBuilder< |
| 80 | + GetGlobalSettingsCommandInput, |
| 81 | + GetGlobalSettingsCommandOutput, |
| 82 | + WellArchitectedClientResolvedConfig, |
| 83 | + ServiceInputTypes, |
| 84 | + ServiceOutputTypes |
| 85 | + >() |
| 86 | + .ep({ |
| 87 | + ...commonParams, |
| 88 | + }) |
| 89 | + .m(function (this: any, Command: any, cs: any, config: WellArchitectedClientResolvedConfig, o: any) { |
| 90 | + return [ |
| 91 | + getSerdePlugin(config, this.serialize, this.deserialize), |
| 92 | + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), |
| 93 | + ]; |
| 94 | + }) |
| 95 | + .s("WellArchitectedApiServiceLambda", "GetGlobalSettings", {}) |
| 96 | + .n("WellArchitectedClient", "GetGlobalSettingsCommand") |
| 97 | + .f(void 0, void 0) |
| 98 | + .ser(se_GetGlobalSettingsCommand) |
| 99 | + .de(de_GetGlobalSettingsCommand) |
| 100 | + .build() {} |
0 commit comments