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