@aws-sdk/client-dsql 3.928.0 → 3.930.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 +497 -598
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/DSQLClient.js +2 -0
- package/dist-es/commands/CreateClusterCommand.js +3 -9
- package/dist-es/commands/DeleteClusterCommand.js +3 -9
- package/dist-es/commands/DeleteClusterPolicyCommand.js +3 -9
- package/dist-es/commands/GetClusterCommand.js +3 -9
- package/dist-es/commands/GetClusterPolicyCommand.js +3 -9
- package/dist-es/commands/GetVpcEndpointServiceNameCommand.js +3 -9
- package/dist-es/commands/ListClustersCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/PutClusterPolicyCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateClusterCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +463 -0
- package/dist-types/DSQLClient.d.ts +10 -1
- 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 +53 -0
- package/dist-types/ts3.4/DSQLClient.d.ts +4 -0
- 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 +58 -0
- package/package.json +34 -35
- package/dist-es/protocols/Aws_restJson1.js +0 -504
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -110
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -149
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticStructureSchema,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
8
|
+
export declare var ClusterSummary: StaticStructureSchema;
|
|
9
|
+
export declare var ConflictException: StaticErrorSchema;
|
|
10
|
+
export declare var CreateClusterInput: StaticStructureSchema;
|
|
11
|
+
export declare var CreateClusterOutput: StaticStructureSchema;
|
|
12
|
+
export declare var DeleteClusterInput: StaticStructureSchema;
|
|
13
|
+
export declare var DeleteClusterOutput: StaticStructureSchema;
|
|
14
|
+
export declare var DeleteClusterPolicyInput: StaticStructureSchema;
|
|
15
|
+
export declare var DeleteClusterPolicyOutput: StaticStructureSchema;
|
|
16
|
+
export declare var EncryptionDetails: StaticStructureSchema;
|
|
17
|
+
export declare var GetClusterInput: StaticStructureSchema;
|
|
18
|
+
export declare var GetClusterOutput: StaticStructureSchema;
|
|
19
|
+
export declare var GetClusterPolicyInput: StaticStructureSchema;
|
|
20
|
+
export declare var GetClusterPolicyOutput: StaticStructureSchema;
|
|
21
|
+
export declare var GetVpcEndpointServiceNameInput: StaticStructureSchema;
|
|
22
|
+
export declare var GetVpcEndpointServiceNameOutput: StaticStructureSchema;
|
|
23
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
24
|
+
export declare var ListClustersInput: StaticStructureSchema;
|
|
25
|
+
export declare var ListClustersOutput: StaticStructureSchema;
|
|
26
|
+
export declare var ListTagsForResourceInput: StaticStructureSchema;
|
|
27
|
+
export declare var ListTagsForResourceOutput: StaticStructureSchema;
|
|
28
|
+
export declare var MultiRegionProperties: StaticStructureSchema;
|
|
29
|
+
export declare var PutClusterPolicyInput: StaticStructureSchema;
|
|
30
|
+
export declare var PutClusterPolicyOutput: StaticStructureSchema;
|
|
31
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
32
|
+
export declare var ServiceQuotaExceededException: StaticErrorSchema;
|
|
33
|
+
export declare var TagResourceInput: StaticStructureSchema;
|
|
34
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
35
|
+
export declare var UntagResourceInput: StaticStructureSchema;
|
|
36
|
+
export declare var UpdateClusterInput: StaticStructureSchema;
|
|
37
|
+
export declare var UpdateClusterOutput: StaticStructureSchema;
|
|
38
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
39
|
+
export declare var ValidationExceptionField: StaticStructureSchema;
|
|
40
|
+
export declare var __Unit: "unit";
|
|
41
|
+
export declare var DSQLServiceException: StaticErrorSchema;
|
|
42
|
+
export declare var ClusterArnList: number;
|
|
43
|
+
export declare var ClusterList: StaticListSchema;
|
|
44
|
+
export declare var TagKeyList: number;
|
|
45
|
+
export declare var ValidationExceptionFieldList: StaticListSchema;
|
|
46
|
+
export declare var TagMap: number;
|
|
47
|
+
export declare var CreateCluster: StaticOperationSchema;
|
|
48
|
+
export declare var DeleteCluster: StaticOperationSchema;
|
|
49
|
+
export declare var DeleteClusterPolicy: StaticOperationSchema;
|
|
50
|
+
export declare var GetCluster: StaticOperationSchema;
|
|
51
|
+
export declare var GetClusterPolicy: StaticOperationSchema;
|
|
52
|
+
export declare var GetVpcEndpointServiceName: StaticOperationSchema;
|
|
53
|
+
export declare var ListClusters: StaticOperationSchema;
|
|
54
|
+
export declare var ListTagsForResource: StaticOperationSchema;
|
|
55
|
+
export declare var PutClusterPolicy: StaticOperationSchema;
|
|
56
|
+
export declare var TagResource: StaticOperationSchema;
|
|
57
|
+
export declare var UntagResource: StaticOperationSchema;
|
|
58
|
+
export declare var UpdateCluster: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dsql",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dsql Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.930.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-dsql",
|
|
@@ -20,44 +20,43 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
34
|
-
"@smithy/config-resolver": "^4.4.
|
|
35
|
-
"@smithy/core": "^3.
|
|
36
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
37
|
-
"@smithy/hash-node": "^4.2.
|
|
38
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
39
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
41
|
-
"@smithy/middleware-retry": "^4.4.
|
|
42
|
-
"@smithy/middleware-serde": "^4.2.
|
|
43
|
-
"@smithy/middleware-stack": "^4.2.
|
|
44
|
-
"@smithy/node-config-provider": "^4.3.
|
|
45
|
-
"@smithy/node-http-handler": "^4.4.
|
|
46
|
-
"@smithy/protocol-http": "^5.3.
|
|
47
|
-
"@smithy/smithy-client": "^4.9.
|
|
48
|
-
"@smithy/types": "^4.
|
|
49
|
-
"@smithy/url-parser": "^4.2.
|
|
23
|
+
"@aws-sdk/core": "3.930.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.930.0",
|
|
25
|
+
"@aws-sdk/middleware-host-header": "3.930.0",
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.930.0",
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.930.0",
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.930.0",
|
|
29
|
+
"@aws-sdk/region-config-resolver": "3.930.0",
|
|
30
|
+
"@aws-sdk/types": "3.930.0",
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.930.0",
|
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.930.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.930.0",
|
|
34
|
+
"@smithy/config-resolver": "^4.4.3",
|
|
35
|
+
"@smithy/core": "^3.18.2",
|
|
36
|
+
"@smithy/fetch-http-handler": "^5.3.6",
|
|
37
|
+
"@smithy/hash-node": "^4.2.5",
|
|
38
|
+
"@smithy/invalid-dependency": "^4.2.5",
|
|
39
|
+
"@smithy/middleware-content-length": "^4.2.5",
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.3.9",
|
|
41
|
+
"@smithy/middleware-retry": "^4.4.9",
|
|
42
|
+
"@smithy/middleware-serde": "^4.2.5",
|
|
43
|
+
"@smithy/middleware-stack": "^4.2.5",
|
|
44
|
+
"@smithy/node-config-provider": "^4.3.5",
|
|
45
|
+
"@smithy/node-http-handler": "^4.4.5",
|
|
46
|
+
"@smithy/protocol-http": "^5.3.5",
|
|
47
|
+
"@smithy/smithy-client": "^4.9.5",
|
|
48
|
+
"@smithy/types": "^4.9.0",
|
|
49
|
+
"@smithy/url-parser": "^4.2.5",
|
|
50
50
|
"@smithy/util-base64": "^4.3.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
55
|
-
"@smithy/util-endpoints": "^3.2.
|
|
56
|
-
"@smithy/util-middleware": "^4.2.
|
|
57
|
-
"@smithy/util-retry": "^4.2.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.3.8",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.2.11",
|
|
55
|
+
"@smithy/util-endpoints": "^3.2.5",
|
|
56
|
+
"@smithy/util-middleware": "^4.2.5",
|
|
57
|
+
"@smithy/util-retry": "^4.2.5",
|
|
58
58
|
"@smithy/util-utf8": "^4.2.0",
|
|
59
|
-
"@smithy/util-waiter": "^4.2.
|
|
60
|
-
"@smithy/uuid": "^1.1.0",
|
|
59
|
+
"@smithy/util-waiter": "^4.2.5",
|
|
61
60
|
"tslib": "^2.6.2"
|
|
62
61
|
},
|
|
63
62
|
"devDependencies": {
|
|
@@ -1,504 +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, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { DSQLServiceException as __BaseException } from "../models/DSQLServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_CreateClusterCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/cluster");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
bypassPolicyLockoutSafetyCheck: [],
|
|
16
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
17
|
-
deletionProtectionEnabled: [],
|
|
18
|
-
kmsEncryptionKey: [],
|
|
19
|
-
multiRegionProperties: (_) => _json(_),
|
|
20
|
-
policy: [],
|
|
21
|
-
tags: (_) => _json(_),
|
|
22
|
-
}));
|
|
23
|
-
b.m("POST").h(headers).b(body);
|
|
24
|
-
return b.build();
|
|
25
|
-
};
|
|
26
|
-
export const se_DeleteClusterCommand = async (input, context) => {
|
|
27
|
-
const b = rb(input, context);
|
|
28
|
-
const headers = {};
|
|
29
|
-
b.bp("/cluster/{identifier}");
|
|
30
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
31
|
-
const query = map({
|
|
32
|
-
[_ct]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
33
|
-
});
|
|
34
|
-
let body;
|
|
35
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
36
|
-
return b.build();
|
|
37
|
-
};
|
|
38
|
-
export const se_DeleteClusterPolicyCommand = async (input, context) => {
|
|
39
|
-
const b = rb(input, context);
|
|
40
|
-
const headers = {};
|
|
41
|
-
b.bp("/cluster/{identifier}/policy");
|
|
42
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
43
|
-
const query = map({
|
|
44
|
-
[_epv]: [, input[_ePV]],
|
|
45
|
-
[_ct]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
46
|
-
});
|
|
47
|
-
let body;
|
|
48
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
49
|
-
return b.build();
|
|
50
|
-
};
|
|
51
|
-
export const se_GetClusterCommand = async (input, context) => {
|
|
52
|
-
const b = rb(input, context);
|
|
53
|
-
const headers = {};
|
|
54
|
-
b.bp("/cluster/{identifier}");
|
|
55
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
56
|
-
let body;
|
|
57
|
-
b.m("GET").h(headers).b(body);
|
|
58
|
-
return b.build();
|
|
59
|
-
};
|
|
60
|
-
export const se_GetClusterPolicyCommand = async (input, context) => {
|
|
61
|
-
const b = rb(input, context);
|
|
62
|
-
const headers = {};
|
|
63
|
-
b.bp("/cluster/{identifier}/policy");
|
|
64
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
65
|
-
let body;
|
|
66
|
-
b.m("GET").h(headers).b(body);
|
|
67
|
-
return b.build();
|
|
68
|
-
};
|
|
69
|
-
export const se_GetVpcEndpointServiceNameCommand = async (input, context) => {
|
|
70
|
-
const b = rb(input, context);
|
|
71
|
-
const headers = {};
|
|
72
|
-
b.bp("/clusters/{identifier}/vpc-endpoint-service-name");
|
|
73
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
74
|
-
let body;
|
|
75
|
-
b.m("GET").h(headers).b(body);
|
|
76
|
-
return b.build();
|
|
77
|
-
};
|
|
78
|
-
export const se_ListClustersCommand = async (input, context) => {
|
|
79
|
-
const b = rb(input, context);
|
|
80
|
-
const headers = {};
|
|
81
|
-
b.bp("/cluster");
|
|
82
|
-
const query = map({
|
|
83
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
84
|
-
[_nt]: [, input[_nT]],
|
|
85
|
-
});
|
|
86
|
-
let body;
|
|
87
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
88
|
-
return b.build();
|
|
89
|
-
};
|
|
90
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
91
|
-
const b = rb(input, context);
|
|
92
|
-
const headers = {};
|
|
93
|
-
b.bp("/tags/{resourceArn}");
|
|
94
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
95
|
-
let body;
|
|
96
|
-
b.m("GET").h(headers).b(body);
|
|
97
|
-
return b.build();
|
|
98
|
-
};
|
|
99
|
-
export const se_PutClusterPolicyCommand = async (input, context) => {
|
|
100
|
-
const b = rb(input, context);
|
|
101
|
-
const headers = {
|
|
102
|
-
"content-type": "application/json",
|
|
103
|
-
};
|
|
104
|
-
b.bp("/cluster/{identifier}/policy");
|
|
105
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
106
|
-
let body;
|
|
107
|
-
body = JSON.stringify(take(input, {
|
|
108
|
-
bypassPolicyLockoutSafetyCheck: [],
|
|
109
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
110
|
-
expectedPolicyVersion: [],
|
|
111
|
-
policy: [],
|
|
112
|
-
}));
|
|
113
|
-
b.m("POST").h(headers).b(body);
|
|
114
|
-
return b.build();
|
|
115
|
-
};
|
|
116
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
117
|
-
const b = rb(input, context);
|
|
118
|
-
const headers = {
|
|
119
|
-
"content-type": "application/json",
|
|
120
|
-
};
|
|
121
|
-
b.bp("/tags/{resourceArn}");
|
|
122
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify(take(input, {
|
|
125
|
-
tags: (_) => _json(_),
|
|
126
|
-
}));
|
|
127
|
-
b.m("POST").h(headers).b(body);
|
|
128
|
-
return b.build();
|
|
129
|
-
};
|
|
130
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
131
|
-
const b = rb(input, context);
|
|
132
|
-
const headers = {};
|
|
133
|
-
b.bp("/tags/{resourceArn}");
|
|
134
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
135
|
-
const query = map({
|
|
136
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
137
|
-
});
|
|
138
|
-
let body;
|
|
139
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
140
|
-
return b.build();
|
|
141
|
-
};
|
|
142
|
-
export const se_UpdateClusterCommand = async (input, context) => {
|
|
143
|
-
const b = rb(input, context);
|
|
144
|
-
const headers = {
|
|
145
|
-
"content-type": "application/json",
|
|
146
|
-
};
|
|
147
|
-
b.bp("/cluster/{identifier}");
|
|
148
|
-
b.p("identifier", () => input.identifier, "{identifier}", false);
|
|
149
|
-
let body;
|
|
150
|
-
body = JSON.stringify(take(input, {
|
|
151
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
152
|
-
deletionProtectionEnabled: [],
|
|
153
|
-
kmsEncryptionKey: [],
|
|
154
|
-
multiRegionProperties: (_) => _json(_),
|
|
155
|
-
}));
|
|
156
|
-
b.m("POST").h(headers).b(body);
|
|
157
|
-
return b.build();
|
|
158
|
-
};
|
|
159
|
-
export const de_CreateClusterCommand = async (output, context) => {
|
|
160
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
161
|
-
return de_CommandError(output, context);
|
|
162
|
-
}
|
|
163
|
-
const contents = map({
|
|
164
|
-
$metadata: deserializeMetadata(output),
|
|
165
|
-
});
|
|
166
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
167
|
-
const doc = take(data, {
|
|
168
|
-
arn: __expectString,
|
|
169
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
170
|
-
deletionProtectionEnabled: __expectBoolean,
|
|
171
|
-
encryptionDetails: _json,
|
|
172
|
-
endpoint: __expectString,
|
|
173
|
-
identifier: __expectString,
|
|
174
|
-
multiRegionProperties: _json,
|
|
175
|
-
status: __expectString,
|
|
176
|
-
});
|
|
177
|
-
Object.assign(contents, doc);
|
|
178
|
-
return contents;
|
|
179
|
-
};
|
|
180
|
-
export const de_DeleteClusterCommand = async (output, context) => {
|
|
181
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
182
|
-
return de_CommandError(output, context);
|
|
183
|
-
}
|
|
184
|
-
const contents = map({
|
|
185
|
-
$metadata: deserializeMetadata(output),
|
|
186
|
-
});
|
|
187
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
188
|
-
const doc = take(data, {
|
|
189
|
-
arn: __expectString,
|
|
190
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
191
|
-
identifier: __expectString,
|
|
192
|
-
status: __expectString,
|
|
193
|
-
});
|
|
194
|
-
Object.assign(contents, doc);
|
|
195
|
-
return contents;
|
|
196
|
-
};
|
|
197
|
-
export const de_DeleteClusterPolicyCommand = async (output, context) => {
|
|
198
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
199
|
-
return de_CommandError(output, context);
|
|
200
|
-
}
|
|
201
|
-
const contents = map({
|
|
202
|
-
$metadata: deserializeMetadata(output),
|
|
203
|
-
});
|
|
204
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
205
|
-
const doc = take(data, {
|
|
206
|
-
policyVersion: __expectString,
|
|
207
|
-
});
|
|
208
|
-
Object.assign(contents, doc);
|
|
209
|
-
return contents;
|
|
210
|
-
};
|
|
211
|
-
export const de_GetClusterCommand = async (output, context) => {
|
|
212
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
213
|
-
return de_CommandError(output, context);
|
|
214
|
-
}
|
|
215
|
-
const contents = map({
|
|
216
|
-
$metadata: deserializeMetadata(output),
|
|
217
|
-
});
|
|
218
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
219
|
-
const doc = take(data, {
|
|
220
|
-
arn: __expectString,
|
|
221
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
222
|
-
deletionProtectionEnabled: __expectBoolean,
|
|
223
|
-
encryptionDetails: _json,
|
|
224
|
-
endpoint: __expectString,
|
|
225
|
-
identifier: __expectString,
|
|
226
|
-
multiRegionProperties: _json,
|
|
227
|
-
status: __expectString,
|
|
228
|
-
tags: _json,
|
|
229
|
-
});
|
|
230
|
-
Object.assign(contents, doc);
|
|
231
|
-
return contents;
|
|
232
|
-
};
|
|
233
|
-
export const de_GetClusterPolicyCommand = async (output, context) => {
|
|
234
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
235
|
-
return de_CommandError(output, context);
|
|
236
|
-
}
|
|
237
|
-
const contents = map({
|
|
238
|
-
$metadata: deserializeMetadata(output),
|
|
239
|
-
});
|
|
240
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
241
|
-
const doc = take(data, {
|
|
242
|
-
policy: __expectString,
|
|
243
|
-
policyVersion: __expectString,
|
|
244
|
-
});
|
|
245
|
-
Object.assign(contents, doc);
|
|
246
|
-
return contents;
|
|
247
|
-
};
|
|
248
|
-
export const de_GetVpcEndpointServiceNameCommand = async (output, context) => {
|
|
249
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
250
|
-
return de_CommandError(output, context);
|
|
251
|
-
}
|
|
252
|
-
const contents = map({
|
|
253
|
-
$metadata: deserializeMetadata(output),
|
|
254
|
-
});
|
|
255
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
256
|
-
const doc = take(data, {
|
|
257
|
-
serviceName: __expectString,
|
|
258
|
-
});
|
|
259
|
-
Object.assign(contents, doc);
|
|
260
|
-
return contents;
|
|
261
|
-
};
|
|
262
|
-
export const de_ListClustersCommand = async (output, context) => {
|
|
263
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
264
|
-
return de_CommandError(output, context);
|
|
265
|
-
}
|
|
266
|
-
const contents = map({
|
|
267
|
-
$metadata: deserializeMetadata(output),
|
|
268
|
-
});
|
|
269
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
270
|
-
const doc = take(data, {
|
|
271
|
-
clusters: _json,
|
|
272
|
-
nextToken: __expectString,
|
|
273
|
-
});
|
|
274
|
-
Object.assign(contents, doc);
|
|
275
|
-
return contents;
|
|
276
|
-
};
|
|
277
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
278
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
279
|
-
return de_CommandError(output, context);
|
|
280
|
-
}
|
|
281
|
-
const contents = map({
|
|
282
|
-
$metadata: deserializeMetadata(output),
|
|
283
|
-
});
|
|
284
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
285
|
-
const doc = take(data, {
|
|
286
|
-
tags: _json,
|
|
287
|
-
});
|
|
288
|
-
Object.assign(contents, doc);
|
|
289
|
-
return contents;
|
|
290
|
-
};
|
|
291
|
-
export const de_PutClusterPolicyCommand = 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
|
-
policyVersion: __expectString,
|
|
301
|
-
});
|
|
302
|
-
Object.assign(contents, doc);
|
|
303
|
-
return contents;
|
|
304
|
-
};
|
|
305
|
-
export const de_TagResourceCommand = 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
|
-
await collectBody(output.body, context);
|
|
313
|
-
return contents;
|
|
314
|
-
};
|
|
315
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
316
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
317
|
-
return de_CommandError(output, context);
|
|
318
|
-
}
|
|
319
|
-
const contents = map({
|
|
320
|
-
$metadata: deserializeMetadata(output),
|
|
321
|
-
});
|
|
322
|
-
await collectBody(output.body, context);
|
|
323
|
-
return contents;
|
|
324
|
-
};
|
|
325
|
-
export const de_UpdateClusterCommand = async (output, context) => {
|
|
326
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
327
|
-
return de_CommandError(output, context);
|
|
328
|
-
}
|
|
329
|
-
const contents = map({
|
|
330
|
-
$metadata: deserializeMetadata(output),
|
|
331
|
-
});
|
|
332
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
333
|
-
const doc = take(data, {
|
|
334
|
-
arn: __expectString,
|
|
335
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
336
|
-
identifier: __expectString,
|
|
337
|
-
status: __expectString,
|
|
338
|
-
});
|
|
339
|
-
Object.assign(contents, doc);
|
|
340
|
-
return contents;
|
|
341
|
-
};
|
|
342
|
-
const de_CommandError = async (output, context) => {
|
|
343
|
-
const parsedOutput = {
|
|
344
|
-
...output,
|
|
345
|
-
body: await parseErrorBody(output.body, context),
|
|
346
|
-
};
|
|
347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
348
|
-
switch (errorCode) {
|
|
349
|
-
case "AccessDeniedException":
|
|
350
|
-
case "com.amazonaws.dsql#AccessDeniedException":
|
|
351
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
352
|
-
case "ConflictException":
|
|
353
|
-
case "com.amazonaws.dsql#ConflictException":
|
|
354
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
355
|
-
case "InternalServerException":
|
|
356
|
-
case "com.amazonaws.dsql#InternalServerException":
|
|
357
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
358
|
-
case "ServiceQuotaExceededException":
|
|
359
|
-
case "com.amazonaws.dsql#ServiceQuotaExceededException":
|
|
360
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
361
|
-
case "ThrottlingException":
|
|
362
|
-
case "com.amazonaws.dsql#ThrottlingException":
|
|
363
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
364
|
-
case "ValidationException":
|
|
365
|
-
case "com.amazonaws.dsql#ValidationException":
|
|
366
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
367
|
-
case "ResourceNotFoundException":
|
|
368
|
-
case "com.amazonaws.dsql#ResourceNotFoundException":
|
|
369
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
370
|
-
default:
|
|
371
|
-
const parsedBody = parsedOutput.body;
|
|
372
|
-
return throwDefaultError({
|
|
373
|
-
output,
|
|
374
|
-
parsedBody,
|
|
375
|
-
errorCode,
|
|
376
|
-
});
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
380
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
381
|
-
const contents = map({});
|
|
382
|
-
const data = parsedOutput.body;
|
|
383
|
-
const doc = take(data, {
|
|
384
|
-
message: __expectString,
|
|
385
|
-
});
|
|
386
|
-
Object.assign(contents, doc);
|
|
387
|
-
const exception = new AccessDeniedException({
|
|
388
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
389
|
-
...contents,
|
|
390
|
-
});
|
|
391
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
392
|
-
};
|
|
393
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
394
|
-
const contents = map({});
|
|
395
|
-
const data = parsedOutput.body;
|
|
396
|
-
const doc = take(data, {
|
|
397
|
-
message: __expectString,
|
|
398
|
-
resourceId: __expectString,
|
|
399
|
-
resourceType: __expectString,
|
|
400
|
-
});
|
|
401
|
-
Object.assign(contents, doc);
|
|
402
|
-
const exception = new ConflictException({
|
|
403
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
404
|
-
...contents,
|
|
405
|
-
});
|
|
406
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
407
|
-
};
|
|
408
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
409
|
-
const contents = map({
|
|
410
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
411
|
-
});
|
|
412
|
-
const data = parsedOutput.body;
|
|
413
|
-
const doc = take(data, {
|
|
414
|
-
message: __expectString,
|
|
415
|
-
});
|
|
416
|
-
Object.assign(contents, doc);
|
|
417
|
-
const exception = new InternalServerException({
|
|
418
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
419
|
-
...contents,
|
|
420
|
-
});
|
|
421
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
422
|
-
};
|
|
423
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
424
|
-
const contents = map({});
|
|
425
|
-
const data = parsedOutput.body;
|
|
426
|
-
const doc = take(data, {
|
|
427
|
-
message: __expectString,
|
|
428
|
-
resourceId: __expectString,
|
|
429
|
-
resourceType: __expectString,
|
|
430
|
-
});
|
|
431
|
-
Object.assign(contents, doc);
|
|
432
|
-
const exception = new ResourceNotFoundException({
|
|
433
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
434
|
-
...contents,
|
|
435
|
-
});
|
|
436
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
437
|
-
};
|
|
438
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
439
|
-
const contents = map({});
|
|
440
|
-
const data = parsedOutput.body;
|
|
441
|
-
const doc = take(data, {
|
|
442
|
-
message: __expectString,
|
|
443
|
-
quotaCode: __expectString,
|
|
444
|
-
resourceId: __expectString,
|
|
445
|
-
resourceType: __expectString,
|
|
446
|
-
serviceCode: __expectString,
|
|
447
|
-
});
|
|
448
|
-
Object.assign(contents, doc);
|
|
449
|
-
const exception = new ServiceQuotaExceededException({
|
|
450
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
451
|
-
...contents,
|
|
452
|
-
});
|
|
453
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
454
|
-
};
|
|
455
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
456
|
-
const contents = map({
|
|
457
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
458
|
-
});
|
|
459
|
-
const data = parsedOutput.body;
|
|
460
|
-
const doc = take(data, {
|
|
461
|
-
message: __expectString,
|
|
462
|
-
quotaCode: __expectString,
|
|
463
|
-
serviceCode: __expectString,
|
|
464
|
-
});
|
|
465
|
-
Object.assign(contents, doc);
|
|
466
|
-
const exception = new ThrottlingException({
|
|
467
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
468
|
-
...contents,
|
|
469
|
-
});
|
|
470
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
471
|
-
};
|
|
472
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
473
|
-
const contents = map({});
|
|
474
|
-
const data = parsedOutput.body;
|
|
475
|
-
const doc = take(data, {
|
|
476
|
-
fieldList: _json,
|
|
477
|
-
message: __expectString,
|
|
478
|
-
reason: __expectString,
|
|
479
|
-
});
|
|
480
|
-
Object.assign(contents, doc);
|
|
481
|
-
const exception = new ValidationException({
|
|
482
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
483
|
-
...contents,
|
|
484
|
-
});
|
|
485
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
486
|
-
};
|
|
487
|
-
const deserializeMetadata = (output) => ({
|
|
488
|
-
httpStatusCode: output.statusCode,
|
|
489
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
490
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
491
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
492
|
-
});
|
|
493
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
494
|
-
const _cT = "clientToken";
|
|
495
|
-
const _ct = "client-token";
|
|
496
|
-
const _ePV = "expectedPolicyVersion";
|
|
497
|
-
const _epv = "expected-policy-version";
|
|
498
|
-
const _mR = "maxResults";
|
|
499
|
-
const _mr = "max-results";
|
|
500
|
-
const _nT = "nextToken";
|
|
501
|
-
const _nt = "next-token";
|
|
502
|
-
const _rAS = "retryAfterSeconds";
|
|
503
|
-
const _ra = "retry-after";
|
|
504
|
-
const _tK = "tagKeys";
|