@aws-sdk/client-arc-region-switch 3.1092.0 → 3.1093.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 +35 -7
- package/dist-es/models/errors.js +16 -0
- package/dist-es/schemas/schemas_0.js +17 -7
- package/dist-types/commands/StartPlanExecutionCommand.d.ts +4 -0
- package/dist-types/models/errors.d.ts +22 -0
- package/dist-types/models/models_0.d.ts +5 -0
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/dist-types/ts3.4/models/errors.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -67,7 +67,7 @@ const commonParams = {
|
|
|
67
67
|
Region: { type: "builtInParams", name: "region" },
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
var version = "3.
|
|
70
|
+
var version = "3.1092.0";
|
|
71
71
|
var packageInfo = {
|
|
72
72
|
version: version};
|
|
73
73
|
|
|
@@ -189,6 +189,22 @@ class IllegalStateException extends ARCRegionSwitchServiceException {
|
|
|
189
189
|
Object.setPrototypeOf(this, IllegalStateException.prototype);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
+
class ConflictException extends ARCRegionSwitchServiceException {
|
|
193
|
+
name = "ConflictException";
|
|
194
|
+
$fault = "client";
|
|
195
|
+
resourceId;
|
|
196
|
+
resourceType;
|
|
197
|
+
constructor(opts) {
|
|
198
|
+
super({
|
|
199
|
+
name: "ConflictException",
|
|
200
|
+
$fault: "client",
|
|
201
|
+
...opts,
|
|
202
|
+
});
|
|
203
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
204
|
+
this.resourceId = opts.resourceId;
|
|
205
|
+
this.resourceType = opts.resourceType;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
192
208
|
|
|
193
209
|
const _A = "Asg";
|
|
194
210
|
const _AA = "AssociatedAlarm";
|
|
@@ -207,6 +223,7 @@ const _ARCS = "ArcRoutingControlState";
|
|
|
207
223
|
const _ARCSr = "ArcRoutingControlStates";
|
|
208
224
|
const _ASSC = "AuroraServerlessScalingConfiguration";
|
|
209
225
|
const _CALC = "CustomActionLambdaConfiguration";
|
|
226
|
+
const _CE = "ConflictException";
|
|
210
227
|
const _CP = "CreatePlan";
|
|
211
228
|
const _CPE = "CancelPlanExecution";
|
|
212
229
|
const _CPER = "CancelPlanExecutionRequest";
|
|
@@ -361,6 +378,7 @@ const _cA = "clusterArn";
|
|
|
361
378
|
const _cALC = "customActionLambdaConfig";
|
|
362
379
|
const _cAR = "crossAccountRole";
|
|
363
380
|
const _cMA = "capacityMonitoringApproach";
|
|
381
|
+
const _cT = "clientToken";
|
|
364
382
|
const _co = "comment";
|
|
365
383
|
const _con = "conditions";
|
|
366
384
|
const _cond = "condition";
|
|
@@ -435,18 +453,20 @@ const _rEI = "recoveryExecutionId";
|
|
|
435
453
|
const _rESM = "regionEventSourceMappings";
|
|
436
454
|
const _rGT = "reportGenerationTime";
|
|
437
455
|
const _rHCC = "route53HealthCheckConfig";
|
|
438
|
-
const _rI = "
|
|
456
|
+
const _rI = "resourceId";
|
|
439
457
|
const _rIM = "retryIntervalMinutes";
|
|
458
|
+
const _rIe = "resourceIdentifier";
|
|
440
459
|
const _rN = "recordName";
|
|
441
460
|
const _rO = "reportOutput";
|
|
442
461
|
const _rPRRC = "rdsPromoteReadReplicaConfig";
|
|
443
462
|
const _rS = "recordSets";
|
|
444
463
|
const _rSI = "recordSetIdentifier";
|
|
445
464
|
const _rSPC = "regionSwitchPlanConfig";
|
|
446
|
-
const _rT = "
|
|
465
|
+
const _rT = "resourceType";
|
|
447
466
|
const _rTK = "resourceTagKeys";
|
|
448
467
|
const _rTOM = "recoveryTimeObjectiveMinutes";
|
|
449
468
|
const _rTR = "regionToRun";
|
|
469
|
+
const _rTe = "resourceTags";
|
|
450
470
|
const _re = "resources";
|
|
451
471
|
const _reg = "region";
|
|
452
472
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.arcregionswitch";
|
|
@@ -494,6 +514,12 @@ var AccessDeniedException$ = [-3, n0, _ADE,
|
|
|
494
514
|
[0], 1
|
|
495
515
|
];
|
|
496
516
|
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
517
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
518
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
519
|
+
[_m, _rI, _rT],
|
|
520
|
+
[0, 0, 0], 1
|
|
521
|
+
];
|
|
522
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
497
523
|
var IllegalArgumentException$ = [-3, n0, _IAE,
|
|
498
524
|
{ [_e]: _c, [_hE]: 400 },
|
|
499
525
|
[_m],
|
|
@@ -559,7 +585,7 @@ var Asg$ = [3, n0, _A,
|
|
|
559
585
|
];
|
|
560
586
|
var AssociatedAlarm$ = [3, n0, _AA,
|
|
561
587
|
0,
|
|
562
|
-
[
|
|
588
|
+
[_rIe, _aT, _cAR, _eIx],
|
|
563
589
|
[0, 0, 0, 0], 2
|
|
564
590
|
];
|
|
565
591
|
var AuroraProvisionedScalingConfiguration$ = [3, n0, _APSC,
|
|
@@ -824,7 +850,7 @@ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
|
824
850
|
];
|
|
825
851
|
var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
826
852
|
0,
|
|
827
|
-
[
|
|
853
|
+
[_rTe],
|
|
828
854
|
[128 | 0]
|
|
829
855
|
];
|
|
830
856
|
var MinimalWorkflow$ = [3, n0, _MW,
|
|
@@ -909,8 +935,8 @@ var Service$ = [3, n0, _S,
|
|
|
909
935
|
];
|
|
910
936
|
var StartPlanExecutionRequest$ = [3, n0, _SPER,
|
|
911
937
|
0,
|
|
912
|
-
[_pA, _tR, _ac, _mo, _co, _lV, _rEI],
|
|
913
|
-
[0, 0, 0, 0, 0, 0, 0], 3
|
|
938
|
+
[_pA, _tR, _ac, _mo, _co, _lV, _rEI, _cT],
|
|
939
|
+
[0, 0, 0, 0, 0, 0, 0, [0, 4]], 3
|
|
914
940
|
];
|
|
915
941
|
var StartPlanExecutionResponse$ = [3, n0, _SPERt,
|
|
916
942
|
0,
|
|
@@ -1737,6 +1763,8 @@ exports.CancelPlanExecution$ = CancelPlanExecution$;
|
|
|
1737
1763
|
exports.CancelPlanExecutionCommand = CancelPlanExecutionCommand;
|
|
1738
1764
|
exports.CancelPlanExecutionRequest$ = CancelPlanExecutionRequest$;
|
|
1739
1765
|
exports.CancelPlanExecutionResponse$ = CancelPlanExecutionResponse$;
|
|
1766
|
+
exports.ConflictException = ConflictException;
|
|
1767
|
+
exports.ConflictException$ = ConflictException$;
|
|
1740
1768
|
exports.CreatePlan$ = CreatePlan$;
|
|
1741
1769
|
exports.CreatePlanCommand = CreatePlanCommand;
|
|
1742
1770
|
exports.CreatePlanRequest$ = CreatePlanRequest$;
|
package/dist-es/models/errors.js
CHANGED
|
@@ -59,3 +59,19 @@ export class IllegalStateException extends __BaseException {
|
|
|
59
59
|
Object.setPrototypeOf(this, IllegalStateException.prototype);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
+
export class ConflictException extends __BaseException {
|
|
63
|
+
name = "ConflictException";
|
|
64
|
+
$fault = "client";
|
|
65
|
+
resourceId;
|
|
66
|
+
resourceType;
|
|
67
|
+
constructor(opts) {
|
|
68
|
+
super({
|
|
69
|
+
name: "ConflictException",
|
|
70
|
+
$fault: "client",
|
|
71
|
+
...opts,
|
|
72
|
+
});
|
|
73
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
74
|
+
this.resourceId = opts.resourceId;
|
|
75
|
+
this.resourceType = opts.resourceType;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -15,6 +15,7 @@ const _ARCS = "ArcRoutingControlState";
|
|
|
15
15
|
const _ARCSr = "ArcRoutingControlStates";
|
|
16
16
|
const _ASSC = "AuroraServerlessScalingConfiguration";
|
|
17
17
|
const _CALC = "CustomActionLambdaConfiguration";
|
|
18
|
+
const _CE = "ConflictException";
|
|
18
19
|
const _CP = "CreatePlan";
|
|
19
20
|
const _CPE = "CancelPlanExecution";
|
|
20
21
|
const _CPER = "CancelPlanExecutionRequest";
|
|
@@ -169,6 +170,7 @@ const _cA = "clusterArn";
|
|
|
169
170
|
const _cALC = "customActionLambdaConfig";
|
|
170
171
|
const _cAR = "crossAccountRole";
|
|
171
172
|
const _cMA = "capacityMonitoringApproach";
|
|
173
|
+
const _cT = "clientToken";
|
|
172
174
|
const _co = "comment";
|
|
173
175
|
const _con = "conditions";
|
|
174
176
|
const _cond = "condition";
|
|
@@ -243,18 +245,20 @@ const _rEI = "recoveryExecutionId";
|
|
|
243
245
|
const _rESM = "regionEventSourceMappings";
|
|
244
246
|
const _rGT = "reportGenerationTime";
|
|
245
247
|
const _rHCC = "route53HealthCheckConfig";
|
|
246
|
-
const _rI = "
|
|
248
|
+
const _rI = "resourceId";
|
|
247
249
|
const _rIM = "retryIntervalMinutes";
|
|
250
|
+
const _rIe = "resourceIdentifier";
|
|
248
251
|
const _rN = "recordName";
|
|
249
252
|
const _rO = "reportOutput";
|
|
250
253
|
const _rPRRC = "rdsPromoteReadReplicaConfig";
|
|
251
254
|
const _rS = "recordSets";
|
|
252
255
|
const _rSI = "recordSetIdentifier";
|
|
253
256
|
const _rSPC = "regionSwitchPlanConfig";
|
|
254
|
-
const _rT = "
|
|
257
|
+
const _rT = "resourceType";
|
|
255
258
|
const _rTK = "resourceTagKeys";
|
|
256
259
|
const _rTOM = "recoveryTimeObjectiveMinutes";
|
|
257
260
|
const _rTR = "regionToRun";
|
|
261
|
+
const _rTe = "resourceTags";
|
|
258
262
|
const _re = "resources";
|
|
259
263
|
const _reg = "region";
|
|
260
264
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.arcregionswitch";
|
|
@@ -294,7 +298,7 @@ const _wo = "workflow";
|
|
|
294
298
|
const n0 = "com.amazonaws.arcregionswitch";
|
|
295
299
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
296
300
|
import { ARCRegionSwitchServiceException } from "../models/ARCRegionSwitchServiceException";
|
|
297
|
-
import { AccessDeniedException, IllegalArgumentException, IllegalStateException, InternalServerException, ResourceNotFoundException, } from "../models/errors";
|
|
301
|
+
import { AccessDeniedException, ConflictException, IllegalArgumentException, IllegalStateException, InternalServerException, ResourceNotFoundException, } from "../models/errors";
|
|
298
302
|
const _s_registry = TypeRegistry.for(_s);
|
|
299
303
|
export var ARCRegionSwitchServiceException$ = [-3, _s, "ARCRegionSwitchServiceException", 0, [], []];
|
|
300
304
|
_s_registry.registerError(ARCRegionSwitchServiceException$, ARCRegionSwitchServiceException);
|
|
@@ -305,6 +309,12 @@ export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
|
305
309
|
[0], 1
|
|
306
310
|
];
|
|
307
311
|
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
312
|
+
export var ConflictException$ = [-3, n0, _CE,
|
|
313
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
314
|
+
[_m, _rI, _rT],
|
|
315
|
+
[0, 0, 0], 1
|
|
316
|
+
];
|
|
317
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
308
318
|
export var IllegalArgumentException$ = [-3, n0, _IAE,
|
|
309
319
|
{ [_e]: _c, [_hE]: 400 },
|
|
310
320
|
[_m],
|
|
@@ -370,7 +380,7 @@ export var Asg$ = [3, n0, _A,
|
|
|
370
380
|
];
|
|
371
381
|
export var AssociatedAlarm$ = [3, n0, _AA,
|
|
372
382
|
0,
|
|
373
|
-
[
|
|
383
|
+
[_rIe, _aT, _cAR, _eIx],
|
|
374
384
|
[0, 0, 0, 0], 2
|
|
375
385
|
];
|
|
376
386
|
export var AuroraProvisionedScalingConfiguration$ = [3, n0, _APSC,
|
|
@@ -635,7 +645,7 @@ export var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
|
635
645
|
];
|
|
636
646
|
export var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
|
|
637
647
|
0,
|
|
638
|
-
[
|
|
648
|
+
[_rTe],
|
|
639
649
|
[128 | 0]
|
|
640
650
|
];
|
|
641
651
|
export var MinimalWorkflow$ = [3, n0, _MW,
|
|
@@ -720,8 +730,8 @@ export var Service$ = [3, n0, _S,
|
|
|
720
730
|
];
|
|
721
731
|
export var StartPlanExecutionRequest$ = [3, n0, _SPER,
|
|
722
732
|
0,
|
|
723
|
-
[_pA, _tR, _ac, _mo, _co, _lV, _rEI],
|
|
724
|
-
[0, 0, 0, 0, 0, 0, 0], 3
|
|
733
|
+
[_pA, _tR, _ac, _mo, _co, _lV, _rEI, _cT],
|
|
734
|
+
[0, 0, 0, 0, 0, 0, 0, [0, 4]], 3
|
|
725
735
|
];
|
|
726
736
|
export var StartPlanExecutionResponse$ = [3, n0, _SPERt,
|
|
727
737
|
0,
|
|
@@ -41,6 +41,7 @@ declare const StartPlanExecutionCommand_base: {
|
|
|
41
41
|
* comment: "STRING_VALUE",
|
|
42
42
|
* latestVersion: "STRING_VALUE",
|
|
43
43
|
* recoveryExecutionId: "STRING_VALUE",
|
|
44
|
+
* clientToken: "STRING_VALUE",
|
|
44
45
|
* };
|
|
45
46
|
* const command = new StartPlanExecutionCommand(input);
|
|
46
47
|
* const response = await client.send(command);
|
|
@@ -63,6 +64,9 @@ declare const StartPlanExecutionCommand_base: {
|
|
|
63
64
|
* @throws {@link AccessDeniedException} (client fault)
|
|
64
65
|
* <p>You do not have sufficient access to perform this action.</p> <p>HTTP Status Code: 403</p>
|
|
65
66
|
*
|
|
67
|
+
* @throws {@link ConflictException} (client fault)
|
|
68
|
+
* <p>The client token was already used with different request parameters. A client token must map to the same parameters for every request. To retry this operation, provide a new client token.</p>
|
|
69
|
+
*
|
|
66
70
|
* @throws {@link IllegalArgumentException} (client fault)
|
|
67
71
|
* <p>The request processing has an invalid argument.</p>
|
|
68
72
|
*
|
|
@@ -60,3 +60,25 @@ export declare class IllegalStateException extends __BaseException {
|
|
|
60
60
|
*/
|
|
61
61
|
constructor(opts: __ExceptionOptionType<IllegalStateException, __BaseException>);
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* <p>The client token was already used with different request parameters. A client token must map to the same parameters for every request. To retry this operation, provide a new client token.</p>
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export declare class ConflictException extends __BaseException {
|
|
68
|
+
readonly name: "ConflictException";
|
|
69
|
+
readonly $fault: "client";
|
|
70
|
+
/**
|
|
71
|
+
* <p>The identifier of the resource involved in the client token conflict.</p>
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
resourceId?: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* <p>The type of the resource involved in the client token conflict.</p>
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
resourceType?: string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
84
|
+
}
|
|
@@ -1814,6 +1814,11 @@ export interface StartPlanExecutionRequest {
|
|
|
1814
1814
|
* @public
|
|
1815
1815
|
*/
|
|
1816
1816
|
recoveryExecutionId?: string | undefined;
|
|
1817
|
+
/**
|
|
1818
|
+
* <p>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request and returns the result of the original successful request. If you don't provide a client token, the service automatically generates one. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
|
|
1819
|
+
* @public
|
|
1820
|
+
*/
|
|
1821
|
+
clientToken?: string | undefined;
|
|
1817
1822
|
}
|
|
1818
1823
|
/**
|
|
1819
1824
|
* @public
|
|
@@ -2,6 +2,7 @@ import { TypeRegistry } from "@smithy/core/schema";
|
|
|
2
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
|
|
3
3
|
export declare var ARCRegionSwitchServiceException$: StaticErrorSchema;
|
|
4
4
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
5
|
+
export declare var ConflictException$: StaticErrorSchema;
|
|
5
6
|
export declare var IllegalArgumentException$: StaticErrorSchema;
|
|
6
7
|
export declare var IllegalStateException$: StaticErrorSchema;
|
|
7
8
|
export declare var InternalServerException$: StaticErrorSchema;
|
|
@@ -25,3 +25,10 @@ export declare class IllegalStateException extends __BaseException {
|
|
|
25
25
|
readonly $fault: "client";
|
|
26
26
|
constructor(opts: __ExceptionOptionType<IllegalStateException, __BaseException>);
|
|
27
27
|
}
|
|
28
|
+
export declare class ConflictException extends __BaseException {
|
|
29
|
+
readonly name: "ConflictException";
|
|
30
|
+
readonly $fault: "client";
|
|
31
|
+
resourceId?: string | undefined;
|
|
32
|
+
resourceType?: string | undefined;
|
|
33
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
34
|
+
}
|
|
@@ -484,6 +484,7 @@ export interface StartPlanExecutionRequest {
|
|
|
484
484
|
comment?: string | undefined;
|
|
485
485
|
latestVersion?: string | undefined;
|
|
486
486
|
recoveryExecutionId?: string | undefined;
|
|
487
|
+
clientToken?: string | undefined;
|
|
487
488
|
}
|
|
488
489
|
export interface StartPlanExecutionResponse {
|
|
489
490
|
executionId?: string | undefined;
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
} from "@smithy/types";
|
|
8
8
|
export declare var ARCRegionSwitchServiceException$: StaticErrorSchema;
|
|
9
9
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
10
|
+
export declare var ConflictException$: StaticErrorSchema;
|
|
10
11
|
export declare var IllegalArgumentException$: StaticErrorSchema;
|
|
11
12
|
export declare var IllegalStateException$: StaticErrorSchema;
|
|
12
13
|
export declare var InternalServerException$: StaticErrorSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-arc-region-switch",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1093.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Arc Region Switch Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-arc-region-switch",
|
|
6
6
|
"license": "Apache-2.0",
|