@aws-sdk/client-mq 3.353.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.
Files changed (40) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/Mq.js +2 -0
  3. package/dist-cjs/commands/PromoteCommand.js +46 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoint/ruleset.js +3 -3
  6. package/dist-cjs/models/models_0.js +10 -1
  7. package/dist-cjs/protocols/Aws_restJson1.js +108 -14
  8. package/dist-es/Mq.js +2 -0
  9. package/dist-es/commands/PromoteCommand.js +42 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/endpoint/ruleset.js +3 -3
  12. package/dist-es/models/models_0.js +9 -0
  13. package/dist-es/protocols/Aws_restJson1.js +99 -7
  14. package/dist-types/Mq.d.ts +7 -0
  15. package/dist-types/MqClient.d.ts +4 -3
  16. package/dist-types/commands/CreateBrokerCommand.d.ts +9 -6
  17. package/dist-types/commands/CreateConfigurationCommand.d.ts +3 -3
  18. package/dist-types/commands/CreateUserCommand.d.ts +2 -1
  19. package/dist-types/commands/DescribeBrokerCommand.d.ts +24 -8
  20. package/dist-types/commands/DescribeBrokerEngineTypesCommand.d.ts +1 -1
  21. package/dist-types/commands/DescribeBrokerInstanceOptionsCommand.d.ts +3 -3
  22. package/dist-types/commands/DescribeConfigurationCommand.d.ts +2 -2
  23. package/dist-types/commands/DescribeUserCommand.d.ts +2 -1
  24. package/dist-types/commands/ListBrokersCommand.d.ts +3 -3
  25. package/dist-types/commands/ListConfigurationsCommand.d.ts +2 -2
  26. package/dist-types/commands/ListUsersCommand.d.ts +1 -1
  27. package/dist-types/commands/PromoteCommand.d.ts +86 -0
  28. package/dist-types/commands/UpdateBrokerCommand.d.ts +21 -4
  29. package/dist-types/commands/UpdateConfigurationCommand.d.ts +1 -1
  30. package/dist-types/commands/UpdateUserCommand.d.ts +1 -0
  31. package/dist-types/commands/index.d.ts +1 -0
  32. package/dist-types/models/models_0.d.ts +166 -30
  33. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  34. package/dist-types/ts3.4/Mq.d.ts +17 -0
  35. package/dist-types/ts3.4/MqClient.d.ts +6 -0
  36. package/dist-types/ts3.4/commands/PromoteCommand.d.ts +35 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +42 -0
  39. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  40. package/package.json +28 -28
@@ -51,6 +51,7 @@ export declare const BrokerState: {
51
51
  readonly CRITICAL_ACTION_REQUIRED: "CRITICAL_ACTION_REQUIRED";
52
52
  readonly DELETION_IN_PROGRESS: "DELETION_IN_PROGRESS";
53
53
  readonly REBOOT_IN_PROGRESS: "REBOOT_IN_PROGRESS";
54
+ readonly REPLICA: "REPLICA";
54
55
  readonly RUNNING: "RUNNING";
55
56
  };
56
57
  export type BrokerState = (typeof BrokerState)[keyof typeof BrokerState];
@@ -108,6 +109,7 @@ export interface User {
108
109
  Groups?: string[];
109
110
  Password: string | undefined;
110
111
  Username: string | undefined;
112
+ ReplicationUser?: boolean;
111
113
  }
