@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
@@ -31,7 +31,7 @@ export interface UpdateBrokerCommandOutput extends UpdateBrokerResponse, __Metad
31
31
  * // const { MqClient, UpdateBrokerCommand } = require("@aws-sdk/client-mq"); // CommonJS import
32
32
  * const client = new MqClient(config);
33
33
  * const input = { // UpdateBrokerRequest
34
- * AuthenticationStrategy: "STRING_VALUE",
34
+ * AuthenticationStrategy: "SIMPLE" || "LDAP",
35
35
  * AutoMinorVersionUpgrade: true || false,
36
36
  * BrokerId: "STRING_VALUE", // required
37
37
  * Configuration: { // ConfigurationId
@@ -60,18 +60,19 @@ export interface UpdateBrokerCommandOutput extends UpdateBrokerResponse, __Metad
60
60
  * General: true || false,
61
61
  * },
62
62
  * MaintenanceWindowStartTime: { // WeeklyStartTime
63
- * DayOfWeek: "STRING_VALUE", // required
63
+ * DayOfWeek: "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY", // required
64
64
  * TimeOfDay: "STRING_VALUE", // required
65
65
  * TimeZone: "STRING_VALUE",
66
66
  * },
67
67
  * SecurityGroups: [
68
68
  * "STRING_VALUE",
69
69
  * ],
70
+ * DataReplicationMode: "NONE" || "CRDR",
70
71
  * };
71
72
  * const command = new UpdateBrokerCommand(input);
72
73
  * const response = await client.send(command);
73
74
  * // { // UpdateBrokerResponse
74
- * // AuthenticationStrategy: "STRING_VALUE",
75
+ * // AuthenticationStrategy: "SIMPLE" || "LDAP",
75
76
  * // AutoMinorVersionUpgrade: true || false,
76
77
  * // BrokerId: "STRING_VALUE",
77
78
  * // Configuration: { // ConfigurationId
@@ -99,13 +100,29 @@ export interface UpdateBrokerCommandOutput extends UpdateBrokerResponse, __Metad
99
100
  * // General: true || false,
100
101
  * // },
101
102
  * // MaintenanceWindowStartTime: { // WeeklyStartTime
102
- * // DayOfWeek: "STRING_VALUE", // required
103
+ * // DayOfWeek: "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY", // required
103
104
  * // TimeOfDay: "STRING_VALUE", // required
104
105
  * // TimeZone: "STRING_VALUE",
105
106
  * // },
106
107
  * // SecurityGroups: [
107
108
  * // "STRING_VALUE",
108
109
  * // ],
110
+ * // DataReplicationMetadata: { // DataReplicationMetadataOutput
111
+ * // DataReplicationCounterpart: { // DataReplicationCounterpart
112
+ * // BrokerId: "STRING_VALUE", // required
113
+ * // Region: "STRING_VALUE", // required
114
+ * // },
115
+ * // DataReplicationRole: "STRING_VALUE", // required
116
+ * // },
117
+ * // DataReplicationMode: "NONE" || "CRDR",
118
+ * // PendingDataReplicationMetadata: {
119
+ * // DataReplicationCounterpart: {
120
+ * // BrokerId: "STRING_VALUE", // required
121
+ * // Region: "STRING_VALUE", // required
122
+ * // },
123
+ * // DataReplicationRole: "STRING_VALUE", // required
124
+ * // },
125
+ * // PendingDataReplicationMode: "NONE" || "CRDR",
109
126
  * // };
110
127
  *
