@aws-sdk/client-redshift 3.435.0 → 3.437.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/DeleteResourcePolicyCommand.js +51 -0
- package/dist-cjs/commands/DescribeInboundIntegrationsCommand.js +51 -0
- package/dist-cjs/commands/GetResourcePolicyCommand.js +51 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +51 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +15 -2
- package/dist-cjs/models/models_1.js +36 -1
- package/dist-cjs/pagination/DescribeInboundIntegrationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_query.js +378 -5
- package/dist-cjs/runtimeConfig.js +2 -0
- package/dist-cjs/runtimeConfig.shared.js +15 -13
- package/dist-es/Redshift.js +8 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +47 -0
- package/dist-es/commands/DescribeInboundIntegrationsCommand.js +47 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +47 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +47 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/models/models_1.js +33 -0
- package/dist-es/pagination/DescribeInboundIntegrationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_query.js +366 -2
- package/dist-es/runtimeConfig.js +2 -0
- package/dist-es/runtimeConfig.shared.js +15 -13
- package/dist-types/Redshift.d.ts +28 -0
- package/dist-types/RedshiftClient.d.ts +6 -2
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +77 -0
- package/dist-types/commands/DescribeInboundIntegrationsCommand.d.ts +100 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +85 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +89 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +22 -44
- package/dist-types/models/models_1.d.ts +254 -1
- package/dist-types/pagination/DescribeInboundIntegrationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- 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/DeleteResourcePolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeInboundIntegrationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +10 -10
- package/dist-types/ts3.4/models/models_1.d.ts +72 -1
- package/dist-types/ts3.4/pagination/DescribeInboundIntegrationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +48 -0
- package/package.json +5 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
2
|
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 "@smithy/smithy-client";
|
|
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, 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
|
-
import { EndpointAuthorizationNotFoundFault, IncompatibleOrderableOptions, InProgressTableRestoreQuotaExceededFault, InsufficientS3BucketPolicyFault, InvalidRestoreFault, InvalidS3BucketNameFault, InvalidS3KeyPrefixFault, InvalidTableRestoreArgumentFault, ReservedNodeExchangeNotFoundFault, ReservedNodeQuotaExceededFault, SnapshotCopyAlreadyDisabledFault, SnapshotCopyAlreadyEnabledFault, SnapshotCopyDisabledFault, SnapshotScheduleUpdateInProgressFault, SubnetAlreadyInUse, TableLimitExceededFault, TableRestoreNotFoundFault, UnknownSnapshotCopyRegionFault, UnsupportedOptionFault, } from "../models/models_1";
|
|
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, ConflictPolicyUpdateFault, 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
|
+
import { EndpointAuthorizationNotFoundFault, IncompatibleOrderableOptions, InProgressTableRestoreQuotaExceededFault, InsufficientS3BucketPolicyFault, IntegrationNotFoundFault, InvalidPolicyFault, 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) => {
|
|
8
8
|
const headers = SHARED_HEADERS;
|
|
@@ -404,6 +404,16 @@ export const se_DeletePartnerCommand = async (input, context) => {
|
|
|
404
404
|
});
|
|
405
405
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
406
406
|
};
|
|
407
|
+
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
408
|
+
const headers = SHARED_HEADERS;
|
|
409
|
+
let body;
|
|
410
|
+
body = buildFormUrlencodedString({
|
|
411
|
+
...se_DeleteResourcePolicyMessage(input, context),
|
|
412
|
+
Action: "DeleteResourcePolicy",
|
|
413
|
+
Version: "2012-12-01",
|
|
414
|
+
});
|
|
415
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
416
|
+
};
|
|
407
417
|
export const se_DeleteScheduledActionCommand = async (input, context) => {
|
|
408
418
|
const headers = SHARED_HEADERS;
|
|
409
419
|
let body;
|
|
@@ -684,6 +694,16 @@ export const se_DescribeHsmConfigurationsCommand = async (input, context) => {
|
|
|
684
694
|
});
|
|
685
695
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
686
696
|
};
|
|
697
|
+
export const se_DescribeInboundIntegrationsCommand = async (input, context) => {
|
|
698
|
+
const headers = SHARED_HEADERS;
|
|
699
|
+
let body;
|
|
700
|
+
body = buildFormUrlencodedString({
|
|
701
|
+
...se_DescribeInboundIntegrationsMessage(input, context),
|
|
702
|
+
Action: "DescribeInboundIntegrations",
|
|
703
|
+
Version: "2012-12-01",
|
|
704
|
+
});
|
|
705
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
706
|
+
};
|
|
687
707
|
export const se_DescribeLoggingStatusCommand = async (input, context) => {
|
|
688
708
|
const headers = SHARED_HEADERS;
|
|
689
709
|
let body;
|
|
@@ -922,6 +942,16 @@ export const se_GetReservedNodeExchangeOfferingsCommand = async (input, context)
|
|
|
922
942
|
});
|
|
923
943
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
924
944
|
};
|
|
945
|
+
export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
946
|
+
const headers = SHARED_HEADERS;
|
|
947
|
+
let body;
|
|
948
|
+
body = buildFormUrlencodedString({
|
|
949
|
+
...se_GetResourcePolicyMessage(input, context),
|
|
950
|
+
Action: "GetResourcePolicy",
|
|
951
|
+
Version: "2012-12-01",
|
|
952
|
+
});
|
|
953
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
954
|
+
};
|
|
925
955
|
export const se_ModifyAquaConfigurationCommand = async (input, context) => {
|
|
926
956
|
const headers = SHARED_HEADERS;
|
|
927
957
|
let body;
|
|
@@ -1112,6 +1142,16 @@ export const se_PurchaseReservedNodeOfferingCommand = async (input, context) =>
|
|
|
1112
1142
|
});
|
|
1113
1143
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1114
1144
|
};
|
|
1145
|
+
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
1146
|
+
const headers = SHARED_HEADERS;
|
|
1147
|
+
let body;
|
|
1148
|
+
body = buildFormUrlencodedString({
|
|
1149
|
+
...se_PutResourcePolicyMessage(input, context),
|
|
1150
|
+
Action: "PutResourcePolicy",
|
|
1151
|
+
Version: "2012-12-01",
|
|
1152
|
+
});
|
|
1153
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1154
|
+
};
|
|
1115
1155
|
export const se_RebootClusterCommand = async (input, context) => {
|
|
1116
1156
|
const headers = SHARED_HEADERS;
|
|
1117
1157
|
let body;
|
|
@@ -2923,6 +2963,38 @@ const de_DeletePartnerCommandError = async (output, context) => {
|
|
|
2923
2963
|
});
|
|
2924
2964
|
}
|
|
2925
2965
|
};
|
|
2966
|
+
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
2967
|
+
if (output.statusCode >= 300) {
|
|
2968
|
+
return de_DeleteResourcePolicyCommandError(output, context);
|
|
2969
|
+
}
|
|
2970
|
+
await collectBody(output.body, context);
|
|
2971
|
+
const response = {
|
|
2972
|
+
$metadata: deserializeMetadata(output),
|
|
2973
|
+
};
|
|
2974
|
+
return response;
|
|
2975
|
+
};
|
|
2976
|
+
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
2977
|
+
const parsedOutput = {
|
|
2978
|
+
...output,
|
|
2979
|
+
body: await parseErrorBody(output.body, context),
|
|
2980
|
+
};
|
|
2981
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2982
|
+
switch (errorCode) {
|
|
2983
|
+
case "ResourceNotFoundFault":
|
|
2984
|
+
case "com.amazonaws.redshift#ResourceNotFoundFault":
|
|
2985
|
+
throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
|
|
2986
|
+
case "UnsupportedOperation":
|
|
2987
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
2988
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
2989
|
+
default:
|
|
2990
|
+
const parsedBody = parsedOutput.body;
|
|
2991
|
+
return throwDefaultError({
|
|
2992
|
+
output,
|
|
2993
|
+
parsedBody: parsedBody.Error,
|
|
2994
|
+
errorCode,
|
|
2995
|
+
});
|
|
2996
|
+
}
|
|
2997
|
+
};
|
|
2926
2998
|
export const de_DeleteScheduledActionCommand = async (output, context) => {
|
|
2927
2999
|
if (output.statusCode >= 300) {
|
|
2928
3000
|
return de_DeleteScheduledActionCommandError(output, context);
|
|
@@ -3840,6 +3912,44 @@ const de_DescribeHsmConfigurationsCommandError = async (output, context) => {
|
|
|
3840
3912
|
});
|
|
3841
3913
|
}
|
|
3842
3914
|
};
|
|
3915
|
+
export const de_DescribeInboundIntegrationsCommand = async (output, context) => {
|
|
3916
|
+
if (output.statusCode >= 300) {
|
|
3917
|
+
return de_DescribeInboundIntegrationsCommandError(output, context);
|
|
3918
|
+
}
|
|
3919
|
+
const data = await parseBody(output.body, context);
|
|
3920
|
+
let contents = {};
|
|
3921
|
+
contents = de_InboundIntegrationsMessage(data.DescribeInboundIntegrationsResult, context);
|
|
3922
|
+
const response = {
|
|
3923
|
+
$metadata: deserializeMetadata(output),
|
|
3924
|
+
...contents,
|
|
3925
|
+
};
|
|
3926
|
+
return response;
|
|
3927
|
+
};
|
|
3928
|
+
const de_DescribeInboundIntegrationsCommandError = async (output, context) => {
|
|
3929
|
+
const parsedOutput = {
|
|
3930
|
+
...output,
|
|
3931
|
+
body: await parseErrorBody(output.body, context),
|
|
3932
|
+
};
|
|
3933
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3934
|
+
switch (errorCode) {
|
|
3935
|
+
case "IntegrationNotFoundFault":
|
|
3936
|
+
case "com.amazonaws.redshift#IntegrationNotFoundFault":
|
|
3937
|
+
throw await de_IntegrationNotFoundFaultRes(parsedOutput, context);
|
|
3938
|
+
case "InvalidNamespaceFault":
|
|
3939
|
+
case "com.amazonaws.redshift#InvalidNamespaceFault":
|
|
3940
|
+
throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
|
|
3941
|
+
case "UnsupportedOperation":
|
|
3942
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
3943
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
3944
|
+
default:
|
|
3945
|
+
const parsedBody = parsedOutput.body;
|
|
3946
|
+
return throwDefaultError({
|
|
3947
|
+
output,
|
|
3948
|
+
parsedBody: parsedBody.Error,
|
|
3949
|
+
errorCode,
|
|
3950
|
+
});
|
|
3951
|
+
}
|
|
3952
|
+
};
|
|
3843
3953
|
export const de_DescribeLoggingStatusCommand = async (output, context) => {
|
|
3844
3954
|
if (output.statusCode >= 300) {
|
|
3845
3955
|
return de_DescribeLoggingStatusCommandError(output, context);
|
|
@@ -4740,6 +4850,44 @@ const de_GetReservedNodeExchangeOfferingsCommandError = async (output, context)
|
|
|
4740
4850
|
});
|
|
4741
4851
|
}
|
|
4742
4852
|
};
|
|
4853
|
+
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
4854
|
+
if (output.statusCode >= 300) {
|
|
4855
|
+
return de_GetResourcePolicyCommandError(output, context);
|
|
4856
|
+
}
|
|
4857
|
+
const data = await parseBody(output.body, context);
|
|
4858
|
+
let contents = {};
|
|
4859
|
+
contents = de_GetResourcePolicyResult(data.GetResourcePolicyResult, context);
|
|
4860
|
+
const response = {
|
|
4861
|
+
$metadata: deserializeMetadata(output),
|
|
4862
|
+
...contents,
|
|
4863
|
+
};
|
|
4864
|
+
return response;
|
|
4865
|
+
};
|
|
4866
|
+
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
4867
|
+
const parsedOutput = {
|
|
4868
|
+
...output,
|
|
4869
|
+
body: await parseErrorBody(output.body, context),
|
|
4870
|
+
};
|
|
4871
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4872
|
+
switch (errorCode) {
|
|
4873
|
+
case "InvalidPolicyFault":
|
|
4874
|
+
case "com.amazonaws.redshift#InvalidPolicyFault":
|
|
4875
|
+
throw await de_InvalidPolicyFaultRes(parsedOutput, context);
|
|
4876
|
+
case "ResourceNotFoundFault":
|
|
4877
|
+
case "com.amazonaws.redshift#ResourceNotFoundFault":
|
|
4878
|
+
throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
|
|
4879
|
+
case "UnsupportedOperation":
|
|
4880
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
4881
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4882
|
+
default:
|
|
4883
|
+
const parsedBody = parsedOutput.body;
|
|
4884
|
+
return throwDefaultError({
|
|
4885
|
+
output,
|
|
4886
|
+
parsedBody: parsedBody.Error,
|
|
4887
|
+
errorCode,
|
|
4888
|
+
});
|
|
4889
|
+
}
|
|
4890
|
+
};
|
|
4743
4891
|
export const de_ModifyAquaConfigurationCommand = async (output, context) => {
|
|
4744
4892
|
if (output.statusCode >= 300) {
|
|
4745
4893
|
return de_ModifyAquaConfigurationCommandError(output, context);
|
|
@@ -5552,6 +5700,47 @@ const de_PurchaseReservedNodeOfferingCommandError = async (output, context) => {
|
|
|
5552
5700
|
});
|
|
5553
5701
|
}
|
|
5554
5702
|
};
|
|
5703
|
+
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
5704
|
+
if (output.statusCode >= 300) {
|
|
5705
|
+
return de_PutResourcePolicyCommandError(output, context);
|
|
5706
|
+
}
|
|
5707
|
+
const data = await parseBody(output.body, context);
|
|
5708
|
+
let contents = {};
|
|
5709
|
+
contents = de_PutResourcePolicyResult(data.PutResourcePolicyResult, context);
|
|
5710
|
+
const response = {
|
|
5711
|
+
$metadata: deserializeMetadata(output),
|
|
5712
|
+
...contents,
|
|
5713
|
+
};
|
|
5714
|
+
return response;
|
|
5715
|
+
};
|
|
5716
|
+
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
5717
|
+
const parsedOutput = {
|
|
5718
|
+
...output,
|
|
5719
|
+
body: await parseErrorBody(output.body, context),
|
|
5720
|
+
};
|
|
5721
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
5722
|
+
switch (errorCode) {
|
|
5723
|
+
case "ConflictPolicyUpdateFault":
|
|
5724
|
+
case "com.amazonaws.redshift#ConflictPolicyUpdateFault":
|
|
5725
|
+
throw await de_ConflictPolicyUpdateFaultRes(parsedOutput, context);
|
|
5726
|
+
case "InvalidPolicyFault":
|
|
5727
|
+
case "com.amazonaws.redshift#InvalidPolicyFault":
|
|
5728
|
+
throw await de_InvalidPolicyFaultRes(parsedOutput, context);
|
|
5729
|
+
case "ResourceNotFoundFault":
|
|
5730
|
+
case "com.amazonaws.redshift#ResourceNotFoundFault":
|
|
5731
|
+
throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
|
|
5732
|
+
case "UnsupportedOperation":
|
|
5733
|
+
case "com.amazonaws.redshift#UnsupportedOperationFault":
|
|
5734
|
+
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
5735
|
+
default:
|
|
5736
|
+
const parsedBody = parsedOutput.body;
|
|
5737
|
+
return throwDefaultError({
|
|
5738
|
+
output,
|
|
5739
|
+
parsedBody: parsedBody.Error,
|
|
5740
|
+
errorCode,
|
|
5741
|
+
});
|
|
5742
|
+
}
|
|
5743
|
+
};
|
|
5555
5744
|
export const de_RebootClusterCommand = async (output, context) => {
|
|
5556
5745
|
if (output.statusCode >= 300) {
|
|
5557
5746
|
return de_RebootClusterCommandError(output, context);
|
|
@@ -6398,6 +6587,15 @@ const de_ClusterSubnetQuotaExceededFaultRes = async (parsedOutput, context) => {
|
|
|
6398
6587
|
});
|
|
6399
6588
|
return __decorateServiceException(exception, body);
|
|
6400
6589
|
};
|
|
6590
|
+
const de_ConflictPolicyUpdateFaultRes = async (parsedOutput, context) => {
|
|
6591
|
+
const body = parsedOutput.body;
|
|
6592
|
+
const deserialized = de_ConflictPolicyUpdateFault(body.Error, context);
|
|
6593
|
+
const exception = new ConflictPolicyUpdateFault({
|
|
6594
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6595
|
+
...deserialized,
|
|
6596
|
+
});
|
|
6597
|
+
return __decorateServiceException(exception, body);
|
|
6598
|
+
};
|
|
6401
6599
|
const de_CopyToRegionDisabledFaultRes = async (parsedOutput, context) => {
|
|
6402
6600
|
const body = parsedOutput.body;
|
|
6403
6601
|
const deserialized = de_CopyToRegionDisabledFault(body.Error, context);
|
|
@@ -6605,6 +6803,15 @@ const de_InsufficientS3BucketPolicyFaultRes = async (parsedOutput, context) => {
|
|
|
6605
6803
|
});
|
|
6606
6804
|
return __decorateServiceException(exception, body);
|
|
6607
6805
|
};
|
|
6806
|
+
const de_IntegrationNotFoundFaultRes = async (parsedOutput, context) => {
|
|
6807
|
+
const body = parsedOutput.body;
|
|
6808
|
+
const deserialized = de_IntegrationNotFoundFault(body.Error, context);
|
|
6809
|
+
const exception = new IntegrationNotFoundFault({
|
|
6810
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6811
|
+
...deserialized,
|
|
6812
|
+
});
|
|
6813
|
+
return __decorateServiceException(exception, body);
|
|
6814
|
+
};
|
|
6608
6815
|
const de_InvalidAuthenticationProfileRequestFaultRes = async (parsedOutput, context) => {
|
|
6609
6816
|
const body = parsedOutput.body;
|
|
6610
6817
|
const deserialized = de_InvalidAuthenticationProfileRequestFault(body.Error, context);
|
|
@@ -6749,6 +6956,15 @@ const de_InvalidNamespaceFaultRes = async (parsedOutput, context) => {
|
|
|
6749
6956
|
});
|
|
6750
6957
|
return __decorateServiceException(exception, body);
|
|
6751
6958
|
};
|
|
6959
|
+
const de_InvalidPolicyFaultRes = async (parsedOutput, context) => {
|
|
6960
|
+
const body = parsedOutput.body;
|
|
6961
|
+
const deserialized = de_InvalidPolicyFault(body.Error, context);
|
|
6962
|
+
const exception = new InvalidPolicyFault({
|
|
6963
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6964
|
+
...deserialized,
|
|
6965
|
+
});
|
|
6966
|
+
return __decorateServiceException(exception, body);
|
|
6967
|
+
};
|
|
6752
6968
|
const de_InvalidReservedNodeStateFaultRes = async (parsedOutput, context) => {
|
|
6753
6969
|
const body = parsedOutput.body;
|
|
6754
6970
|
const deserialized = de_InvalidReservedNodeStateFault(body.Error, context);
|
|
@@ -8113,6 +8329,13 @@ const se_DeleteHsmConfigurationMessage = (input, context) => {
|
|
|
8113
8329
|
}
|
|
8114
8330
|
return entries;
|
|
8115
8331
|
};
|
|
8332
|
+
const se_DeleteResourcePolicyMessage = (input, context) => {
|
|
8333
|
+
const entries = {};
|
|
8334
|
+
if (input.ResourceArn != null) {
|
|
8335
|
+
entries["ResourceArn"] = input.ResourceArn;
|
|
8336
|
+
}
|
|
8337
|
+
return entries;
|
|
8338
|
+
};
|
|
8116
8339
|
const se_DeleteScheduledActionMessage = (input, context) => {
|
|
8117
8340
|
const entries = {};
|
|
8118
8341
|
if (input.ScheduledActionName != null) {
|
|
@@ -8679,6 +8902,22 @@ const se_DescribeHsmConfigurationsMessage = (input, context) => {
|
|
|
8679
8902
|
}
|
|
8680
8903
|
return entries;
|
|
8681
8904
|
};
|
|
8905
|
+
const se_DescribeInboundIntegrationsMessage = (input, context) => {
|
|
8906
|
+
const entries = {};
|
|
8907
|
+
if (input.IntegrationArn != null) {
|
|
8908
|
+
entries["IntegrationArn"] = input.IntegrationArn;
|
|
8909
|
+
}
|
|
8910
|
+
if (input.TargetArn != null) {
|
|
8911
|
+
entries["TargetArn"] = input.TargetArn;
|
|
8912
|
+
}
|
|
8913
|
+
if (input.MaxRecords != null) {
|
|
8914
|
+
entries["MaxRecords"] = input.MaxRecords;
|
|
8915
|
+
}
|
|
8916
|
+
if (input.Marker != null) {
|
|
8917
|
+
entries["Marker"] = input.Marker;
|
|
8918
|
+
}
|
|
8919
|
+
return entries;
|
|
8920
|
+
};
|
|
8682
8921
|
const se_DescribeLoggingStatusMessage = (input, context) => {
|
|
8683
8922
|
const entries = {};
|
|
8684
8923
|
if (input.ClusterIdentifier != null) {
|
|
@@ -9164,6 +9403,13 @@ const se_GetReservedNodeExchangeOfferingsInputMessage = (input, context) => {
|
|
|
9164
9403
|
}
|
|
9165
9404
|
return entries;
|
|
9166
9405
|
};
|
|
9406
|
+
const se_GetResourcePolicyMessage = (input, context) => {
|
|
9407
|
+
const entries = {};
|
|
9408
|
+
if (input.ResourceArn != null) {
|
|
9409
|
+
entries["ResourceArn"] = input.ResourceArn;
|
|
9410
|
+
}
|
|
9411
|
+
return entries;
|
|
9412
|
+
};
|
|
9167
9413
|
const se_IamRoleArnList = (input, context) => {
|
|
9168
9414
|
const entries = {};
|
|
9169
9415
|
let counter = 1;
|
|
@@ -9690,6 +9936,16 @@ const se_PurchaseReservedNodeOfferingMessage = (input, context) => {
|
|
|
9690
9936
|
}
|
|
9691
9937
|
return entries;
|
|
9692
9938
|
};
|
|
9939
|
+
const se_PutResourcePolicyMessage = (input, context) => {
|
|
9940
|
+
const entries = {};
|
|
9941
|
+
if (input.ResourceArn != null) {
|
|
9942
|
+
entries["ResourceArn"] = input.ResourceArn;
|
|
9943
|
+
}
|
|
9944
|
+
if (input.Policy != null) {
|
|
9945
|
+
entries["Policy"] = input.Policy;
|
|
9946
|
+
}
|
|
9947
|
+
return entries;
|
|
9948
|
+
};
|
|
9693
9949
|
const se_RebootClusterMessage = (input, context) => {
|
|
9694
9950
|
const entries = {};
|
|
9695
9951
|
if (input.ClusterIdentifier != null) {
|
|
@@ -11242,6 +11498,13 @@ const de_ClusterVersionsMessage = (output, context) => {
|
|
|
11242
11498
|
}
|
|
11243
11499
|
return contents;
|
|
11244
11500
|
};
|
|
11501
|
+
const de_ConflictPolicyUpdateFault = (output, context) => {
|
|
11502
|
+
const contents = {};
|
|
11503
|
+
if (output["message"] !== undefined) {
|
|
11504
|
+
contents.message = __expectString(output["message"]);
|
|
11505
|
+
}
|
|
11506
|
+
return contents;
|
|
11507
|
+
};
|
|
11245
11508
|
const de_CopyClusterSnapshotResult = (output, context) => {
|
|
11246
11509
|
const contents = {};
|
|
11247
11510
|
if (output["Snapshot"] !== undefined) {
|
|
@@ -12076,6 +12339,13 @@ const de_GetReservedNodeExchangeOfferingsOutputMessage = (output, context) => {
|
|
|
12076
12339
|
}
|
|
12077
12340
|
return contents;
|
|
12078
12341
|
};
|
|
12342
|
+
const de_GetResourcePolicyResult = (output, context) => {
|
|
12343
|
+
const contents = {};
|
|
12344
|
+
if (output["ResourcePolicy"] !== undefined) {
|
|
12345
|
+
contents.ResourcePolicy = de_ResourcePolicy(output["ResourcePolicy"], context);
|
|
12346
|
+
}
|
|
12347
|
+
return contents;
|
|
12348
|
+
};
|
|
12079
12349
|
const de_HsmClientCertificate = (output, context) => {
|
|
12080
12350
|
const contents = {};
|
|
12081
12351
|
if (output["HsmClientCertificateIdentifier"] !== undefined) {
|
|
@@ -12232,6 +12502,52 @@ const de_ImportTablesNotStarted = (output, context) => {
|
|
|
12232
12502
|
return __expectString(entry);
|
|
12233
12503
|
});
|
|
12234
12504
|
};
|
|
12505
|
+
const de_InboundIntegration = (output, context) => {
|
|
12506
|
+
const contents = {};
|
|
12507
|
+
if (output["IntegrationArn"] !== undefined) {
|
|
12508
|
+
contents.IntegrationArn = __expectString(output["IntegrationArn"]);
|
|
12509
|
+
}
|
|
12510
|
+
if (output["SourceArn"] !== undefined) {
|
|
12511
|
+
contents.SourceArn = __expectString(output["SourceArn"]);
|
|
12512
|
+
}
|
|
12513
|
+
if (output["TargetArn"] !== undefined) {
|
|
12514
|
+
contents.TargetArn = __expectString(output["TargetArn"]);
|
|
12515
|
+
}
|
|
12516
|
+
if (output["Status"] !== undefined) {
|
|
12517
|
+
contents.Status = __expectString(output["Status"]);
|
|
12518
|
+
}
|
|
12519
|
+
if (output.Errors === "") {
|
|
12520
|
+
contents.Errors = [];
|
|
12521
|
+
}
|
|
12522
|
+
else if (output["Errors"] !== undefined && output["Errors"]["IntegrationError"] !== undefined) {
|
|
12523
|
+
contents.Errors = de_IntegrationErrorList(__getArrayIfSingleItem(output["Errors"]["IntegrationError"]), context);
|
|
12524
|
+
}
|
|
12525
|
+
if (output["CreateTime"] !== undefined) {
|
|
12526
|
+
contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["CreateTime"]));
|
|
12527
|
+
}
|
|
12528
|
+
return contents;
|
|
12529
|
+
};
|
|
12530
|
+
const de_InboundIntegrationList = (output, context) => {
|
|
12531
|
+
return (output || [])
|
|
12532
|
+
.filter((e) => e != null)
|
|
12533
|
+
.map((entry) => {
|
|
12534
|
+
return de_InboundIntegration(entry, context);
|
|
12535
|
+
});
|
|
12536
|
+
};
|
|
12537
|
+
const de_InboundIntegrationsMessage = (output, context) => {
|
|
12538
|
+
const contents = {};
|
|
12539
|
+
if (output["Marker"] !== undefined) {
|
|
12540
|
+
contents.Marker = __expectString(output["Marker"]);
|
|
12541
|
+
}
|
|
12542
|
+
if (output.InboundIntegrations === "") {
|
|
12543
|
+
contents.InboundIntegrations = [];
|
|
12544
|
+
}
|
|
12545
|
+
else if (output["InboundIntegrations"] !== undefined &&
|
|
12546
|
+
output["InboundIntegrations"]["InboundIntegration"] !== undefined) {
|
|
12547
|
+
contents.InboundIntegrations = de_InboundIntegrationList(__getArrayIfSingleItem(output["InboundIntegrations"]["InboundIntegration"]), context);
|
|
12548
|
+
}
|
|
12549
|
+
return contents;
|
|
12550
|
+
};
|
|
12235
12551
|
const de_IncompatibleOrderableOptions = (output, context) => {
|
|
12236
12552
|
const contents = {};
|
|
12237
12553
|
if (output["message"] !== undefined) {
|
|
@@ -12260,6 +12576,30 @@ const de_InsufficientS3BucketPolicyFault = (output, context) => {
|
|
|
12260
12576
|
}
|
|
12261
12577
|
return contents;
|
|
12262
12578
|
};
|
|
12579
|
+
const de_IntegrationError = (output, context) => {
|
|
12580
|
+
const contents = {};
|
|
12581
|
+
if (output["ErrorCode"] !== undefined) {
|
|
12582
|
+
contents.ErrorCode = __expectString(output["ErrorCode"]);
|
|
12583
|
+
}
|
|
12584
|
+
if (output["ErrorMessage"] !== undefined) {
|
|
12585
|
+
contents.ErrorMessage = __expectString(output["ErrorMessage"]);
|
|
12586
|
+
}
|
|
12587
|
+
return contents;
|
|
12588
|
+
};
|
|
12589
|
+
const de_IntegrationErrorList = (output, context) => {
|
|
12590
|
+
return (output || [])
|
|
12591
|
+
.filter((e) => e != null)
|
|
12592
|
+
.map((entry) => {
|
|
12593
|
+
return de_IntegrationError(entry, context);
|
|
12594
|
+
});
|
|
12595
|
+
};
|
|
12596
|
+
const de_IntegrationNotFoundFault = (output, context) => {
|
|
12597
|
+
const contents = {};
|
|
12598
|
+
if (output["message"] !== undefined) {
|
|
12599
|
+
contents.message = __expectString(output["message"]);
|
|
12600
|
+
}
|
|
12601
|
+
return contents;
|
|
12602
|
+
};
|
|
12263
12603
|
const de_InvalidAuthenticationProfileRequestFault = (output, context) => {
|
|
12264
12604
|
const contents = {};
|
|
12265
12605
|
if (output["message"] !== undefined) {
|
|
@@ -12372,6 +12712,13 @@ const de_InvalidNamespaceFault = (output, context) => {
|
|
|
12372
12712
|
}
|
|
12373
12713
|
return contents;
|
|
12374
12714
|
};
|
|
12715
|
+
const de_InvalidPolicyFault = (output, context) => {
|
|
12716
|
+
const contents = {};
|
|
12717
|
+
if (output["message"] !== undefined) {
|
|
12718
|
+
contents.message = __expectString(output["message"]);
|
|
12719
|
+
}
|
|
12720
|
+
return contents;
|
|
12721
|
+
};
|
|
12375
12722
|
const de_InvalidReservedNodeStateFault = (output, context) => {
|
|
12376
12723
|
const contents = {};
|
|
12377
12724
|
if (output["message"] !== undefined) {
|
|
@@ -12914,6 +13261,13 @@ const de_PurchaseReservedNodeOfferingResult = (output, context) => {
|
|
|
12914
13261
|
}
|
|
12915
13262
|
return contents;
|
|
12916
13263
|
};
|
|
13264
|
+
const de_PutResourcePolicyResult = (output, context) => {
|
|
13265
|
+
const contents = {};
|
|
13266
|
+
if (output["ResourcePolicy"] !== undefined) {
|
|
13267
|
+
contents.ResourcePolicy = de_ResourcePolicy(output["ResourcePolicy"], context);
|
|
13268
|
+
}
|
|
13269
|
+
return contents;
|
|
13270
|
+
};
|
|
12917
13271
|
const de_RebootClusterResult = (output, context) => {
|
|
12918
13272
|
const contents = {};
|
|
12919
13273
|
if (output["Cluster"] !== undefined) {
|
|
@@ -13278,6 +13632,16 @@ const de_ResourceNotFoundFault = (output, context) => {
|
|
|
13278
13632
|
}
|
|
13279
13633
|
return contents;
|
|
13280
13634
|
};
|
|
13635
|
+
const de_ResourcePolicy = (output, context) => {
|
|
13636
|
+
const contents = {};
|
|
13637
|
+
if (output["ResourceArn"] !== undefined) {
|
|
13638
|
+
contents.ResourceArn = __expectString(output["ResourceArn"]);
|
|
13639
|
+
}
|
|
13640
|
+
if (output["Policy"] !== undefined) {
|
|
13641
|
+
contents.Policy = __expectString(output["Policy"]);
|
|
13642
|
+
}
|
|
13643
|
+
return contents;
|
|
13644
|
+
};
|
|
13281
13645
|
const de_RestorableNodeTypeList = (output, context) => {
|
|
13282
13646
|
return (output || [])
|
|
13283
13647
|
.filter((e) => e != null)
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
5
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
5
6
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
@@ -18,6 +19,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
18
19
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
20
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
21
|
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
awsCheckVersion(process.version);
|
|
21
23
|
return {
|
|
22
24
|
...clientSharedValues,
|
|
23
25
|
...config,
|
|
@@ -3,16 +3,18 @@ import { parseUrl } from "@smithy/url-parser";
|
|
|
3
3
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
4
4
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
5
5
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
6
|
-
export const getRuntimeConfig = (config) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
export const getRuntimeConfig = (config) => {
|
|
7
|
+
return {
|
|
8
|
+
apiVersion: "2012-12-01",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
11
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
13
|
+
extensions: config?.extensions ?? [],
|
|
14
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
15
|
+
serviceId: config?.serviceId ?? "Redshift",
|
|
16
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
17
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
18
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
19
|
+
};
|
|
20
|
+
};
|
package/dist-types/Redshift.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ import { DeleteEventSubscriptionCommandInput, DeleteEventSubscriptionCommandOutp
|
|
|
39
39
|
import { DeleteHsmClientCertificateCommandInput, DeleteHsmClientCertificateCommandOutput } from "./commands/DeleteHsmClientCertificateCommand";
|
|
40
40
|
import { DeleteHsmConfigurationCommandInput, DeleteHsmConfigurationCommandOutput } from "./commands/DeleteHsmConfigurationCommand";
|
|
41
41
|
import { DeletePartnerCommandInput, DeletePartnerCommandOutput } from "./commands/DeletePartnerCommand";
|
|
42
|
+
import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
42
43
|
import { DeleteScheduledActionCommandInput, DeleteScheduledActionCommandOutput } from "./commands/DeleteScheduledActionCommand";
|
|
43
44
|
import { DeleteSnapshotCopyGrantCommandInput, DeleteSnapshotCopyGrantCommandOutput } from "./commands/DeleteSnapshotCopyGrantCommand";
|
|
44
45
|
import { DeleteSnapshotScheduleCommandInput, DeleteSnapshotScheduleCommandOutput } from "./commands/DeleteSnapshotScheduleCommand";
|
|
@@ -67,6 +68,7 @@ import { DescribeEventsCommandInput, DescribeEventsCommandOutput } from "./comma
|
|
|
67
68
|
import { DescribeEventSubscriptionsCommandInput, DescribeEventSubscriptionsCommandOutput } from "./commands/DescribeEventSubscriptionsCommand";
|
|
68
69
|
import { DescribeHsmClientCertificatesCommandInput, DescribeHsmClientCertificatesCommandOutput } from "./commands/DescribeHsmClientCertificatesCommand";
|
|
69
70
|
import { DescribeHsmConfigurationsCommandInput, DescribeHsmConfigurationsCommandOutput } from "./commands/DescribeHsmConfigurationsCommand";
|
|
71
|
+
import { DescribeInboundIntegrationsCommandInput, DescribeInboundIntegrationsCommandOutput } from "./commands/DescribeInboundIntegrationsCommand";
|
|
70
72
|
import { DescribeLoggingStatusCommandInput, DescribeLoggingStatusCommandOutput } from "./commands/DescribeLoggingStatusCommand";
|
|
71
73
|
import { DescribeNodeConfigurationOptionsCommandInput, DescribeNodeConfigurationOptionsCommandOutput } from "./commands/DescribeNodeConfigurationOptionsCommand";
|
|
72
74
|
import { DescribeOrderableClusterOptionsCommandInput, DescribeOrderableClusterOptionsCommandOutput } from "./commands/DescribeOrderableClusterOptionsCommand";
|
|
@@ -91,6 +93,7 @@ import { GetClusterCredentialsCommandInput, GetClusterCredentialsCommandOutput }
|
|
|
91
93
|
import { GetClusterCredentialsWithIAMCommandInput, GetClusterCredentialsWithIAMCommandOutput } from "./commands/GetClusterCredentialsWithIAMCommand";
|
|
92
94
|
import { GetReservedNodeExchangeConfigurationOptionsCommandInput, GetReservedNodeExchangeConfigurationOptionsCommandOutput } from "./commands/GetReservedNodeExchangeConfigurationOptionsCommand";
|
|
93
95
|
import { GetReservedNodeExchangeOfferingsCommandInput, GetReservedNodeExchangeOfferingsCommandOutput } from "./commands/GetReservedNodeExchangeOfferingsCommand";
|
|
96
|
+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
94
97
|
import { ModifyAquaConfigurationCommandInput, ModifyAquaConfigurationCommandOutput } from "./commands/ModifyAquaConfigurationCommand";
|
|
95
98
|
import { ModifyAuthenticationProfileCommandInput, ModifyAuthenticationProfileCommandOutput } from "./commands/ModifyAuthenticationProfileCommand";
|
|
96
99
|
import { ModifyClusterCommandInput, ModifyClusterCommandOutput } from "./commands/ModifyClusterCommand";
|
|
@@ -110,6 +113,7 @@ import { ModifySnapshotScheduleCommandInput, ModifySnapshotScheduleCommandOutput
|
|
|
110
113
|
import { ModifyUsageLimitCommandInput, ModifyUsageLimitCommandOutput } from "./commands/ModifyUsageLimitCommand";
|
|
111
114
|
import { PauseClusterCommandInput, PauseClusterCommandOutput } from "./commands/PauseClusterCommand";
|
|
112
115
|
import { PurchaseReservedNodeOfferingCommandInput, PurchaseReservedNodeOfferingCommandOutput } from "./commands/PurchaseReservedNodeOfferingCommand";
|
|
116
|
+
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
113
117
|
import { RebootClusterCommandInput, RebootClusterCommandOutput } from "./commands/RebootClusterCommand";
|
|
114
118
|
import { RejectDataShareCommandInput, RejectDataShareCommandOutput } from "./commands/RejectDataShareCommand";
|
|
115
119
|
import { ResetClusterParameterGroupCommandInput, ResetClusterParameterGroupCommandOutput } from "./commands/ResetClusterParameterGroupCommand";
|
|
@@ -364,6 +368,12 @@ export interface Redshift {
|
|
|
364
368
|
deletePartner(args: DeletePartnerCommandInput, options?: __HttpHandlerOptions): Promise<DeletePartnerCommandOutput>;
|
|
365
369
|
deletePartner(args: DeletePartnerCommandInput, cb: (err: any, data?: DeletePartnerCommandOutput) => void): void;
|
|
366
370
|
deletePartner(args: DeletePartnerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePartnerCommandOutput) => void): void;
|
|
371
|
+
/**
|
|
372
|
+
* @see {@link DeleteResourcePolicyCommand}
|
|
373
|
+
*/
|
|
374
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
|
|
375
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
376
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
367
377
|
/**
|
|
368
378
|
* @see {@link DeleteScheduledActionCommand}
|
|
369
379
|
*/
|
|
@@ -532,6 +542,12 @@ export interface Redshift {
|
|
|
532
542
|
describeHsmConfigurations(args: DescribeHsmConfigurationsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeHsmConfigurationsCommandOutput>;
|
|
533
543
|
describeHsmConfigurations(args: DescribeHsmConfigurationsCommandInput, cb: (err: any, data?: DescribeHsmConfigurationsCommandOutput) => void): void;
|
|
534
544
|
describeHsmConfigurations(args: DescribeHsmConfigurationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeHsmConfigurationsCommandOutput) => void): void;
|
|
545
|
+
/**
|
|
546
|
+
* @see {@link DescribeInboundIntegrationsCommand}
|
|
547
|
+
*/
|
|
548
|
+
describeInboundIntegrations(args: DescribeInboundIntegrationsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeInboundIntegrationsCommandOutput>;
|
|
549
|
+
describeInboundIntegrations(args: DescribeInboundIntegrationsCommandInput, cb: (err: any, data?: DescribeInboundIntegrationsCommandOutput) => void): void;
|
|
550
|
+
describeInboundIntegrations(args: DescribeInboundIntegrationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeInboundIntegrationsCommandOutput) => void): void;
|
|
535
551
|
/**
|
|
536
552
|
* @see {@link DescribeLoggingStatusCommand}
|
|
537
553
|
*/
|
|
@@ -676,6 +692,12 @@ export interface Redshift {
|
|
|
676
692
|
getReservedNodeExchangeOfferings(args: GetReservedNodeExchangeOfferingsCommandInput, options?: __HttpHandlerOptions): Promise<GetReservedNodeExchangeOfferingsCommandOutput>;
|
|
677
693
|
getReservedNodeExchangeOfferings(args: GetReservedNodeExchangeOfferingsCommandInput, cb: (err: any, data?: GetReservedNodeExchangeOfferingsCommandOutput) => void): void;
|
|
678
694
|
getReservedNodeExchangeOfferings(args: GetReservedNodeExchangeOfferingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetReservedNodeExchangeOfferingsCommandOutput) => void): void;
|
|
695
|
+
/**
|
|
696
|
+
* @see {@link GetResourcePolicyCommand}
|
|
697
|
+
*/
|
|
698
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
|
|
699
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
700
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
679
701
|
/**
|
|
680
702
|
* @see {@link ModifyAquaConfigurationCommand}
|
|
681
703
|
*/
|
|
@@ -790,6 +812,12 @@ export interface Redshift {
|
|
|
790
812
|
purchaseReservedNodeOffering(args: PurchaseReservedNodeOfferingCommandInput, options?: __HttpHandlerOptions): Promise<PurchaseReservedNodeOfferingCommandOutput>;
|
|
791
813
|
purchaseReservedNodeOffering(args: PurchaseReservedNodeOfferingCommandInput, cb: (err: any, data?: PurchaseReservedNodeOfferingCommandOutput) => void): void;
|
|
792
814
|
purchaseReservedNodeOffering(args: PurchaseReservedNodeOfferingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PurchaseReservedNodeOfferingCommandOutput) => void): void;
|
|
815
|
+
/**
|
|
816
|
+
* @see {@link PutResourcePolicyCommand}
|
|
817
|
+
*/
|
|
818
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
|
|
819
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
820
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
793
821
|
/**
|
|
794
822
|
* @see {@link RebootClusterCommand}
|
|
795
823
|
*/
|