@aws-sdk/client-athena 3.231.0 → 3.235.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.
@@ -1,318 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- exports.ruleSet = {
5
- version: "1.0",
6
- parameters: {
7
- Region: {
8
- builtIn: "AWS::Region",
9
- required: false,
10
- documentation: "The AWS region used to dispatch the request.",
11
- type: "String",
12
- },
13
- UseDualStack: {
14
- builtIn: "AWS::UseDualStack",
15
- required: true,
16
- default: false,
17
- documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
18
- type: "Boolean",
19
- },
20
- UseFIPS: {
21
- builtIn: "AWS::UseFIPS",
22
- required: true,
23
- default: false,
24
- documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
25
- type: "Boolean",
26
- },
27
- Endpoint: {
28
- builtIn: "SDK::Endpoint",
29
- required: false,
30
- documentation: "Override the endpoint used to send this request",
31
- type: "String",
32
- },
33
- },
34
- rules: [
35
- {
36
- conditions: [
37
- {
38
- fn: "aws.partition",
39
- argv: [
40
- {
41
- ref: "Region",
42
- },
43
- ],
44
- assign: "PartitionResult",
45
- },
46
- ],
47
- type: "tree",
48
- rules: [
49
- {
50
- conditions: [
51
- {
52
- fn: "isSet",
53
- argv: [
54
- {
55
- ref: "Endpoint",
56
- },
57
- ],
58
- },
59
- {
60
- fn: "parseURL",
61
- argv: [
62
- {
63
- ref: "Endpoint",
64
- },
65
- ],
66
- assign: "url",
67
- },
68
- ],
69
- type: "tree",
70
- rules: [
71
- {
72
- conditions: [
73
- {
74
- fn: "booleanEquals",
75
- argv: [
76
- {
77
- ref: "UseFIPS",
78
- },
79
- true,
80
- ],
81
- },
82
- ],
83
- error: "Invalid Configuration: FIPS and custom endpoint are not supported",
84
- type: "error",
85
- },
86
- {
87
- conditions: [],
88
- type: "tree",
89
- rules: [
90
- {
91
- conditions: [
92
- {
93
- fn: "booleanEquals",
94
- argv: [
95
- {
96
- ref: "UseDualStack",
97
- },
98
- true,
99
- ],
100
- },
101
- ],
102
- error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
103
- type: "error",
104
- },
105
- {
106
- conditions: [],
107
- endpoint: {
108
- url: {
109
- ref: "Endpoint",
110
- },
111
- properties: {},
112
- headers: {},
113
- },
114
- type: "endpoint",
115
- },
116
- ],
117
- },
118
- ],
119
- },
120
- {
121
- conditions: [
122
- {
123
- fn: "booleanEquals",
124
- argv: [
125
- {
126
- ref: "UseFIPS",
127
- },
128
- true,
129
- ],
130
- },
131
- {
132
- fn: "booleanEquals",
133
- argv: [
134
- {
135
- ref: "UseDualStack",
136
- },
137
- true,
138
- ],
139
- },
140
- ],
141
- type: "tree",
142
- rules: [
143
- {
144
- conditions: [
145
- {
146
- fn: "booleanEquals",
147
- argv: [
148
- true,
149
- {
150
- fn: "getAttr",
151
- argv: [
152
- {
153
- ref: "PartitionResult",
154
- },
155
- "supportsFIPS",
156
- ],
157
- },
158
- ],
159
- },
160
- {
161
- fn: "booleanEquals",
162
- argv: [
163
- true,
164
- {
165
- fn: "getAttr",
166
- argv: [
167
- {
168
- ref: "PartitionResult",
169
- },
170
- "supportsDualStack",
171
- ],
172
- },
173
- ],
174
- },
175
- ],
176
- type: "tree",
177
- rules: [
178
- {
179
- conditions: [],
180
- endpoint: {
181
- url: "https://athena-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
182
- properties: {},
183
- headers: {},
184
- },
185
- type: "endpoint",
186
- },
187
- ],
188
- },
189
- {
190
- conditions: [],
191
- error: "FIPS and DualStack are enabled, but this partition does not support one or both",
192
- type: "error",
193
- },
194
- ],
195
- },
196
- {
197
- conditions: [
198
- {
199
- fn: "booleanEquals",
200
- argv: [
201
- {
202
- ref: "UseFIPS",
203
- },
204
- true,
205
- ],
206
- },
207
- ],
208
- type: "tree",
209
- rules: [
210
- {
211
- conditions: [
212
- {
213
- fn: "booleanEquals",
214
- argv: [
215
- true,
216
- {
217
- fn: "getAttr",
218
- argv: [
219
- {
220
- ref: "PartitionResult",
221
- },
222
- "supportsFIPS",
223
- ],
224
- },
225
- ],
226
- },
227
- ],
228
- type: "tree",
229
- rules: [
230
- {
231
- conditions: [],
232
- type: "tree",
233
- rules: [
234
- {
235
- conditions: [],
236
- endpoint: {
237
- url: "https://athena-fips.{Region}.{PartitionResult#dnsSuffix}",
238
- properties: {},
239
- headers: {},
240
- },
241
- type: "endpoint",
242
- },
243
- ],
244
- },
245
- ],
246
- },
247
- {
248
- conditions: [],
249
- error: "FIPS is enabled but this partition does not support FIPS",
250
- type: "error",
251
- },
252
- ],
253
- },
254
- {
255
- conditions: [
256
- {
257
- fn: "booleanEquals",
258
- argv: [
259
- {
260
- ref: "UseDualStack",
261
- },
262
- true,
263
- ],
264
- },
265
- ],
266
- type: "tree",
267
- rules: [
268
- {
269
- conditions: [
270
- {
271
- fn: "booleanEquals",
272
- argv: [
273
- true,
274
- {
275
- fn: "getAttr",
276
- argv: [
277
- {
278
- ref: "PartitionResult",
279
- },
280
- "supportsDualStack",
281
- ],
282
- },
283
- ],
284
- },
285
- ],
286
- type: "tree",
287
- rules: [
288
- {
289
- conditions: [],
290
- endpoint: {
291
- url: "https://athena.{Region}.{PartitionResult#dualStackDnsSuffix}",
292
- properties: {},
293
- headers: {},
294
- },
295
- type: "endpoint",
296
- },
297
- ],
298
- },
299
- {
300
- conditions: [],
301
- error: "DualStack is enabled but this partition does not support DualStack",
302
- type: "error",
303
- },
304
- ],
305
- },
306
- {
307
- conditions: [],
308
- endpoint: {
309
- url: "https://athena.{Region}.{PartitionResult#dnsSuffix}",
310
- properties: {},
311
- headers: {},
312
- },
313
- type: "endpoint",
314
- },
315
- ],
316
- },
317
- ],
318
- };
4
+ const r = "fn", s = "argv", t = "ref";
5
+ const a = true, b = false, c = "String", d = "Boolean", e = "PartitionResult", f = "tree", g = "error", h = "endpoint", i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, o = [j], p = [], q = [k];
6
+ const _data = { version: "1.0", parameters: { Region: { builtIn: "AWS::Region", required: a, documentation: "The AWS region used to dispatch the request.", type: c }, UseDualStack: { builtIn: "AWS::UseDualStack", required: a, default: b, documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", type: d }, UseFIPS: { builtIn: "AWS::UseFIPS", required: a, default: b, documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", type: d }, Endpoint: { builtIn: "SDK::Endpoint", required: b, documentation: "Override the endpoint used to send this request", type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: e }], type: f, rules: [{ conditions: [{ [r]: "isSet", [s]: [i] }], type: f, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: g }, { conditions: p, type: f, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: g }, { conditions: p, endpoint: { url: i, properties: l, headers: l }, type: h }] }] }, { conditions: [j, k], type: f, rules: [{ conditions: [m, n], type: f, rules: [{ conditions: p, endpoint: { url: "https://athena-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: p, error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: g }] }, { conditions: o, type: f, rules: [{ conditions: [m], type: f, rules: [{ conditions: p, type: f, rules: [{ conditions: p, endpoint: { url: "https://athena-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: h }] }] }, { conditions: p, error: "FIPS is enabled but this partition does not support FIPS", type: g }] }, { conditions: q, type: f, rules: [{ conditions: [n], type: f, rules: [{ conditions: p, endpoint: { url: "https://athena.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: p, error: "DualStack is enabled but this partition does not support DualStack", type: g }] }, { conditions: p, endpoint: { url: "https://athena.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: h }] }] };
7
+ exports.ruleSet = _data;
@@ -1242,6 +1242,9 @@ const deserializeAws_json1_1GetCalculationExecutionCodeCommandError = async (out
1242
1242
  case "InternalServerException":
1243
1243
  case "com.amazonaws.athena#InternalServerException":
1244
1244
  throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
1245
+ case "InvalidRequestException":
1246
+ case "com.amazonaws.athena#InvalidRequestException":
1247
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1245
1248
  case "ResourceNotFoundException":
1246
1249
  case "com.amazonaws.athena#ResourceNotFoundException":
1247
1250
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
@@ -2532,6 +2535,9 @@ const deserializeAws_json1_1StopCalculationExecutionCommandError = async (output
2532
2535
  case "InternalServerException":
2533
2536
  case "com.amazonaws.athena#InternalServerException":
2534
2537
  throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
2538
+ case "InvalidRequestException":
2539
+ case "com.amazonaws.athena#InvalidRequestException":
2540
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
2535
2541
  case "ResourceNotFoundException":
2536
2542
  case "com.amazonaws.athena#ResourceNotFoundException":
2537
2543
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
@@ -1,315 +1,4 @@
1
- export const ruleSet = {
2
- version: "1.0",
3
- parameters: {
4
- Region: {
5
- builtIn: "AWS::Region",
6
- required: false,
7
- documentation: "The AWS region used to dispatch the request.",
8
- type: "String",
9
- },
10
- UseDualStack: {
11
- builtIn: "AWS::UseDualStack",
12
- required: true,
13
- default: false,
14
- documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
15
- type: "Boolean",
16
- },
17
- UseFIPS: {
18
- builtIn: "AWS::UseFIPS",
19
- required: true,
20
- default: false,
21
- documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
22
- type: "Boolean",
23
- },
24
- Endpoint: {
25
- builtIn: "SDK::Endpoint",
26
- required: false,
27
- documentation: "Override the endpoint used to send this request",
28
- type: "String",
29
- },
30
- },
31
- rules: [
32
- {
33
- conditions: [
34
- {
35
- fn: "aws.partition",
36
- argv: [
37
- {
38
- ref: "Region",
39
- },
40
- ],
41
- assign: "PartitionResult",
42
- },
43
- ],
44
- type: "tree",
45
- rules: [
46
- {
47
- conditions: [
48
- {
49
- fn: "isSet",
50
- argv: [
51
- {
52
- ref: "Endpoint",
53
- },
54
- ],
55
- },
56
- {
57
- fn: "parseURL",
58
- argv: [
59
- {
60
- ref: "Endpoint",
61
- },
62
- ],
63
- assign: "url",
64
- },
65
- ],
66
- type: "tree",
67
- rules: [
68
- {
69
- conditions: [
70
- {
71
- fn: "booleanEquals",
72
- argv: [
73
- {
74
- ref: "UseFIPS",
75
- },
76
- true,
77
- ],
78
- },
79
- ],
80
- error: "Invalid Configuration: FIPS and custom endpoint are not supported",
81
- type: "error",
82
- },
83
- {
84
- conditions: [],
85
- type: "tree",
86
- rules: [
87
- {
88
- conditions: [
89
- {
90
- fn: "booleanEquals",
91
- argv: [
92
- {
93
- ref: "UseDualStack",
94
- },
95
- true,
96
- ],
97
- },
98
- ],
99
- error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
100
- type: "error",
101
- },
102
- {
103
- conditions: [],
104
- endpoint: {
105
- url: {
106
- ref: "Endpoint",
107
- },
108
- properties: {},
109
- headers: {},
110
- },
111
- type: "endpoint",
112
- },
113
- ],
114
- },
115
- ],
116
- },
117
- {
118
- conditions: [
119
- {
120
- fn: "booleanEquals",
121
- argv: [
122
- {
123
- ref: "UseFIPS",
124
- },
125
- true,
126
- ],
127
- },
128
- {
129
- fn: "booleanEquals",
130
- argv: [
131
- {
132
- ref: "UseDualStack",
133
- },
134
- true,
135
- ],
136
- },
137
- ],
138
- type: "tree",
139
- rules: [
140
- {
141
- conditions: [
142
- {
143
- fn: "booleanEquals",
144
- argv: [
145
- true,
146
- {
147
- fn: "getAttr",
148
- argv: [
149
- {
150
- ref: "PartitionResult",
151
- },
152
- "supportsFIPS",
153
- ],
154
- },
155
- ],
156
- },
157
- {
158
- fn: "booleanEquals",
159
- argv: [
160
- true,
161
- {
162
- fn: "getAttr",
163
- argv: [
164
- {
165
- ref: "PartitionResult",
166
- },
167
- "supportsDualStack",
168
- ],
169
- },
170
- ],
171
- },
172
- ],
173
- type: "tree",
174
- rules: [
175
- {
176
- conditions: [],
177
- endpoint: {
178
- url: "https://athena-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
179
- properties: {},
180
- headers: {},
181
- },
182
- type: "endpoint",
183
- },
184
- ],
185
- },
186
- {
187
- conditions: [],
188
- error: "FIPS and DualStack are enabled, but this partition does not support one or both",
189
- type: "error",
190
- },
191
- ],
192
- },
193
- {
194
- conditions: [
195
- {
196
- fn: "booleanEquals",
197
- argv: [
198
- {
199
- ref: "UseFIPS",
200
- },
201
- true,
202
- ],
203
- },
204
- ],
205
- type: "tree",
206
- rules: [
207
- {
208
- conditions: [
209
- {
210
- fn: "booleanEquals",
211
- argv: [
212
- true,
213
- {
214
- fn: "getAttr",
215
- argv: [
216
- {
217
- ref: "PartitionResult",
218
- },
219
- "supportsFIPS",
220
- ],
221
- },
222
- ],
223
- },
224
- ],
225
- type: "tree",
226
- rules: [
227
- {
228
- conditions: [],
229
- type: "tree",
230
- rules: [
231
- {
232
- conditions: [],
233
- endpoint: {
234
- url: "https://athena-fips.{Region}.{PartitionResult#dnsSuffix}",
235
- properties: {},
236
- headers: {},
237
- },
238
- type: "endpoint",
239
- },
240
- ],
241
- },
242
- ],
243
- },
244
- {
245
- conditions: [],
246
- error: "FIPS is enabled but this partition does not support FIPS",
247
- type: "error",
248
- },
249
- ],
250
- },
251
- {
252
- conditions: [
253
- {
254
- fn: "booleanEquals",
255
- argv: [
256
- {
257
- ref: "UseDualStack",
258
- },
259
- true,
260
- ],
261
- },
262
- ],
263
- type: "tree",
264
- rules: [
265
- {
266
- conditions: [
267
- {
268
- fn: "booleanEquals",
269
- argv: [
270
- true,
271
- {
272
- fn: "getAttr",
273
- argv: [
274
- {
275
- ref: "PartitionResult",
276
- },
277
- "supportsDualStack",
278
- ],
279
- },
280
- ],
281
- },
282
- ],
283
- type: "tree",
284
- rules: [
285
- {
286
- conditions: [],
287
- endpoint: {
288
- url: "https://athena.{Region}.{PartitionResult#dualStackDnsSuffix}",
289
- properties: {},
290
- headers: {},
291
- },
292
- type: "endpoint",
293
- },
294
- ],
295
- },
296
- {
297
- conditions: [],
298
- error: "DualStack is enabled but this partition does not support DualStack",
299
- type: "error",
300
- },
301
- ],
302
- },
303
- {
304
- conditions: [],
305
- endpoint: {
306
- url: "https://athena.{Region}.{PartitionResult#dnsSuffix}",
307
- properties: {},
308
- headers: {},
309
- },
310
- type: "endpoint",
311
- },
312
- ],
313
- },
314
- ],
315
- };
1
+ const r = "fn", s = "argv", t = "ref";
2
+ const a = true, b = false, c = "String", d = "Boolean", e = "PartitionResult", f = "tree", g = "error", h = "endpoint", i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, o = [j], p = [], q = [k];
3
+ const _data = { version: "1.0", parameters: { Region: { builtIn: "AWS::Region", required: a, documentation: "The AWS region used to dispatch the request.", type: c }, UseDualStack: { builtIn: "AWS::UseDualStack", required: a, default: b, documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", type: d }, UseFIPS: { builtIn: "AWS::UseFIPS", required: a, default: b, documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", type: d }, Endpoint: { builtIn: "SDK::Endpoint", required: b, documentation: "Override the endpoint used to send this request", type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: e }], type: f, rules: [{ conditions: [{ [r]: "isSet", [s]: [i] }], type: f, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: g }, { conditions: p, type: f, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: g }, { conditions: p, endpoint: { url: i, properties: l, headers: l }, type: h }] }] }, { conditions: [j, k], type: f, rules: [{ conditions: [m, n], type: f, rules: [{ conditions: p, endpoint: { url: "https://athena-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: p, error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: g }] }, { conditions: o, type: f, rules: [{ conditions: [m], type: f, rules: [{ conditions: p, type: f, rules: [{ conditions: p, endpoint: { url: "https://athena-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: h }] }] }, { conditions: p, error: "FIPS is enabled but this partition does not support FIPS", type: g }] }, { conditions: q, type: f, rules: [{ conditions: [n], type: f, rules: [{ conditions: p, endpoint: { url: "https://athena.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: p, error: "DualStack is enabled but this partition does not support DualStack", type: g }] }, { conditions: p, endpoint: { url: "https://athena.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: h }] }] };
4
+ export const ruleSet = _data;