@aws-sdk/client-redshift 3.525.0 → 3.529.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +119 -152
- package/dist-es/protocols/Aws_query.js +2 -34
- package/dist-types/models/models_0.d.ts +30 -11
- package/dist-types/models/models_1.d.ts +18 -6
- package/package.json +4 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem,
|
|
3
|
-
import { XMLParser } from "fast-xml-parser";
|
|
3
|
+
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@smithy/smithy-client";
|
|
4
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, DependentServiceAccessDeniedFault, 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, Ipv6CidrBlockNotFoundFault, LakeFormationScopeUnion, LimitExceededFault, NumberOfNodesPerClusterLimitExceededFault, NumberOfNodesQuotaExceededFault, PartnerNotFoundFault, RedshiftIdcApplicationAlreadyExistsFault, RedshiftIdcApplicationNotExistsFault, RedshiftIdcApplicationQuotaExceededFault, ReservedNodeAlreadyExistsFault, ReservedNodeAlreadyMigratedFault, ReservedNodeNotFoundFault, ReservedNodeOfferingNotFoundFault, ResizeNotFoundFault, ResourceNotFoundFault, ScheduledActionAlreadyExistsFault, ScheduledActionNotFoundFault, ScheduledActionQuotaExceededFault, ScheduledActionTypeUnsupportedFault, ScheduleDefinitionTypeUnsupportedFault, ServiceIntegrationsUnion, 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, 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";
|
|
@@ -12986,38 +12986,6 @@ const _Val = "Value";
|
|
|
12986
12986
|
const _i = "item";
|
|
12987
12987
|
const _m = "message";
|
|
12988
12988
|
const _me = "member";
|
|
12989
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
12990
|
-
if (encoded.length) {
|
|
12991
|
-
const parser = new XMLParser({
|
|
12992
|
-
attributeNamePrefix: "",
|
|
12993
|
-
htmlEntities: true,
|
|
12994
|
-
ignoreAttributes: false,
|
|
12995
|
-
ignoreDeclaration: true,
|
|
12996
|
-
parseTagValue: false,
|
|
12997
|
-
trimValues: false,
|
|
12998
|
-
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
|
|
12999
|
-
});
|
|
13000
|
-
parser.addEntity("#xD", "\r");
|
|
13001
|
-
parser.addEntity("#10", "\n");
|
|
13002
|
-
const parsedObj = parser.parse(encoded);
|
|
13003
|
-
const textNodeName = "#text";
|
|
13004
|
-
const key = Object.keys(parsedObj)[0];
|
|
13005
|
-
const parsedObjToReturn = parsedObj[key];
|
|
13006
|
-
if (parsedObjToReturn[textNodeName]) {
|
|
13007
|
-
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
13008
|
-
delete parsedObjToReturn[textNodeName];
|
|
13009
|
-
}
|
|
13010
|
-
return __getValueFromTextNode(parsedObjToReturn);
|
|
13011
|
-
}
|
|
13012
|
-
return {};
|
|
13013
|
-
});
|
|
13014
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
13015
|
-
const value = await parseBody(errorBody, context);
|
|
13016
|
-
if (value.Error) {
|
|
13017
|
-
value.Error.message = value.Error.message ?? value.Error.Message;
|
|
13018
|
-
}
|
|
13019
|
-
return value;
|
|
13020
|
-
};
|
|
13021
12989
|
const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
|
13022
12990
|
.map(([key, value]) => __extendedEncodeURIComponent(key) + "=" + __extendedEncodeURIComponent(value))
|
|
13023
12991
|
.join("&");
|
|
@@ -455,7 +455,7 @@ export interface AquaConfiguration {
|
|
|
455
455
|
export interface AssociateDataShareConsumerMessage {
|
|
456
456
|
/**
|
|
457
457
|
* @public
|
|
458
|
-
* <p>The Amazon Resource Name (ARN) of the datashare that the consumer is to use
|
|
458
|
+
* <p>The Amazon Resource Name (ARN) of the datashare that the consumer is to use.</p>
|
|
459
459
|
*/
|
|
460
460
|
DataShareArn: string | undefined;
|
|
461
461
|
/**
|
|
@@ -465,7 +465,7 @@ export interface AssociateDataShareConsumerMessage {
|
|
|
465
465
|
AssociateEntireAccount?: boolean;
|
|
466
466
|
/**
|
|
467
467
|
* @public
|
|
468
|
-
* <p>The Amazon Resource Name (ARN) of the consumer
|
|
468
|
+
* <p>The Amazon Resource Name (ARN) of the consumer namespace associated with the
|
|
469
469
|
* datashare.</p>
|
|
470
470
|
*/
|
|
471
471
|
ConsumerArn?: string;
|
|
@@ -545,12 +545,12 @@ export interface DataShareAssociation {
|
|
|
545
545
|
export interface DataShare {
|
|
546
546
|
/**
|
|
547
547
|
* @public
|
|
548
|
-
* <p>
|
|
548
|
+
* <p>The Amazon Resource Name (ARN) of the datashare that the consumer is to use.</p>
|
|
549
549
|
*/
|
|
550
550
|
DataShareArn?: string;
|
|
551
551
|
/**
|
|
552
552
|
* @public
|
|
553
|
-
* <p>The Amazon Resource Name (ARN) of the producer.</p>
|
|
553
|
+
* <p>The Amazon Resource Name (ARN) of the producer namespace.</p>
|
|
554
554
|
*/
|
|
555
555
|
ProducerArn?: string;
|
|
556
556
|
/**
|
|
@@ -934,7 +934,7 @@ export declare class InvalidClusterSecurityGroupStateFault extends __BaseExcepti
|
|
|
934
934
|
export interface AuthorizeDataShareMessage {
|
|
935
935
|
/**
|
|
936
936
|
* @public
|
|
937
|
-
* <p>The Amazon Resource Name (ARN) of the datashare that producers are to authorize
|
|
937
|
+
* <p>The Amazon Resource Name (ARN) of the datashare namespace that producers are to authorize
|
|
938
938
|
* sharing for.</p>
|
|
939
939
|
*/
|
|
940
940
|
DataShareArn: string | undefined;
|
|
@@ -1102,9 +1102,19 @@ export interface AuthorizeSnapshotAccessMessage {
|
|
|
1102
1102
|
SnapshotArn?: string;
|
|
1103
1103
|
/**
|
|
1104
1104
|
* @public
|
|
1105
|
-
* <p>The identifier of the cluster the snapshot was created from
|
|
1106
|
-
*
|
|
1107
|
-
*
|
|
1105
|
+
* <p>The identifier of the cluster the snapshot was created from.</p>
|
|
1106
|
+
* <ul>
|
|
1107
|
+
* <li>
|
|
1108
|
+
* <p>
|
|
1109
|
+
* <i>If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots</i> - This parameter is required. Otherwise, permissions
|
|
1110
|
+
* aren't available to check if the snapshot exists.</p>
|
|
1111
|
+
* </li>
|
|
1112
|
+
* <li>
|
|
1113
|
+
* <p>
|
|
1114
|
+
* <i>If the snapshot to access exists</i> - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to
|
|
1115
|
+
* validate snapshot authorization.</p>
|
|
1116
|
+
* </li>
|
|
1117
|
+
* </ul>
|
|
1108
1118
|
*/
|
|
1109
1119
|
SnapshotClusterIdentifier?: string;
|
|
1110
1120
|
/**
|
|
@@ -3819,8 +3829,17 @@ export interface CreateClusterMessage {
|
|
|
3819
3829
|
* connections.</p>
|
|
3820
3830
|
* <p>Default: <code>5439</code>
|
|
3821
3831
|
* </p>
|
|
3822
|
-
* <p>Valid Values:
|
|
3823
|
-
*
|
|
3832
|
+
* <p>Valid Values:
|
|
3833
|
+
* </p>
|
|
3834
|
+
* <ul>
|
|
3835
|
+
* <li>
|
|
3836
|
+
* <p>For clusters with ra3 nodes - Select a port within the ranges <code>5431-5455</code> or <code>8191-8215</code>. (If you have an existing cluster
|
|
3837
|
+
* with ra3 nodes, it isn't required that you change the port to these ranges.)</p>
|
|
3838
|
+
* </li>
|
|
3839
|
+
* <li>
|
|
3840
|
+
* <p>For clusters with ds2 or dc2 nodes - Select a port within the range <code>1150-65535</code>.</p>
|
|
3841
|
+
* </li>
|
|
3842
|
+
* </ul>
|
|
3824
3843
|
*/
|
|
3825
3844
|
Port?: number;
|
|
3826
3845
|
/**
|
|
@@ -6113,7 +6132,7 @@ export type DataShareStatusForProducer = (typeof DataShareStatusForProducer)[key
|
|
|
6113
6132
|
export interface DeauthorizeDataShareMessage {
|
|
6114
6133
|
/**
|
|
6115
6134
|
* @public
|
|
6116
|
-
* <p>The Amazon Resource Name (ARN) of the datashare to remove authorization from.</p>
|
|
6135
|
+
* <p>The namespace Amazon Resource Name (ARN) of the datashare to remove authorization from.</p>
|
|
6117
6136
|
*/
|
|
6118
6137
|
DataShareArn: string | undefined;
|
|
6119
6138
|
/**
|
|
@@ -84,7 +84,7 @@ export interface DescribeCustomDomainAssociationsMessage {
|
|
|
84
84
|
export interface DescribeDataSharesMessage {
|
|
85
85
|
/**
|
|
86
86
|
* @public
|
|
87
|
-
* <p>The
|
|
87
|
+
* <p>The Amazon resource name (ARN) of the datashare to describe details of.</p>
|
|
88
88
|
*/
|
|
89
89
|
DataShareArn?: string;
|
|
90
90
|
/**
|
|
@@ -122,7 +122,7 @@ export interface DescribeDataSharesResult {
|
|
|
122
122
|
export interface DescribeDataSharesForConsumerMessage {
|
|
123
123
|
/**
|
|
124
124
|
* @public
|
|
125
|
-
* <p>The Amazon Resource Name (ARN) of the consumer that returns in the list of datashares.</p>
|
|
125
|
+
* <p>The Amazon Resource Name (ARN) of the consumer namespace that returns in the list of datashares.</p>
|
|
126
126
|
*/
|
|
127
127
|
ConsumerArn?: string;
|
|
128
128
|
/**
|
|
@@ -176,7 +176,7 @@ export interface DescribeDataSharesForConsumerResult {
|
|
|
176
176
|
export interface DescribeDataSharesForProducerMessage {
|
|
177
177
|
/**
|
|
178
178
|
* @public
|
|
179
|
-
* <p>The Amazon Resource Name (ARN) of the producer that returns in the list of datashares.</p>
|
|
179
|
+
* <p>The Amazon Resource Name (ARN) of the producer namespace that returns in the list of datashares.</p>
|
|
180
180
|
*/
|
|
181
181
|
ProducerArn?: string;
|
|
182
182
|
/**
|
|
@@ -2416,7 +2416,7 @@ export declare class SnapshotCopyAlreadyDisabledFault extends __BaseException {
|
|
|
2416
2416
|
export interface DisassociateDataShareConsumerMessage {
|
|
2417
2417
|
/**
|
|
2418
2418
|
* @public
|
|
2419
|
-
* <p>The Amazon Resource Name (ARN) of the datashare to remove association for
|
|
2419
|
+
* <p>The Amazon Resource Name (ARN) of the datashare to remove association for.</p>
|
|
2420
2420
|
*/
|
|
2421
2421
|
DataShareArn: string | undefined;
|
|
2422
2422
|
/**
|
|
@@ -2427,7 +2427,7 @@ export interface DisassociateDataShareConsumerMessage {
|
|
|
2427
2427
|
DisassociateEntireAccount?: boolean;
|
|
2428
2428
|
/**
|
|
2429
2429
|
* @public
|
|
2430
|
-
* <p>The Amazon Resource Name (ARN) of the consumer that association for
|
|
2430
|
+
* <p>The Amazon Resource Name (ARN) of the consumer namespace that association for
|
|
2431
2431
|
* the datashare is removed from.</p>
|
|
2432
2432
|
*/
|
|
2433
2433
|
ConsumerArn?: string;
|
|
@@ -3558,6 +3558,17 @@ export interface ModifyClusterMessage {
|
|
|
3558
3558
|
/**
|
|
3559
3559
|
* @public
|
|
3560
3560
|
* <p>The option to change the port of an Amazon Redshift cluster.</p>
|
|
3561
|
+
* <p>Valid Values:
|
|
3562
|
+
* </p>
|
|
3563
|
+
* <ul>
|
|
3564
|
+
* <li>
|
|
3565
|
+
* <p>For clusters with ra3 nodes - Select a port within the ranges <code>5431-5455</code> or <code>8191-8215</code>. (If you have an existing cluster
|
|
3566
|
+
* with ra3 nodes, it isn't required that you change the port to these ranges.)</p>
|
|
3567
|
+
* </li>
|
|
3568
|
+
* <li>
|
|
3569
|
+
* <p>For clusters with ds2 or dc2 nodes - Select a port within the range <code>1150-65535</code>.</p>
|
|
3570
|
+
* </li>
|
|
3571
|
+
* </ul>
|
|
3561
3572
|
*/
|
|
3562
3573
|
Port?: number;
|
|
3563
3574
|
/**
|
|
@@ -4393,7 +4404,8 @@ export interface RestoreFromClusterSnapshotMessage {
|
|
|
4393
4404
|
* @public
|
|
4394
4405
|
* <p>The port number on which the cluster accepts connections.</p>
|
|
4395
4406
|
* <p>Default: The same port as the original cluster.</p>
|
|
4396
|
-
* <p>
|
|
4407
|
+
* <p>Valid values: For clusters with ds2 or dc2 nodes, must be within the range <code>1150</code>-<code>65535</code>. For clusters with ra3 nodes, must be
|
|
4408
|
+
* within the ranges <code>5431</code>-<code>5455</code> or <code>8191</code>-<code>8215</code>.</p>
|
|
4397
4409
|
*/
|
|
4398
4410
|
Port?: number;
|
|
4399
4411
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-redshift",
|
|
3
3
|
"description": "AWS SDK for JavaScript Redshift Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-redshift",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
|
60
60
|
"@smithy/util-waiter": "^2.1.3",
|
|
61
|
-
"fast-xml-parser": "4.2.5",
|
|
62
61
|
"tslib": "^2.5.0"
|
|
63
62
|
},
|
|
64
63
|
"devDependencies": {
|