@aws-sdk/client-redshift-serverless 3.437.0 → 3.439.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/README.md +40 -0
- package/dist-cjs/RedshiftServerless.js +10 -0
- package/dist-cjs/commands/CreateCustomDomainAssociationCommand.js +51 -0
- package/dist-cjs/commands/DeleteCustomDomainAssociationCommand.js +51 -0
- package/dist-cjs/commands/GetCustomDomainAssociationCommand.js +51 -0
- package/dist-cjs/commands/ListCustomDomainAssociationsCommand.js +51 -0
- package/dist-cjs/commands/UpdateCustomDomainAssociationCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/dist-cjs/index.js +1 -0
- package/dist-cjs/models/models_0.js +16 -16
- package/dist-cjs/pagination/ListCustomDomainAssociationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +323 -2
- package/dist-es/RedshiftServerless.js +10 -0
- package/dist-es/commands/CreateCustomDomainAssociationCommand.js +47 -0
- package/dist-es/commands/DeleteCustomDomainAssociationCommand.js +47 -0
- package/dist-es/commands/GetCustomDomainAssociationCommand.js +47 -0
- package/dist-es/commands/ListCustomDomainAssociationsCommand.js +47 -0
- package/dist-es/commands/UpdateCustomDomainAssociationCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/index.js +1 -0
- package/dist-es/models/models_0.js +14 -14
- package/dist-es/pagination/ListCustomDomainAssociationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +311 -0
- package/dist-types/RedshiftServerless.d.ts +35 -0
- package/dist-types/RedshiftServerlessClient.d.ts +7 -2
- package/dist-types/commands/CreateCustomDomainAssociationCommand.d.ts +96 -0
- package/dist-types/commands/CreateWorkgroupCommand.d.ts +3 -0
- package/dist-types/commands/DeleteCustomDomainAssociationCommand.d.ts +90 -0
- package/dist-types/commands/DeleteWorkgroupCommand.d.ts +3 -0
- package/dist-types/commands/GetCredentialsCommand.d.ts +2 -1
- package/dist-types/commands/GetCustomDomainAssociationCommand.d.ts +95 -0
- package/dist-types/commands/GetWorkgroupCommand.d.ts +3 -0
- package/dist-types/commands/ListCustomDomainAssociationsCommand.d.ts +99 -0
- package/dist-types/commands/ListWorkgroupsCommand.d.ts +3 -0
- package/dist-types/commands/UpdateCustomDomainAssociationCommand.d.ts +96 -0
- package/dist-types/commands/UpdateWorkgroupCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +261 -20
- package/dist-types/pagination/ListCustomDomainAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
- package/dist-types/ts3.4/RedshiftServerless.d.ts +85 -0
- package/dist-types/ts3.4/RedshiftServerlessClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateCustomDomainAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteCustomDomainAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetCustomDomainAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCustomDomainAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateCustomDomainAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +67 -10
- package/dist-types/ts3.4/pagination/ListCustomDomainAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
- package/package.json +6 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateWorkgroupCommand = exports.de_UpdateUsageLimitCommand = exports.de_UpdateSnapshotCommand = exports.de_UpdateNamespaceCommand = exports.de_UpdateEndpointAccessCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RestoreTableFromSnapshotCommand = exports.de_RestoreFromSnapshotCommand = exports.de_RestoreFromRecoveryPointCommand = exports.de_PutResourcePolicyCommand = exports.de_ListWorkgroupsCommand = exports.de_ListUsageLimitsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListTableRestoreStatusCommand = exports.de_ListSnapshotsCommand = exports.de_ListRecoveryPointsCommand = exports.de_ListNamespacesCommand = exports.de_ListEndpointAccessCommand = exports.de_GetWorkgroupCommand = exports.de_GetUsageLimitCommand = exports.de_GetTableRestoreStatusCommand = exports.de_GetSnapshotCommand = exports.de_GetResourcePolicyCommand = exports.de_GetRecoveryPointCommand = exports.de_GetNamespaceCommand = exports.de_GetEndpointAccessCommand = exports.de_GetCredentialsCommand = exports.de_DeleteWorkgroupCommand = exports.de_DeleteUsageLimitCommand = void 0;
|
|
3
|
+
exports.de_CreateSnapshotCommand = exports.de_CreateNamespaceCommand = exports.de_CreateEndpointAccessCommand = exports.de_CreateCustomDomainAssociationCommand = exports.de_ConvertRecoveryPointToSnapshotCommand = exports.se_UpdateWorkgroupCommand = exports.se_UpdateUsageLimitCommand = exports.se_UpdateSnapshotCommand = exports.se_UpdateNamespaceCommand = exports.se_UpdateEndpointAccessCommand = exports.se_UpdateCustomDomainAssociationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RestoreTableFromSnapshotCommand = exports.se_RestoreFromSnapshotCommand = exports.se_RestoreFromRecoveryPointCommand = exports.se_PutResourcePolicyCommand = exports.se_ListWorkgroupsCommand = exports.se_ListUsageLimitsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListTableRestoreStatusCommand = exports.se_ListSnapshotsCommand = exports.se_ListRecoveryPointsCommand = exports.se_ListNamespacesCommand = exports.se_ListEndpointAccessCommand = exports.se_ListCustomDomainAssociationsCommand = exports.se_GetWorkgroupCommand = exports.se_GetUsageLimitCommand = exports.se_GetTableRestoreStatusCommand = exports.se_GetSnapshotCommand = exports.se_GetResourcePolicyCommand = exports.se_GetRecoveryPointCommand = exports.se_GetNamespaceCommand = exports.se_GetEndpointAccessCommand = exports.se_GetCustomDomainAssociationCommand = exports.se_GetCredentialsCommand = exports.se_DeleteWorkgroupCommand = exports.se_DeleteUsageLimitCommand = exports.se_DeleteSnapshotCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteNamespaceCommand = exports.se_DeleteEndpointAccessCommand = exports.se_DeleteCustomDomainAssociationCommand = exports.se_CreateWorkgroupCommand = exports.se_CreateUsageLimitCommand = exports.se_CreateSnapshotCommand = exports.se_CreateNamespaceCommand = exports.se_CreateEndpointAccessCommand = exports.se_CreateCustomDomainAssociationCommand = exports.se_ConvertRecoveryPointToSnapshotCommand = void 0;
|
|
4
|
+
exports.de_UpdateWorkgroupCommand = exports.de_UpdateUsageLimitCommand = exports.de_UpdateSnapshotCommand = exports.de_UpdateNamespaceCommand = exports.de_UpdateEndpointAccessCommand = exports.de_UpdateCustomDomainAssociationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RestoreTableFromSnapshotCommand = exports.de_RestoreFromSnapshotCommand = exports.de_RestoreFromRecoveryPointCommand = exports.de_PutResourcePolicyCommand = exports.de_ListWorkgroupsCommand = exports.de_ListUsageLimitsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListTableRestoreStatusCommand = exports.de_ListSnapshotsCommand = exports.de_ListRecoveryPointsCommand = exports.de_ListNamespacesCommand = exports.de_ListEndpointAccessCommand = exports.de_ListCustomDomainAssociationsCommand = exports.de_GetWorkgroupCommand = exports.de_GetUsageLimitCommand = exports.de_GetTableRestoreStatusCommand = exports.de_GetSnapshotCommand = exports.de_GetResourcePolicyCommand = exports.de_GetRecoveryPointCommand = exports.de_GetNamespaceCommand = exports.de_GetEndpointAccessCommand = exports.de_GetCustomDomainAssociationCommand = exports.de_GetCredentialsCommand = exports.de_DeleteWorkgroupCommand = exports.de_DeleteUsageLimitCommand = exports.de_DeleteSnapshotCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteNamespaceCommand = exports.de_DeleteEndpointAccessCommand = exports.de_DeleteCustomDomainAssociationCommand = exports.de_CreateWorkgroupCommand = exports.de_CreateUsageLimitCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
@@ -13,6 +13,13 @@ const se_ConvertRecoveryPointToSnapshotCommand = async (input, context) => {
|
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
15
|
exports.se_ConvertRecoveryPointToSnapshotCommand = se_ConvertRecoveryPointToSnapshotCommand;
|
|
16
|
+
const se_CreateCustomDomainAssociationCommand = async (input, context) => {
|
|
17
|
+
const headers = sharedHeaders("CreateCustomDomainAssociation");
|
|
18
|
+
let body;
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
|
+
};
|
|
22
|
+
exports.se_CreateCustomDomainAssociationCommand = se_CreateCustomDomainAssociationCommand;
|
|
16
23
|
const se_CreateEndpointAccessCommand = async (input, context) => {
|
|
17
24
|
const headers = sharedHeaders("CreateEndpointAccess");
|
|
18
25
|
let body;
|
|
@@ -48,6 +55,13 @@ const se_CreateWorkgroupCommand = async (input, context) => {
|
|
|
48
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
56
|
};
|
|
50
57
|
exports.se_CreateWorkgroupCommand = se_CreateWorkgroupCommand;
|
|
58
|
+
const se_DeleteCustomDomainAssociationCommand = async (input, context) => {
|
|
59
|
+
const headers = sharedHeaders("DeleteCustomDomainAssociation");
|
|
60
|
+
let body;
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
|
+
};
|
|
64
|
+
exports.se_DeleteCustomDomainAssociationCommand = se_DeleteCustomDomainAssociationCommand;
|
|
51
65
|
const se_DeleteEndpointAccessCommand = async (input, context) => {
|
|
52
66
|
const headers = sharedHeaders("DeleteEndpointAccess");
|
|
53
67
|
let body;
|
|
@@ -97,6 +111,13 @@ const se_GetCredentialsCommand = async (input, context) => {
|
|
|
97
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
112
|
};
|
|
99
113
|
exports.se_GetCredentialsCommand = se_GetCredentialsCommand;
|
|
114
|
+
const se_GetCustomDomainAssociationCommand = async (input, context) => {
|
|
115
|
+
const headers = sharedHeaders("GetCustomDomainAssociation");
|
|
116
|
+
let body;
|
|
117
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
118
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
+
};
|
|
120
|
+
exports.se_GetCustomDomainAssociationCommand = se_GetCustomDomainAssociationCommand;
|
|
100
121
|
const se_GetEndpointAccessCommand = async (input, context) => {
|
|
101
122
|
const headers = sharedHeaders("GetEndpointAccess");
|
|
102
123
|
let body;
|
|
@@ -153,6 +174,13 @@ const se_GetWorkgroupCommand = async (input, context) => {
|
|
|
153
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
175
|
};
|
|
155
176
|
exports.se_GetWorkgroupCommand = se_GetWorkgroupCommand;
|
|
177
|
+
const se_ListCustomDomainAssociationsCommand = async (input, context) => {
|
|
178
|
+
const headers = sharedHeaders("ListCustomDomainAssociations");
|
|
179
|
+
let body;
|
|
180
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
181
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
182
|
+
};
|
|
183
|
+
exports.se_ListCustomDomainAssociationsCommand = se_ListCustomDomainAssociationsCommand;
|
|
156
184
|
const se_ListEndpointAccessCommand = async (input, context) => {
|
|
157
185
|
const headers = sharedHeaders("ListEndpointAccess");
|
|
158
186
|
let body;
|
|
@@ -251,6 +279,13 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
251
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
280
|
};
|
|
253
281
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
282
|
+
const se_UpdateCustomDomainAssociationCommand = async (input, context) => {
|
|
283
|
+
const headers = sharedHeaders("UpdateCustomDomainAssociation");
|
|
284
|
+
let body;
|
|
285
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
286
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
|
+
};
|
|
288
|
+
exports.se_UpdateCustomDomainAssociationCommand = se_UpdateCustomDomainAssociationCommand;
|
|
254
289
|
const se_UpdateEndpointAccessCommand = async (input, context) => {
|
|
255
290
|
const headers = sharedHeaders("UpdateEndpointAccess");
|
|
256
291
|
let body;
|
|
@@ -334,6 +369,54 @@ const de_ConvertRecoveryPointToSnapshotCommandError = async (output, context) =>
|
|
|
334
369
|
});
|
|
335
370
|
}
|
|
336
371
|
};
|
|
372
|
+
const de_CreateCustomDomainAssociationCommand = async (output, context) => {
|
|
373
|
+
if (output.statusCode >= 300) {
|
|
374
|
+
return de_CreateCustomDomainAssociationCommandError(output, context);
|
|
375
|
+
}
|
|
376
|
+
const data = await parseBody(output.body, context);
|
|
377
|
+
let contents = {};
|
|
378
|
+
contents = de_CreateCustomDomainAssociationResponse(data, context);
|
|
379
|
+
const response = {
|
|
380
|
+
$metadata: deserializeMetadata(output),
|
|
381
|
+
...contents,
|
|
382
|
+
};
|
|
383
|
+
return response;
|
|
384
|
+
};
|
|
385
|
+
exports.de_CreateCustomDomainAssociationCommand = de_CreateCustomDomainAssociationCommand;
|
|
386
|
+
const de_CreateCustomDomainAssociationCommandError = async (output, context) => {
|
|
387
|
+
const parsedOutput = {
|
|
388
|
+
...output,
|
|
389
|
+
body: await parseErrorBody(output.body, context),
|
|
390
|
+
};
|
|
391
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
392
|
+
switch (errorCode) {
|
|
393
|
+
case "AccessDeniedException":
|
|
394
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
395
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
396
|
+
case "ConflictException":
|
|
397
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
398
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
399
|
+
case "InternalServerException":
|
|
400
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
401
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
402
|
+
case "ResourceNotFoundException":
|
|
403
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
404
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
405
|
+
case "ThrottlingException":
|
|
406
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
407
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
408
|
+
case "ValidationException":
|
|
409
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
410
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
411
|
+
default:
|
|
412
|
+
const parsedBody = parsedOutput.body;
|
|
413
|
+
return throwDefaultError({
|
|
414
|
+
output,
|
|
415
|
+
parsedBody,
|
|
416
|
+
errorCode,
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
};
|
|
337
420
|
const de_CreateEndpointAccessCommand = async (output, context) => {
|
|
338
421
|
if (output.statusCode >= 300) {
|
|
339
422
|
return de_CreateEndpointAccessCommandError(output, context);
|
|
@@ -565,6 +648,54 @@ const de_CreateWorkgroupCommandError = async (output, context) => {
|
|
|
565
648
|
});
|
|
566
649
|
}
|
|
567
650
|
};
|
|
651
|
+
const de_DeleteCustomDomainAssociationCommand = async (output, context) => {
|
|
652
|
+
if (output.statusCode >= 300) {
|
|
653
|
+
return de_DeleteCustomDomainAssociationCommandError(output, context);
|
|
654
|
+
}
|
|
655
|
+
const data = await parseBody(output.body, context);
|
|
656
|
+
let contents = {};
|
|
657
|
+
contents = (0, smithy_client_1._json)(data);
|
|
658
|
+
const response = {
|
|
659
|
+
$metadata: deserializeMetadata(output),
|
|
660
|
+
...contents,
|
|
661
|
+
};
|
|
662
|
+
return response;
|
|
663
|
+
};
|
|
664
|
+
exports.de_DeleteCustomDomainAssociationCommand = de_DeleteCustomDomainAssociationCommand;
|
|
665
|
+
const de_DeleteCustomDomainAssociationCommandError = async (output, context) => {
|
|
666
|
+
const parsedOutput = {
|
|
667
|
+
...output,
|
|
668
|
+
body: await parseErrorBody(output.body, context),
|
|
669
|
+
};
|
|
670
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
671
|
+
switch (errorCode) {
|
|
672
|
+
case "AccessDeniedException":
|
|
673
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
674
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
675
|
+
case "ConflictException":
|
|
676
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
677
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
678
|
+
case "InternalServerException":
|
|
679
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
680
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
681
|
+
case "ResourceNotFoundException":
|
|
682
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
683
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
684
|
+
case "ThrottlingException":
|
|
685
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
686
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
687
|
+
case "ValidationException":
|
|
688
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
689
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
690
|
+
default:
|
|
691
|
+
const parsedBody = parsedOutput.body;
|
|
692
|
+
return throwDefaultError({
|
|
693
|
+
output,
|
|
694
|
+
parsedBody,
|
|
695
|
+
errorCode,
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
};
|
|
568
699
|
const de_DeleteEndpointAccessCommand = async (output, context) => {
|
|
569
700
|
if (output.statusCode >= 300) {
|
|
570
701
|
return de_DeleteEndpointAccessCommandError(output, context);
|
|
@@ -853,6 +984,54 @@ const de_GetCredentialsCommandError = async (output, context) => {
|
|
|
853
984
|
});
|
|
854
985
|
}
|
|
855
986
|
};
|
|
987
|
+
const de_GetCustomDomainAssociationCommand = async (output, context) => {
|
|
988
|
+
if (output.statusCode >= 300) {
|
|
989
|
+
return de_GetCustomDomainAssociationCommandError(output, context);
|
|
990
|
+
}
|
|
991
|
+
const data = await parseBody(output.body, context);
|
|
992
|
+
let contents = {};
|
|
993
|
+
contents = de_GetCustomDomainAssociationResponse(data, context);
|
|
994
|
+
const response = {
|
|
995
|
+
$metadata: deserializeMetadata(output),
|
|
996
|
+
...contents,
|
|
997
|
+
};
|
|
998
|
+
return response;
|
|
999
|
+
};
|
|
1000
|
+
exports.de_GetCustomDomainAssociationCommand = de_GetCustomDomainAssociationCommand;
|
|
1001
|
+
const de_GetCustomDomainAssociationCommandError = async (output, context) => {
|
|
1002
|
+
const parsedOutput = {
|
|
1003
|
+
...output,
|
|
1004
|
+
body: await parseErrorBody(output.body, context),
|
|
1005
|
+
};
|
|
1006
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
|
+
switch (errorCode) {
|
|
1008
|
+
case "AccessDeniedException":
|
|
1009
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1010
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1011
|
+
case "ConflictException":
|
|
1012
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1013
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1014
|
+
case "InternalServerException":
|
|
1015
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1016
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1017
|
+
case "ResourceNotFoundException":
|
|
1018
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1019
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1020
|
+
case "ThrottlingException":
|
|
1021
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1022
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1023
|
+
case "ValidationException":
|
|
1024
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1025
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1026
|
+
default:
|
|
1027
|
+
const parsedBody = parsedOutput.body;
|
|
1028
|
+
return throwDefaultError({
|
|
1029
|
+
output,
|
|
1030
|
+
parsedBody,
|
|
1031
|
+
errorCode,
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
};
|
|
856
1035
|
const de_GetEndpointAccessCommand = async (output, context) => {
|
|
857
1036
|
if (output.statusCode >= 300) {
|
|
858
1037
|
return de_GetEndpointAccessCommandError(output, context);
|
|
@@ -1171,6 +1350,51 @@ const de_GetWorkgroupCommandError = async (output, context) => {
|
|
|
1171
1350
|
});
|
|
1172
1351
|
}
|
|
1173
1352
|
};
|
|
1353
|
+
const de_ListCustomDomainAssociationsCommand = async (output, context) => {
|
|
1354
|
+
if (output.statusCode >= 300) {
|
|
1355
|
+
return de_ListCustomDomainAssociationsCommandError(output, context);
|
|
1356
|
+
}
|
|
1357
|
+
const data = await parseBody(output.body, context);
|
|
1358
|
+
let contents = {};
|
|
1359
|
+
contents = de_ListCustomDomainAssociationsResponse(data, context);
|
|
1360
|
+
const response = {
|
|
1361
|
+
$metadata: deserializeMetadata(output),
|
|
1362
|
+
...contents,
|
|
1363
|
+
};
|
|
1364
|
+
return response;
|
|
1365
|
+
};
|
|
1366
|
+
exports.de_ListCustomDomainAssociationsCommand = de_ListCustomDomainAssociationsCommand;
|
|
1367
|
+
const de_ListCustomDomainAssociationsCommandError = async (output, context) => {
|
|
1368
|
+
const parsedOutput = {
|
|
1369
|
+
...output,
|
|
1370
|
+
body: await parseErrorBody(output.body, context),
|
|
1371
|
+
};
|
|
1372
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1373
|
+
switch (errorCode) {
|
|
1374
|
+
case "AccessDeniedException":
|
|
1375
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1376
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1377
|
+
case "InternalServerException":
|
|
1378
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1379
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1380
|
+
case "InvalidPaginationException":
|
|
1381
|
+
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1382
|
+
throw await de_InvalidPaginationExceptionRes(parsedOutput, context);
|
|
1383
|
+
case "ThrottlingException":
|
|
1384
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1385
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1386
|
+
case "ValidationException":
|
|
1387
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1388
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1389
|
+
default:
|
|
1390
|
+
const parsedBody = parsedOutput.body;
|
|
1391
|
+
return throwDefaultError({
|
|
1392
|
+
output,
|
|
1393
|
+
parsedBody,
|
|
1394
|
+
errorCode,
|
|
1395
|
+
});
|
|
1396
|
+
}
|
|
1397
|
+
};
|
|
1174
1398
|
const de_ListEndpointAccessCommand = async (output, context) => {
|
|
1175
1399
|
if (output.statusCode >= 300) {
|
|
1176
1400
|
return de_ListEndpointAccessCommandError(output, context);
|
|
@@ -1747,6 +1971,54 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1747
1971
|
});
|
|
1748
1972
|
}
|
|
1749
1973
|
};
|
|
1974
|
+
const de_UpdateCustomDomainAssociationCommand = async (output, context) => {
|
|
1975
|
+
if (output.statusCode >= 300) {
|
|
1976
|
+
return de_UpdateCustomDomainAssociationCommandError(output, context);
|
|
1977
|
+
}
|
|
1978
|
+
const data = await parseBody(output.body, context);
|
|
1979
|
+
let contents = {};
|
|
1980
|
+
contents = de_UpdateCustomDomainAssociationResponse(data, context);
|
|
1981
|
+
const response = {
|
|
1982
|
+
$metadata: deserializeMetadata(output),
|
|
1983
|
+
...contents,
|
|
1984
|
+
};
|
|
1985
|
+
return response;
|
|
1986
|
+
};
|
|
1987
|
+
exports.de_UpdateCustomDomainAssociationCommand = de_UpdateCustomDomainAssociationCommand;
|
|
1988
|
+
const de_UpdateCustomDomainAssociationCommandError = async (output, context) => {
|
|
1989
|
+
const parsedOutput = {
|
|
1990
|
+
...output,
|
|
1991
|
+
body: await parseErrorBody(output.body, context),
|
|
1992
|
+
};
|
|
1993
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1994
|
+
switch (errorCode) {
|
|
1995
|
+
case "AccessDeniedException":
|
|
1996
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1997
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1998
|
+
case "ConflictException":
|
|
1999
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2000
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2001
|
+
case "InternalServerException":
|
|
2002
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2003
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2004
|
+
case "ResourceNotFoundException":
|
|
2005
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2006
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2007
|
+
case "ThrottlingException":
|
|
2008
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
2009
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2010
|
+
case "ValidationException":
|
|
2011
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2012
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2013
|
+
default:
|
|
2014
|
+
const parsedBody = parsedOutput.body;
|
|
2015
|
+
return throwDefaultError({
|
|
2016
|
+
output,
|
|
2017
|
+
parsedBody,
|
|
2018
|
+
errorCode,
|
|
2019
|
+
});
|
|
2020
|
+
}
|
|
2021
|
+
};
|
|
1750
2022
|
const de_UpdateEndpointAccessCommand = async (output, context) => {
|
|
1751
2023
|
if (output.statusCode >= 300) {
|
|
1752
2024
|
return de_UpdateEndpointAccessCommandError(output, context);
|
|
@@ -2074,11 +2346,35 @@ const se_ListSnapshotsRequest = (input, context) => {
|
|
|
2074
2346
|
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
2075
2347
|
});
|
|
2076
2348
|
};
|
|
2349
|
+
const de_Association = (output, context) => {
|
|
2350
|
+
return (0, smithy_client_1.take)(output, {
|
|
2351
|
+
customDomainCertificateArn: smithy_client_1.expectString,
|
|
2352
|
+
customDomainCertificateExpiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2353
|
+
customDomainName: smithy_client_1.expectString,
|
|
2354
|
+
workgroupName: smithy_client_1.expectString,
|
|
2355
|
+
});
|
|
2356
|
+
};
|
|
2357
|
+
const de_AssociationList = (output, context) => {
|
|
2358
|
+
const retVal = (output || [])
|
|
2359
|
+
.filter((e) => e != null)
|
|
2360
|
+
.map((entry) => {
|
|
2361
|
+
return de_Association(entry, context);
|
|
2362
|
+
});
|
|
2363
|
+
return retVal;
|
|
2364
|
+
};
|
|
2077
2365
|
const de_ConvertRecoveryPointToSnapshotResponse = (output, context) => {
|
|
2078
2366
|
return (0, smithy_client_1.take)(output, {
|
|
2079
2367
|
snapshot: (_) => de_Snapshot(_, context),
|
|
2080
2368
|
});
|
|
2081
2369
|
};
|
|
2370
|
+
const de_CreateCustomDomainAssociationResponse = (output, context) => {
|
|
2371
|
+
return (0, smithy_client_1.take)(output, {
|
|
2372
|
+
customDomainCertificateArn: smithy_client_1.expectString,
|
|
2373
|
+
customDomainCertificateExpiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2374
|
+
customDomainName: smithy_client_1.expectString,
|
|
2375
|
+
workgroupName: smithy_client_1.expectString,
|
|
2376
|
+
});
|
|
2377
|
+
};
|
|
2082
2378
|
const de_CreateEndpointAccessResponse = (output, context) => {
|
|
2083
2379
|
return (0, smithy_client_1.take)(output, {
|
|
2084
2380
|
endpoint: (_) => de_EndpointAccess(_, context),
|
|
@@ -2149,6 +2445,14 @@ const de_GetCredentialsResponse = (output, context) => {
|
|
|
2149
2445
|
nextRefreshTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2150
2446
|
});
|
|
2151
2447
|
};
|
|
2448
|
+
const de_GetCustomDomainAssociationResponse = (output, context) => {
|
|
2449
|
+
return (0, smithy_client_1.take)(output, {
|
|
2450
|
+
customDomainCertificateArn: smithy_client_1.expectString,
|
|
2451
|
+
customDomainCertificateExpiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2452
|
+
customDomainName: smithy_client_1.expectString,
|
|
2453
|
+
workgroupName: smithy_client_1.expectString,
|
|
2454
|
+
});
|
|
2455
|
+
};
|
|
2152
2456
|
const de_GetEndpointAccessResponse = (output, context) => {
|
|
2153
2457
|
return (0, smithy_client_1.take)(output, {
|
|
2154
2458
|
endpoint: (_) => de_EndpointAccess(_, context),
|
|
@@ -2179,6 +2483,12 @@ const de_GetWorkgroupResponse = (output, context) => {
|
|
|
2179
2483
|
workgroup: (_) => de_Workgroup(_, context),
|
|
2180
2484
|
});
|
|
2181
2485
|
};
|
|
2486
|
+
const de_ListCustomDomainAssociationsResponse = (output, context) => {
|
|
2487
|
+
return (0, smithy_client_1.take)(output, {
|
|
2488
|
+
associations: (_) => de_AssociationList(_, context),
|
|
2489
|
+
nextToken: smithy_client_1.expectString,
|
|
2490
|
+
});
|
|
2491
|
+
};
|
|
2182
2492
|
const de_ListEndpointAccessResponse = (output, context) => {
|
|
2183
2493
|
return (0, smithy_client_1.take)(output, {
|
|
2184
2494
|
endpoints: (_) => de_EndpointAccessList(_, context),
|
|
@@ -2337,6 +2647,14 @@ const de_TableRestoreStatusList = (output, context) => {
|
|
|
2337
2647
|
});
|
|
2338
2648
|
return retVal;
|
|
2339
2649
|
};
|
|
2650
|
+
const de_UpdateCustomDomainAssociationResponse = (output, context) => {
|
|
2651
|
+
return (0, smithy_client_1.take)(output, {
|
|
2652
|
+
customDomainCertificateArn: smithy_client_1.expectString,
|
|
2653
|
+
customDomainCertificateExpiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2654
|
+
customDomainName: smithy_client_1.expectString,
|
|
2655
|
+
workgroupName: smithy_client_1.expectString,
|
|
2656
|
+
});
|
|
2657
|
+
};
|
|
2340
2658
|
const de_UpdateEndpointAccessResponse = (output, context) => {
|
|
2341
2659
|
return (0, smithy_client_1.take)(output, {
|
|
2342
2660
|
endpoint: (_) => de_EndpointAccess(_, context),
|
|
@@ -2362,6 +2680,9 @@ const de_Workgroup = (output, context) => {
|
|
|
2362
2680
|
baseCapacity: smithy_client_1.expectInt32,
|
|
2363
2681
|
configParameters: smithy_client_1._json,
|
|
2364
2682
|
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2683
|
+
customDomainCertificateArn: smithy_client_1.expectString,
|
|
2684
|
+
customDomainCertificateExpiryTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2685
|
+
customDomainName: smithy_client_1.expectString,
|
|
2365
2686
|
endpoint: smithy_client_1._json,
|
|
2366
2687
|
enhancedVpcRouting: smithy_client_1.expectBoolean,
|
|
2367
2688
|
namespaceName: smithy_client_1.expectString,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { ConvertRecoveryPointToSnapshotCommand, } from "./commands/ConvertRecoveryPointToSnapshotCommand";
|
|
3
|
+
import { CreateCustomDomainAssociationCommand, } from "./commands/CreateCustomDomainAssociationCommand";
|
|
3
4
|
import { CreateEndpointAccessCommand, } from "./commands/CreateEndpointAccessCommand";
|
|
4
5
|
import { CreateNamespaceCommand, } from "./commands/CreateNamespaceCommand";
|
|
5
6
|
import { CreateSnapshotCommand, } from "./commands/CreateSnapshotCommand";
|
|
6
7
|
import { CreateUsageLimitCommand, } from "./commands/CreateUsageLimitCommand";
|
|
7
8
|
import { CreateWorkgroupCommand, } from "./commands/CreateWorkgroupCommand";
|
|
9
|
+
import { DeleteCustomDomainAssociationCommand, } from "./commands/DeleteCustomDomainAssociationCommand";
|
|
8
10
|
import { DeleteEndpointAccessCommand, } from "./commands/DeleteEndpointAccessCommand";
|
|
9
11
|
import { DeleteNamespaceCommand, } from "./commands/DeleteNamespaceCommand";
|
|
10
12
|
import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
|
|
@@ -12,6 +14,7 @@ import { DeleteSnapshotCommand, } from "./commands/DeleteSnapshotCommand";
|
|
|
12
14
|
import { DeleteUsageLimitCommand, } from "./commands/DeleteUsageLimitCommand";
|
|
13
15
|
import { DeleteWorkgroupCommand, } from "./commands/DeleteWorkgroupCommand";
|
|
14
16
|
import { GetCredentialsCommand, } from "./commands/GetCredentialsCommand";
|
|
17
|
+
import { GetCustomDomainAssociationCommand, } from "./commands/GetCustomDomainAssociationCommand";
|
|
15
18
|
import { GetEndpointAccessCommand, } from "./commands/GetEndpointAccessCommand";
|
|
16
19
|
import { GetNamespaceCommand, } from "./commands/GetNamespaceCommand";
|
|
17
20
|
import { GetRecoveryPointCommand, } from "./commands/GetRecoveryPointCommand";
|
|
@@ -20,6 +23,7 @@ import { GetSnapshotCommand } from "./commands/GetSnapshotCommand";
|
|
|
20
23
|
import { GetTableRestoreStatusCommand, } from "./commands/GetTableRestoreStatusCommand";
|
|
21
24
|
import { GetUsageLimitCommand, } from "./commands/GetUsageLimitCommand";
|
|
22
25
|
import { GetWorkgroupCommand, } from "./commands/GetWorkgroupCommand";
|
|
26
|
+
import { ListCustomDomainAssociationsCommand, } from "./commands/ListCustomDomainAssociationsCommand";
|
|
23
27
|
import { ListEndpointAccessCommand, } from "./commands/ListEndpointAccessCommand";
|
|
24
28
|
import { ListNamespacesCommand, } from "./commands/ListNamespacesCommand";
|
|
25
29
|
import { ListRecoveryPointsCommand, } from "./commands/ListRecoveryPointsCommand";
|
|
@@ -34,6 +38,7 @@ import { RestoreFromSnapshotCommand, } from "./commands/RestoreFromSnapshotComma
|
|
|
34
38
|
import { RestoreTableFromSnapshotCommand, } from "./commands/RestoreTableFromSnapshotCommand";
|
|
35
39
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
36
40
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
41
|
+
import { UpdateCustomDomainAssociationCommand, } from "./commands/UpdateCustomDomainAssociationCommand";
|
|
37
42
|
import { UpdateEndpointAccessCommand, } from "./commands/UpdateEndpointAccessCommand";
|
|
38
43
|
import { UpdateNamespaceCommand, } from "./commands/UpdateNamespaceCommand";
|
|
39
44
|
import { UpdateSnapshotCommand, } from "./commands/UpdateSnapshotCommand";
|
|
@@ -42,11 +47,13 @@ import { UpdateWorkgroupCommand, } from "./commands/UpdateWorkgroupCommand";
|
|
|
42
47
|
import { RedshiftServerlessClient } from "./RedshiftServerlessClient";
|
|
43
48
|
const commands = {
|
|
44
49
|
ConvertRecoveryPointToSnapshotCommand,
|
|
50
|
+
CreateCustomDomainAssociationCommand,
|
|
45
51
|
CreateEndpointAccessCommand,
|
|
46
52
|
CreateNamespaceCommand,
|
|
47
53
|
CreateSnapshotCommand,
|
|
48
54
|
CreateUsageLimitCommand,
|
|
49
55
|
CreateWorkgroupCommand,
|
|
56
|
+
DeleteCustomDomainAssociationCommand,
|
|
50
57
|
DeleteEndpointAccessCommand,
|
|
51
58
|
DeleteNamespaceCommand,
|
|
52
59
|
DeleteResourcePolicyCommand,
|
|
@@ -54,6 +61,7 @@ const commands = {
|
|
|
54
61
|
DeleteUsageLimitCommand,
|
|
55
62
|
DeleteWorkgroupCommand,
|
|
56
63
|
GetCredentialsCommand,
|
|
64
|
+
GetCustomDomainAssociationCommand,
|
|
57
65
|
GetEndpointAccessCommand,
|
|
58
66
|
GetNamespaceCommand,
|
|
59
67
|
GetRecoveryPointCommand,
|
|
@@ -62,6 +70,7 @@ const commands = {
|
|
|
62
70
|
GetTableRestoreStatusCommand,
|
|
63
71
|
GetUsageLimitCommand,
|
|
64
72
|
GetWorkgroupCommand,
|
|
73
|
+
ListCustomDomainAssociationsCommand,
|
|
65
74
|
ListEndpointAccessCommand,
|
|
66
75
|
ListNamespacesCommand,
|
|
67
76
|
ListRecoveryPointsCommand,
|
|
@@ -76,6 +85,7 @@ const commands = {
|
|
|
76
85
|
RestoreTableFromSnapshotCommand,
|
|
77
86
|
TagResourceCommand,
|
|
78
87
|
UntagResourceCommand,
|
|
88
|
+
UpdateCustomDomainAssociationCommand,
|
|
79
89
|
UpdateEndpointAccessCommand,
|
|
80
90
|
UpdateNamespaceCommand,
|
|
81
91
|
UpdateSnapshotCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_CreateCustomDomainAssociationCommand, se_CreateCustomDomainAssociationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreateCustomDomainAssociationCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateCustomDomainAssociationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "RedshiftServerlessClient";
|
|
26
|
+
const commandName = "CreateCustomDomainAssociationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "RedshiftServerless",
|
|
35
|
+
operation: "CreateCustomDomainAssociation",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_CreateCustomDomainAssociationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_CreateCustomDomainAssociationCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_DeleteCustomDomainAssociationCommand, se_DeleteCustomDomainAssociationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DeleteCustomDomainAssociationCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteCustomDomainAssociationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "RedshiftServerlessClient";
|
|
26
|
+
const commandName = "DeleteCustomDomainAssociationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "RedshiftServerless",
|
|
35
|
+
operation: "DeleteCustomDomainAssociation",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_DeleteCustomDomainAssociationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_DeleteCustomDomainAssociationCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_GetCustomDomainAssociationCommand, se_GetCustomDomainAssociationCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetCustomDomainAssociationCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetCustomDomainAssociationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "RedshiftServerlessClient";
|
|
26
|
+
const commandName = "GetCustomDomainAssociationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "RedshiftServerless",
|
|
35
|
+
operation: "GetCustomDomainAssociation",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_GetCustomDomainAssociationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_GetCustomDomainAssociationCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|