@aws-sdk/client-redshift 3.354.0 → 3.357.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 +32 -0
- package/dist-cjs/Redshift.js +8 -0
- package/dist-cjs/commands/CreateCustomDomainAssociationCommand.js +46 -0
- package/dist-cjs/commands/DeleteCustomDomainAssociationCommand.js +46 -0
- package/dist-cjs/commands/DescribeCustomDomainAssociationsCommand.js +46 -0
- package/dist-cjs/commands/ModifyCustomDomainAssociationCommand.js +46 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +28 -9
- package/dist-cjs/models/models_1.js +8 -1
- package/dist-cjs/pagination/DescribeCustomDomainAssociationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -1
- package/dist-cjs/protocols/Aws_query.js +401 -25
- package/dist-es/Redshift.js +8 -0
- package/dist-es/commands/CreateCustomDomainAssociationCommand.js +42 -0
- package/dist-es/commands/DeleteCustomDomainAssociationCommand.js +42 -0
- package/dist-es/commands/DescribeCustomDomainAssociationsCommand.js +42 -0
- package/dist-es/commands/ModifyCustomDomainAssociationCommand.js +42 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +24 -7
- package/dist-es/models/models_1.js +7 -0
- package/dist-es/pagination/DescribeCustomDomainAssociationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -1
- package/dist-es/protocols/Aws_query.js +376 -8
- package/dist-types/Redshift.d.ts +28 -0
- package/dist-types/RedshiftClient.d.ts +7 -3
- package/dist-types/commands/CreateClusterCommand.d.ts +3 -0
- package/dist-types/commands/CreateCustomDomainAssociationCommand.d.ts +89 -0
- package/dist-types/commands/DeleteClusterCommand.d.ts +3 -0
- package/dist-types/commands/DeleteCustomDomainAssociationCommand.d.ts +81 -0
- package/dist-types/commands/DescribeClustersCommand.d.ts +3 -0
- package/dist-types/commands/DescribeCustomDomainAssociationsCommand.d.ts +94 -0
- package/dist-types/commands/DescribeEventCategoriesCommand.d.ts +2 -1
- package/dist-types/commands/DescribeEventSubscriptionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEventsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeHsmClientCertificatesCommand.d.ts +1 -1
- package/dist-types/commands/DisableSnapshotCopyCommand.d.ts +3 -0
- package/dist-types/commands/EnableSnapshotCopyCommand.d.ts +3 -0
- package/dist-types/commands/GetClusterCredentialsCommand.d.ts +2 -1
- package/dist-types/commands/GetClusterCredentialsWithIAMCommand.d.ts +2 -1
- package/dist-types/commands/ModifyClusterCommand.d.ts +9 -0
- package/dist-types/commands/ModifyClusterDbRevisionCommand.d.ts +3 -0
- package/dist-types/commands/ModifyClusterIamRolesCommand.d.ts +3 -0
- package/dist-types/commands/ModifyClusterMaintenanceCommand.d.ts +3 -0
- package/dist-types/commands/ModifyCustomDomainAssociationCommand.d.ts +88 -0
- package/dist-types/commands/ModifySnapshotCopyRetentionPeriodCommand.d.ts +3 -0
- package/dist-types/commands/PauseClusterCommand.d.ts +3 -0
- package/dist-types/commands/RebootClusterCommand.d.ts +3 -0
- package/dist-types/commands/ResizeClusterCommand.d.ts +3 -0
- package/dist-types/commands/RestoreFromClusterSnapshotCommand.d.ts +3 -0
- package/dist-types/commands/ResumeClusterCommand.d.ts +3 -0
- package/dist-types/commands/RotateEncryptionKeyCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +156 -323
- package/dist-types/models/models_1.d.ts +369 -6
- package/dist-types/pagination/DescribeCustomDomainAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -1
- package/dist-types/protocols/Aws_query.d.ts +36 -0
- package/dist-types/ts3.4/Redshift.d.ts +68 -0
- package/dist-types/ts3.4/RedshiftClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateCustomDomainAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteCustomDomainAssociationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeCustomDomainAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeEventCategoriesCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeEventSubscriptionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeEventsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeHsmClientCertificatesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ModifyCustomDomainAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +53 -55
- package/dist-types/ts3.4/models/models_1.d.ts +72 -2
- package/dist-types/ts3.4/pagination/DescribeCustomDomainAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -1
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +48 -0
- package/package.json +29 -29
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
|
-
import { AccessToClusterDeniedFault, AccessToSnapshotDeniedFault, AuthenticationProfileAlreadyExistsFault, AuthenticationProfileNotFoundFault, AuthenticationProfileQuotaExceededFault, AuthorizationAlreadyExistsFault, AuthorizationNotFoundFault, AuthorizationQuotaExceededFault, BatchDeleteRequestSizeExceededFault, BatchModifyClusterSnapshotsLimitExceededFault, BucketNotFoundFault, ClusterAlreadyExistsFault, ClusterNotFoundFault, ClusterOnLatestRevisionFault, ClusterParameterGroupAlreadyExistsFault, ClusterParameterGroupNotFoundFault, ClusterParameterGroupQuotaExceededFault, ClusterQuotaExceededFault, ClusterSecurityGroupAlreadyExistsFault, ClusterSecurityGroupNotFoundFault, ClusterSecurityGroupQuotaExceededFault, ClusterSnapshotAlreadyExistsFault, ClusterSnapshotNotFoundFault, ClusterSnapshotQuotaExceededFault, ClusterSubnetGroupAlreadyExistsFault, ClusterSubnetGroupNotFoundFault, ClusterSubnetGroupQuotaExceededFault, ClusterSubnetQuotaExceededFault, CopyToRegionDisabledFault, DependentServiceRequestThrottlingFault, DependentServiceUnavailableFault, EndpointAlreadyExistsFault, EndpointAuthorizationAlreadyExistsFault, EndpointAuthorizationsPerClusterLimitExceededFault, EndpointNotFoundFault, EndpointsPerAuthorizationLimitExceededFault, EndpointsPerClusterLimitExceededFault, EventSubscriptionQuotaExceededFault, HsmClientCertificateAlreadyExistsFault, HsmClientCertificateNotFoundFault, HsmClientCertificateQuotaExceededFault, HsmConfigurationAlreadyExistsFault, HsmConfigurationNotFoundFault, HsmConfigurationQuotaExceededFault, InsufficientClusterCapacityFault, InvalidAuthenticationProfileRequestFault, InvalidAuthorizationStateFault, InvalidClusterParameterGroupStateFault, InvalidClusterSecurityGroupStateFault, InvalidClusterSnapshotScheduleStateFault, InvalidClusterSnapshotStateFault, InvalidClusterStateFault, InvalidClusterSubnetGroupStateFault, InvalidClusterSubnetStateFault, InvalidClusterTrackFault, InvalidDataShareFault, InvalidElasticIpFault, InvalidEndpointStateFault, InvalidHsmClientCertificateStateFault, InvalidHsmConfigurationStateFault, InvalidNamespaceFault, InvalidReservedNodeStateFault, InvalidRetentionPeriodFault, InvalidScheduledActionFault, InvalidScheduleFault, InvalidSnapshotCopyGrantStateFault, InvalidSubnet, InvalidSubscriptionStateFault, InvalidTagFault, InvalidUsageLimitFault, InvalidVPCNetworkStateFault, LimitExceededFault, NumberOfNodesPerClusterLimitExceededFault, NumberOfNodesQuotaExceededFault, PartnerNotFoundFault, ReservedNodeAlreadyExistsFault, ReservedNodeAlreadyMigratedFault, ReservedNodeNotFoundFault, ReservedNodeOfferingNotFoundFault, ResizeNotFoundFault, ResourceNotFoundFault, ScheduledActionAlreadyExistsFault, ScheduledActionNotFoundFault, ScheduledActionQuotaExceededFault, ScheduledActionTypeUnsupportedFault, ScheduleDefinitionTypeUnsupportedFault, SnapshotCopyGrantAlreadyExistsFault, SnapshotCopyGrantNotFoundFault, SnapshotCopyGrantQuotaExceededFault, SnapshotScheduleAlreadyExistsFault, SnapshotScheduleNotFoundFault, SnapshotScheduleQuotaExceededFault, SNSInvalidTopicFault, SNSNoAuthorizationFault, SNSTopicArnNotFoundFault, SourceNotFoundFault, SubscriptionAlreadyExistFault, SubscriptionCategoryNotFoundFault, SubscriptionEventIdNotFoundFault, SubscriptionNotFoundFault, SubscriptionSeverityNotFoundFault, TagLimitExceededFault, UnauthorizedOperation, UnauthorizedPartnerIntegrationFault, UnsupportedOperationFault, UsageLimitAlreadyExistsFault, UsageLimitNotFoundFault, } from "../models/models_0";
|
|
4
|
+
import { AccessToClusterDeniedFault, AccessToSnapshotDeniedFault, AuthenticationProfileAlreadyExistsFault, AuthenticationProfileNotFoundFault, AuthenticationProfileQuotaExceededFault, AuthorizationAlreadyExistsFault, AuthorizationNotFoundFault, AuthorizationQuotaExceededFault, BatchDeleteRequestSizeExceededFault, BatchModifyClusterSnapshotsLimitExceededFault, BucketNotFoundFault, ClusterAlreadyExistsFault, ClusterNotFoundFault, ClusterOnLatestRevisionFault, ClusterParameterGroupAlreadyExistsFault, ClusterParameterGroupNotFoundFault, ClusterParameterGroupQuotaExceededFault, ClusterQuotaExceededFault, ClusterSecurityGroupAlreadyExistsFault, ClusterSecurityGroupNotFoundFault, ClusterSecurityGroupQuotaExceededFault, ClusterSnapshotAlreadyExistsFault, ClusterSnapshotNotFoundFault, ClusterSnapshotQuotaExceededFault, ClusterSubnetGroupAlreadyExistsFault, ClusterSubnetGroupNotFoundFault, ClusterSubnetGroupQuotaExceededFault, ClusterSubnetQuotaExceededFault, CopyToRegionDisabledFault, CustomCnameAssociationFault, CustomDomainAssociationNotFoundFault, DependentServiceRequestThrottlingFault, DependentServiceUnavailableFault, EndpointAlreadyExistsFault, EndpointAuthorizationAlreadyExistsFault, EndpointAuthorizationsPerClusterLimitExceededFault, EndpointNotFoundFault, EndpointsPerAuthorizationLimitExceededFault, EndpointsPerClusterLimitExceededFault, EventSubscriptionQuotaExceededFault, HsmClientCertificateAlreadyExistsFault, HsmClientCertificateNotFoundFault, HsmClientCertificateQuotaExceededFault, HsmConfigurationAlreadyExistsFault, HsmConfigurationNotFoundFault, HsmConfigurationQuotaExceededFault, InsufficientClusterCapacityFault, InvalidAuthenticationProfileRequestFault, InvalidAuthorizationStateFault, InvalidClusterParameterGroupStateFault, InvalidClusterSecurityGroupStateFault, InvalidClusterSnapshotScheduleStateFault, InvalidClusterSnapshotStateFault, InvalidClusterStateFault, InvalidClusterSubnetGroupStateFault, InvalidClusterSubnetStateFault, InvalidClusterTrackFault, InvalidDataShareFault, InvalidElasticIpFault, InvalidEndpointStateFault, InvalidHsmClientCertificateStateFault, InvalidHsmConfigurationStateFault, InvalidNamespaceFault, InvalidReservedNodeStateFault, InvalidRetentionPeriodFault, InvalidScheduledActionFault, InvalidScheduleFault, InvalidSnapshotCopyGrantStateFault, InvalidSubnet, InvalidSubscriptionStateFault, InvalidTagFault, InvalidUsageLimitFault, InvalidVPCNetworkStateFault, LimitExceededFault, NumberOfNodesPerClusterLimitExceededFault, NumberOfNodesQuotaExceededFault, PartnerNotFoundFault, ReservedNodeAlreadyExistsFault, ReservedNodeAlreadyMigratedFault, ReservedNodeNotFoundFault, ReservedNodeOfferingNotFoundFault, ResizeNotFoundFault, ResourceNotFoundFault, ScheduledActionAlreadyExistsFault, ScheduledActionNotFoundFault, ScheduledActionQuotaExceededFault, ScheduledActionTypeUnsupportedFault, ScheduleDefinitionTypeUnsupportedFault, SnapshotCopyGrantAlreadyExistsFault, SnapshotCopyGrantNotFoundFault, SnapshotCopyGrantQuotaExceededFault, SnapshotScheduleAlreadyExistsFault, SnapshotScheduleNotFoundFault, SnapshotScheduleQuotaExceededFault, SNSInvalidTopicFault, SNSNoAuthorizationFault, SNSTopicArnNotFoundFault, SourceNotFoundFault, SubscriptionAlreadyExistFault, SubscriptionCategoryNotFoundFault, SubscriptionEventIdNotFoundFault, SubscriptionNotFoundFault, SubscriptionSeverityNotFoundFault, TagLimitExceededFault, UnauthorizedOperation, UnauthorizedPartnerIntegrationFault, UnsupportedOperationFault, UsageLimitAlreadyExistsFault, UsageLimitNotFoundFault, } from "../models/models_0";
|
|
5
5
|
import { EndpointAuthorizationNotFoundFault, IncompatibleOrderableOptions, InProgressTableRestoreQuotaExceededFault, InsufficientS3BucketPolicyFault, InvalidRestoreFault, InvalidS3BucketNameFault, InvalidS3KeyPrefixFault, InvalidTableRestoreArgumentFault, ReservedNodeExchangeNotFoundFault, ReservedNodeQuotaExceededFault, SnapshotCopyAlreadyDisabledFault, SnapshotCopyAlreadyEnabledFault, SnapshotCopyDisabledFault, SnapshotScheduleUpdateInProgressFault, SubnetAlreadyInUse, TableLimitExceededFault, TableRestoreNotFoundFault, UnknownSnapshotCopyRegionFault, UnsupportedOptionFault, } from "../models/models_1";
|
|
6
6
|
import { RedshiftServiceException as __BaseException } from "../models/RedshiftServiceException";
|
|
7
7
|
export const se_AcceptReservedNodeExchangeCommand = async (input, context) => {
|
|
@@ -174,6 +174,16 @@ export const se_CreateClusterSubnetGroupCommand = async (input, context) => {
|
|
|
174
174
|
});
|
|
175
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
176
|
};
|
|
177
|
+
export const se_CreateCustomDomainAssociationCommand = async (input, context) => {
|
|
178
|
+
const headers = SHARED_HEADERS;
|
|
179
|
+
let body;
|
|
180
|
+
body = buildFormUrlencodedString({
|
|
181
|
+
...se_CreateCustomDomainAssociationMessage(input, context),
|
|
182
|
+
Action: "CreateCustomDomainAssociation",
|
|
183
|
+
Version: "2012-12-01",
|
|
184
|
+
});
|
|
185
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
|
+
};
|
|
177
187
|
export const se_CreateEndpointAccessCommand = async (input, context) => {
|
|
178
188
|
const headers = SHARED_HEADERS;
|
|
179
189
|
let body;
|
|
@@ -334,6 +344,16 @@ export const se_DeleteClusterSubnetGroupCommand = async (input, context) => {
|
|
|
334
344
|
});
|
|
335
345
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
336
346
|
};
|
|
347
|
+
export const se_DeleteCustomDomainAssociationCommand = async (input, context) => {
|
|
348
|
+
const headers = SHARED_HEADERS;
|
|
349
|
+
let body;
|
|
350
|
+
body = buildFormUrlencodedString({
|
|
351
|
+
...se_DeleteCustomDomainAssociationMessage(input, context),
|
|
352
|
+
Action: "DeleteCustomDomainAssociation",
|
|
353
|
+
Version: "2012-12-01",
|
|
354
|
+
});
|
|
355
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
356
|
+
};
|
|
337
357
|
export const se_DeleteEndpointAccessCommand = async (input, context) => {
|
|
338
358
|
const headers = SHARED_HEADERS;
|
|
339
359
|
let body;
|
|
@@ -544,6 +564,16 @@ export const se_DescribeClusterVersionsCommand = async (input, context) => {
|
|
|
544
564
|
});
|
|
545
565
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
546
566
|
};
|
|
567
|
+
export const se_DescribeCustomDomainAssociationsCommand = async (input, context) => {
|
|
568
|
+
const headers = SHARED_HEADERS;
|
|
569
|
+
let body;
|
|
570
|
+
body = buildFormUrlencodedString({
|
|
571
|
+
...se_DescribeCustomDomainAssociationsMessage(input, context),
|
|
572
|
+
Action: "DescribeCustomDomainAssociations",
|
|
573
|
+
Version: "2012-12-01",
|
|
574
|
+
});
|
|
575
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
576
|
+
};
|
|
547
577
|
export const se_DescribeDataSharesCommand = async (input, context) => {
|
|
548
578
|
const headers = SHARED_HEADERS;
|
|
549
579
|
let body;
|
|
@@ -992,6 +1022,16 @@ export const se_ModifyClusterSubnetGroupCommand = async (input, context) => {
|
|
|
992
1022
|
});
|
|
993
1023
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
994
1024
|
};
|
|
1025
|
+
export const se_ModifyCustomDomainAssociationCommand = async (input, context) => {
|
|
1026
|
+
const headers = SHARED_HEADERS;
|
|
1027
|
+
let body;
|
|
1028
|
+
body = buildFormUrlencodedString({
|
|
1029
|
+
...se_ModifyCustomDomainAssociationMessage(input, context),
|
|
1030
|
+
Action: "ModifyCustomDomainAssociation",
|
|
1031
|
+
Version: "2012-12-01",
|
|
1032
|
+
});
|
|
1033
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1034
|
+
};
|
|
995
1035
|
export const se_ModifyEndpointAccessCommand = async (input, context) => {
|
|
996
1036
|
const headers = SHARED_HEADERS;
|
|
997
1037
|
let body;
|
|
@@ -1955,6 +1995,44 @@ const de_CreateClusterSubnetGroupCommandError = async (output, context) => {
|
|
|
1955
1995
|
});
|
|
1956
1996
|
}
|
|
1957
1997
|
};
|
|
1998
|
+
export const de_CreateCustomDomainAssociationCommand = async (output, context) => {
|
|
1999
|
+
if (output.statusCode >= 300) {
|
|
2000
|
+
return de_CreateCustomDomainAssociationCommandError(output, context);
|
|
2001
|
+
}
|
|
2002
|
+
const data = await parseBody(output.body, context);
|
|
2003
|
+
let contents = {};
|
|
2004
|
+
contents = de_CreateCustomDomainAssociationResult(data.CreateCustomDomainAssociationResult, context);
|
|
2005
|
+
const response = {
|
|
2006
|
+
$metadata: deserializeMetadata(output),
|
|
2007
|
+
...contents,
|
|
2008
|
+
};
|
|
2009
|
+
return response;
|
|
2010
|
+
};
|
|
2011
|
+
const de_CreateCustomDomainAssociationCommandError = async (output, context) => {
|
|
2012
|
+
const parsedOutput = {
|
|
2013
|
+
...output,
|
|
2014
|
+
body: await parseErrorBody(output.body, context),
|
|
2015
|
+
};
|
|
2016
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2017
|
+
switch (errorCode) {
|
|
2018
|
+
case "ClusterNotFound":
|
|
2019
|
+
case "com.amazonaws.redshift#ClusterNotFoundFault":
|
|
2020
|
+
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
2021
|
+
case "CustomCnameAssociationFault":
|
|
2022
|
+
case "com.amazonaws.redshift#CustomCnameAssociationFault":
|
|
2023
|
+
throw await de_CustomCnameAssociationFaultRes(parsedOutput, context);
|
|
2024
|
+
case "UnsupportedOperation":
|
|
2025
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
2026
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
2027
|
+
default:
|
|
2028
|
+
const parsedBody = parsedOutput.body;
|
|
2029
|
+
return throwDefaultError({
|
|
2030
|
+
output,
|
|
2031
|
+
parsedBody: parsedBody.Error,
|
|
2032
|
+
errorCode,
|
|
2033
|
+
});
|
|
2034
|
+
}
|
|
2035
|
+
};
|
|
1958
2036
|
export const de_CreateEndpointAccessCommand = async (output, context) => {
|
|
1959
2037
|
if (output.statusCode >= 300) {
|
|
1960
2038
|
return de_CreateEndpointAccessCommandError(output, context);
|
|
@@ -2632,6 +2710,41 @@ const de_DeleteClusterSubnetGroupCommandError = async (output, context) => {
|
|
|
2632
2710
|
});
|
|
2633
2711
|
}
|
|
2634
2712
|
};
|
|
2713
|
+
export const de_DeleteCustomDomainAssociationCommand = async (output, context) => {
|
|
2714
|
+
if (output.statusCode >= 300) {
|
|
2715
|
+
return de_DeleteCustomDomainAssociationCommandError(output, context);
|
|
2716
|
+
}
|
|
2717
|
+
await collectBody(output.body, context);
|
|
2718
|
+
const response = {
|
|
2719
|
+
$metadata: deserializeMetadata(output),
|
|
2720
|
+
};
|
|
2721
|
+
return response;
|
|
2722
|
+
};
|
|
2723
|
+
const de_DeleteCustomDomainAssociationCommandError = async (output, context) => {
|
|
2724
|
+
const parsedOutput = {
|
|
2725
|
+
...output,
|
|
2726
|
+
body: await parseErrorBody(output.body, context),
|
|
2727
|
+
};
|
|
2728
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2729
|
+
switch (errorCode) {
|
|
2730
|
+
case "ClusterNotFound":
|
|
2731
|
+
case "com.amazonaws.redshift#ClusterNotFoundFault":
|
|
2732
|
+
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
2733
|
+
case "CustomCnameAssociationFault":
|
|
2734
|
+
case "com.amazonaws.redshift#CustomCnameAssociationFault":
|
|
2735
|
+
throw await de_CustomCnameAssociationFaultRes(parsedOutput, context);
|
|
2736
|
+
case "UnsupportedOperation":
|
|
2737
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
2738
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
2739
|
+
default:
|
|
2740
|
+
const parsedBody = parsedOutput.body;
|
|
2741
|
+
return throwDefaultError({
|
|
2742
|
+
output,
|
|
2743
|
+
parsedBody: parsedBody.Error,
|
|
2744
|
+
errorCode,
|
|
2745
|
+
});
|
|
2746
|
+
}
|
|
2747
|
+
};
|
|
2635
2748
|
export const de_DeleteEndpointAccessCommand = async (output, context) => {
|
|
2636
2749
|
if (output.statusCode >= 300) {
|
|
2637
2750
|
return de_DeleteEndpointAccessCommandError(output, context);
|
|
@@ -3340,6 +3453,41 @@ const de_DescribeClusterVersionsCommandError = async (output, context) => {
|
|
|
3340
3453
|
errorCode,
|
|
3341
3454
|
});
|
|
3342
3455
|
};
|
|
3456
|
+
export const de_DescribeCustomDomainAssociationsCommand = async (output, context) => {
|
|
3457
|
+
if (output.statusCode >= 300) {
|
|
3458
|
+
return de_DescribeCustomDomainAssociationsCommandError(output, context);
|
|
3459
|
+
}
|
|
3460
|
+
const data = await parseBody(output.body, context);
|
|
3461
|
+
let contents = {};
|
|
3462
|
+
contents = de_CustomDomainAssociationsMessage(data.DescribeCustomDomainAssociationsResult, context);
|
|
3463
|
+
const response = {
|
|
3464
|
+
$metadata: deserializeMetadata(output),
|
|
3465
|
+
...contents,
|
|
3466
|
+
};
|
|
3467
|
+
return response;
|
|
3468
|
+
};
|
|
3469
|
+
const de_DescribeCustomDomainAssociationsCommandError = async (output, context) => {
|
|
3470
|
+
const parsedOutput = {
|
|
3471
|
+
...output,
|
|
3472
|
+
body: await parseErrorBody(output.body, context),
|
|
3473
|
+
};
|
|
3474
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3475
|
+
switch (errorCode) {
|
|
3476
|
+
case "CustomDomainAssociationNotFoundFault":
|
|
3477
|
+
case "com.amazonaws.redshift#CustomDomainAssociationNotFoundFault":
|
|
3478
|
+
throw await de_CustomDomainAssociationNotFoundFaultRes(parsedOutput, context);
|
|
3479
|
+
case "UnsupportedOperation":
|
|
3480
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
3481
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
3482
|
+
default:
|
|
3483
|
+
const parsedBody = parsedOutput.body;
|
|
3484
|
+
return throwDefaultError({
|
|
3485
|
+
output,
|
|
3486
|
+
parsedBody: parsedBody.Error,
|
|
3487
|
+
errorCode,
|
|
3488
|
+
});
|
|
3489
|
+
}
|
|
3490
|
+
};
|
|
3343
3491
|
export const de_DescribeDataSharesCommand = async (output, context) => {
|
|
3344
3492
|
if (output.statusCode >= 300) {
|
|
3345
3493
|
return de_DescribeDataSharesCommandError(output, context);
|
|
@@ -4700,6 +4848,9 @@ const de_ModifyClusterCommandError = async (output, context) => {
|
|
|
4700
4848
|
case "ClusterSecurityGroupNotFound":
|
|
4701
4849
|
case "com.amazonaws.redshift#ClusterSecurityGroupNotFoundFault":
|
|
4702
4850
|
throw await de_ClusterSecurityGroupNotFoundFaultRes(parsedOutput, context);
|
|
4851
|
+
case "CustomCnameAssociationFault":
|
|
4852
|
+
case "com.amazonaws.redshift#CustomCnameAssociationFault":
|
|
4853
|
+
throw await de_CustomCnameAssociationFaultRes(parsedOutput, context);
|
|
4703
4854
|
case "DependentServiceRequestThrottlingFault":
|
|
4704
4855
|
case "com.amazonaws.redshift#DependentServiceRequestThrottlingFault":
|
|
4705
4856
|
throw await de_DependentServiceRequestThrottlingFaultRes(parsedOutput, context);
|
|
@@ -4742,6 +4893,9 @@ const de_ModifyClusterCommandError = async (output, context) => {
|
|
|
4742
4893
|
case "UnauthorizedOperation":
|
|
4743
4894
|
case "com.amazonaws.redshift#UnauthorizedOperation":
|
|
4744
4895
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
4896
|
+
case "UnsupportedOperation":
|
|
4897
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
4898
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4745
4899
|
case "UnsupportedOptionFault":
|
|
4746
4900
|
case "com.amazonaws.redshift#UnsupportedOptionFault":
|
|
4747
4901
|
throw await de_UnsupportedOptionFaultRes(parsedOutput, context);
|
|
@@ -5017,6 +5171,44 @@ const de_ModifyClusterSubnetGroupCommandError = async (output, context) => {
|
|
|
5017
5171
|
});
|
|
5018
5172
|
}
|
|
5019
5173
|
};
|
|
5174
|
+
export const de_ModifyCustomDomainAssociationCommand = async (output, context) => {
|
|
5175
|
+
if (output.statusCode >= 300) {
|
|
5176
|
+
return de_ModifyCustomDomainAssociationCommandError(output, context);
|
|
5177
|
+
}
|
|
5178
|
+
const data = await parseBody(output.body, context);
|
|
5179
|
+
let contents = {};
|
|
5180
|
+
contents = de_ModifyCustomDomainAssociationResult(data.ModifyCustomDomainAssociationResult, context);
|
|
5181
|
+
const response = {
|
|
5182
|
+
$metadata: deserializeMetadata(output),
|
|
5183
|
+
...contents,
|
|
5184
|
+
};
|
|
5185
|
+
return response;
|
|
5186
|
+
};
|
|
5187
|
+
const de_ModifyCustomDomainAssociationCommandError = async (output, context) => {
|
|
5188
|
+
const parsedOutput = {
|
|
5189
|
+
...output,
|
|
5190
|
+
body: await parseErrorBody(output.body, context),
|
|
5191
|
+
};
|
|
5192
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5193
|
+
switch (errorCode) {
|
|
5194
|
+
case "ClusterNotFound":
|
|
5195
|
+
case "com.amazonaws.redshift#ClusterNotFoundFault":
|
|
5196
|
+
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
5197
|
+
case "CustomCnameAssociationFault":
|
|
5198
|
+
case "com.amazonaws.redshift#CustomCnameAssociationFault":
|
|
5199
|
+
throw await de_CustomCnameAssociationFaultRes(parsedOutput, context);
|
|
5200
|
+
case "UnsupportedOperation":
|
|
5201
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
5202
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
5203
|
+
default:
|
|
5204
|
+
const parsedBody = parsedOutput.body;
|
|
5205
|
+
return throwDefaultError({
|
|
5206
|
+
output,
|
|
5207
|
+
parsedBody: parsedBody.Error,
|
|
5208
|
+
errorCode,
|
|
5209
|
+
});
|
|
5210
|
+
}
|
|
5211
|
+
};
|
|
5020
5212
|
export const de_ModifyEndpointAccessCommand = async (output, context) => {
|
|
5021
5213
|
if (output.statusCode >= 300) {
|
|
5022
5214
|
return de_ModifyEndpointAccessCommandError(output, context);
|
|
@@ -6215,6 +6407,24 @@ const de_CopyToRegionDisabledFaultRes = async (parsedOutput, context) => {
|
|
|
6215
6407
|
});
|
|
6216
6408
|
return __decorateServiceException(exception, body);
|
|
6217
6409
|
};
|
|
6410
|
+
const de_CustomCnameAssociationFaultRes = async (parsedOutput, context) => {
|
|
6411
|
+
const body = parsedOutput.body;
|
|
6412
|
+
const deserialized = de_CustomCnameAssociationFault(body.Error, context);
|
|
6413
|
+
const exception = new CustomCnameAssociationFault({
|
|
6414
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6415
|
+
...deserialized,
|
|
6416
|
+
});
|
|
6417
|
+
return __decorateServiceException(exception, body);
|
|
6418
|
+
};
|
|
6419
|
+
const de_CustomDomainAssociationNotFoundFaultRes = async (parsedOutput, context) => {
|
|
6420
|
+
const body = parsedOutput.body;
|
|
6421
|
+
const deserialized = de_CustomDomainAssociationNotFoundFault(body.Error, context);
|
|
6422
|
+
const exception = new CustomDomainAssociationNotFoundFault({
|
|
6423
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6424
|
+
...deserialized,
|
|
6425
|
+
});
|
|
6426
|
+
return __decorateServiceException(exception, body);
|
|
6427
|
+
};
|
|
6218
6428
|
const de_DependentServiceRequestThrottlingFaultRes = async (parsedOutput, context) => {
|
|
6219
6429
|
const body = parsedOutput.body;
|
|
6220
6430
|
const deserialized = de_DependentServiceRequestThrottlingFault(body.Error, context);
|
|
@@ -7497,6 +7707,19 @@ const se_CreateClusterSubnetGroupMessage = (input, context) => {
|
|
|
7497
7707
|
}
|
|
7498
7708
|
return entries;
|
|
7499
7709
|
};
|
|
7710
|
+
const se_CreateCustomDomainAssociationMessage = (input, context) => {
|
|
7711
|
+
const entries = {};
|
|
7712
|
+
if (input.CustomDomainName != null) {
|
|
7713
|
+
entries["CustomDomainName"] = input.CustomDomainName;
|
|
7714
|
+
}
|
|
7715
|
+
if (input.CustomDomainCertificateArn != null) {
|
|
7716
|
+
entries["CustomDomainCertificateArn"] = input.CustomDomainCertificateArn;
|
|
7717
|
+
}
|
|
7718
|
+
if (input.ClusterIdentifier != null) {
|
|
7719
|
+
entries["ClusterIdentifier"] = input.ClusterIdentifier;
|
|
7720
|
+
}
|
|
7721
|
+
return entries;
|
|
7722
|
+
};
|
|
7500
7723
|
const se_CreateEndpointAccessMessage = (input, context) => {
|
|
7501
7724
|
const entries = {};
|
|
7502
7725
|
if (input.ClusterIdentifier != null) {
|
|
@@ -7849,6 +8072,13 @@ const se_DeleteClusterSubnetGroupMessage = (input, context) => {
|
|
|
7849
8072
|
}
|
|
7850
8073
|
return entries;
|
|
7851
8074
|
};
|
|
8075
|
+
const se_DeleteCustomDomainAssociationMessage = (input, context) => {
|
|
8076
|
+
const entries = {};
|
|
8077
|
+
if (input.ClusterIdentifier != null) {
|
|
8078
|
+
entries["ClusterIdentifier"] = input.ClusterIdentifier;
|
|
8079
|
+
}
|
|
8080
|
+
return entries;
|
|
8081
|
+
};
|
|
7852
8082
|
const se_DeleteEndpointAccessMessage = (input, context) => {
|
|
7853
8083
|
const entries = {};
|
|
7854
8084
|
if (input.EndpointName != null) {
|
|
@@ -8197,6 +8427,22 @@ const se_DescribeClusterVersionsMessage = (input, context) => {
|
|
|
8197
8427
|
}
|
|
8198
8428
|
return entries;
|
|
8199
8429
|
};
|
|
8430
|
+
const se_DescribeCustomDomainAssociationsMessage = (input, context) => {
|
|
8431
|
+
const entries = {};
|
|
8432
|
+
if (input.CustomDomainName != null) {
|
|
8433
|
+
entries["CustomDomainName"] = input.CustomDomainName;
|
|
8434
|
+
}
|
|
8435
|
+
if (input.CustomDomainCertificateArn != null) {
|
|
8436
|
+
entries["CustomDomainCertificateArn"] = input.CustomDomainCertificateArn;
|
|
8437
|
+
}
|
|
8438
|
+
if (input.MaxRecords != null) {
|
|
8439
|
+
entries["MaxRecords"] = input.MaxRecords;
|
|
8440
|
+
}
|
|
8441
|
+
if (input.Marker != null) {
|
|
8442
|
+
entries["Marker"] = input.Marker;
|
|
8443
|
+
}
|
|
8444
|
+
return entries;
|
|
8445
|
+
};
|
|
8200
8446
|
const se_DescribeDataSharesForConsumerMessage = (input, context) => {
|
|
8201
8447
|
const entries = {};
|
|
8202
8448
|
if (input.ConsumerArn != null) {
|
|
@@ -8859,6 +9105,9 @@ const se_GetClusterCredentialsMessage = (input, context) => {
|
|
|
8859
9105
|
entries[loc] = value;
|
|
8860
9106
|
});
|
|
8861
9107
|
}
|
|
9108
|
+
if (input.CustomDomainName != null) {
|
|
9109
|
+
entries["CustomDomainName"] = input.CustomDomainName;
|
|
9110
|
+
}
|
|
8862
9111
|
return entries;
|
|
8863
9112
|
};
|
|
8864
9113
|
const se_GetClusterCredentialsWithIAMMessage = (input, context) => {
|
|
@@ -8872,6 +9121,9 @@ const se_GetClusterCredentialsWithIAMMessage = (input, context) => {
|
|
|
8872
9121
|
if (input.DurationSeconds != null) {
|
|
8873
9122
|
entries["DurationSeconds"] = input.DurationSeconds;
|
|
8874
9123
|
}
|
|
9124
|
+
if (input.CustomDomainName != null) {
|
|
9125
|
+
entries["CustomDomainName"] = input.CustomDomainName;
|
|
9126
|
+
}
|
|
8875
9127
|
return entries;
|
|
8876
9128
|
};
|
|
8877
9129
|
const se_GetReservedNodeExchangeConfigurationOptionsInputMessage = (input, context) => {
|
|
@@ -9168,6 +9420,19 @@ const se_ModifyClusterSubnetGroupMessage = (input, context) => {
|
|
|
9168
9420
|
}
|
|
9169
9421
|
return entries;
|
|
9170
9422
|
};
|
|
9423
|
+
const se_ModifyCustomDomainAssociationMessage = (input, context) => {
|
|
9424
|
+
const entries = {};
|
|
9425
|
+
if (input.CustomDomainName != null) {
|
|
9426
|
+
entries["CustomDomainName"] = input.CustomDomainName;
|
|
9427
|
+
}
|
|
9428
|
+
if (input.CustomDomainCertificateArn != null) {
|
|
9429
|
+
entries["CustomDomainCertificateArn"] = input.CustomDomainCertificateArn;
|
|
9430
|
+
}
|
|
9431
|
+
if (input.ClusterIdentifier != null) {
|
|
9432
|
+
entries["ClusterIdentifier"] = input.ClusterIdentifier;
|
|
9433
|
+
}
|
|
9434
|
+
return entries;
|
|
9435
|
+
};
|
|
9171
9436
|
const se_ModifyEndpointAccessMessage = (input, context) => {
|
|
9172
9437
|
const entries = {};
|
|
9173
9438
|
if (input.EndpointName != null) {
|
|
@@ -10013,6 +10278,30 @@ const de_AssociatedClusterList = (output, context) => {
|
|
|
10013
10278
|
return de_ClusterAssociatedToSchedule(entry, context);
|
|
10014
10279
|
});
|
|
10015
10280
|
};
|
|
10281
|
+
const de_Association = (output, context) => {
|
|
10282
|
+
const contents = {};
|
|
10283
|
+
if (output["CustomDomainCertificateArn"] !== undefined) {
|
|
10284
|
+
contents.CustomDomainCertificateArn = __expectString(output["CustomDomainCertificateArn"]);
|
|
10285
|
+
}
|
|
10286
|
+
if (output["CustomDomainCertificateExpiryDate"] !== undefined) {
|
|
10287
|
+
contents.CustomDomainCertificateExpiryDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CustomDomainCertificateExpiryDate"]));
|
|
10288
|
+
}
|
|
10289
|
+
if (output.CertificateAssociations === "") {
|
|
10290
|
+
contents.CertificateAssociations = [];
|
|
10291
|
+
}
|
|
10292
|
+
else if (output["CertificateAssociations"] !== undefined &&
|
|
10293
|
+
output["CertificateAssociations"]["CertificateAssociation"] !== undefined) {
|
|
10294
|
+
contents.CertificateAssociations = de_CertificateAssociationList(__getArrayIfSingleItem(output["CertificateAssociations"]["CertificateAssociation"]), context);
|
|
10295
|
+
}
|
|
10296
|
+
return contents;
|
|
10297
|
+
};
|
|
10298
|
+
const de_AssociationList = (output, context) => {
|
|
10299
|
+
return (output || [])
|
|
10300
|
+
.filter((e) => e != null)
|
|
10301
|
+
.map((entry) => {
|
|
10302
|
+
return de_Association(entry, context);
|
|
10303
|
+
});
|
|
10304
|
+
};
|
|
10016
10305
|
const de_AttributeList = (output, context) => {
|
|
10017
10306
|
return (output || [])
|
|
10018
10307
|
.filter((e) => e != null)
|
|
@@ -10195,6 +10484,23 @@ const de_BucketNotFoundFault = (output, context) => {
|
|
|
10195
10484
|
}
|
|
10196
10485
|
return contents;
|
|
10197
10486
|
};
|
|
10487
|
+
const de_CertificateAssociation = (output, context) => {
|
|
10488
|
+
const contents = {};
|
|
10489
|
+
if (output["CustomDomainName"] !== undefined) {
|
|
10490
|
+
contents.CustomDomainName = __expectString(output["CustomDomainName"]);
|
|
10491
|
+
}
|
|
10492
|
+
if (output["ClusterIdentifier"] !== undefined) {
|
|
10493
|
+
contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]);
|
|
10494
|
+
}
|
|
10495
|
+
return contents;
|
|
10496
|
+
};
|
|
10497
|
+
const de_CertificateAssociationList = (output, context) => {
|
|
10498
|
+
return (output || [])
|
|
10499
|
+
.filter((e) => e != null)
|
|
10500
|
+
.map((entry) => {
|
|
10501
|
+
return de_CertificateAssociation(entry, context);
|
|
10502
|
+
});
|
|
10503
|
+
};
|
|
10198
10504
|
const de_Cluster = (output, context) => {
|
|
10199
10505
|
const contents = {};
|
|
10200
10506
|
if (output["ClusterIdentifier"] !== undefined) {
|
|
@@ -10381,6 +10687,15 @@ const de_Cluster = (output, context) => {
|
|
|
10381
10687
|
if (output["ReservedNodeExchangeStatus"] !== undefined) {
|
|
10382
10688
|
contents.ReservedNodeExchangeStatus = de_ReservedNodeExchangeStatus(output["ReservedNodeExchangeStatus"], context);
|
|
10383
10689
|
}
|
|
10690
|
+
if (output["CustomDomainName"] !== undefined) {
|
|
10691
|
+
contents.CustomDomainName = __expectString(output["CustomDomainName"]);
|
|
10692
|
+
}
|
|
10693
|
+
if (output["CustomDomainCertificateArn"] !== undefined) {
|
|
10694
|
+
contents.CustomDomainCertificateArn = __expectString(output["CustomDomainCertificateArn"]);
|
|
10695
|
+
}
|
|
10696
|
+
if (output["CustomDomainCertificateExpiryDate"] !== undefined) {
|
|
10697
|
+
contents.CustomDomainCertificateExpiryDate = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CustomDomainCertificateExpiryDate"]));
|
|
10698
|
+
}
|
|
10384
10699
|
return contents;
|
|
10385
10700
|
};
|
|
10386
10701
|
const de_ClusterAlreadyExistsFault = (output, context) => {
|
|
@@ -10962,6 +11277,22 @@ const de_CreateClusterSubnetGroupResult = (output, context) => {
|
|
|
10962
11277
|
}
|
|
10963
11278
|
return contents;
|
|
10964
11279
|
};
|
|
11280
|
+
const de_CreateCustomDomainAssociationResult = (output, context) => {
|
|
11281
|
+
const contents = {};
|
|
11282
|
+
if (output["CustomDomainName"] !== undefined) {
|
|
11283
|
+
contents.CustomDomainName = __expectString(output["CustomDomainName"]);
|
|
11284
|
+
}
|
|
11285
|
+
if (output["CustomDomainCertificateArn"] !== undefined) {
|
|
11286
|
+
contents.CustomDomainCertificateArn = __expectString(output["CustomDomainCertificateArn"]);
|
|
11287
|
+
}
|
|
11288
|
+
if (output["ClusterIdentifier"] !== undefined) {
|
|
11289
|
+
contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]);
|
|
11290
|
+
}
|
|
11291
|
+
if (output["CustomDomainCertExpiryTime"] !== undefined) {
|
|
11292
|
+
contents.CustomDomainCertExpiryTime = __expectString(output["CustomDomainCertExpiryTime"]);
|
|
11293
|
+
}
|
|
11294
|
+
return contents;
|
|
11295
|
+
};
|
|
10965
11296
|
const de_CreateEventSubscriptionResult = (output, context) => {
|
|
10966
11297
|
const contents = {};
|
|
10967
11298
|
if (output["EventSubscription"] !== undefined) {
|
|
@@ -10990,6 +11321,33 @@ const de_CreateSnapshotCopyGrantResult = (output, context) => {
|
|
|
10990
11321
|
}
|
|
10991
11322
|
return contents;
|
|
10992
11323
|
};
|
|
11324
|
+
const de_CustomCnameAssociationFault = (output, context) => {
|
|
11325
|
+
const contents = {};
|
|
11326
|
+
if (output["message"] !== undefined) {
|
|
11327
|
+
contents.message = __expectString(output["message"]);
|
|
11328
|
+
}
|
|
11329
|
+
return contents;
|
|
11330
|
+
};
|
|
11331
|
+
const de_CustomDomainAssociationNotFoundFault = (output, context) => {
|
|
11332
|
+
const contents = {};
|
|
11333
|
+
if (output["message"] !== undefined) {
|
|
11334
|
+
contents.message = __expectString(output["message"]);
|
|
11335
|
+
}
|
|
11336
|
+
return contents;
|
|
11337
|
+
};
|
|
11338
|
+
const de_CustomDomainAssociationsMessage = (output, context) => {
|
|
11339
|
+
const contents = {};
|
|
11340
|
+
if (output["Marker"] !== undefined) {
|
|
11341
|
+
contents.Marker = __expectString(output["Marker"]);
|
|
11342
|
+
}
|
|
11343
|
+
if (output.Associations === "") {
|
|
11344
|
+
contents.Associations = [];
|
|
11345
|
+
}
|
|
11346
|
+
else if (output["Associations"] !== undefined && output["Associations"]["Association"] !== undefined) {
|
|
11347
|
+
contents.Associations = de_AssociationList(__getArrayIfSingleItem(output["Associations"]["Association"]), context);
|
|
11348
|
+
}
|
|
11349
|
+
return contents;
|
|
11350
|
+
};
|
|
10993
11351
|
const de_CustomerStorageMessage = (output, context) => {
|
|
10994
11352
|
const contents = {};
|
|
10995
11353
|
if (output["TotalBackupSizeInMegaBytes"] !== undefined) {
|
|
@@ -12231,6 +12589,22 @@ const de_ModifyClusterSubnetGroupResult = (output, context) => {
|
|
|
12231
12589
|
}
|
|
12232
12590
|
return contents;
|
|
12233
12591
|
};
|
|
12592
|
+
const de_ModifyCustomDomainAssociationResult = (output, context) => {
|
|
12593
|
+
const contents = {};
|
|
12594
|
+
if (output["CustomDomainName"] !== undefined) {
|
|
12595
|
+
contents.CustomDomainName = __expectString(output["CustomDomainName"]);
|
|
12596
|
+
}
|
|
12597
|
+
if (output["CustomDomainCertificateArn"] !== undefined) {
|
|
12598
|
+
contents.CustomDomainCertificateArn = __expectString(output["CustomDomainCertificateArn"]);
|
|
12599
|
+
}
|
|
12600
|
+
if (output["ClusterIdentifier"] !== undefined) {
|
|
12601
|
+
contents.ClusterIdentifier = __expectString(output["ClusterIdentifier"]);
|
|
12602
|
+
}
|
|
12603
|
+
if (output["CustomDomainCertExpiryTime"] !== undefined) {
|
|
12604
|
+
contents.CustomDomainCertExpiryTime = __expectString(output["CustomDomainCertExpiryTime"]);
|
|
12605
|
+
}
|
|
12606
|
+
return contents;
|
|
12607
|
+
};
|
|
12234
12608
|
const de_ModifyEventSubscriptionResult = (output, context) => {
|
|
12235
12609
|
const contents = {};
|
|
12236
12610
|
if (output["EventSubscription"] !== undefined) {
|
|
@@ -13869,12 +14243,6 @@ const deserializeMetadata = (output) => ({
|
|
|
13869
14243
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
13870
14244
|
cfId: output.headers["x-amz-cf-id"],
|
|
13871
14245
|
});
|
|
13872
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
13873
|
-
if (streamBody instanceof Uint8Array) {
|
|
13874
|
-
return Promise.resolve(streamBody);
|
|
13875
|
-
}
|
|
13876
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
13877
|
-
};
|
|
13878
14246
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
13879
14247
|
const throwDefaultError = withBaseException(__BaseException);
|
|
13880
14248
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
package/dist-types/Redshift.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { CreateClusterParameterGroupCommandInput, CreateClusterParameterGroupCom
|
|
|
16
16
|
import { CreateClusterSecurityGroupCommandInput, CreateClusterSecurityGroupCommandOutput } from "./commands/CreateClusterSecurityGroupCommand";
|
|
17
17
|
import { CreateClusterSnapshotCommandInput, CreateClusterSnapshotCommandOutput } from "./commands/CreateClusterSnapshotCommand";
|
|
18
18
|
import { CreateClusterSubnetGroupCommandInput, CreateClusterSubnetGroupCommandOutput } from "./commands/CreateClusterSubnetGroupCommand";
|
|
19
|
+
import { CreateCustomDomainAssociationCommandInput, CreateCustomDomainAssociationCommandOutput } from "./commands/CreateCustomDomainAssociationCommand";
|
|
19
20
|
import { CreateEndpointAccessCommandInput, CreateEndpointAccessCommandOutput } from "./commands/CreateEndpointAccessCommand";
|
|
20
21
|
import { CreateEventSubscriptionCommandInput, CreateEventSubscriptionCommandOutput } from "./commands/CreateEventSubscriptionCommand";
|
|
21
22
|
import { CreateHsmClientCertificateCommandInput, CreateHsmClientCertificateCommandOutput } from "./commands/CreateHsmClientCertificateCommand";
|
|
@@ -32,6 +33,7 @@ import { DeleteClusterParameterGroupCommandInput, DeleteClusterParameterGroupCom
|
|
|
32
33
|
import { DeleteClusterSecurityGroupCommandInput, DeleteClusterSecurityGroupCommandOutput } from "./commands/DeleteClusterSecurityGroupCommand";
|
|
33
34
|
import { DeleteClusterSnapshotCommandInput, DeleteClusterSnapshotCommandOutput } from "./commands/DeleteClusterSnapshotCommand";
|
|
34
35
|
import { DeleteClusterSubnetGroupCommandInput, DeleteClusterSubnetGroupCommandOutput } from "./commands/DeleteClusterSubnetGroupCommand";
|
|
36
|
+
import { DeleteCustomDomainAssociationCommandInput, DeleteCustomDomainAssociationCommandOutput } from "./commands/DeleteCustomDomainAssociationCommand";
|
|
35
37
|
import { DeleteEndpointAccessCommandInput, DeleteEndpointAccessCommandOutput } from "./commands/DeleteEndpointAccessCommand";
|
|
36
38
|
import { DeleteEventSubscriptionCommandInput, DeleteEventSubscriptionCommandOutput } from "./commands/DeleteEventSubscriptionCommand";
|
|
37
39
|
import { DeleteHsmClientCertificateCommandInput, DeleteHsmClientCertificateCommandOutput } from "./commands/DeleteHsmClientCertificateCommand";
|
|
@@ -53,6 +55,7 @@ import { DescribeClusterSnapshotsCommandInput, DescribeClusterSnapshotsCommandOu
|
|
|
53
55
|
import { DescribeClusterSubnetGroupsCommandInput, DescribeClusterSubnetGroupsCommandOutput } from "./commands/DescribeClusterSubnetGroupsCommand";
|
|
54
56
|
import { DescribeClusterTracksCommandInput, DescribeClusterTracksCommandOutput } from "./commands/DescribeClusterTracksCommand";
|
|
55
57
|
import { DescribeClusterVersionsCommandInput, DescribeClusterVersionsCommandOutput } from "./commands/DescribeClusterVersionsCommand";
|
|
58
|
+
import { DescribeCustomDomainAssociationsCommandInput, DescribeCustomDomainAssociationsCommandOutput } from "./commands/DescribeCustomDomainAssociationsCommand";
|
|
56
59
|
import { DescribeDataSharesCommandInput, DescribeDataSharesCommandOutput } from "./commands/DescribeDataSharesCommand";
|
|
57
60
|
import { DescribeDataSharesForConsumerCommandInput, DescribeDataSharesForConsumerCommandOutput } from "./commands/DescribeDataSharesForConsumerCommand";
|
|
58
61
|
import { DescribeDataSharesForProducerCommandInput, DescribeDataSharesForProducerCommandOutput } from "./commands/DescribeDataSharesForProducerCommand";
|
|
@@ -98,6 +101,7 @@ import { ModifyClusterParameterGroupCommandInput, ModifyClusterParameterGroupCom
|
|
|
98
101
|
import { ModifyClusterSnapshotCommandInput, ModifyClusterSnapshotCommandOutput } from "./commands/ModifyClusterSnapshotCommand";
|
|
99
102
|
import { ModifyClusterSnapshotScheduleCommandInput, ModifyClusterSnapshotScheduleCommandOutput } from "./commands/ModifyClusterSnapshotScheduleCommand";
|
|
100
103
|
import { ModifyClusterSubnetGroupCommandInput, ModifyClusterSubnetGroupCommandOutput } from "./commands/ModifyClusterSubnetGroupCommand";
|
|
104
|
+
import { ModifyCustomDomainAssociationCommandInput, ModifyCustomDomainAssociationCommandOutput } from "./commands/ModifyCustomDomainAssociationCommand";
|
|
101
105
|
import { ModifyEndpointAccessCommandInput, ModifyEndpointAccessCommandOutput } from "./commands/ModifyEndpointAccessCommand";
|
|
102
106
|
import { ModifyEventSubscriptionCommandInput, ModifyEventSubscriptionCommandOutput } from "./commands/ModifyEventSubscriptionCommand";
|
|
103
107
|
import { ModifyScheduledActionCommandInput, ModifyScheduledActionCommandOutput } from "./commands/ModifyScheduledActionCommand";
|
|
@@ -222,6 +226,12 @@ export interface Redshift {
|
|
|
222
226
|
createClusterSubnetGroup(args: CreateClusterSubnetGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateClusterSubnetGroupCommandOutput>;
|
|
223
227
|
createClusterSubnetGroup(args: CreateClusterSubnetGroupCommandInput, cb: (err: any, data?: CreateClusterSubnetGroupCommandOutput) => void): void;
|
|
224
228
|
createClusterSubnetGroup(args: CreateClusterSubnetGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateClusterSubnetGroupCommandOutput) => void): void;
|
|
229
|
+
/**
|
|
230
|
+
* @see {@link CreateCustomDomainAssociationCommand}
|
|
231
|
+
*/
|
|
232
|
+
createCustomDomainAssociation(args: CreateCustomDomainAssociationCommandInput, options?: __HttpHandlerOptions): Promise<CreateCustomDomainAssociationCommandOutput>;
|
|
233
|
+
createCustomDomainAssociation(args: CreateCustomDomainAssociationCommandInput, cb: (err: any, data?: CreateCustomDomainAssociationCommandOutput) => void): void;
|
|
234
|
+
createCustomDomainAssociation(args: CreateCustomDomainAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCustomDomainAssociationCommandOutput) => void): void;
|
|
225
235
|
/**
|
|
226
236
|
* @see {@link CreateEndpointAccessCommand}
|
|
227
237
|
*/
|
|
@@ -318,6 +328,12 @@ export interface Redshift {
|
|
|
318
328
|
deleteClusterSubnetGroup(args: DeleteClusterSubnetGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteClusterSubnetGroupCommandOutput>;
|
|
319
329
|
deleteClusterSubnetGroup(args: DeleteClusterSubnetGroupCommandInput, cb: (err: any, data?: DeleteClusterSubnetGroupCommandOutput) => void): void;
|
|
320
330
|
deleteClusterSubnetGroup(args: DeleteClusterSubnetGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteClusterSubnetGroupCommandOutput) => void): void;
|
|
331
|
+
/**
|
|
332
|
+
* @see {@link DeleteCustomDomainAssociationCommand}
|
|
333
|
+
*/
|
|
334
|
+
deleteCustomDomainAssociation(args: DeleteCustomDomainAssociationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCustomDomainAssociationCommandOutput>;
|
|
335
|
+
deleteCustomDomainAssociation(args: DeleteCustomDomainAssociationCommandInput, cb: (err: any, data?: DeleteCustomDomainAssociationCommandOutput) => void): void;
|
|
336
|
+
deleteCustomDomainAssociation(args: DeleteCustomDomainAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCustomDomainAssociationCommandOutput) => void): void;
|
|
321
337
|
/**
|
|
322
338
|
* @see {@link DeleteEndpointAccessCommand}
|
|
323
339
|
*/
|
|
@@ -444,6 +460,12 @@ export interface Redshift {
|
|
|
444
460
|
describeClusterVersions(args: DescribeClusterVersionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeClusterVersionsCommandOutput>;
|
|
445
461
|
describeClusterVersions(args: DescribeClusterVersionsCommandInput, cb: (err: any, data?: DescribeClusterVersionsCommandOutput) => void): void;
|
|
446
462
|
describeClusterVersions(args: DescribeClusterVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeClusterVersionsCommandOutput) => void): void;
|
|
463
|
+
/**
|
|
464
|
+
* @see {@link DescribeCustomDomainAssociationsCommand}
|
|
465
|
+
*/
|
|
466
|
+
describeCustomDomainAssociations(args: DescribeCustomDomainAssociationsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCustomDomainAssociationsCommandOutput>;
|
|
467
|
+
describeCustomDomainAssociations(args: DescribeCustomDomainAssociationsCommandInput, cb: (err: any, data?: DescribeCustomDomainAssociationsCommandOutput) => void): void;
|
|
468
|
+
describeCustomDomainAssociations(args: DescribeCustomDomainAssociationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeCustomDomainAssociationsCommandOutput) => void): void;
|
|
447
469
|
/**
|
|
448
470
|
* @see {@link DescribeDataSharesCommand}
|
|
449
471
|
*/
|
|
@@ -714,6 +736,12 @@ export interface Redshift {
|
|
|
714
736
|
modifyClusterSubnetGroup(args: ModifyClusterSubnetGroupCommandInput, options?: __HttpHandlerOptions): Promise<ModifyClusterSubnetGroupCommandOutput>;
|
|
715
737
|
modifyClusterSubnetGroup(args: ModifyClusterSubnetGroupCommandInput, cb: (err: any, data?: ModifyClusterSubnetGroupCommandOutput) => void): void;
|
|
716
738
|
modifyClusterSubnetGroup(args: ModifyClusterSubnetGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ModifyClusterSubnetGroupCommandOutput) => void): void;
|
|
739
|
+
/**
|
|
740
|
+
* @see {@link ModifyCustomDomainAssociationCommand}
|
|
741
|
+
*/
|
|
742
|
+
modifyCustomDomainAssociation(args: ModifyCustomDomainAssociationCommandInput, options?: __HttpHandlerOptions): Promise<ModifyCustomDomainAssociationCommandOutput>;
|
|
743
|
+
modifyCustomDomainAssociation(args: ModifyCustomDomainAssociationCommandInput, cb: (err: any, data?: ModifyCustomDomainAssociationCommandOutput) => void): void;
|
|
744
|
+
modifyCustomDomainAssociation(args: ModifyCustomDomainAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ModifyCustomDomainAssociationCommandOutput) => void): void;
|
|
717
745
|
/**
|
|
718
746
|
* @see {@link ModifyEndpointAccessCommand}
|
|
719
747
|
*/
|