112
114
  export declare const ChangeType: {
113
115
  readonly CREATE: "CREATE";
@@ -140,6 +142,12 @@ export declare class ConflictException extends __BaseException {
140
142
  Message?: string;
141
143
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
142
144
  }
145
+ export declare const DataReplicationMode: {
146
+ readonly CRDR: "CRDR";
147
+ readonly NONE: "NONE";
148
+ };
149
+ export type DataReplicationMode =
150
+ (typeof DataReplicationMode)[keyof typeof DataReplicationMode];
143
151
  export interface EncryptionOptions {
144
152
  KmsKeyId?: string;
145
153
  UseAwsOwnedKey: boolean | undefined;
@@ -196,6 +204,8 @@ export interface CreateBrokerRequest {
196
204
  SubnetIds?: string[];
197
205
  Tags?: Record<string, string>;
198
206
  Users: User[] | undefined;
207
+ DataReplicationMode?: DataReplicationMode | string;
208
+ DataReplicationPrimaryBrokerArn?: string;
199
209
  }
200
210
  export interface CreateBrokerResponse {
201
211
  BrokerArn?: string;
@@ -258,8 +268,17 @@ export interface CreateUserRequest {
258
268
  Groups?: string[];
259
269
  Password: string | undefined;
260
270
  Username: string | undefined;
271
+ ReplicationUser?: boolean;
261
272
  }
262
273
  export interface CreateUserResponse {}
274
+ export interface DataReplicationCounterpart {
275
+ BrokerId: string | undefined;
276
+ Region: string | undefined;
277
+ }
278
+ export interface DataReplicationMetadataOutput {
279
+ DataReplicationCounterpart?: DataReplicationCounterpart;
280
+ DataReplicationRole: string | undefined;
281
+ }
263
282
  export interface DeleteBrokerRequest {
264
283
  BrokerId: string | undefined;
265
284
  }
@@ -331,6 +350,10 @@ export interface DescribeBrokerResponse {
331
350
  SubnetIds?: string[];
332
351
  Tags?: Record<string, string>;
333
352
  Users?: UserSummary[];
353
+ DataReplicationMetadata?: DataReplicationMetadataOutput;
354
+ DataReplicationMode?: DataReplicationMode | string;
355
+ PendingDataReplicationMetadata?: DataReplicationMetadataOutput;
356
+ PendingDataReplicationMode?: DataReplicationMode | string;
334
357
  }
335
358
  export interface DescribeBrokerEngineTypesRequest {
336
359
  EngineType?: string;
@@ -394,6 +417,7 @@ export interface DescribeUserResponse {
394
417
  Groups?: string[];
395
418
  Pending?: UserPendingChanges;
396
419
  Username?: string;
420
+ ReplicationUser?: boolean;
397
421
  }
398
422
  export interface ListBrokersRequest {
399
423
  MaxResults?: number;
@@ -440,6 +464,18 @@ export interface ListUsersResponse {
440
464
  NextToken?: string;
441
465
  Users?: UserSummary[];
442
466
  }
467
+ export declare const PromoteMode: {
468
+ readonly FAILOVER: "FAILOVER";
469
+ readonly SWITCHOVER: "SWITCHOVER";
470
+ };
471
+ export type PromoteMode = (typeof PromoteMode)[keyof typeof PromoteMode];
472
+ export interface PromoteRequest {
473
+ BrokerId: string | undefined;
474
+ Mode: PromoteMode | string | undefined;
475
+ }
476
+ export interface PromoteResponse {
477
+ BrokerId?: string;
478
+ }
443
479
  export interface RebootBrokerRequest {
444
480
  BrokerId: string | undefined;
445
481
  }
@@ -455,6 +491,7 @@ export interface UpdateBrokerRequest {
455
491
  Logs?: Logs;
456
492
  MaintenanceWindowStartTime?: WeeklyStartTime;
457
493
  SecurityGroups?: string[];
494
+ DataReplicationMode?: DataReplicationMode | string;
458
495
  }
459
496
  export interface UpdateBrokerResponse {
460
497
  AuthenticationStrategy?: AuthenticationStrategy | string;
@@ -467,6 +504,10 @@ export interface UpdateBrokerResponse {
467
504
  Logs?: Logs;
468
505
  MaintenanceWindowStartTime?: WeeklyStartTime;
469
506
  SecurityGroups?: string[];
507
+ DataReplicationMetadata?: DataReplicationMetadataOutput;
508
+ DataReplicationMode?: DataReplicationMode | string;
509
+ PendingDataReplicationMetadata?: DataReplicationMetadataOutput;
510
+ PendingDataReplicationMode?: DataReplicationMode | string;
470
511
  }
471
512
  export interface UpdateConfigurationRequest {
472
513
  ConfigurationId: string | undefined;
@@ -487,5 +528,6 @@ export interface UpdateUserRequest {
487
528
  Groups?: string[];
488
529
  Password?: string;
489
530
  Username: string | undefined;
531
+ ReplicationUser?: boolean;
490
532
  }
491
533
  export interface UpdateUserResponse {}
@@ -75,6 +75,10 @@ import {
75
75
  ListUsersCommandInput,
76
76
  ListUsersCommandOutput,
77
77
  } from "../commands/ListUsersCommand";
78
+ import {
79
+ PromoteCommandInput,
80
+ PromoteCommandOutput,
81
+ } from "../commands/PromoteCommand";
78
82
  import {
79
83
  RebootBrokerCommandInput,
80
84
  RebootBrokerCommandOutput,
@@ -163,6 +167,10 @@ export declare const se_ListUsersCommand: (
163
167
  input: ListUsersCommandInput,
164
168
  context: __SerdeContext
165
169
  ) => Promise<__HttpRequest>;
170
+ export declare const se_PromoteCommand: (
171
+ input: PromoteCommandInput,
172
+ context: __SerdeContext
173
+ ) => Promise<__HttpRequest>;
166
174
  export declare const se_RebootBrokerCommand: (
167
175
  input: RebootBrokerCommandInput,
168
176
  context: __SerdeContext
@@ -251,6 +259,10 @@ export declare const de_ListUsersCommand: (
251
259
  output: __HttpResponse,
252
260
  context: __SerdeContext
253
261
  ) => Promise<ListUsersCommandOutput>;
262
+ export declare const de_PromoteCommand: (
263
+ output: __HttpResponse,
264
+ context: __SerdeContext
265
+ ) => Promise<PromoteCommandOutput>;
254
266
  export declare const de_RebootBrokerCommand: (
255
267
  output: __HttpResponse,
256
268
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mq",
3
3
  "description": "AWS SDK for JavaScript Mq Client for Node.js, Browser and React Native",
4
- "version": "3.353.0",
4
+ "version": "3.357.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,36 +21,36 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.353.0",
25
- "@aws-sdk/config-resolver": "3.353.0",
26
- "@aws-sdk/credential-provider-node": "3.353.0",
27
- "@aws-sdk/fetch-http-handler": "3.353.0",
28
- "@aws-sdk/hash-node": "3.347.0",
29
- "@aws-sdk/invalid-dependency": "3.347.0",
30
- "@aws-sdk/middleware-content-length": "3.347.0",
31
- "@aws-sdk/middleware-endpoint": "3.347.0",
32
- "@aws-sdk/middleware-host-header": "3.347.0",
33
- "@aws-sdk/middleware-logger": "3.347.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.353.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.353.0",
38
- "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.353.0",
41
- "@aws-sdk/node-http-handler": "3.350.0",
42
- "@aws-sdk/smithy-client": "3.347.0",
43
- "@aws-sdk/types": "3.347.0",
44
- "@aws-sdk/url-parser": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.357.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.357.0",
27
+ "@aws-sdk/fetch-http-handler": "3.357.0",
28
+ "@aws-sdk/hash-node": "3.357.0",
29
+ "@aws-sdk/invalid-dependency": "3.357.0",
30
+ "@aws-sdk/middleware-content-length": "3.357.0",
31
+ "@aws-sdk/middleware-endpoint": "3.357.0",
32
+ "@aws-sdk/middleware-host-header": "3.357.0",
33
+ "@aws-sdk/middleware-logger": "3.357.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.357.0",
36
+ "@aws-sdk/middleware-serde": "3.357.0",
37
+ "@aws-sdk/middleware-signing": "3.357.0",
38
+ "@aws-sdk/middleware-stack": "3.357.0",
39
+ "@aws-sdk/middleware-user-agent": "3.357.0",
40
+ "@aws-sdk/node-config-provider": "3.357.0",
41
+ "@aws-sdk/node-http-handler": "3.357.0",
42
+ "@aws-sdk/smithy-client": "3.357.0",
43
+ "@aws-sdk/types": "3.357.0",
44
+ "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.353.0",
50
- "@aws-sdk/util-endpoints": "3.352.0",
51
- "@aws-sdk/util-retry": "3.347.0",
52
- "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.353.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
53
+ "@aws-sdk/util-user-agent-node": "3.357.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
55
  "@smithy/protocol-http": "^1.0.1",
56
56
  "@smithy/types": "^1.0.0",