@aws-sdk/client-ssm-quicksetup 3.928.0 → 3.929.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +532 -683
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/SSMQuickSetupClient.js +2 -0
- package/dist-es/commands/CreateConfigurationManagerCommand.js +3 -10
- package/dist-es/commands/DeleteConfigurationManagerCommand.js +3 -9
- package/dist-es/commands/GetConfigurationCommand.js +3 -9
- package/dist-es/commands/GetConfigurationManagerCommand.js +3 -10
- package/dist-es/commands/GetServiceSettingsCommand.js +3 -9
- package/dist-es/commands/ListConfigurationManagersCommand.js +3 -9
- package/dist-es/commands/ListConfigurationsCommand.js +3 -9
- package/dist-es/commands/ListQuickSetupTypesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateConfigurationDefinitionCommand.js +3 -9
- package/dist-es/commands/UpdateConfigurationManagerCommand.js +3 -9
- package/dist-es/commands/UpdateServiceSettingsCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -20
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +490 -0
- package/dist-types/SSMQuickSetupClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -20
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +67 -0
- package/dist-types/ts3.4/SSMQuickSetupClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -13
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +73 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -546
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -128
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -173
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: SSMQuickSetupClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
userAgentAppId?:
|
|
43
47
|
| string
|
|
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: SSMQuickSetupClientConfig) => {
|
|
|
38
38
|
profile?: string;
|
|
39
39
|
logger: import("@smithy/types").Logger;
|
|
40
40
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
41
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
42
|
+
import("@smithy/types").HttpRequest,
|
|
43
|
+
import("@smithy/types").HttpResponse
|
|
44
|
+
>;
|
|
41
45
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
42
46
|
retryStrategy?:
|
|
43
47
|
| import("@smithy/types").RetryStrategy
|
|
@@ -37,6 +37,10 @@ export declare const getRuntimeConfig: (config: SSMQuickSetupClientConfig) => {
|
|
|
37
37
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
38
38
|
logger: import("@smithy/types").Logger;
|
|
39
39
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
40
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
41
|
+
import("@smithy/types").HttpRequest,
|
|
42
|
+
import("@smithy/types").HttpResponse
|
|
43
|
+
>;
|
|
40
44
|
defaultsMode:
|
|
41
45
|
| import("@smithy/smithy-client").DefaultsMode
|
|
42
46
|
| import("@smithy/types").Provider<
|
|
@@ -14,6 +14,10 @@ export declare const getRuntimeConfig: (config: SSMQuickSetupClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSMQuickSetupHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
18
|
+
import("@smithy/types").HttpRequest,
|
|
19
|
+
import("@smithy/types").HttpResponse
|
|
20
|
+
>;
|
|
17
21
|
serviceId: string;
|
|
18
22
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
23
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticMapSchema,
|
|
5
|
+
StaticOperationSchema,
|
|
6
|
+
StaticStructureSchema,
|
|
7
|
+
} from "@smithy/types";
|
|
8
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
9
|
+
export declare var ConfigurationDefinition: StaticStructureSchema;
|
|
10
|
+
export declare var ConfigurationDefinitionInput: StaticStructureSchema;
|
|
11
|
+
export declare var ConfigurationDefinitionSummary: StaticStructureSchema;
|
|
12
|
+
export declare var ConfigurationManagerSummary: StaticStructureSchema;
|
|
13
|
+
export declare var ConfigurationSummary: StaticStructureSchema;
|
|
14
|
+
export declare var ConflictException: StaticErrorSchema;
|
|
15
|
+
export declare var CreateConfigurationManagerInput: StaticStructureSchema;
|
|
16
|
+
export declare var CreateConfigurationManagerOutput: StaticStructureSchema;
|
|
17
|
+
export declare var DeleteConfigurationManagerInput: StaticStructureSchema;
|
|
18
|
+
export declare var Filter: StaticStructureSchema;
|
|
19
|
+
export declare var GetConfigurationInput: StaticStructureSchema;
|
|
20
|
+
export declare var GetConfigurationManagerInput: StaticStructureSchema;
|
|
21
|
+
export declare var GetConfigurationManagerOutput: StaticStructureSchema;
|
|
22
|
+
export declare var GetConfigurationOutput: StaticStructureSchema;
|
|
23
|
+
export declare var GetServiceSettingsOutput: StaticStructureSchema;
|
|
24
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
25
|
+
export declare var ListConfigurationManagersInput: StaticStructureSchema;
|
|
26
|
+
export declare var ListConfigurationManagersOutput: StaticStructureSchema;
|
|
27
|
+
export declare var ListConfigurationsInput: StaticStructureSchema;
|
|
28
|
+
export declare var ListConfigurationsOutput: StaticStructureSchema;
|
|
29
|
+
export declare var ListQuickSetupTypesOutput: StaticStructureSchema;
|
|
30
|
+
export declare var ListTagsForResourceRequest: StaticStructureSchema;
|
|
31
|
+
export declare var ListTagsForResourceResponse: StaticStructureSchema;
|
|
32
|
+
export declare var QuickSetupTypeOutput: StaticStructureSchema;
|
|
33
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
34
|
+
export declare var ServiceSettings: StaticStructureSchema;
|
|
35
|
+
export declare var StatusSummary: StaticStructureSchema;
|
|
36
|
+
export declare var TagEntry: StaticStructureSchema;
|
|
37
|
+
export declare var TagResourceInput: StaticStructureSchema;
|
|
38
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
39
|
+
export declare var UntagResourceInput: StaticStructureSchema;
|
|
40
|
+
export declare var UpdateConfigurationDefinitionInput: StaticStructureSchema;
|
|
41
|
+
export declare var UpdateConfigurationManagerInput: StaticStructureSchema;
|
|
42
|
+
export declare var UpdateServiceSettingsInput: StaticStructureSchema;
|
|
43
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
44
|
+
export declare var __Unit: "unit";
|
|
45
|
+
export declare var SSMQuickSetupServiceException: StaticErrorSchema;
|
|
46
|
+
export declare var ConfigurationDefinitionsInputList: StaticListSchema;
|
|
47
|
+
export declare var ConfigurationDefinitionsList: StaticListSchema;
|
|
48
|
+
export declare var ConfigurationDefinitionSummariesList: StaticListSchema;
|
|
49
|
+
export declare var ConfigurationManagerList: StaticListSchema;
|
|
50
|
+
export declare var ConfigurationsList: StaticListSchema;
|
|
51
|
+
export declare var FiltersList: StaticListSchema;
|
|
52
|
+
export declare var FilterValues: number;
|
|
53
|
+
export declare var QuickSetupTypeList: StaticListSchema;
|
|
54
|
+
export declare var StatusSummariesList: StaticListSchema;
|
|
55
|
+
export declare var TagKeys: number;
|
|
56
|
+
export declare var Tags: StaticListSchema;
|
|
57
|
+
export declare var ConfigurationParametersMap: number;
|
|
58
|
+
export declare var StatusDetails: number;
|
|
59
|
+
export declare var TagsMap: StaticMapSchema;
|
|
60
|
+
export declare var CreateConfigurationManager: StaticOperationSchema;
|
|
61
|
+
export declare var DeleteConfigurationManager: StaticOperationSchema;
|
|
62
|
+
export declare var GetConfiguration: StaticOperationSchema;
|
|
63
|
+
export declare var GetConfigurationManager: StaticOperationSchema;
|
|
64
|
+
export declare var GetServiceSettings: StaticOperationSchema;
|
|
65
|
+
export declare var ListConfigurationManagers: StaticOperationSchema;
|
|
66
|
+
export declare var ListConfigurations: StaticOperationSchema;
|
|
67
|
+
export declare var ListQuickSetupTypes: StaticOperationSchema;
|
|
68
|
+
export declare var ListTagsForResource: StaticOperationSchema;
|
|
69
|
+
export declare var TagResource: StaticOperationSchema;
|
|
70
|
+
export declare var UntagResource: StaticOperationSchema;
|
|
71
|
+
export declare var UpdateConfigurationDefinition: StaticOperationSchema;
|
|
72
|
+
export declare var UpdateConfigurationManager: StaticOperationSchema;
|
|
73
|
+
export declare var UpdateServiceSettings: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ssm-quicksetup",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ssm Quicksetup Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.929.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ssm-quicksetup",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.928.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
@@ -1,546 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
-
import { SSMQuickSetupServiceException as __BaseException } from "../models/SSMQuickSetupServiceException";
|
|
6
|
-
export const se_CreateConfigurationManagerCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/configurationManager");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
ConfigurationDefinitions: (_) => _json(_),
|
|
15
|
-
Description: [],
|
|
16
|
-
Name: [],
|
|
17
|
-
Tags: (_) => _json(_),
|
|
18
|
-
}));
|
|
19
|
-
b.m("POST").h(headers).b(body);
|
|
20
|
-
return b.build();
|
|
21
|
-
};
|
|
22
|
-
export const se_DeleteConfigurationManagerCommand = async (input, context) => {
|
|
23
|
-
const b = rb(input, context);
|
|
24
|
-
const headers = {};
|
|
25
|
-
b.bp("/configurationManager/{ManagerArn}");
|
|
26
|
-
b.p("ManagerArn", () => input.ManagerArn, "{ManagerArn}", false);
|
|
27
|
-
let body;
|
|
28
|
-
b.m("DELETE").h(headers).b(body);
|
|
29
|
-
return b.build();
|
|
30
|
-
};
|
|
31
|
-
export const se_GetConfigurationCommand = async (input, context) => {
|
|
32
|
-
const b = rb(input, context);
|
|
33
|
-
const headers = {};
|
|
34
|
-
b.bp("/getConfiguration/{ConfigurationId}");
|
|
35
|
-
b.p("ConfigurationId", () => input.ConfigurationId, "{ConfigurationId}", false);
|
|
36
|
-
let body;
|
|
37
|
-
b.m("GET").h(headers).b(body);
|
|
38
|
-
return b.build();
|
|
39
|
-
};
|
|
40
|
-
export const se_GetConfigurationManagerCommand = async (input, context) => {
|
|
41
|
-
const b = rb(input, context);
|
|
42
|
-
const headers = {};
|
|
43
|
-
b.bp("/configurationManager/{ManagerArn}");
|
|
44
|
-
b.p("ManagerArn", () => input.ManagerArn, "{ManagerArn}", false);
|
|
45
|
-
let body;
|
|
46
|
-
b.m("GET").h(headers).b(body);
|
|
47
|
-
return b.build();
|
|
48
|
-
};
|
|
49
|
-
export const se_GetServiceSettingsCommand = async (input, context) => {
|
|
50
|
-
const b = rb(input, context);
|
|
51
|
-
const headers = {};
|
|
52
|
-
b.bp("/serviceSettings");
|
|
53
|
-
let body;
|
|
54
|
-
b.m("GET").h(headers).b(body);
|
|
55
|
-
return b.build();
|
|
56
|
-
};
|
|
57
|
-
export const se_ListConfigurationManagersCommand = async (input, context) => {
|
|
58
|
-
const b = rb(input, context);
|
|
59
|
-
const headers = {
|
|
60
|
-
"content-type": "application/json",
|
|
61
|
-
};
|
|
62
|
-
b.bp("/listConfigurationManagers");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(take(input, {
|
|
65
|
-
Filters: (_) => _json(_),
|
|
66
|
-
MaxItems: [],
|
|
67
|
-
StartingToken: [],
|
|
68
|
-
}));
|
|
69
|
-
b.m("POST").h(headers).b(body);
|
|
70
|
-
return b.build();
|
|
71
|
-
};
|
|
72
|
-
export const se_ListConfigurationsCommand = async (input, context) => {
|
|
73
|
-
const b = rb(input, context);
|
|
74
|
-
const headers = {
|
|
75
|
-
"content-type": "application/json",
|
|
76
|
-
};
|
|
77
|
-
b.bp("/listConfigurations");
|
|
78
|
-
let body;
|
|
79
|
-
body = JSON.stringify(take(input, {
|
|
80
|
-
ConfigurationDefinitionId: [],
|
|
81
|
-
Filters: (_) => _json(_),
|
|
82
|
-
ManagerArn: [],
|
|
83
|
-
MaxItems: [],
|
|
84
|
-
StartingToken: [],
|
|
85
|
-
}));
|
|
86
|
-
b.m("POST").h(headers).b(body);
|
|
87
|
-
return b.build();
|
|
88
|
-
};
|
|
89
|
-
export const se_ListQuickSetupTypesCommand = async (input, context) => {
|
|
90
|
-
const b = rb(input, context);
|
|
91
|
-
const headers = {};
|
|
92
|
-
b.bp("/listQuickSetupTypes");
|
|
93
|
-
let body;
|
|
94
|
-
b.m("GET").h(headers).b(body);
|
|
95
|
-
return b.build();
|
|
96
|
-
};
|
|
97
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
98
|
-
const b = rb(input, context);
|
|
99
|
-
const headers = {};
|
|
100
|
-
b.bp("/tags/{ResourceArn}");
|
|
101
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
102
|
-
let body;
|
|
103
|
-
b.m("GET").h(headers).b(body);
|
|
104
|
-
return b.build();
|
|
105
|
-
};
|
|
106
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
107
|
-
const b = rb(input, context);
|
|
108
|
-
const headers = {
|
|
109
|
-
"content-type": "application/json",
|
|
110
|
-
};
|
|
111
|
-
b.bp("/tags/{ResourceArn}");
|
|
112
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
113
|
-
let body;
|
|
114
|
-
body = JSON.stringify(take(input, {
|
|
115
|
-
Tags: (_) => _json(_),
|
|
116
|
-
}));
|
|
117
|
-
b.m("PUT").h(headers).b(body);
|
|
118
|
-
return b.build();
|
|
119
|
-
};
|
|
120
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
121
|
-
const b = rb(input, context);
|
|
122
|
-
const headers = {};
|
|
123
|
-
b.bp("/tags/{ResourceArn}");
|
|
124
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
125
|
-
const query = map({
|
|
126
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
127
|
-
});
|
|
128
|
-
let body;
|
|
129
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
130
|
-
return b.build();
|
|
131
|
-
};
|
|
132
|
-
export const se_UpdateConfigurationDefinitionCommand = async (input, context) => {
|
|
133
|
-
const b = rb(input, context);
|
|
134
|
-
const headers = {
|
|
135
|
-
"content-type": "application/json",
|
|
136
|
-
};
|
|
137
|
-
b.bp("/configurationDefinition/{ManagerArn}/{Id}");
|
|
138
|
-
b.p("ManagerArn", () => input.ManagerArn, "{ManagerArn}", false);
|
|
139
|
-
b.p("Id", () => input.Id, "{Id}", false);
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(take(input, {
|
|
142
|
-
LocalDeploymentAdministrationRoleArn: [],
|
|
143
|
-
LocalDeploymentExecutionRoleName: [],
|
|
144
|
-
Parameters: (_) => _json(_),
|
|
145
|
-
TypeVersion: [],
|
|
146
|
-
}));
|
|
147
|
-
b.m("PUT").h(headers).b(body);
|
|
148
|
-
return b.build();
|
|
149
|
-
};
|
|
150
|
-
export const se_UpdateConfigurationManagerCommand = async (input, context) => {
|
|
151
|
-
const b = rb(input, context);
|
|
152
|
-
const headers = {
|
|
153
|
-
"content-type": "application/json",
|
|
154
|
-
};
|
|
155
|
-
b.bp("/configurationManager/{ManagerArn}");
|
|
156
|
-
b.p("ManagerArn", () => input.ManagerArn, "{ManagerArn}", false);
|
|
157
|
-
let body;
|
|
158
|
-
body = JSON.stringify(take(input, {
|
|
159
|
-
Description: [],
|
|
160
|
-
Name: [],
|
|
161
|
-
}));
|
|
162
|
-
b.m("PUT").h(headers).b(body);
|
|
163
|
-
return b.build();
|
|
164
|
-
};
|
|
165
|
-
export const se_UpdateServiceSettingsCommand = async (input, context) => {
|
|
166
|
-
const b = rb(input, context);
|
|
167
|
-
const headers = {
|
|
168
|
-
"content-type": "application/json",
|
|
169
|
-
};
|
|
170
|
-
b.bp("/serviceSettings");
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(take(input, {
|
|
173
|
-
ExplorerEnablingRoleArn: [],
|
|
174
|
-
}));
|
|
175
|
-
b.m("PUT").h(headers).b(body);
|
|
176
|
-
return b.build();
|
|
177
|
-
};
|
|
178
|
-
export const de_CreateConfigurationManagerCommand = async (output, context) => {
|
|
179
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
180
|
-
return de_CommandError(output, context);
|
|
181
|
-
}
|
|
182
|
-
const contents = map({
|
|
183
|
-
$metadata: deserializeMetadata(output),
|
|
184
|
-
});
|
|
185
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
186
|
-
const doc = take(data, {
|
|
187
|
-
ManagerArn: __expectString,
|
|
188
|
-
});
|
|
189
|
-
Object.assign(contents, doc);
|
|
190
|
-
return contents;
|
|
191
|
-
};
|
|
192
|
-
export const de_DeleteConfigurationManagerCommand = async (output, context) => {
|
|
193
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
194
|
-
return de_CommandError(output, context);
|
|
195
|
-
}
|
|
196
|
-
const contents = map({
|
|
197
|
-
$metadata: deserializeMetadata(output),
|
|
198
|
-
});
|
|
199
|
-
await collectBody(output.body, context);
|
|
200
|
-
return contents;
|
|
201
|
-
};
|
|
202
|
-
export const de_GetConfigurationCommand = async (output, context) => {
|
|
203
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
204
|
-
return de_CommandError(output, context);
|
|
205
|
-
}
|
|
206
|
-
const contents = map({
|
|
207
|
-
$metadata: deserializeMetadata(output),
|
|
208
|
-
});
|
|
209
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
210
|
-
const doc = take(data, {
|
|
211
|
-
Account: __expectString,
|
|
212
|
-
ConfigurationDefinitionId: __expectString,
|
|
213
|
-
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
214
|
-
Id: __expectString,
|
|
215
|
-
LastModifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
216
|
-
ManagerArn: __expectString,
|
|
217
|
-
Parameters: _json,
|
|
218
|
-
Region: __expectString,
|
|
219
|
-
StatusSummaries: (_) => de_StatusSummariesList(_, context),
|
|
220
|
-
Type: __expectString,
|
|
221
|
-
TypeVersion: __expectString,
|
|
222
|
-
});
|
|
223
|
-
Object.assign(contents, doc);
|
|
224
|
-
return contents;
|
|
225
|
-
};
|
|
226
|
-
export const de_GetConfigurationManagerCommand = async (output, context) => {
|
|
227
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
228
|
-
return de_CommandError(output, context);
|
|
229
|
-
}
|
|
230
|
-
const contents = map({
|
|
231
|
-
$metadata: deserializeMetadata(output),
|
|
232
|
-
});
|
|
233
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
234
|
-
const doc = take(data, {
|
|
235
|
-
ConfigurationDefinitions: _json,
|
|
236
|
-
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
237
|
-
Description: __expectString,
|
|
238
|
-
LastModifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
239
|
-
ManagerArn: __expectString,
|
|
240
|
-
Name: __expectString,
|
|
241
|
-
StatusSummaries: (_) => de_StatusSummariesList(_, context),
|
|
242
|
-
Tags: _json,
|
|
243
|
-
});
|
|
244
|
-
Object.assign(contents, doc);
|
|
245
|
-
return contents;
|
|
246
|
-
};
|
|
247
|
-
export const de_GetServiceSettingsCommand = async (output, context) => {
|
|
248
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
249
|
-
return de_CommandError(output, context);
|
|
250
|
-
}
|
|
251
|
-
const contents = map({
|
|
252
|
-
$metadata: deserializeMetadata(output),
|
|
253
|
-
});
|
|
254
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
255
|
-
const doc = take(data, {
|
|
256
|
-
ServiceSettings: _json,
|
|
257
|
-
});
|
|
258
|
-
Object.assign(contents, doc);
|
|
259
|
-
return contents;
|
|
260
|
-
};
|
|
261
|
-
export const de_ListConfigurationManagersCommand = async (output, context) => {
|
|
262
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
263
|
-
return de_CommandError(output, context);
|
|
264
|
-
}
|
|
265
|
-
const contents = map({
|
|
266
|
-
$metadata: deserializeMetadata(output),
|
|
267
|
-
});
|
|
268
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
269
|
-
const doc = take(data, {
|
|
270
|
-
ConfigurationManagersList: (_) => de_ConfigurationManagerList(_, context),
|
|
271
|
-
NextToken: __expectString,
|
|
272
|
-
});
|
|
273
|
-
Object.assign(contents, doc);
|
|
274
|
-
return contents;
|
|
275
|
-
};
|
|
276
|
-
export const de_ListConfigurationsCommand = async (output, context) => {
|
|
277
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
278
|
-
return de_CommandError(output, context);
|
|
279
|
-
}
|
|
280
|
-
const contents = map({
|
|
281
|
-
$metadata: deserializeMetadata(output),
|
|
282
|
-
});
|
|
283
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
284
|
-
const doc = take(data, {
|
|
285
|
-
ConfigurationsList: (_) => de_ConfigurationsList(_, context),
|
|
286
|
-
NextToken: __expectString,
|
|
287
|
-
});
|
|
288
|
-
Object.assign(contents, doc);
|
|
289
|
-
return contents;
|
|
290
|
-
};
|
|
291
|
-
export const de_ListQuickSetupTypesCommand = async (output, context) => {
|
|
292
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
293
|
-
return de_CommandError(output, context);
|
|
294
|
-
}
|
|
295
|
-
const contents = map({
|
|
296
|
-
$metadata: deserializeMetadata(output),
|
|
297
|
-
});
|
|
298
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
299
|
-
const doc = take(data, {
|
|
300
|
-
QuickSetupTypeList: _json,
|
|
301
|
-
});
|
|
302
|
-
Object.assign(contents, doc);
|
|
303
|
-
return contents;
|
|
304
|
-
};
|
|
305
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
306
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
307
|
-
return de_CommandError(output, context);
|
|
308
|
-
}
|
|
309
|
-
const contents = map({
|
|
310
|
-
$metadata: deserializeMetadata(output),
|
|
311
|
-
});
|
|
312
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
313
|
-
const doc = take(data, {
|
|
314
|
-
Tags: _json,
|
|
315
|
-
});
|
|
316
|
-
Object.assign(contents, doc);
|
|
317
|
-
return contents;
|
|
318
|
-
};
|
|
319
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
320
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
321
|
-
return de_CommandError(output, context);
|
|
322
|
-
}
|
|
323
|
-
const contents = map({
|
|
324
|
-
$metadata: deserializeMetadata(output),
|
|
325
|
-
});
|
|
326
|
-
await collectBody(output.body, context);
|
|
327
|
-
return contents;
|
|
328
|
-
};
|
|
329
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
330
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
331
|
-
return de_CommandError(output, context);
|
|
332
|
-
}
|
|
333
|
-
const contents = map({
|
|
334
|
-
$metadata: deserializeMetadata(output),
|
|
335
|
-
});
|
|
336
|
-
await collectBody(output.body, context);
|
|
337
|
-
return contents;
|
|
338
|
-
};
|
|
339
|
-
export const de_UpdateConfigurationDefinitionCommand = async (output, context) => {
|
|
340
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
341
|
-
return de_CommandError(output, context);
|
|
342
|
-
}
|
|
343
|
-
const contents = map({
|
|
344
|
-
$metadata: deserializeMetadata(output),
|
|
345
|
-
});
|
|
346
|
-
await collectBody(output.body, context);
|
|
347
|
-
return contents;
|
|
348
|
-
};
|
|
349
|
-
export const de_UpdateConfigurationManagerCommand = async (output, context) => {
|
|
350
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
351
|
-
return de_CommandError(output, context);
|
|
352
|
-
}
|
|
353
|
-
const contents = map({
|
|
354
|
-
$metadata: deserializeMetadata(output),
|
|
355
|
-
});
|
|
356
|
-
await collectBody(output.body, context);
|
|
357
|
-
return contents;
|
|
358
|
-
};
|
|
359
|
-
export const de_UpdateServiceSettingsCommand = async (output, context) => {
|
|
360
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
361
|
-
return de_CommandError(output, context);
|
|
362
|
-
}
|
|
363
|
-
const contents = map({
|
|
364
|
-
$metadata: deserializeMetadata(output),
|
|
365
|
-
});
|
|
366
|
-
await collectBody(output.body, context);
|
|
367
|
-
return contents;
|
|
368
|
-
};
|
|
369
|
-
const de_CommandError = async (output, context) => {
|
|
370
|
-
const parsedOutput = {
|
|
371
|
-
...output,
|
|
372
|
-
body: await parseErrorBody(output.body, context),
|
|
373
|
-
};
|
|
374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
375
|
-
switch (errorCode) {
|
|
376
|
-
case "AccessDeniedException":
|
|
377
|
-
case "com.amazonaws.ssmquicksetup#AccessDeniedException":
|
|
378
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
379
|
-
case "ConflictException":
|
|
380
|
-
case "com.amazonaws.ssmquicksetup#ConflictException":
|
|
381
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
382
|
-
case "InternalServerException":
|
|
383
|
-
case "com.amazonaws.ssmquicksetup#InternalServerException":
|
|
384
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
385
|
-
case "ThrottlingException":
|
|
386
|
-
case "com.amazonaws.ssmquicksetup#ThrottlingException":
|
|
387
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
388
|
-
case "ValidationException":
|
|
389
|
-
case "com.amazonaws.ssmquicksetup#ValidationException":
|
|
390
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
391
|
-
case "ResourceNotFoundException":
|
|
392
|
-
case "com.amazonaws.ssmquicksetup#ResourceNotFoundException":
|
|
393
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
394
|
-
default:
|
|
395
|
-
const parsedBody = parsedOutput.body;
|
|
396
|
-
return throwDefaultError({
|
|
397
|
-
output,
|
|
398
|
-
parsedBody,
|
|
399
|
-
errorCode,
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
404
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
405
|
-
const contents = map({});
|
|
406
|
-
const data = parsedOutput.body;
|
|
407
|
-
const doc = take(data, {
|
|
408
|
-
Message: __expectString,
|
|
409
|
-
});
|
|
410
|
-
Object.assign(contents, doc);
|
|
411
|
-
const exception = new AccessDeniedException({
|
|
412
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
413
|
-
...contents,
|
|
414
|
-
});
|
|
415
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
416
|
-
};
|
|
417
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
418
|
-
const contents = map({});
|
|
419
|
-
const data = parsedOutput.body;
|
|
420
|
-
const doc = take(data, {
|
|
421
|
-
Message: __expectString,
|
|
422
|
-
});
|
|
423
|
-
Object.assign(contents, doc);
|
|
424
|
-
const exception = new ConflictException({
|
|
425
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
426
|
-
...contents,
|
|
427
|
-
});
|
|
428
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
429
|
-
};
|
|
430
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
431
|
-
const contents = map({});
|
|
432
|
-
const data = parsedOutput.body;
|
|
433
|
-
const doc = take(data, {
|
|
434
|
-
Message: __expectString,
|
|
435
|
-
});
|
|
436
|
-
Object.assign(contents, doc);
|
|
437
|
-
const exception = new InternalServerException({
|
|
438
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
439
|
-
...contents,
|
|
440
|
-
});
|
|
441
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
442
|
-
};
|
|
443
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
444
|
-
const contents = map({});
|
|
445
|
-
const data = parsedOutput.body;
|
|
446
|
-
const doc = take(data, {
|
|
447
|
-
Message: __expectString,
|
|
448
|
-
});
|
|
449
|
-
Object.assign(contents, doc);
|
|
450
|
-
const exception = new ResourceNotFoundException({
|
|
451
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
452
|
-
...contents,
|
|
453
|
-
});
|
|
454
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
455
|
-
};
|
|
456
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
457
|
-
const contents = map({});
|
|
458
|
-
const data = parsedOutput.body;
|
|
459
|
-
const doc = take(data, {
|
|
460
|
-
Message: __expectString,
|
|
461
|
-
});
|
|
462
|
-
Object.assign(contents, doc);
|
|
463
|
-
const exception = new ThrottlingException({
|
|
464
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
465
|
-
...contents,
|
|
466
|
-
});
|
|
467
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
468
|
-
};
|
|
469
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
470
|
-
const contents = map({});
|
|
471
|
-
const data = parsedOutput.body;
|
|
472
|
-
const doc = take(data, {
|
|
473
|
-
Message: __expectString,
|
|
474
|
-
});
|
|
475
|
-
Object.assign(contents, doc);
|
|
476
|
-
const exception = new ValidationException({
|
|
477
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
478
|
-
...contents,
|
|
479
|
-
});
|
|
480
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
481
|
-
};
|
|
482
|
-
const de_ConfigurationManagerList = (output, context) => {
|
|
483
|
-
const retVal = (output || [])
|
|
484
|
-
.filter((e) => e != null)
|
|
485
|
-
.map((entry) => {
|
|
486
|
-
return de_ConfigurationManagerSummary(entry, context);
|
|
487
|
-
});
|
|
488
|
-
return retVal;
|
|
489
|
-
};
|
|
490
|
-
const de_ConfigurationManagerSummary = (output, context) => {
|
|
491
|
-
return take(output, {
|
|
492
|
-
ConfigurationDefinitionSummaries: _json,
|
|
493
|
-
Description: __expectString,
|
|
494
|
-
ManagerArn: __expectString,
|
|
495
|
-
Name: __expectString,
|
|
496
|
-
StatusSummaries: (_) => de_StatusSummariesList(_, context),
|
|
497
|
-
});
|
|
498
|
-
};
|
|
499
|
-
const de_ConfigurationsList = (output, context) => {
|
|
500
|
-
const retVal = (output || [])
|
|
501
|
-
.filter((e) => e != null)
|
|
502
|
-
.map((entry) => {
|
|
503
|
-
return de_ConfigurationSummary(entry, context);
|
|
504
|
-
});
|
|
505
|
-
return retVal;
|
|
506
|
-
};
|
|
507
|
-
const de_ConfigurationSummary = (output, context) => {
|
|
508
|
-
return take(output, {
|
|
509
|
-
Account: __expectString,
|
|
510
|
-
ConfigurationDefinitionId: __expectString,
|
|
511
|
-
CreatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
512
|
-
FirstClassParameters: _json,
|
|
513
|
-
Id: __expectString,
|
|
514
|
-
ManagerArn: __expectString,
|
|
515
|
-
Region: __expectString,
|
|
516
|
-
StatusSummaries: (_) => de_StatusSummariesList(_, context),
|
|
517
|
-
Type: __expectString,
|
|
518
|
-
TypeVersion: __expectString,
|
|
519
|
-
});
|
|
520
|
-
};
|
|
521
|
-
const de_StatusSummariesList = (output, context) => {
|
|
522
|
-
const retVal = (output || [])
|
|
523
|
-
.filter((e) => e != null)
|
|
524
|
-
.map((entry) => {
|
|
525
|
-
return de_StatusSummary(entry, context);
|
|
526
|
-
});
|
|
527
|
-
return retVal;
|
|
528
|
-
};
|
|
529
|
-
const de_StatusSummary = (output, context) => {
|
|
530
|
-
return take(output, {
|
|
531
|
-
LastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
532
|
-
Status: __expectString,
|
|
533
|
-
StatusDetails: _json,
|
|
534
|
-
StatusMessage: __expectString,
|
|
535
|
-
StatusType: __expectString,
|
|
536
|
-
});
|
|
537
|
-
};
|
|
538
|
-
const deserializeMetadata = (output) => ({
|
|
539
|
-
httpStatusCode: output.statusCode,
|
|
540
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
541
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
542
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
543
|
-
});
|
|
544
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
545
|
-
const _TK = "TagKeys";
|
|
546
|
-
const _tK = "tagKeys";
|