UNPKG

41.1 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class MQ extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: MQ.Types.ClientConfiguration)
13 config: Config & MQ.Types.ClientConfiguration;
14 /**
15 * Creates a broker. Note: This API is asynchronous.
16 */
17 createBroker(params: MQ.Types.CreateBrokerRequest, callback?: (err: AWSError, data: MQ.Types.CreateBrokerResponse) => void): Request<MQ.Types.CreateBrokerResponse, AWSError>;
18 /**
19 * Creates a broker. Note: This API is asynchronous.
20 */
21 createBroker(callback?: (err: AWSError, data: MQ.Types.CreateBrokerResponse) => void): Request<MQ.Types.CreateBrokerResponse, AWSError>;
22 /**
23 * Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).
24 */
25 createConfiguration(params: MQ.Types.CreateConfigurationRequest, callback?: (err: AWSError, data: MQ.Types.CreateConfigurationResponse) => void): Request<MQ.Types.CreateConfigurationResponse, AWSError>;
26 /**
27 * Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).
28 */
29 createConfiguration(callback?: (err: AWSError, data: MQ.Types.CreateConfigurationResponse) => void): Request<MQ.Types.CreateConfigurationResponse, AWSError>;
30 /**
31 * Add a tag to a resource.
32 */
33 createTags(params: MQ.Types.CreateTagsRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
34 /**
35 * Add a tag to a resource.
36 */
37 createTags(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
38 /**
39 * Creates an ActiveMQ user.
40 */
41 createUser(params: MQ.Types.CreateUserRequest, callback?: (err: AWSError, data: MQ.Types.CreateUserResponse) => void): Request<MQ.Types.CreateUserResponse, AWSError>;
42 /**
43 * Creates an ActiveMQ user.
44 */
45 createUser(callback?: (err: AWSError, data: MQ.Types.CreateUserResponse) => void): Request<MQ.Types.CreateUserResponse, AWSError>;
46 /**
47 * Deletes a broker. Note: This API is asynchronous.
48 */
49 deleteBroker(params: MQ.Types.DeleteBrokerRequest, callback?: (err: AWSError, data: MQ.Types.DeleteBrokerResponse) => void): Request<MQ.Types.DeleteBrokerResponse, AWSError>;
50 /**
51 * Deletes a broker. Note: This API is asynchronous.
52 */
53 deleteBroker(callback?: (err: AWSError, data: MQ.Types.DeleteBrokerResponse) => void): Request<MQ.Types.DeleteBrokerResponse, AWSError>;
54 /**
55 * Remove a tag from a resource.
56 */
57 deleteTags(params: MQ.Types.DeleteTagsRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
58 /**
59 * Remove a tag from a resource.
60 */
61 deleteTags(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
62 /**
63 * Deletes an ActiveMQ user.
64 */
65 deleteUser(params: MQ.Types.DeleteUserRequest, callback?: (err: AWSError, data: MQ.Types.DeleteUserResponse) => void): Request<MQ.Types.DeleteUserResponse, AWSError>;
66 /**
67 * Deletes an ActiveMQ user.
68 */
69 deleteUser(callback?: (err: AWSError, data: MQ.Types.DeleteUserResponse) => void): Request<MQ.Types.DeleteUserResponse, AWSError>;
70 /**
71 * Returns information about the specified broker.
72 */
73 describeBroker(params: MQ.Types.DescribeBrokerRequest, callback?: (err: AWSError, data: MQ.Types.DescribeBrokerResponse) => void): Request<MQ.Types.DescribeBrokerResponse, AWSError>;
74 /**
75 * Returns information about the specified broker.
76 */
77 describeBroker(callback?: (err: AWSError, data: MQ.Types.DescribeBrokerResponse) => void): Request<MQ.Types.DescribeBrokerResponse, AWSError>;
78 /**
79 * Returns information about the specified configuration.
80 */
81 describeConfiguration(params: MQ.Types.DescribeConfigurationRequest, callback?: (err: AWSError, data: MQ.Types.DescribeConfigurationResponse) => void): Request<MQ.Types.DescribeConfigurationResponse, AWSError>;
82 /**
83 * Returns information about the specified configuration.
84 */
85 describeConfiguration(callback?: (err: AWSError, data: MQ.Types.DescribeConfigurationResponse) => void): Request<MQ.Types.DescribeConfigurationResponse, AWSError>;
86 /**
87 * Returns the specified configuration revision for the specified configuration.
88 */
89 describeConfigurationRevision(params: MQ.Types.DescribeConfigurationRevisionRequest, callback?: (err: AWSError, data: MQ.Types.DescribeConfigurationRevisionResponse) => void): Request<MQ.Types.DescribeConfigurationRevisionResponse, AWSError>;
90 /**
91 * Returns the specified configuration revision for the specified configuration.
92 */
93 describeConfigurationRevision(callback?: (err: AWSError, data: MQ.Types.DescribeConfigurationRevisionResponse) => void): Request<MQ.Types.DescribeConfigurationRevisionResponse, AWSError>;
94 /**
95 * Returns information about an ActiveMQ user.
96 */
97 describeUser(params: MQ.Types.DescribeUserRequest, callback?: (err: AWSError, data: MQ.Types.DescribeUserResponse) => void): Request<MQ.Types.DescribeUserResponse, AWSError>;
98 /**
99 * Returns information about an ActiveMQ user.
100 */
101 describeUser(callback?: (err: AWSError, data: MQ.Types.DescribeUserResponse) => void): Request<MQ.Types.DescribeUserResponse, AWSError>;
102 /**
103 * Returns a list of all brokers.
104 */
105 listBrokers(params: MQ.Types.ListBrokersRequest, callback?: (err: AWSError, data: MQ.Types.ListBrokersResponse) => void): Request<MQ.Types.ListBrokersResponse, AWSError>;
106 /**
107 * Returns a list of all brokers.
108 */
109 listBrokers(callback?: (err: AWSError, data: MQ.Types.ListBrokersResponse) => void): Request<MQ.Types.ListBrokersResponse, AWSError>;
110 /**
111 * Returns a list of all revisions for the specified configuration.
112 */
113 listConfigurationRevisions(params: MQ.Types.ListConfigurationRevisionsRequest, callback?: (err: AWSError, data: MQ.Types.ListConfigurationRevisionsResponse) => void): Request<MQ.Types.ListConfigurationRevisionsResponse, AWSError>;
114 /**
115 * Returns a list of all revisions for the specified configuration.
116 */
117 listConfigurationRevisions(callback?: (err: AWSError, data: MQ.Types.ListConfigurationRevisionsResponse) => void): Request<MQ.Types.ListConfigurationRevisionsResponse, AWSError>;
118 /**
119 * Returns a list of all configurations.
120 */
121 listConfigurations(params: MQ.Types.ListConfigurationsRequest, callback?: (err: AWSError, data: MQ.Types.ListConfigurationsResponse) => void): Request<MQ.Types.ListConfigurationsResponse, AWSError>;
122 /**
123 * Returns a list of all configurations.
124 */
125 listConfigurations(callback?: (err: AWSError, data: MQ.Types.ListConfigurationsResponse) => void): Request<MQ.Types.ListConfigurationsResponse, AWSError>;
126 /**
127 * Lists tags for a resource.
128 */
129 listTags(params: MQ.Types.ListTagsRequest, callback?: (err: AWSError, data: MQ.Types.ListTagsResponse) => void): Request<MQ.Types.ListTagsResponse, AWSError>;
130 /**
131 * Lists tags for a resource.
132 */
133 listTags(callback?: (err: AWSError, data: MQ.Types.ListTagsResponse) => void): Request<MQ.Types.ListTagsResponse, AWSError>;
134 /**
135 * Returns a list of all ActiveMQ users.
136 */
137 listUsers(params: MQ.Types.ListUsersRequest, callback?: (err: AWSError, data: MQ.Types.ListUsersResponse) => void): Request<MQ.Types.ListUsersResponse, AWSError>;
138 /**
139 * Returns a list of all ActiveMQ users.
140 */
141 listUsers(callback?: (err: AWSError, data: MQ.Types.ListUsersResponse) => void): Request<MQ.Types.ListUsersResponse, AWSError>;
142 /**
143 * Reboots a broker. Note: This API is asynchronous.
144 */
145 rebootBroker(params: MQ.Types.RebootBrokerRequest, callback?: (err: AWSError, data: MQ.Types.RebootBrokerResponse) => void): Request<MQ.Types.RebootBrokerResponse, AWSError>;
146 /**
147 * Reboots a broker. Note: This API is asynchronous.
148 */
149 rebootBroker(callback?: (err: AWSError, data: MQ.Types.RebootBrokerResponse) => void): Request<MQ.Types.RebootBrokerResponse, AWSError>;
150 /**
151 * Adds a pending configuration change to a broker.
152 */
153 updateBroker(params: MQ.Types.UpdateBrokerRequest, callback?: (err: AWSError, data: MQ.Types.UpdateBrokerResponse) => void): Request<MQ.Types.UpdateBrokerResponse, AWSError>;
154 /**
155 * Adds a pending configuration change to a broker.
156 */
157 updateBroker(callback?: (err: AWSError, data: MQ.Types.UpdateBrokerResponse) => void): Request<MQ.Types.UpdateBrokerResponse, AWSError>;
158 /**
159 * Updates the specified configuration.
160 */
161 updateConfiguration(params: MQ.Types.UpdateConfigurationRequest, callback?: (err: AWSError, data: MQ.Types.UpdateConfigurationResponse) => void): Request<MQ.Types.UpdateConfigurationResponse, AWSError>;
162 /**
163 * Updates the specified configuration.
164 */
165 updateConfiguration(callback?: (err: AWSError, data: MQ.Types.UpdateConfigurationResponse) => void): Request<MQ.Types.UpdateConfigurationResponse, AWSError>;
166 /**
167 * Updates the information for an ActiveMQ user.
168 */
169 updateUser(params: MQ.Types.UpdateUserRequest, callback?: (err: AWSError, data: MQ.Types.UpdateUserResponse) => void): Request<MQ.Types.UpdateUserResponse, AWSError>;
170 /**
171 * Updates the information for an ActiveMQ user.
172 */
173 updateUser(callback?: (err: AWSError, data: MQ.Types.UpdateUserResponse) => void): Request<MQ.Types.UpdateUserResponse, AWSError>;
174}
175declare namespace MQ {
176 export interface BrokerInstance {
177 /**
178 * The URL of the broker's ActiveMQ Web Console.
179 */
180 ConsoleURL?: __string;
181 /**
182 * The broker's wire-level protocol endpoints.
183 */
184 Endpoints?: __listOf__string;
185 /**
186 * The IP address of the Elastic Network Interface (ENI) attached to the broker.
187 */
188 IpAddress?: __string;
189 }
190 export type BrokerState = "CREATION_IN_PROGRESS"|"CREATION_FAILED"|"DELETION_IN_PROGRESS"|"RUNNING"|"REBOOT_IN_PROGRESS"|string;
191 export interface BrokerSummary {
192 /**
193 * The Amazon Resource Name (ARN) of the broker.
194 */
195 BrokerArn?: __string;
196 /**
197 * The unique ID that Amazon MQ generates for the broker.
198 */
199 BrokerId?: __string;
200 /**
201 * The name of the broker. 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 whitespaces, brackets, wildcard characters, or special characters.
202 */
203 BrokerName?: __string;
204 /**
205 * The status of the broker.
206 */
207 BrokerState?: BrokerState;
208 /**
209 * The time when the broker was created.
210 */
211 Created?: __timestampIso8601;
212 /**
213 * Required. The deployment mode of the broker.
214 */
215 DeploymentMode?: DeploymentMode;
216 /**
217 * The broker's instance type.
218 */
219 HostInstanceType?: __string;
220 }
221 export type ChangeType = "CREATE"|"UPDATE"|"DELETE"|string;
222 export interface Configuration {
223 /**
224 * Required. The ARN of the configuration.
225 */
226 Arn?: __string;
227 /**
228 * Required. The date and time of the configuration revision.
229 */
230 Created?: __timestampIso8601;
231 /**
232 * Required. The description of the configuration.
233 */
234 Description?: __string;
235 /**
236 * Required. The type of broker engine. Note: Currently, Amazon MQ supports only ACTIVEMQ.
237 */
238 EngineType?: EngineType;
239 /**
240 * Required. The version of the broker engine. For a list of supported engine versions, see https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html
241 */
242 EngineVersion?: __string;
243 /**
244 * Required. The unique ID that Amazon MQ generates for the configuration.
245 */
246 Id?: __string;
247 /**
248 * Required. The latest revision of the configuration.
249 */
250 LatestRevision?: ConfigurationRevision;
251 /**
252 * 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.
253 */
254 Name?: __string;
255 /**
256 * The list of all tags associated with this configuration.
257 */
258 Tags?: __mapOf__string;
259 }
260 export interface ConfigurationId {
261 /**
262 * Required. The unique ID that Amazon MQ generates for the configuration.
263 */
264 Id?: __string;
265 /**
266 * The revision number of the configuration.
267 */
268 Revision?: __integer;
269 }
270 export interface ConfigurationRevision {
271 /**
272 * Required. The date and time of the configuration revision.
273 */
274 Created?: __timestampIso8601;
275 /**
276 * The description of the configuration revision.
277 */
278 Description?: __string;
279 /**
280 * Required. The revision number of the configuration.
281 */
282 Revision?: __integer;
283 }
284 export interface Configurations {
285 /**
286 * The current configuration of the broker.
287 */
288 Current?: ConfigurationId;
289 /**
290 * The history of configurations applied to the broker.
291 */
292 History?: __listOfConfigurationId;
293 /**
294 * The pending configuration of the broker.
295 */
296 Pending?: ConfigurationId;
297 }
298 export interface CreateBrokerRequest {
299 /**
300 * Required. Enables automatic upgrades to new minor versions for brokers, as Apache releases the versions. The automatic upgrades occur during the maintenance window of the broker or after a manual broker reboot.
301 */
302 AutoMinorVersionUpgrade?: __boolean;
303 /**
304 * Required. The name of the broker. 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 whitespaces, brackets, wildcard characters, or special characters.
305 */
306 BrokerName?: __string;
307 /**
308 * A list of information about the configuration.
309 */
310 Configuration?: ConfigurationId;
311 /**
312 * 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.
313 */
314 CreatorRequestId?: __string;
315 /**
316 * Required. The deployment mode of the broker.
317 */
318 DeploymentMode?: DeploymentMode;
319 /**
320 * Required. The type of broker engine. Note: Currently, Amazon MQ supports only ACTIVEMQ.
321 */
322 EngineType?: EngineType;
323 /**
324 * Required. The version of the broker engine. For a list of supported engine versions, see https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html
325 */
326 EngineVersion?: __string;
327 /**
328 * Required. The broker's instance type.
329 */
330 HostInstanceType?: __string;
331 /**
332 * Enables Amazon CloudWatch logging for brokers.
333 */
334 Logs?: Logs;
335 /**
336 * The parameters that determine the WeeklyStartTime.
337 */
338 MaintenanceWindowStartTime?: WeeklyStartTime;
339 /**
340 * Required. Enables connections from applications outside of the VPC that hosts the broker's subnets.
341 */
342 PubliclyAccessible?: __boolean;
343 /**
344 * The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
345 */
346 SecurityGroups?: __listOf__string;
347 /**
348 * The list of groups (2 maximum) that define which subnets and IP ranges the broker can use from different Availability Zones. A SINGLE_INSTANCE deployment requires one subnet (for example, the default subnet). An ACTIVE_STANDBY_MULTI_AZ deployment requires two subnets.
349 */
350 SubnetIds?: __listOf__string;
351 /**
352 * Create tags when creating the broker.
353 */
354 Tags?: __mapOf__string;
355 /**
356 * Required. The list of ActiveMQ 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.
357 */
358 Users?: __listOfUser;
359 }
360 export interface CreateBrokerResponse {
361 /**
362 * The Amazon Resource Name (ARN) of the broker.
363 */
364 BrokerArn?: __string;
365 /**
366 * The unique ID that Amazon MQ generates for the broker.
367 */
368 BrokerId?: __string;
369 }
370 export interface CreateConfigurationRequest {
371 /**
372 * Required. The type of broker engine. Note: Currently, Amazon MQ supports only ACTIVEMQ.
373 */
374 EngineType?: EngineType;
375 /**
376 * Required. The version of the broker engine. For a list of supported engine versions, see https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html
377 */
378 EngineVersion?: __string;
379 /**
380 * 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.
381 */
382 Name?: __string;
383 /**
384 * Create tags when creating the configuration.
385 */
386 Tags?: __mapOf__string;
387 }
388 export interface CreateConfigurationResponse {
389 /**
390 * Required. The Amazon Resource Name (ARN) of the configuration.
391 */
392 Arn?: __string;
393 /**
394 * Required. The date and time of the configuration.
395 */
396 Created?: __timestampIso8601;
397 /**
398 * Required. The unique ID that Amazon MQ generates for the configuration.
399 */
400 Id?: __string;
401 /**
402 * The latest revision of the configuration.
403 */
404 LatestRevision?: ConfigurationRevision;
405 /**
406 * 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.
407 */
408 Name?: __string;
409 }
410 export interface CreateTagsRequest {
411 /**
412 * the Amazon Resource Name (ARN)
413 */
414 ResourceArn: __string;
415 /**
416 * The key-value pair for the resource tag.
417 */
418 Tags?: __mapOf__string;
419 }
420 export interface CreateUserRequest {
421 /**
422 * The unique ID that Amazon MQ generates for the broker.
423 */
424 BrokerId: __string;
425 /**
426 * Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
427 */
428 ConsoleAccess?: __boolean;
429 /**
430 * The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
431 */
432 Groups?: __listOf__string;
433 /**
434 * Required. The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas.
435 */
436 Password?: __string;
437 /**
438 * 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.
439 */
440 Username: __string;
441 }
442 export interface CreateUserResponse {
443 }
444 export type DayOfWeek = "MONDAY"|"TUESDAY"|"WEDNESDAY"|"THURSDAY"|"FRIDAY"|"SATURDAY"|"SUNDAY"|string;
445 export interface DeleteBrokerRequest {
446 /**
447 * The name of the broker. 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 whitespaces, brackets, wildcard characters, or special characters.
448 */
449 BrokerId: __string;
450 }
451 export interface DeleteBrokerResponse {
452 /**
453 * The unique ID that Amazon MQ generates for the broker.
454 */
455 BrokerId?: __string;
456 }
457 export interface DeleteTagsRequest {
458 /**
459 * the Amazon Resource Name (ARN)
460 */
461 ResourceArn: __string;
462 /**
463 * An array of tag keys to delete
464 */
465 TagKeys: __listOf__string;
466 }
467 export interface DeleteUserRequest {
468 /**
469 * The unique ID that Amazon MQ generates for the broker.
470 */
471 BrokerId: __string;
472 /**
473 * 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.
474 */
475 Username: __string;
476 }
477 export interface DeleteUserResponse {
478 }
479 export type DeploymentMode = "SINGLE_INSTANCE"|"ACTIVE_STANDBY_MULTI_AZ"|string;
480 export interface DescribeBrokerRequest {
481 /**
482 * The name of the broker. 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 whitespaces, brackets, wildcard characters, or special characters.
483 */
484 BrokerId: __string;
485 }
486 export interface DescribeBrokerResponse {
487 /**
488 * Required. Enables automatic upgrades to new minor versions for brokers, as Apache releases the versions. The automatic upgrades occur during the maintenance window of the broker or after a manual broker reboot.
489 */
490 AutoMinorVersionUpgrade?: __boolean;
491 /**
492 * The Amazon Resource Name (ARN) of the broker.
493 */
494 BrokerArn?: __string;
495 /**
496 * The unique ID that Amazon MQ generates for the broker.
497 */
498 BrokerId?: __string;
499 /**
500 * A list of information about allocated brokers.
501 */
502 BrokerInstances?: __listOfBrokerInstance;
503 /**
504 * The name of the broker. 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 whitespaces, brackets, wildcard characters, or special characters.
505 */
506 BrokerName?: __string;
507 /**
508 * The status of the broker.
509 */
510 BrokerState?: BrokerState;
511 /**
512 * The list of all revisions for the specified configuration.
513 */
514 Configurations?: Configurations;
515 /**
516 * The time when the broker was created.
517 */
518 Created?: __timestampIso8601;
519 /**
520 * Required. The deployment mode of the broker.
521 */
522 DeploymentMode?: DeploymentMode;
523 /**
524 * Required. The type of broker engine. Note: Currently, Amazon MQ supports only ACTIVEMQ.
525 */
526 EngineType?: EngineType;
527 /**
528 * The version of the broker engine. For a list of supported engine versions, see https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html
529 */
530 EngineVersion?: __string;
531 /**
532 * The broker's instance type.
533 */
534 HostInstanceType?: __string;
535 /**
536 * The list of information about logs currently enabled and pending to be deployed for the specified broker.
537 */
538 Logs?: LogsSummary;
539 /**
540 * The parameters that determine the WeeklyStartTime.
541 */
542 MaintenanceWindowStartTime?: WeeklyStartTime;
543 /**
544 * The version of the broker engine to upgrade to. For a list of supported engine versions, see https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html
545 */
546 PendingEngineVersion?: __string;
547 /**
548 * Required. Enables connections from applications outside of the VPC that hosts the broker's subnets.
549 */
550 PubliclyAccessible?: __boolean;
551 /**
552 * Required. The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
553 */
554 SecurityGroups?: __listOf__string;
555 /**
556 * The list of groups (2 maximum) that define which subnets and IP ranges the broker can use from different Availability Zones. A SINGLE_INSTANCE deployment requires one subnet (for example, the default subnet). An ACTIVE_STANDBY_MULTI_AZ deployment requires two subnets.
557 */
558 SubnetIds?: __listOf__string;
559 /**
560 * The list of all tags associated with this broker.
561 */
562 Tags?: __mapOf__string;
563 /**
564 * The list of all ActiveMQ usernames for the specified broker.
565 */
566 Users?: __listOfUserSummary;
567 }
568 export interface DescribeConfigurationRequest {
569 /**
570 * The unique ID that Amazon MQ generates for the configuration.
571 */
572 ConfigurationId: __string;
573 }
574 export interface DescribeConfigurationResponse {
575 /**
576 * Required. The ARN of the configuration.
577 */
578 Arn?: __string;
579 /**
580 * Required. The date and time of the configuration revision.
581 */
582 Created?: __timestampIso8601;
583 /**
584 * Required. The description of the configuration.
585 */
586 Description?: __string;
587 /**
588 * Required. The type of broker engine. Note: Currently, Amazon MQ supports only ACTIVEMQ.
589 */
590 EngineType?: EngineType;
591 /**
592 * Required. The version of the broker engine. For a list of supported engine versions, see https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html
593 */
594 EngineVersion?: __string;
595 /**
596 * Required. The unique ID that Amazon MQ generates for the configuration.
597 */
598 Id?: __string;
599 /**
600 * Required. The latest revision of the configuration.
601 */
602 LatestRevision?: ConfigurationRevision;
603 /**
604 * 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.
605 */
606 Name?: __string;
607 /**
608 * The list of all tags associated with this configuration.
609 */
610 Tags?: __mapOf__string;
611 }
612 export interface DescribeConfigurationRevisionRequest {
613 /**
614 * The unique ID that Amazon MQ generates for the configuration.
615 */
616 ConfigurationId: __string;
617 /**
618 * The revision of the configuration.
619 */
620 ConfigurationRevision: __string;
621 }
622 export interface DescribeConfigurationRevisionResponse {
623 /**
624 * Required. The unique ID that Amazon MQ generates for the configuration.
625 */
626 ConfigurationId?: __string;
627 /**
628 * Required. The date and time of the configuration.
629 */
630 Created?: __timestampIso8601;
631 /**
632 * Required. The base64-encoded XML configuration.
633 */
634 Data?: __string;
635 /**
636 * The description of the configuration.
637 */
638 Description?: __string;
639 }
640 export interface DescribeUserRequest {
641 /**
642 * The unique ID that Amazon MQ generates for the broker.
643 */
644 BrokerId: __string;
645 /**
646 * 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.
647 */
648 Username: __string;
649 }
650 export interface DescribeUserResponse {
651 /**
652 * Required. The unique ID that Amazon MQ generates for the broker.
653 */
654 BrokerId?: __string;
655 /**
656 * Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
657 */
658 ConsoleAccess?: __boolean;
659 /**
660 * The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
661 */
662 Groups?: __listOf__string;
663 /**
664 * The status of the changes pending for the ActiveMQ user.
665 */
666 Pending?: UserPendingChanges;
667 /**
668 * 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.
669 */
670 Username?: __string;
671 }
672 export type EngineType = "ACTIVEMQ"|string;
673 export interface ListBrokersRequest {
674 /**
675 * The maximum number of brokers that Amazon MQ can return per page (20 by default). This value must be an integer from 5 to 100.
676 */
677 MaxResults?: MaxResults;
678 /**
679 * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
680 */
681 NextToken?: __string;
682 }
683 export interface ListBrokersResponse {
684 /**
685 * A list of information about all brokers.
686 */
687 BrokerSummaries?: __listOfBrokerSummary;
688 /**
689 * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
690 */
691 NextToken?: __string;
692 }
693 export interface ListConfigurationRevisionsRequest {
694 /**
695 * The unique ID that Amazon MQ generates for the configuration.
696 */
697 ConfigurationId: __string;
698 /**
699 * The maximum number of configurations that Amazon MQ can return per page (20 by default). This value must be an integer from 5 to 100.
700 */
701 MaxResults?: MaxResults;
702 /**
703 * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
704 */
705 NextToken?: __string;
706 }
707 export interface ListConfigurationRevisionsResponse {
708 /**
709 * The unique ID that Amazon MQ generates for the configuration.
710 */
711 ConfigurationId?: __string;
712 /**
713 * The maximum number of configuration revisions that can be returned per page (20 by default). This value must be an integer from 5 to 100.
714 */
715 MaxResults?: __integer;
716 /**
717 * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
718 */
719 NextToken?: __string;
720 /**
721 * The list of all revisions for the specified configuration.
722 */
723 Revisions?: __listOfConfigurationRevision;
724 }
725 export interface ListConfigurationsRequest {
726 /**
727 * The maximum number of configurations that Amazon MQ can return per page (20 by default). This value must be an integer from 5 to 100.
728 */
729 MaxResults?: MaxResults;
730 /**
731 * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
732 */
733 NextToken?: __string;
734 }
735 export interface ListConfigurationsResponse {
736 /**
737 * The list of all revisions for the specified configuration.
738 */
739 Configurations?: __listOfConfiguration;
740 /**
741 * The maximum number of configurations that Amazon MQ can return per page (20 by default). This value must be an integer from 5 to 100.
742 */
743 MaxResults?: __integer;
744 /**
745 * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
746 */
747 NextToken?: __string;
748 }
749 export interface ListTagsRequest {
750 /**
751 * the Amazon Resource Name (ARN)
752 */
753 ResourceArn: __string;
754 }
755 export interface ListTagsResponse {
756 /**
757 * The key-value pair for the resource tag.
758 */
759 Tags?: __mapOf__string;
760 }
761 export interface ListUsersRequest {
762 /**
763 * The unique ID that Amazon MQ generates for the broker.
764 */
765 BrokerId: __string;
766 /**
767 * The maximum number of ActiveMQ users that can be returned per page (20 by default). This value must be an integer from 5 to 100.
768 */
769 MaxResults?: MaxResults;
770 /**
771 * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
772 */
773 NextToken?: __string;
774 }
775 export interface ListUsersResponse {
776 /**
777 * Required. The unique ID that Amazon MQ generates for the broker.
778 */
779 BrokerId?: __string;
780 /**
781 * Required. The maximum number of ActiveMQ users that can be returned per page (20 by default). This value must be an integer from 5 to 100.
782 */
783 MaxResults?: __integerMin5Max100;
784 /**
785 * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
786 */
787 NextToken?: __string;
788 /**
789 * Required. The list of all ActiveMQ usernames for the specified broker.
790 */
791 Users?: __listOfUserSummary;
792 }
793 export interface Logs {
794 /**
795 * Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.
796 */
797 Audit?: __boolean;
798 /**
799 * Enables general logging.
800 */
801 General?: __boolean;
802 }
803 export interface LogsSummary {
804 /**
805 * Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.
806 */
807 Audit?: __boolean;
808 /**
809 * The location of the CloudWatch Logs log group where audit logs are sent.
810 */
811 AuditLogGroup?: __string;
812 /**
813 * Enables general logging.
814 */
815 General?: __boolean;
816 /**
817 * The location of the CloudWatch Logs log group where general logs are sent.
818 */
819 GeneralLogGroup?: __string;
820 /**
821 * The list of information about logs pending to be deployed for the specified broker.
822 */
823 Pending?: PendingLogs;
824 }
825 export type MaxResults = number;
826 export interface PendingLogs {
827 /**
828 * Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.
829 */
830 Audit?: __boolean;
831 /**
832 * Enables general logging.
833 */
834 General?: __boolean;
835 }
836 export interface RebootBrokerRequest {
837 /**
838 * The unique ID that Amazon MQ generates for the broker.
839 */
840 BrokerId: __string;
841 }
842 export interface RebootBrokerResponse {
843 }
844 export interface SanitizationWarning {
845 /**
846 * The name of the XML attribute that has been sanitized.
847 */
848 AttributeName?: __string;
849 /**
850 * The name of the XML element that has been sanitized.
851 */
852 ElementName?: __string;
853 /**
854 * Required. The reason for which the XML elements or attributes were sanitized.
855 */
856 Reason?: SanitizationWarningReason;
857 }
858 export type SanitizationWarningReason = "DISALLOWED_ELEMENT_REMOVED"|"DISALLOWED_ATTRIBUTE_REMOVED"|"INVALID_ATTRIBUTE_VALUE_REMOVED"|string;
859 export interface UpdateBrokerRequest {
860 /**
861 * Enables automatic upgrades to new minor versions for brokers, as Apache releases the versions. The automatic upgrades occur during the maintenance window of the broker or after a manual broker reboot.
862 */
863 AutoMinorVersionUpgrade?: __boolean;
864 /**
865 * The name of the broker. 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 whitespaces, brackets, wildcard characters, or special characters.
866 */
867 BrokerId: __string;
868 /**
869 * A list of information about the configuration.
870 */
871 Configuration?: ConfigurationId;
872 /**
873 * The version of the broker engine. For a list of supported engine versions, see https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html
874 */
875 EngineVersion?: __string;
876 /**
877 * Enables Amazon CloudWatch logging for brokers.
878 */
879 Logs?: Logs;
880 }
881 export interface UpdateBrokerResponse {
882 /**
883 * The new value of automatic upgrades to new minor version for brokers.
884 */
885 AutoMinorVersionUpgrade?: __boolean;
886 /**
887 * Required. The unique ID that Amazon MQ generates for the broker.
888 */
889 BrokerId?: __string;
890 /**
891 * The ID of the updated configuration.
892 */
893 Configuration?: ConfigurationId;
894 /**
895 * The version of the broker engine to upgrade to. For a list of supported engine versions, see https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html
896 */
897 EngineVersion?: __string;
898 /**
899 * The list of information about logs to be enabled for the specified broker.
900 */
901 Logs?: Logs;
902 }
903 export interface UpdateConfigurationRequest {
904 /**
905 * The unique ID that Amazon MQ generates for the configuration.
906 */
907 ConfigurationId: __string;
908 /**
909 * Required. The base64-encoded XML configuration.
910 */
911 Data?: __string;
912 /**
913 * The description of the configuration.
914 */
915 Description?: __string;
916 }
917 export interface UpdateConfigurationResponse {
918 /**
919 * Required. The Amazon Resource Name (ARN) of the configuration.
920 */
921 Arn?: __string;
922 /**
923 * Required. The date and time of the configuration.
924 */
925 Created?: __timestampIso8601;
926 /**
927 * Required. The unique ID that Amazon MQ generates for the configuration.
928 */
929 Id?: __string;
930 /**
931 * The latest revision of the configuration.
932 */
933 LatestRevision?: ConfigurationRevision;
934 /**
935 * 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.
936 */
937 Name?: __string;
938 /**
939 * The list of the first 20 warnings about the configuration XML elements or attributes that were sanitized.
940 */
941 Warnings?: __listOfSanitizationWarning;
942 }
943 export interface UpdateUserRequest {
944 /**
945 * The unique ID that Amazon MQ generates for the broker.
946 */
947 BrokerId: __string;
948 /**
949 * Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
950 */
951 ConsoleAccess?: __boolean;
952 /**
953 * The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
954 */
955 Groups?: __listOf__string;
956 /**
957 * The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas.
958 */
959 Password?: __string;
960 /**
961 * 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.
962 */
963 Username: __string;
964 }
965 export interface UpdateUserResponse {
966 }
967 export interface User {
968 /**
969 * Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
970 */
971 ConsoleAccess?: __boolean;
972 /**
973 * The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
974 */
975 Groups?: __listOf__string;
976 /**
977 * Required. The password of the ActiveMQ user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas.
978 */
979 Password?: __string;
980 /**
981 * 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.
982 */
983 Username?: __string;
984 }
985 export interface UserPendingChanges {
986 /**
987 * Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
988 */
989 ConsoleAccess?: __boolean;
990 /**
991 * The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
992 */
993 Groups?: __listOf__string;
994 /**
995 * Required. The type of change pending for the ActiveMQ user.
996 */
997 PendingChange?: ChangeType;
998 }
999 export interface UserSummary {
1000 /**
1001 * The type of change pending for the ActiveMQ user.
1002 */
1003 PendingChange?: ChangeType;
1004 /**
1005 * 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.
1006 */
1007 Username?: __string;
1008 }
1009 export interface WeeklyStartTime {
1010 /**
1011 * Required. The day of the week.
1012 */
1013 DayOfWeek?: DayOfWeek;
1014 /**
1015 * Required. The time, in 24-hour format.
1016 */
1017 TimeOfDay?: __string;
1018 /**
1019 * The time zone, UTC by default, in either the Country/City format, or the UTC offset format.
1020 */
1021 TimeZone?: __string;
1022 }
1023 export type __boolean = boolean;
1024 export type __integer = number;
1025 export type __integerMin5Max100 = number;
1026 export type __listOfBrokerInstance = BrokerInstance[];
1027 export type __listOfBrokerSummary = BrokerSummary[];
1028 export type __listOfConfiguration = Configuration[];
1029 export type __listOfConfigurationId = ConfigurationId[];
1030 export type __listOfConfigurationRevision = ConfigurationRevision[];
1031 export type __listOfSanitizationWarning = SanitizationWarning[];
1032 export type __listOfUser = User[];
1033 export type __listOfUserSummary = UserSummary[];
1034 export type __listOf__string = __string[];
1035 export type __mapOf__string = {[key: string]: __string};
1036 export type __string = string;
1037 export type __timestampIso8601 = Date;
1038 /**
1039 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1040 */
1041 export type apiVersion = "2017-11-27"|"latest"|string;
1042 export interface ClientApiVersions {
1043 /**
1044 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1045 */
1046 apiVersion?: apiVersion;
1047 }
1048 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1049 /**
1050 * Contains interfaces for use with the MQ client.
1051 */
1052 export import Types = MQ;
1053}
1054export = MQ;