111
128
  * ```
@@ -51,7 +51,7 @@ export interface UpdateConfigurationCommandOutput extends UpdateConfigurationRes
51
51
  * // { // SanitizationWarning
52
52
  * // AttributeName: "STRING_VALUE",
53
53
  * // ElementName: "STRING_VALUE",
54
- * // Reason: "STRING_VALUE", // required
54
+ * // Reason: "DISALLOWED_ELEMENT_REMOVED" || "DISALLOWED_ATTRIBUTE_REMOVED" || "INVALID_ATTRIBUTE_VALUE_REMOVED", // required
55
55
  * // },
56
56
  * // ],
57
57
  * // };
@@ -38,6 +38,7 @@ export interface UpdateUserCommandOutput extends UpdateUserResponse, __MetadataB
38
38
  * ],
39
39
  * Password: "STRING_VALUE",
40
40
  * Username: "STRING_VALUE", // required
41
+ * ReplicationUser: true || false,
41
42
  * };
42
43
  * const command = new UpdateUserCommand(input);
43
44
  * const response = await client.send(command);
@@ -16,6 +16,7 @@ export * from "./ListConfigurationRevisionsCommand";
16
16
  export * from "./ListConfigurationsCommand";
17
17
  export * from "./ListTagsCommand";
18
18
  export * from "./ListUsersCommand";
19
+ export * from "./PromoteCommand";
19
20
  export * from "./RebootBrokerCommand";
20
21
  export * from "./UpdateBrokerCommand";
21
22
  export * from "./UpdateConfigurationCommand";
@@ -2,15 +2,15 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
2
2
  import { MqServiceException as __BaseException } from "./MqServiceException";
3
3
  /**
4
4
  * @public
5
- * <p>The action required to resolve a broker issue when the broker is in a CRITICAL_ACTION_REQUIRED state.</p>
5
+ * <p>Action required for a broker.</p>
6
6
  */
7
7
  export interface ActionRequired {
8
8
  /**
9
- * <p>The code you can use to resolve your broker issue when the broker is in a CRITICAL_ACTION_REQUIRED state. You can find instructions by choosing the link for your code from the list of action required codes in <a href="https://docs.aws.amazon.com//latest/developer-guide/troubleshooting-action-required-codes.html">Amazon MQ action required codes</a>. Each code references a topic with detailed information, instructions, and recommendations for how to resolve the issue and prevent future occurrences.</p>
9
+ * <p>The code you can use to find instructions on the action required to resolve your broker issue.</p>
10
10
  */
11
11
  ActionRequiredCode?: string;
12
12
  /**
13
- * <p>Information about the action required to resolve your broker issue when the broker is in a CRITICAL_ACTION_REQUIRED state.</p>
13
+ * <p>Information about the action required to resolve your broker issue.</p>
14
14
  */
15
15
  ActionRequiredInfo?: string;
16
16
  }
@@ -143,6 +143,7 @@ export declare const BrokerState: {
143
143
  readonly CRITICAL_ACTION_REQUIRED: "CRITICAL_ACTION_REQUIRED";
144
144
  readonly DELETION_IN_PROGRESS: "DELETION_IN_PROGRESS";
145
145
  readonly REBOOT_IN_PROGRESS: "REBOOT_IN_PROGRESS";
146
+ readonly REPLICA: "REPLICA";
146
147
  readonly RUNNING: "RUNNING";
147
148
  };
148
149
  /**
@@ -163,7 +164,7 @@ export interface BrokerSummary {
163
164
  */
164
165
  BrokerId?: string;
165
166
  /**
166
- * <p>The broker's name. This value is unique in your AWS account, 1-50 characters long, and containing only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
167
+ * <p>The broker's name. This value is unique in your Amazon Web Services account, 1-50 characters long, and containing only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
167
168
  */
168
169
  BrokerName?: string;
169
170
  /**
@@ -265,7 +266,7 @@ export interface Configuration {
265
266
  }
266
267
  /**
267
268
  * @public
268
- * <p>A list of information about the configuration.</p> <important><p>Does not apply to RabbitMQ brokers.</p></important>
269
+ * <p>A list of information about the configuration.</p>
269
270
  */
270
271
  export interface ConfigurationId {
271
272
  /**
@@ -292,25 +293,25 @@ export declare const SanitizationWarningReason: {
292
293
  export type SanitizationWarningReason = (typeof SanitizationWarningReason)[keyof typeof SanitizationWarningReason];
293
294
  /**
294
295
  * @public
295
- * <p>Returns information about the XML element or attribute that was sanitized in the configuration.</p>
296
+ * <p>Returns information about the configuration element or attribute that was sanitized in the configuration.</p>
296
297
  */
297
298
  export interface SanitizationWarning {
298
299
  /**
299
- * <p>The name of the XML attribute that has been sanitized.</p>
300
+ * <p>The name of the configuration attribute that has been sanitized.</p>
300
301
  */
301
302
  AttributeName?: string;
302
303
  /**
303
- * <p>The name of the XML element that has been sanitized.</p>
304
+ * <p>The name of the configuration element that has been sanitized.</p>
304
305
  */
305
306
  ElementName?: string;
306
307
  /**
307
- * <p>Required. The reason for which the XML elements or attributes were sanitized.</p>
308
+ * <p>The reason for which the configuration elements or attributes were sanitized.</p>
308
309
  */
309
310
  Reason: SanitizationWarningReason | string | undefined;
310
311
  }
311
312
  /**
312
313
  * @public
313
- * <p>A user associated with the broker. For RabbitMQ brokers, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.</p>
314
+ * <p>A user associated with the broker. For Amazon MQ for RabbitMQ brokers, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.</p>
314
315
  */
315
316
  export interface User {
316
317
  /**
@@ -326,9 +327,13 @@ export interface User {
326
327
  */
327
328
  Password: string | undefined;
328
329
  /**
329
- * <p>important><title>Amazon MQ for ActiveMQ</title> <para>For ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p>/important> <important><title>Amazon MQ for RabbitMQ</title> <p>For RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . _). This value must not contain a tilde (~) character. Amazon MQ prohibts using guest as a valid usename. This value must be 2-100 characters long.</p></important></para>
330
+ * <p>The username of the broker user. The following restrictions apply to broker usernames:</p> <ul><li><p>For Amazon MQ for ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p></li> <li><p>para>For Amazon MQ for RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . _). This value must not contain a tilde (~) character. Amazon MQ prohibts using guest as a valid usename. This value must be 2-100 characters long.</p></para></li></ul> <important><p>Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data.</p></important>
330
331
  */
331
332
  Username: string | undefined;
333
+ /**
334
+ * <p>Defines if this user is intended for CRDR replication purposes.</p>
335
+ */
336
+ ReplicationUser?: boolean;
332
337
  }
333
338
  /**
334
339
  * @public
@@ -417,15 +422,27 @@ export declare class ConflictException extends __BaseException {
417
422
  }
418
423
  /**
419
424
  * @public
420
- * <important><p>Does not apply to RabbitMQ brokers.</p></important> <p>Encryption options for the broker.</p>
425
+ * @enum
426
+ */
427
+ export declare const DataReplicationMode: {
428
+ readonly CRDR: "CRDR";
429
+ readonly NONE: "NONE";
430
+ };
431
+ /**
432
+ * @public
433
+ */
434
+ export type DataReplicationMode = (typeof DataReplicationMode)[keyof typeof DataReplicationMode];
435
+ /**
436
+ * @public
437
+ * <p>Encryption options for the broker.</p>
421
438
  */
422
439
  export interface EncryptionOptions {
423
440
  /**
424
- * <p>The customer master key (CMK) to use for the AWS Key Management Service (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.</p>
441
+ * <p>The customer master key (CMK) to use for the A KMS (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.</p>
425
442
  */
426
443
  KmsKeyId?: string;
427
444
  /**
428
- * <p>Enables the use of an AWS owned CMK using AWS Key Management Service (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.</p>
445
+ * <p>Enables the use of an Amazon Web Services owned CMK using KMS (KMS). Set to true by default, if no value is provided, for example, for RabbitMQ brokers.</p>
429
446
  */
430
447
  UseAwsOwnedKey: boolean | undefined;
431
448
  }
@@ -435,7 +452,7 @@ export interface EncryptionOptions {
435
452
  */
436
453
  export interface LdapServerMetadataInput {
437
454
  /**
438
- * <p>Specifies the location of the LDAP server such as AWS Directory Service for Microsoft Active Directory . Optional failover server.</p>
455
+ * <p>Specifies the location of the LDAP server such as Directory Service for Microsoft Active Directory. Optional failover server.</p>
439
456
  */
440
457
  Hosts: string[] | undefined;
441
458
  /**
@@ -547,7 +564,7 @@ export interface CreateBrokerRequest {
547
564
  */
548
565
  AutoMinorVersionUpgrade: boolean | undefined;
549
566
  /**
550
- * <p>Required. The broker's name. This value must be unique in your AWS account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
567
+ * <p>Required. The broker's name. This value must be unique in your Amazon Web Services account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p> <important><p>Do not add personally identifiable information (PII) or other confidential or sensitive information in broker names. Broker names are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker names are not intended to be used for private or sensitive data.</p></important>
551
568
  */
552
569
  BrokerName: string | undefined;
553
570
  /**
@@ -555,7 +572,7 @@ export interface CreateBrokerRequest {
555
572
  */
556
573
  Configuration?: ConfigurationId;
557
574
  /**
558
- * <p>The unique ID that the requester receives for the created broker. Amazon MQ passes your ID with the API action. Note: We recommend using a Universally Unique Identifier (UUID) for the creatorRequestId. You may omit the creatorRequestId if your application doesn't require idempotency.</p>
575
+ * <p>The unique ID that the requester receives for the created broker. Amazon MQ passes your ID with the API action.</p> <note><p>We recommend using a Universally Unique Identifier (UUID) for the creatorRequestId. You may omit the creatorRequestId if your application doesn't require idempotency.</p></note>
559
576
  */
560
577
  CreatorRequestId?: string;
561
578
  /**
@@ -563,7 +580,7 @@ export interface CreateBrokerRequest {
563
580
  */
564
581
  DeploymentMode: DeploymentMode | string | undefined;
565
582
  /**
566
- * <p>Encryption options for the broker. Does not apply to RabbitMQ brokers.</p>
583
+ * <p>Encryption options for the broker.</p>
567
584
  */
568
585
  EncryptionOptions?: EncryptionOptions;
569
586
  /**
@@ -603,7 +620,7 @@ export interface CreateBrokerRequest {
603
620
  */
604
621
  StorageType?: BrokerStorageType | string;
605
622
  /**
606
- * <p>The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones. If you specify more than one subnet, the subnets must be in different Availability Zones. Amazon MQ will not be able to create VPC endpoints for your broker with multiple subnets in the same Availability Zone. A SINGLE_INSTANCE deployment requires one subnet (for example, the default subnet). An ACTIVE_STANDBY_MULTI_AZ Amazon MQ for ActiveMQ deployment requires two subnets. A CLUSTER_MULTI_AZ Amazon MQ for RabbitMQ deployment has no subnet requirements when deployed with public accessibility. Deployment without public accessibility requires at least one subnet.</p> <important><p>If you specify subnets in a <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-sharing.html">shared VPC</a> for a RabbitMQ broker, the associated VPC to which the specified subnets belong must be owned by your AWS account. Amazon MQ will not be able to create VPC endpoints in VPCs that are not owned by your AWS account.</p></important>
623
+ * <p>The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones. If you specify more than one subnet, the subnets must be in different Availability Zones. Amazon MQ will not be able to create VPC endpoints for your broker with multiple subnets in the same Availability Zone. A SINGLE_INSTANCE deployment requires one subnet (for example, the default subnet). An ACTIVE_STANDBY_MULTI_AZ Amazon MQ for ActiveMQ deployment requires two subnets. A CLUSTER_MULTI_AZ Amazon MQ for RabbitMQ deployment has no subnet requirements when deployed with public accessibility. Deployment without public accessibility requires at least one subnet.</p> <important><p>If you specify subnets in a <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-sharing.html">shared VPC</a> for a RabbitMQ broker, the associated VPC to which the specified subnets belong must be owned by your Amazon Web Services account. Amazon MQ will not be able to create VPC endpoints in VPCs that are not owned by your Amazon Web Services account.</p></important>
607
624
  */
608
625
  SubnetIds?: string[];
609
626
  /**
@@ -611,9 +628,17 @@ export interface CreateBrokerRequest {
611
628
  */
612
629
  Tags?: Record<string, string>;
613
630
  /**
614
- * <p>Required. The list of broker users (persons or applications) who can access queues and topics. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p> <important><title>Amazon MQ for RabbitMQ</title> <p>When you create an Amazon MQ for RabbitMQ broker, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.</p></important>
631
+ * <p>The list of broker users (persons or applications) who can access queues and topics. For Amazon MQ for RabbitMQ brokers, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.</p>
615
632
  */
616
633
  Users: User[] | undefined;
634
+ /**
635
+ * <p>Defines whether this broker is a part of a data replication pair.</p>
636
+ */
637
+ DataReplicationMode?: DataReplicationMode | string;
638
+ /**
639
+ * <p>The Amazon Resource Name (ARN) of the primary broker that is used to replicate data from in a data replication pair, and is applied to the replica broker. Must be set when dataReplicationMode is set to CRDR.</p>
640
+ */
641
+ DataReplicationPrimaryBrokerArn?: string;
617
642
  }
618
643
  /**
619
644
  * @public
@@ -802,12 +827,44 @@ export interface CreateUserRequest {
802
827
  * <p>The username of the ActiveMQ user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p>
803
828
  */
804
829
  Username: string | undefined;
830
+ /**
831
+ * <p>Defines if this user is intended for CRDR replication purposes.</p>
832
+ */
833
+ ReplicationUser?: boolean;
805
834
  }
806
835
  /**
807
836
  * @public
808
837
  */
809
838
  export interface CreateUserResponse {
810
839
  }
840
+ /**
841
+ * @public
842
+ * <p>Specifies a broker in a data replication pair.</p>
843
+ */
844
+ export interface DataReplicationCounterpart {
845
+ /**
846
+ * <p>Required. The unique broker id generated by Amazon MQ.</p>
847
+ */
848
+ BrokerId: string | undefined;
849
+ /**
850
+ * <p>Required. The region of the broker.</p>
851
+ */
852
+ Region: string | undefined;
853
+ }
854
+ /**
855
+ * @public
856
+ * <p>The replication details of the data replication-enabled broker. Only returned if dataReplicationMode or pendingDataReplicationMode is set to CRDR.</p>
857
+ */
858
+ export interface DataReplicationMetadataOutput {
859
+ /**
860
+ * <p>Describes the replica/primary broker. Only returned if this broker is currently set as a primary or replica in the broker's dataReplicationRole property.</p>
861
+ */
862
+ DataReplicationCounterpart?: DataReplicationCounterpart;
863
+ /**
864
+ * <p>Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.</p>
865
+ */
866
+ DataReplicationRole: string | undefined;
867
+ }
811
868
  /**
812
869
  * @public
813
870
  */
@@ -872,7 +929,7 @@ export interface DescribeBrokerRequest {
872
929
  */
873
930
  export interface LdapServerMetadataOutput {
874
931
  /**
875
- * <p>Specifies the location of the LDAP server such as AWS Directory Service for Microsoft Active Directory . Optional failover server.</p>
932
+ * <p>Specifies the location of the LDAP server such as Directory Service for Microsoft Active Directory. Optional failover server.</p>
876
933
  */
877
934
  Hosts: string[] | undefined;
878
935
  /**
@@ -961,7 +1018,7 @@ export interface LogsSummary {
961
1018
  */
962
1019
  export interface DescribeBrokerResponse {
963
1020
  /**
964
- * <p>A list of actions required for a broker.</p>
1021
+ * <p>Actions required for a broker.</p>
965
1022
  */
966
1023
  ActionsRequired?: ActionRequired[];
967
1024
  /**
@@ -985,7 +1042,7 @@ export interface DescribeBrokerResponse {
985
1042
  */
986
1043
  BrokerInstances?: BrokerInstance[];
987
1044
  /**
988
- * <p>The broker's name. This value must be unique in your AWS account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
1045
+ * <p>The broker's name. This value must be unique in your Amazon Web Services account account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.</p>
989
1046
  */
990
1047
  BrokerName?: string;
991
1048
  /**
@@ -1005,7 +1062,7 @@ export interface DescribeBrokerResponse {
1005
1062
  */
1006
1063
  DeploymentMode?: DeploymentMode | string;
1007
1064
  /**
1008
- * <p>Encryption options for the broker. Does not apply to RabbitMQ brokers.</p>
1065
+ * <p>Encryption options for the broker.</p>
1009
1066
  */
1010
1067
  EncryptionOptions?: EncryptionOptions;
1011
1068
  /**
@@ -1076,6 +1133,22 @@ export interface DescribeBrokerResponse {
1076
1133
  * <p>The list of all broker usernames for the specified broker.</p>
1077
1134
  */
1078
1135
  Users?: UserSummary[];
1136
+ /**
1137
+ * <p>The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to CRDR.</p>
1138
+ */
1139
+ DataReplicationMetadata?: DataReplicationMetadataOutput;
1140
+ /**
1141
+ * <p>Describes whether this broker is a part of a data replication pair.</p>
1142
+ */
1143
+ DataReplicationMode?: DataReplicationMode | string;
1144
+ /**
1145
+ * <p>The pending replication details of the data replication-enabled broker. Only returned if pendingDataReplicationMode is set to CRDR.</p>
1146
+ */
1147
+ PendingDataReplicationMetadata?: DataReplicationMetadataOutput;
1148
+ /**
1149
+ * <p>Describes whether this broker will be a part of a data replication pair after reboot.</p>
1150
+ */
1151
+ PendingDataReplicationMode?: DataReplicationMode | string;
1079
1152
  }
1080
1153
  /**
1081
1154
  * @public
@@ -1233,7 +1306,7 @@ export interface DescribeConfigurationRevisionResponse {
1233
1306
  */
1234
1307
  Created?: Date;
1235
1308
  /**
1236
- * <p>Required. The base64-encoded XML configuration.</p>
1309
+ * <p>Amazon MQ for ActiveMQ: the base64-encoded XML configuration. Amazon MQ for RabbitMQ: base64-encoded Cuttlefish.</p>
1237
1310
  */
1238
1311
  Data?: string;
1239
1312
  /**
@@ -1296,6 +1369,10 @@ export interface DescribeUserResponse {
1296
1369
  * <p>Required. The username of the ActiveMQ user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p>
1297
1370
  */
1298
1371
  Username?: string;
1372
+ /**
1373
+ * <p>Describes whether the user is intended for data replication</p>
1374
+ */
1375
+ ReplicationUser?: boolean;
1299
1376
  }
1300
1377
  /**
1301
1378
  * @public
@@ -1447,6 +1524,41 @@ export interface ListUsersResponse {
1447
1524
  */
1448
1525
  Users?: UserSummary[];
1449
1526
  }
1527
+ /**
1528
+ * @public
1529
+ * @enum
1530
+ */
1531
+ export declare const PromoteMode: {
1532
+ readonly FAILOVER: "FAILOVER";
1533
+ readonly SWITCHOVER: "SWITCHOVER";
1534
+ };
1535
+ /**
1536
+ * @public
1537
+ */
1538
+ export type PromoteMode = (typeof PromoteMode)[keyof typeof PromoteMode];
1539
+ /**
1540
+ * @public
1541
+ * <p>Promotes a data replication replica broker to the primary broker role.</p>
1542
+ */
1543
+ export interface PromoteRequest {
1544
+ /**
1545
+ * <p>The unique ID that Amazon MQ generates for the broker.</p>
1546
+ */
1547
+ BrokerId: string | undefined;
1548
+ /**
1549
+ * <p>The Promote mode requested. Note: Valid values for the parameter are SWITCHOVER, FAILOVER.</p>
1550
+ */
1551
+ Mode: PromoteMode | string | undefined;
1552
+ }
1553
+ /**
1554
+ * @public
1555
+ */
1556
+ export interface PromoteResponse {
1557
+ /**
1558
+ * <p>The unique ID that Amazon MQ generates for the broker.</p>
1559
+ */
1560
+ BrokerId?: string;
1561
+ }
1450
1562
  /**
1451
1563
  * @public
1452
1564
  */
@@ -1506,6 +1618,10 @@ export interface UpdateBrokerRequest {
1506
1618
  * <p>The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers.</p>
1507
1619
  */
1508
1620
  SecurityGroups?: string[];
1621
+ /**
1622
+ * <p>Defines whether this broker is a part of a data replication pair.</p>
1623
+ */
1624
+ DataReplicationMode?: DataReplicationMode | string;
1509
1625
  }
1510
1626
  /**
1511
1627
  * @public
@@ -1551,6 +1667,22 @@ export interface UpdateBrokerResponse {
1551
1667
  * <p>The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers.</p>
1552
1668
  */
1553
1669
  SecurityGroups?: string[];
1670
+ /**
1671
+ * <p>The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to CRDR.</p>
1672
+ */
1673
+ DataReplicationMetadata?: DataReplicationMetadataOutput;
1674
+ /**
1675
+ * <p>Describes whether this broker is a part of a data replication pair.</p>
1676
+ */
1677
+ DataReplicationMode?: DataReplicationMode | string;
1678
+ /**
1679
+ * <p>The pending replication details of the data replication-enabled broker. Only returned if pendingDataReplicationMode is set to CRDR.</p>
1680
+ */
1681
+ PendingDataReplicationMetadata?: DataReplicationMetadataOutput;
1682
+ /**
1683
+ * <p>Describes whether this broker will be a part of a data replication pair after reboot.</p>
1684
+ */
1685
+ PendingDataReplicationMode?: DataReplicationMode | string;
1554
1686
  }
1555
1687
  /**
1556
1688
  * @public
@@ -1562,7 +1694,7 @@ export interface UpdateConfigurationRequest {
1562
1694
  */
1563
1695
  ConfigurationId: string | undefined;
1564
1696
  /**
1565
- * <p>Required. The base64-encoded XML configuration.</p>
1697
+ * <p>Amazon MQ for Active MQ: The base64-encoded XML configuration. Amazon MQ for RabbitMQ: the base64-encoded Cuttlefish configuration.</p>
1566
1698
  */
1567
1699
  Data: string | undefined;
1568
1700
  /**
@@ -1575,7 +1707,7 @@ export interface UpdateConfigurationRequest {
1575
1707
  */
1576
1708
  export interface UpdateConfigurationResponse {
1577
1709
  /**
1578
- * <p>Required. The Amazon Resource Name (ARN) of the configuration.</p>
1710
+ * <p>The Amazon Resource Name (ARN) of the configuration.</p>
1579
1711
  */
1580
1712
  Arn?: string;
1581
1713
  /**
@@ -1583,7 +1715,7 @@ export interface UpdateConfigurationResponse {
1583
1715
  */
1584
1716
  Created?: Date;
1585
1717
  /**
1586
- * <p>Required. The unique ID that Amazon MQ generates for the configuration.</p>
1718
+ * <p>The unique ID that Amazon MQ generates for the configuration.</p>
1587
1719
  */
1588
1720
  Id?: string;
1589
1721
  /**
@@ -1591,11 +1723,11 @@ export interface UpdateConfigurationResponse {
1591
1723
  */
1592
1724
  LatestRevision?: ConfigurationRevision;
1593
1725
  /**
1594
- * <p>Required. The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long.</p>
1726
+ * <p>The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long.</p>
1595
1727
  */
1596
1728
  Name?: string;
1597
1729
  /**
1598
- * <p>The list of the first 20 warnings about the configuration XML elements or attributes that were sanitized.</p>
1730
+ * <p>The list of the first 20 warnings about the configuration elements or attributes that were sanitized.</p>
1599
1731
  */
1600
1732
  Warnings?: SanitizationWarning[];
1601
1733
  }
@@ -1624,6 +1756,10 @@ export interface UpdateUserRequest {
1624
1756
  * <p>The username of the ActiveMQ user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.</p>
1625
1757
  */
1626
1758
  Username: string | undefined;
1759
+ /**
1760
+ * <p>Defines whether the user is intended for data replication.</p>
1761
+ */
1762
+ ReplicationUser?: boolean;
1627
1763
  }
1628
1764
  /**
1629
1765
  * @public
@@ -18,6 +18,7 @@ import { ListConfigurationRevisionsCommandInput, ListConfigurationRevisionsComma
18
18
  import { ListConfigurationsCommandInput, ListConfigurationsCommandOutput } from "../commands/ListConfigurationsCommand";
19
19
  import { ListTagsCommandInput, ListTagsCommandOutput } from "../commands/ListTagsCommand";
20
20
  import { ListUsersCommandInput, ListUsersCommandOutput } from "../commands/ListUsersCommand";
21
+ import { PromoteCommandInput, PromoteCommandOutput } from "../commands/PromoteCommand";
21
22
  import { RebootBrokerCommandInput, RebootBrokerCommandOutput } from "../commands/RebootBrokerCommand";
22
23
  import { UpdateBrokerCommandInput, UpdateBrokerCommandOutput } from "../commands/UpdateBrokerCommand";
23
24
  import { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } from "../commands/UpdateConfigurationCommand";
@@ -94,6 +95,10 @@ export declare const se_ListTagsCommand: (input: ListTagsCommandInput, context:
94
95
  * serializeAws_restJson1ListUsersCommand
95
96
  */
96
97
  export declare const se_ListUsersCommand: (input: ListUsersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
98
+ /**
99
+ * serializeAws_restJson1PromoteCommand
100
+ */
101
+ export declare const se_PromoteCommand: (input: PromoteCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
97
102
  /**
98
103
  * serializeAws_restJson1RebootBrokerCommand
99
104
  */
@@ -182,6 +187,10 @@ export declare const de_ListTagsCommand: (output: __HttpResponse, context: __Ser
182
187
  * deserializeAws_restJson1ListUsersCommand
183
188
  */
184
189
  export declare const de_ListUsersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListUsersCommandOutput>;
190
+ /**
191
+ * deserializeAws_restJson1PromoteCommand
192
+ */
193
+ export declare const de_PromoteCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PromoteCommandOutput>;
185
194
  /**
186
195
  * deserializeAws_restJson1RebootBrokerCommand
187
196
  */
@@ -71,6 +71,10 @@ import {
71
71
  ListUsersCommandInput,
72
72
  ListUsersCommandOutput,
73
73
  } from "./commands/ListUsersCommand";
74
+ import {
75
+ PromoteCommandInput,
76
+ PromoteCommandOutput,
77
+ } from "./commands/PromoteCommand";
74
78
  import {
75
79
  RebootBrokerCommandInput,
76
80
  RebootBrokerCommandOutput,
@@ -323,6 +327,19 @@ export interface Mq {
323
327
  options: __HttpHandlerOptions,
324
328
  cb: (err: any, data?: ListUsersCommandOutput) => void
325
329
  ): void;
330
+ promote(
331
+ args: PromoteCommandInput,
332
+ options?: __HttpHandlerOptions
333
+ ): Promise<PromoteCommandOutput>;
334
+ promote(
335
+ args: PromoteCommandInput,
336
+ cb: (err: any, data?: PromoteCommandOutput) => void
337
+ ): void;
338
+ promote(
339
+ args: PromoteCommandInput,
340
+ options: __HttpHandlerOptions,
341
+ cb: (err: any, data?: PromoteCommandOutput) => void
342
+ ): void;
326
343
  rebootBroker(
327
344
  args: RebootBrokerCommandInput,
328
345
  options?: __HttpHandlerOptions
@@ -118,6 +118,10 @@ import {
118
118
  ListUsersCommandInput,
119
119
  ListUsersCommandOutput,
120
120
  } from "./commands/ListUsersCommand";
121
+ import {
122
+ PromoteCommandInput,
123
+ PromoteCommandOutput,
124
+ } from "./commands/PromoteCommand";
121
125
  import {
122
126
  RebootBrokerCommandInput,
123
127
  RebootBrokerCommandOutput,
@@ -159,6 +163,7 @@ export type ServiceInputTypes =
159
163
  | ListConfigurationsCommandInput
160
164
  | ListTagsCommandInput
161
165
  | ListUsersCommandInput
166
+ | PromoteCommandInput
162
167
  | RebootBrokerCommandInput
163
168
  | UpdateBrokerCommandInput
164
169
  | UpdateConfigurationCommandInput
@@ -182,6 +187,7 @@ export type ServiceOutputTypes =
182
187
  | ListConfigurationsCommandOutput
183
188
  | ListTagsCommandOutput
184
189
  | ListUsersCommandOutput
190
+ | PromoteCommandOutput
185
191
  | RebootBrokerCommandOutput
186
192
  | UpdateBrokerCommandOutput
187
193
  | UpdateConfigurationCommandOutput
@@ -0,0 +1,35 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import { PromoteRequest, PromoteResponse } from "../models/models_0";
10
+ import {
11
+ MqClientResolvedConfig,
12
+ ServiceInputTypes,
13
+ ServiceOutputTypes,
14
+ } from "../MqClient";
15
+ export { __MetadataBearer, $Command };
16
+ export interface PromoteCommandInput extends PromoteRequest {}
17
+ export interface PromoteCommandOutput
18
+ extends PromoteResponse,
19
+ __MetadataBearer {}
20
+ export declare class PromoteCommand extends $Command<
21
+ PromoteCommandInput,
22
+ PromoteCommandOutput,
23
+ MqClientResolvedConfig
24
+ > {
25
+ readonly input: PromoteCommandInput;
26
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
+ constructor(input: PromoteCommandInput);
28
+ resolveMiddleware(
29
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
+ configuration: MqClientResolvedConfig,
31
+ options?: __HttpHandlerOptions
32
+ ): Handler<PromoteCommandInput, PromoteCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -16,6 +16,7 @@ export * from "./ListConfigurationRevisionsCommand";
16
16
  export * from "./ListConfigurationsCommand";
17
17
  export * from "./ListTagsCommand";
18
18
  export * from "./ListUsersCommand";
19
+ export * from "./PromoteCommand";
19
20
  export * from "./RebootBrokerCommand";
20
21
  export * from "./UpdateBrokerCommand";
21
22
  export * from "./UpdateConfigurationCommand";