mq.d.ts 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525
  1. import {Request} from '../lib/request';
  2. import {Response} from '../lib/response';
  3. import {AWSError} from '../lib/error';
  4. import {Service} from '../lib/service';
  5. import {ServiceConfigurationOptions} from '../lib/service';
  6. import {ConfigBase as Config} from '../lib/config-base';
  7. interface Blob {}
  8. declare 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. To create a broker, you must either use the AmazonMQFullAccess IAM policy or include the following EC2 permissions in your IAM policy. ec2:CreateNetworkInterface This permission is required to allow Amazon MQ to create an elastic network interface (ENI) on behalf of your account. ec2:CreateNetworkInterfacePermission This permission is required to attach the ENI to the broker instance. ec2:DeleteNetworkInterface ec2:DeleteNetworkInterfacePermission ec2:DetachNetworkInterface ec2:DescribeInternetGateways ec2:DescribeNetworkInterfaces ec2:DescribeNetworkInterfacePermissions ec2:DescribeRouteTables ec2:DescribeSecurityGroups ec2:DescribeSubnets ec2:DescribeVpcs For more information, see Create an IAM User and Get Your Amazon Web Services Credentials and Never Modify or Delete the Amazon MQ Elastic Network Interface in the Amazon MQ Developer Guide.
  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. To create a broker, you must either use the AmazonMQFullAccess IAM policy or include the following EC2 permissions in your IAM policy. ec2:CreateNetworkInterface This permission is required to allow Amazon MQ to create an elastic network interface (ENI) on behalf of your account. ec2:CreateNetworkInterfacePermission This permission is required to attach the ENI to the broker instance. ec2:DeleteNetworkInterface ec2:DeleteNetworkInterfacePermission ec2:DetachNetworkInterface ec2:DescribeInternetGateways ec2:DescribeNetworkInterfaces ec2:DescribeNetworkInterfacePermissions ec2:DescribeRouteTables ec2:DescribeSecurityGroups ec2:DescribeSubnets ec2:DescribeVpcs For more information, see Create an IAM User and Get Your Amazon Web Services Credentials and Never Modify or Delete the Amazon MQ Elastic Network Interface in the Amazon MQ Developer Guide.
  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. 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.
  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. 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.
  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. * Removes a tag from a resource.
  56. */
  57. deleteTags(params: MQ.Types.DeleteTagsRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  58. /**
  59. * Removes 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. * Describe available engine types and versions.
  80. */
  81. describeBrokerEngineTypes(params: MQ.Types.DescribeBrokerEngineTypesRequest, callback?: (err: AWSError, data: MQ.Types.DescribeBrokerEngineTypesResponse) => void): Request<MQ.Types.DescribeBrokerEngineTypesResponse, AWSError>;
  82. /**
  83. * Describe available engine types and versions.
  84. */
  85. describeBrokerEngineTypes(callback?: (err: AWSError, data: MQ.Types.DescribeBrokerEngineTypesResponse) => void): Request<MQ.Types.DescribeBrokerEngineTypesResponse, AWSError>;
  86. /**
  87. * Describe available broker instance options.
  88. */
  89. describeBrokerInstanceOptions(params: MQ.Types.DescribeBrokerInstanceOptionsRequest, callback?: (err: AWSError, data: MQ.Types.DescribeBrokerInstanceOptionsResponse) => void): Request<MQ.Types.DescribeBrokerInstanceOptionsResponse, AWSError>;
  90. /**
  91. * Describe available broker instance options.
  92. */
  93. describeBrokerInstanceOptions(callback?: (err: AWSError, data: MQ.Types.DescribeBrokerInstanceOptionsResponse) => void): Request<MQ.Types.DescribeBrokerInstanceOptionsResponse, AWSError>;
  94. /**
  95. * Returns information about the specified configuration.
  96. */
  97. describeConfiguration(params: MQ.Types.DescribeConfigurationRequest, callback?: (err: AWSError, data: MQ.Types.DescribeConfigurationResponse) => void): Request<MQ.Types.DescribeConfigurationResponse, AWSError>;
  98. /**
  99. * Returns information about the specified configuration.
  100. */
  101. describeConfiguration(callback?: (err: AWSError, data: MQ.Types.DescribeConfigurationResponse) => void): Request<MQ.Types.DescribeConfigurationResponse, AWSError>;
  102. /**
  103. * Returns the specified configuration revision for the specified configuration.
  104. */
  105. describeConfigurationRevision(params: MQ.Types.DescribeConfigurationRevisionRequest, callback?: (err: AWSError, data: MQ.Types.DescribeConfigurationRevisionResponse) => void): Request<MQ.Types.DescribeConfigurationRevisionResponse, AWSError>;
  106. /**
  107. * Returns the specified configuration revision for the specified configuration.
  108. */
  109. describeConfigurationRevision(callback?: (err: AWSError, data: MQ.Types.DescribeConfigurationRevisionResponse) => void): Request<MQ.Types.DescribeConfigurationRevisionResponse, AWSError>;
  110. /**
  111. * Returns information about an ActiveMQ user.
  112. */
  113. describeUser(params: MQ.Types.DescribeUserRequest, callback?: (err: AWSError, data: MQ.Types.DescribeUserResponse) => void): Request<MQ.Types.DescribeUserResponse, AWSError>;
  114. /**
  115. * Returns information about an ActiveMQ user.
  116. */
  117. describeUser(callback?: (err: AWSError, data: MQ.Types.DescribeUserResponse) => void): Request<MQ.Types.DescribeUserResponse, AWSError>;
  118. /**
  119. * Returns a list of all brokers.
  120. */
  121. listBrokers(params: MQ.Types.ListBrokersRequest, callback?: (err: AWSError, data: MQ.Types.ListBrokersResponse) => void): Request<MQ.Types.ListBrokersResponse, AWSError>;
  122. /**
  123. * Returns a list of all brokers.
  124. */
  125. listBrokers(callback?: (err: AWSError, data: MQ.Types.ListBrokersResponse) => void): Request<MQ.Types.ListBrokersResponse, AWSError>;
  126. /**
  127. * Returns a list of all revisions for the specified configuration.
  128. */
  129. listConfigurationRevisions(params: MQ.Types.ListConfigurationRevisionsRequest, callback?: (err: AWSError, data: MQ.Types.ListConfigurationRevisionsResponse) => void): Request<MQ.Types.ListConfigurationRevisionsResponse, AWSError>;
  130. /**
  131. * Returns a list of all revisions for the specified configuration.
  132. */
  133. listConfigurationRevisions(callback?: (err: AWSError, data: MQ.Types.ListConfigurationRevisionsResponse) => void): Request<MQ.Types.ListConfigurationRevisionsResponse, AWSError>;
  134. /**
  135. * Returns a list of all configurations.
  136. */
  137. listConfigurations(params: MQ.Types.ListConfigurationsRequest, callback?: (err: AWSError, data: MQ.Types.ListConfigurationsResponse) => void): Request<MQ.Types.ListConfigurationsResponse, AWSError>;
  138. /**
  139. * Returns a list of all configurations.
  140. */
  141. listConfigurations(callback?: (err: AWSError, data: MQ.Types.ListConfigurationsResponse) => void): Request<MQ.Types.ListConfigurationsResponse, AWSError>;
  142. /**
  143. * Lists tags for a resource.
  144. */
  145. listTags(params: MQ.Types.ListTagsRequest, callback?: (err: AWSError, data: MQ.Types.ListTagsResponse) => void): Request<MQ.Types.ListTagsResponse, AWSError>;
  146. /**
  147. * Lists tags for a resource.
  148. */
  149. listTags(callback?: (err: AWSError, data: MQ.Types.ListTagsResponse) => void): Request<MQ.Types.ListTagsResponse, AWSError>;
  150. /**
  151. * Returns a list of all ActiveMQ users.
  152. */
  153. listUsers(params: MQ.Types.ListUsersRequest, callback?: (err: AWSError, data: MQ.Types.ListUsersResponse) => void): Request<MQ.Types.ListUsersResponse, AWSError>;
  154. /**
  155. * Returns a list of all ActiveMQ users.
  156. */
  157. listUsers(callback?: (err: AWSError, data: MQ.Types.ListUsersResponse) => void): Request<MQ.Types.ListUsersResponse, AWSError>;
  158. /**
  159. * Promotes a data replication replica broker to the primary broker role.
  160. */
  161. promote(params: MQ.Types.PromoteRequest, callback?: (err: AWSError, data: MQ.Types.PromoteResponse) => void): Request<MQ.Types.PromoteResponse, AWSError>;
  162. /**
  163. * Promotes a data replication replica broker to the primary broker role.
  164. */
  165. promote(callback?: (err: AWSError, data: MQ.Types.PromoteResponse) => void): Request<MQ.Types.PromoteResponse, AWSError>;
  166. /**
  167. * Reboots a broker. Note: This API is asynchronous.
  168. */
  169. rebootBroker(params: MQ.Types.RebootBrokerRequest, callback?: (err: AWSError, data: MQ.Types.RebootBrokerResponse) => void): Request<MQ.Types.RebootBrokerResponse, AWSError>;
  170. /**
  171. * Reboots a broker. Note: This API is asynchronous.
  172. */
  173. rebootBroker(callback?: (err: AWSError, data: MQ.Types.RebootBrokerResponse) => void): Request<MQ.Types.RebootBrokerResponse, AWSError>;
  174. /**
  175. * Adds a pending configuration change to a broker.
  176. */
  177. updateBroker(params: MQ.Types.UpdateBrokerRequest, callback?: (err: AWSError, data: MQ.Types.UpdateBrokerResponse) => void): Request<MQ.Types.UpdateBrokerResponse, AWSError>;
  178. /**
  179. * Adds a pending configuration change to a broker.
  180. */
  181. updateBroker(callback?: (err: AWSError, data: MQ.Types.UpdateBrokerResponse) => void): Request<MQ.Types.UpdateBrokerResponse, AWSError>;
  182. /**
  183. * Updates the specified configuration.
  184. */
  185. updateConfiguration(params: MQ.Types.UpdateConfigurationRequest, callback?: (err: AWSError, data: MQ.Types.UpdateConfigurationResponse) => void): Request<MQ.Types.UpdateConfigurationResponse, AWSError>;
  186. /**
  187. * Updates the specified configuration.
  188. */
  189. updateConfiguration(callback?: (err: AWSError, data: MQ.Types.UpdateConfigurationResponse) => void): Request<MQ.Types.UpdateConfigurationResponse, AWSError>;
  190. /**
  191. * Updates the information for an ActiveMQ user.
  192. */
  193. updateUser(params: MQ.Types.UpdateUserRequest, callback?: (err: AWSError, data: MQ.Types.UpdateUserResponse) => void): Request<MQ.Types.UpdateUserResponse, AWSError>;
  194. /**
  195. * Updates the information for an ActiveMQ user.
  196. */
  197. updateUser(callback?: (err: AWSError, data: MQ.Types.UpdateUserResponse) => void): Request<MQ.Types.UpdateUserResponse, AWSError>;
  198. }
  199. declare namespace MQ {
  200. export interface ActionRequired {
  201. /**
  202. * The code you can use to find instructions on the action required to resolve your broker issue.
  203. */
  204. ActionRequiredCode?: __string;
  205. /**
  206. * Information about the action required to resolve your broker issue.
  207. */
  208. ActionRequiredInfo?: __string;
  209. }
  210. export type AuthenticationStrategy = "SIMPLE"|"LDAP"|string;
  211. export interface AvailabilityZone {
  212. /**
  213. * Id for the availability zone.
  214. */
  215. Name?: __string;
  216. }
  217. export interface BrokerEngineType {
  218. /**
  219. * The broker's engine type.
  220. */
  221. EngineType?: EngineType;
  222. /**
  223. * The list of engine versions.
  224. */
  225. EngineVersions?: __listOfEngineVersion;
  226. }
  227. export interface BrokerInstance {
  228. /**
  229. * The brokers web console URL.
  230. */
  231. ConsoleURL?: __string;
  232. /**
  233. * The broker's wire-level protocol endpoints.
  234. */
  235. Endpoints?: __listOf__string;
  236. /**
  237. * The IP address of the Elastic Network Interface (ENI) attached to the broker. Does not apply to RabbitMQ brokers.
  238. */
  239. IpAddress?: __string;
  240. }
  241. export interface BrokerInstanceOption {
  242. /**
  243. * The list of available az.
  244. */
  245. AvailabilityZones?: __listOfAvailabilityZone;
  246. /**
  247. * The broker's engine type.
  248. */
  249. EngineType?: EngineType;
  250. /**
  251. * The broker's instance type.
  252. */
  253. HostInstanceType?: __string;
  254. /**
  255. * The broker's storage type.
  256. */
  257. StorageType?: BrokerStorageType;
  258. /**
  259. * The list of supported deployment modes.
  260. */
  261. SupportedDeploymentModes?: __listOfDeploymentMode;
  262. /**
  263. * The list of supported engine versions.
  264. */
  265. SupportedEngineVersions?: __listOf__string;
  266. }
  267. export type BrokerState = "CREATION_IN_PROGRESS"|"CREATION_FAILED"|"DELETION_IN_PROGRESS"|"RUNNING"|"REBOOT_IN_PROGRESS"|"CRITICAL_ACTION_REQUIRED"|"REPLICA"|string;
  268. export type BrokerStorageType = "EBS"|"EFS"|string;
  269. export interface BrokerSummary {
  270. /**
  271. * The broker's Amazon Resource Name (ARN).
  272. */
  273. BrokerArn?: __string;
  274. /**
  275. * The unique ID that Amazon MQ generates for the broker.
  276. */
  277. BrokerId?: __string;
  278. /**
  279. * 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.
  280. */
  281. BrokerName?: __string;
  282. /**
  283. * The broker's status.
  284. */
  285. BrokerState?: BrokerState;
  286. /**
  287. * The time when the broker was created.
  288. */
  289. Created?: __timestampIso8601;
  290. /**
  291. * The broker's deployment mode.
  292. */
  293. DeploymentMode: DeploymentMode;
  294. /**
  295. * The type of broker engine.
  296. */
  297. EngineType: EngineType;
  298. /**
  299. * The broker's instance type.
  300. */
  301. HostInstanceType?: __string;
  302. }
  303. export type ChangeType = "CREATE"|"UPDATE"|"DELETE"|string;
  304. export interface Configuration {
  305. /**
  306. * Required. The ARN of the configuration.
  307. */
  308. Arn: __string;
  309. /**
  310. * Optional. The authentication strategy associated with the configuration. The default is SIMPLE.
  311. */
  312. AuthenticationStrategy: AuthenticationStrategy;
  313. /**
  314. * Required. The date and time of the configuration revision.
  315. */
  316. Created: __timestampIso8601;
  317. /**
  318. * Required. The description of the configuration.
  319. */
  320. Description: __string;
  321. /**
  322. * Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
  323. */
  324. EngineType: EngineType;
  325. /**
  326. * Required. The broker engine's version. For a list of supported engine versions, see, Supported engines.
  327. */
  328. EngineVersion: __string;
  329. /**
  330. * Required. The unique ID that Amazon MQ generates for the configuration.
  331. */
  332. Id: __string;
  333. /**
  334. * Required. The latest revision of the configuration.
  335. */
  336. LatestRevision: ConfigurationRevision;
  337. /**
  338. * 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.
  339. */
  340. Name: __string;
  341. /**
  342. * The list of all tags associated with this configuration.
  343. */
  344. Tags?: __mapOf__string;
  345. }
  346. export interface ConfigurationId {
  347. /**
  348. * Required. The unique ID that Amazon MQ generates for the configuration.
  349. */
  350. Id: __string;
  351. /**
  352. * The revision number of the configuration.
  353. */
  354. Revision?: __integer;
  355. }
  356. export interface ConfigurationRevision {
  357. /**
  358. * Required. The date and time of the configuration revision.
  359. */
  360. Created: __timestampIso8601;
  361. /**
  362. * The description of the configuration revision.
  363. */
  364. Description?: __string;
  365. /**
  366. * Required. The revision number of the configuration.
  367. */
  368. Revision: __integer;
  369. }
  370. export interface Configurations {
  371. /**
  372. * The broker's current configuration.
  373. */
  374. Current?: ConfigurationId;
  375. /**
  376. * The history of configurations applied to the broker.
  377. */
  378. History?: __listOfConfigurationId;
  379. /**
  380. * The broker's pending configuration.
  381. */
  382. Pending?: ConfigurationId;
  383. }
  384. export interface CreateBrokerRequest {
  385. /**
  386. * Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
  387. */
  388. AuthenticationStrategy?: AuthenticationStrategy;
  389. /**
  390. * Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot. Set to true by default, if no value is specified.
  391. */
  392. AutoMinorVersionUpgrade: __boolean;
  393. /**
  394. * 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. 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.
  395. */
  396. BrokerName: __string;
  397. /**
  398. * A list of information about the configuration.
  399. */
  400. Configuration?: ConfigurationId;
  401. /**
  402. * The unique ID that the requester receives for the created broker. Amazon MQ passes your ID with the API action. We recommend using a Universally Unique Identifier (UUID) for the creatorRequestId. You may omit the creatorRequestId if your application doesn't require idempotency.
  403. */
  404. CreatorRequestId?: __string;
  405. /**
  406. * Required. The broker's deployment mode.
  407. */
  408. DeploymentMode: DeploymentMode;
  409. /**
  410. * Encryption options for the broker.
  411. */
  412. EncryptionOptions?: EncryptionOptions;
  413. /**
  414. * Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
  415. */
  416. EngineType: EngineType;
  417. /**
  418. * Required. The broker engine's version. For a list of supported engine versions, see Supported engines.
  419. */
  420. EngineVersion: __string;
  421. /**
  422. * Required. The broker's instance type.
  423. */
  424. HostInstanceType: __string;
  425. /**
  426. * Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.
  427. */
  428. LdapServerMetadata?: LdapServerMetadataInput;
  429. /**
  430. * Enables Amazon CloudWatch logging for brokers.
  431. */
  432. Logs?: Logs;
  433. /**
  434. * The parameters that determine the WeeklyStartTime.
  435. */
  436. MaintenanceWindowStartTime?: WeeklyStartTime;
  437. /**
  438. * Enables connections from applications outside of the VPC that hosts the broker's subnets. Set to false by default, if no value is provided.
  439. */
  440. PubliclyAccessible: __boolean;
  441. /**
  442. * The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
  443. */
  444. SecurityGroups?: __listOf__string;
  445. /**
  446. * The broker's storage type.
  447. */
  448. StorageType?: BrokerStorageType;
  449. /**
  450. * 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. If you specify subnets in a shared VPC 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.
  451. */
  452. SubnetIds?: __listOf__string;
  453. /**
  454. * Create tags when creating the broker.
  455. */
  456. Tags?: __mapOf__string;
  457. /**
  458. * 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.
  459. */
  460. Users: __listOfUser;
  461. /**
  462. * Defines whether this broker is a part of a data replication pair.
  463. */
  464. DataReplicationMode?: DataReplicationMode;
  465. /**
  466. * 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.
  467. */
  468. DataReplicationPrimaryBrokerArn?: __string;
  469. }
  470. export interface CreateBrokerResponse {
  471. /**
  472. * The broker's Amazon Resource Name (ARN).
  473. */
  474. BrokerArn?: __string;
  475. /**
  476. * The unique ID that Amazon MQ generates for the broker.
  477. */
  478. BrokerId?: __string;
  479. }
  480. export interface CreateConfigurationRequest {
  481. /**
  482. * Optional. The authentication strategy associated with the configuration. The default is SIMPLE.
  483. */
  484. AuthenticationStrategy?: AuthenticationStrategy;
  485. /**
  486. * Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
  487. */
  488. EngineType: EngineType;
  489. /**
  490. * Required. The broker engine's version. For a list of supported engine versions, see Supported engines.
  491. */
  492. EngineVersion: __string;
  493. /**
  494. * 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.
  495. */
  496. Name: __string;
  497. /**
  498. * Create tags when creating the configuration.
  499. */
  500. Tags?: __mapOf__string;
  501. }
  502. export interface CreateConfigurationResponse {
  503. /**
  504. * Required. The Amazon Resource Name (ARN) of the configuration.
  505. */
  506. Arn?: __string;
  507. /**
  508. * Optional. The authentication strategy associated with the configuration. The default is SIMPLE.
  509. */
  510. AuthenticationStrategy?: AuthenticationStrategy;
  511. /**
  512. * Required. The date and time of the configuration.
  513. */
  514. Created?: __timestampIso8601;
  515. /**
  516. * Required. The unique ID that Amazon MQ generates for the configuration.
  517. */
  518. Id?: __string;
  519. /**
  520. * The latest revision of the configuration.
  521. */
  522. LatestRevision?: ConfigurationRevision;
  523. /**
  524. * 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.
  525. */
  526. Name?: __string;
  527. }
  528. export interface CreateTagsRequest {
  529. /**
  530. * The Amazon Resource Name (ARN) of the resource tag.
  531. */
  532. ResourceArn: __string;
  533. /**
  534. * The key-value pair for the resource tag.
  535. */
  536. Tags?: __mapOf__string;
  537. }
  538. export interface CreateUserRequest {
  539. /**
  540. * The unique ID that Amazon MQ generates for the broker.
  541. */
  542. BrokerId: __string;
  543. /**
  544. * Enables access to the ActiveMQ Web Console for the ActiveMQ user.
  545. */
  546. ConsoleAccess?: __boolean;
  547. /**
  548. * 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.
  549. */
  550. Groups?: __listOf__string;
  551. /**
  552. * 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, colons, or equal signs (,:=).
  553. */
  554. Password: __string;
  555. /**
  556. * 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.
  557. */
  558. Username: __string;
  559. /**
  560. * Defines if this user is intended for CRDR replication purposes.
  561. */
  562. ReplicationUser?: __boolean;
  563. }
  564. export interface CreateUserResponse {
  565. }
  566. export interface DataReplicationCounterpart {
  567. /**
  568. * Required. The unique broker id generated by Amazon MQ.
  569. */
  570. BrokerId: __string;
  571. /**
  572. * Required. The region of the broker.
  573. */
  574. Region: __string;
  575. }
  576. export interface DataReplicationMetadataOutput {
  577. /**
  578. * Describes the replica/primary broker. Only returned if this broker is currently set as a primary or replica in the broker's dataReplicationRole property.
  579. */
  580. DataReplicationCounterpart?: DataReplicationCounterpart;
  581. /**
  582. * Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.
  583. */
  584. DataReplicationRole: __string;
  585. }
  586. export type DataReplicationMode = "NONE"|"CRDR"|string;
  587. export type DayOfWeek = "MONDAY"|"TUESDAY"|"WEDNESDAY"|"THURSDAY"|"FRIDAY"|"SATURDAY"|"SUNDAY"|string;
  588. export interface DeleteBrokerRequest {
  589. /**
  590. * The unique ID that Amazon MQ generates for the broker.
  591. */
  592. BrokerId: __string;
  593. }
  594. export interface DeleteBrokerResponse {
  595. /**
  596. * The unique ID that Amazon MQ generates for the broker.
  597. */
  598. BrokerId?: __string;
  599. }
  600. export interface DeleteTagsRequest {
  601. /**
  602. * The Amazon Resource Name (ARN) of the resource tag.
  603. */
  604. ResourceArn: __string;
  605. /**
  606. * An array of tag keys to delete
  607. */
  608. TagKeys: __listOf__string;
  609. }
  610. export interface DeleteUserRequest {
  611. /**
  612. * The unique ID that Amazon MQ generates for the broker.
  613. */
  614. BrokerId: __string;
  615. /**
  616. * 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.
  617. */
  618. Username: __string;
  619. }
  620. export interface DeleteUserResponse {
  621. }
  622. export type DeploymentMode = "SINGLE_INSTANCE"|"ACTIVE_STANDBY_MULTI_AZ"|"CLUSTER_MULTI_AZ"|string;
  623. export interface DescribeBrokerEngineTypesRequest {
  624. /**
  625. * Filter response by engine type.
  626. */
  627. EngineType?: __string;
  628. /**
  629. * 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.
  630. */
  631. MaxResults?: MaxResults;
  632. /**
  633. * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
  634. */
  635. NextToken?: __string;
  636. }
  637. export interface DescribeBrokerEngineTypesResponse {
  638. /**
  639. * List of available engine types and versions.
  640. */
  641. BrokerEngineTypes?: __listOfBrokerEngineType;
  642. /**
  643. * Required. The maximum number of engine types that can be returned per page (20 by default). This value must be an integer from 5 to 100.
  644. */
  645. MaxResults?: __integerMin5Max100;
  646. /**
  647. * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
  648. */
  649. NextToken?: __string;
  650. }
  651. export interface DescribeBrokerInstanceOptionsRequest {
  652. /**
  653. * Filter response by engine type.
  654. */
  655. EngineType?: __string;
  656. /**
  657. * Filter response by host instance type.
  658. */
  659. HostInstanceType?: __string;
  660. /**
  661. * 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.
  662. */
  663. MaxResults?: MaxResults;
  664. /**
  665. * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
  666. */
  667. NextToken?: __string;
  668. /**
  669. * Filter response by storage type.
  670. */
  671. StorageType?: __string;
  672. }
  673. export interface DescribeBrokerInstanceOptionsResponse {
  674. /**
  675. * List of available broker instance options.
  676. */
  677. BrokerInstanceOptions?: __listOfBrokerInstanceOption;
  678. /**
  679. * Required. The maximum number of instance options that can be returned per page (20 by default). This value must be an integer from 5 to 100.
  680. */
  681. MaxResults?: __integerMin5Max100;
  682. /**
  683. * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
  684. */
  685. NextToken?: __string;
  686. }
  687. export interface DescribeBrokerRequest {
  688. /**
  689. * The unique ID that Amazon MQ generates for the broker.
  690. */
  691. BrokerId: __string;
  692. }
  693. export interface DescribeBrokerResponse {
  694. /**
  695. * Actions required for a broker.
  696. */
  697. ActionsRequired?: __listOfActionRequired;
  698. /**
  699. * The authentication strategy used to secure the broker. The default is SIMPLE.
  700. */
  701. AuthenticationStrategy?: AuthenticationStrategy;
  702. /**
  703. * Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.
  704. */
  705. AutoMinorVersionUpgrade?: __boolean;
  706. /**
  707. * The broker's Amazon Resource Name (ARN).
  708. */
  709. BrokerArn?: __string;
  710. /**
  711. * The unique ID that Amazon MQ generates for the broker.
  712. */
  713. BrokerId?: __string;
  714. /**
  715. * A list of information about allocated brokers.
  716. */
  717. BrokerInstances?: __listOfBrokerInstance;
  718. /**
  719. * 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.
  720. */
  721. BrokerName?: __string;
  722. /**
  723. * The broker's status.
  724. */
  725. BrokerState?: BrokerState;
  726. /**
  727. * The list of all revisions for the specified configuration.
  728. */
  729. Configurations?: Configurations;
  730. /**
  731. * The time when the broker was created.
  732. */
  733. Created?: __timestampIso8601;
  734. /**
  735. * The broker's deployment mode.
  736. */
  737. DeploymentMode?: DeploymentMode;
  738. /**
  739. * Encryption options for the broker.
  740. */
  741. EncryptionOptions?: EncryptionOptions;
  742. /**
  743. * The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
  744. */
  745. EngineType?: EngineType;
  746. /**
  747. * The broker engine's version. For a list of supported engine versions, see Supported engines.
  748. */
  749. EngineVersion?: __string;
  750. /**
  751. * The broker's instance type.
  752. */
  753. HostInstanceType?: __string;
  754. /**
  755. * The metadata of the LDAP server used to authenticate and authorize connections to the broker.
  756. */
  757. LdapServerMetadata?: LdapServerMetadataOutput;
  758. /**
  759. * The list of information about logs currently enabled and pending to be deployed for the specified broker.
  760. */
  761. Logs?: LogsSummary;
  762. /**
  763. * The parameters that determine the WeeklyStartTime.
  764. */
  765. MaintenanceWindowStartTime?: WeeklyStartTime;
  766. /**
  767. * The authentication strategy that will be applied when the broker is rebooted. The default is SIMPLE.
  768. */
  769. PendingAuthenticationStrategy?: AuthenticationStrategy;
  770. /**
  771. * The broker engine version to upgrade to. For a list of supported engine versions, see Supported engines.
  772. */
  773. PendingEngineVersion?: __string;
  774. /**
  775. * The broker's host instance type to upgrade to. For a list of supported instance types, see Broker instance types.
  776. */
  777. PendingHostInstanceType?: __string;
  778. /**
  779. * The metadata of the LDAP server that will be used to authenticate and authorize connections to the broker after it is rebooted.
  780. */
  781. PendingLdapServerMetadata?: LdapServerMetadataOutput;
  782. /**
  783. * The list of pending security groups to authorize connections to brokers.
  784. */
  785. PendingSecurityGroups?: __listOf__string;
  786. /**
  787. * Enables connections from applications outside of the VPC that hosts the broker's subnets.
  788. */
  789. PubliclyAccessible?: __boolean;
  790. /**
  791. * The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
  792. */
  793. SecurityGroups?: __listOf__string;
  794. /**
  795. * The broker's storage type.
  796. */
  797. StorageType?: BrokerStorageType;
  798. /**
  799. * The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.
  800. */
  801. SubnetIds?: __listOf__string;
  802. /**
  803. * The list of all tags associated with this broker.
  804. */
  805. Tags?: __mapOf__string;
  806. /**
  807. * The list of all broker usernames for the specified broker.
  808. */
  809. Users?: __listOfUserSummary;
  810. /**
  811. * The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to CRDR.
  812. */
  813. DataReplicationMetadata?: DataReplicationMetadataOutput;
  814. /**
  815. * Describes whether this broker is a part of a data replication pair.
  816. */
  817. DataReplicationMode?: DataReplicationMode;
  818. /**
  819. * The pending replication details of the data replication-enabled broker. Only returned if pendingDataReplicationMode is set to CRDR.
  820. */
  821. PendingDataReplicationMetadata?: DataReplicationMetadataOutput;
  822. /**
  823. * Describes whether this broker will be a part of a data replication pair after reboot.
  824. */
  825. PendingDataReplicationMode?: DataReplicationMode;
  826. }
  827. export interface DescribeConfigurationRequest {
  828. /**
  829. * The unique ID that Amazon MQ generates for the configuration.
  830. */
  831. ConfigurationId: __string;
  832. }
  833. export interface DescribeConfigurationResponse {
  834. /**
  835. * Required. The ARN of the configuration.
  836. */
  837. Arn?: __string;
  838. /**
  839. * Optional. The authentication strategy associated with the configuration. The default is SIMPLE.
  840. */
  841. AuthenticationStrategy?: AuthenticationStrategy;
  842. /**
  843. * Required. The date and time of the configuration revision.
  844. */
  845. Created?: __timestampIso8601;
  846. /**
  847. * Required. The description of the configuration.
  848. */
  849. Description?: __string;
  850. /**
  851. * Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
  852. */
  853. EngineType?: EngineType;
  854. /**
  855. * Required. The broker engine's version. For a list of supported engine versions, see, Supported engines.
  856. */
  857. EngineVersion?: __string;
  858. /**
  859. * Required. The unique ID that Amazon MQ generates for the configuration.
  860. */
  861. Id?: __string;
  862. /**
  863. * Required. The latest revision of the configuration.
  864. */
  865. LatestRevision?: ConfigurationRevision;
  866. /**
  867. * 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.
  868. */
  869. Name?: __string;
  870. /**
  871. * The list of all tags associated with this configuration.
  872. */
  873. Tags?: __mapOf__string;
  874. }
  875. export interface DescribeConfigurationRevisionRequest {
  876. /**
  877. * The unique ID that Amazon MQ generates for the configuration.
  878. */
  879. ConfigurationId: __string;
  880. /**
  881. * The revision of the configuration.
  882. */
  883. ConfigurationRevision: __string;
  884. }
  885. export interface DescribeConfigurationRevisionResponse {
  886. /**
  887. * Required. The unique ID that Amazon MQ generates for the configuration.
  888. */
  889. ConfigurationId?: __string;
  890. /**
  891. * Required. The date and time of the configuration.
  892. */
  893. Created?: __timestampIso8601;
  894. /**
  895. * Amazon MQ for ActiveMQ: the base64-encoded XML configuration. Amazon MQ for RabbitMQ: base64-encoded Cuttlefish.
  896. */
  897. Data?: __string;
  898. /**
  899. * The description of the configuration.
  900. */
  901. Description?: __string;
  902. }
  903. export interface DescribeUserRequest {
  904. /**
  905. * The unique ID that Amazon MQ generates for the broker.
  906. */
  907. BrokerId: __string;
  908. /**
  909. * 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.
  910. */
  911. Username: __string;
  912. }
  913. export interface DescribeUserResponse {
  914. /**
  915. * Required. The unique ID that Amazon MQ generates for the broker.
  916. */
  917. BrokerId?: __string;
  918. /**
  919. * Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
  920. */
  921. ConsoleAccess?: __boolean;
  922. /**
  923. * 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.
  924. */
  925. Groups?: __listOf__string;
  926. /**
  927. * The status of the changes pending for the ActiveMQ user.
  928. */
  929. Pending?: UserPendingChanges;
  930. /**
  931. * 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.
  932. */
  933. Username?: __string;
  934. /**
  935. * Describes whether the user is intended for data replication
  936. */
  937. ReplicationUser?: __boolean;
  938. }
  939. export interface EncryptionOptions {
  940. /**
  941. * 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.
  942. */
  943. KmsKeyId?: __string;
  944. /**
  945. * 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.
  946. */
  947. UseAwsOwnedKey: __boolean;
  948. }
  949. export type EngineType = "ACTIVEMQ"|"RABBITMQ"|string;
  950. export interface EngineVersion {
  951. /**
  952. * Id for the version.
  953. */
  954. Name?: __string;
  955. }
  956. export interface LdapServerMetadataInput {
  957. /**
  958. * Specifies the location of the LDAP server such as Directory Service for Microsoft Active Directory. Optional failover server.
  959. */
  960. Hosts: __listOf__string;
  961. /**
  962. * The distinguished name of the node in the directory information tree (DIT) to search for roles or groups. For example, ou=group, ou=corp, dc=corp,
  963. dc=example, dc=com.
  964. */
  965. RoleBase: __string;
  966. /**
  967. * Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query.
  968. */
  969. RoleName?: __string;
  970. /**
  971. * The LDAP search filter used to find roles within the roleBase. The distinguished name of the user matched by userSearchMatching is substituted into the {0} placeholder in the search filter. The client's username is substituted into the {1} placeholder. For example, if you set this option to (member=uid={1})for the user janedoe, the search filter becomes (member=uid=janedoe) after string substitution. It matches all role entries that have a member attribute equal to uid=janedoe under the subtree selected by the roleBase.
  972. */
  973. RoleSearchMatching: __string;
  974. /**
  975. * The directory search scope for the role. If set to true, scope is to search the entire subtree.
  976. */
  977. RoleSearchSubtree?: __boolean;
  978. /**
  979. * Service account password. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example,
  980. dc=com.
  981. */
  982. ServiceAccountPassword: __string;
  983. /**
  984. * Service account username. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example,
  985. dc=com.
  986. */
  987. ServiceAccountUsername: __string;
  988. /**
  989. * Select a particular subtree of the directory information tree (DIT) to search for user entries. The subtree is specified by a DN, which specifies the base node of the subtree. For example, by setting this option to ou=Users,ou=corp, dc=corp,
  990. dc=example, dc=com, the search for user entries is restricted to the subtree beneath ou=Users, ou=corp, dc=corp, dc=example, dc=com.
  991. */
  992. UserBase: __string;
  993. /**
  994. * Specifies the name of the LDAP attribute for the user group membership.
  995. */
  996. UserRoleName?: __string;
  997. /**
  998. * The LDAP search filter used to find users within the userBase. The client's username is substituted into the {0} placeholder in the search filter. For example, if this option is set to (uid={0}) and the received username is janedoe, the search filter becomes (uid=janedoe) after string substitution. It will result in matching an entry like uid=janedoe, ou=Users,ou=corp, dc=corp, dc=example,
  999. dc=com.
  1000. */
  1001. UserSearchMatching: __string;
  1002. /**
  1003. * The directory search scope for the user. If set to true, scope is to search the entire subtree.
  1004. */
  1005. UserSearchSubtree?: __boolean;
  1006. }
  1007. export interface LdapServerMetadataOutput {
  1008. /**
  1009. * Specifies the location of the LDAP server such as Directory Service for Microsoft Active Directory. Optional failover server.
  1010. */
  1011. Hosts: __listOf__string;
  1012. /**
  1013. * The distinguished name of the node in the directory information tree (DIT) to search for roles or groups. For example, ou=group, ou=corp, dc=corp,
  1014. dc=example, dc=com.
  1015. */
  1016. RoleBase: __string;
  1017. /**
  1018. * Specifies the LDAP attribute that identifies the group name attribute in the object returned from the group membership query.
  1019. */
  1020. RoleName?: __string;
  1021. /**
  1022. * The LDAP search filter used to find roles within the roleBase. The distinguished name of the user matched by userSearchMatching is substituted into the {0} placeholder in the search filter. The client's username is substituted into the {1} placeholder. For example, if you set this option to (member=uid={1})for the user janedoe, the search filter becomes (member=uid=janedoe) after string substitution. It matches all role entries that have a member attribute equal to uid=janedoe under the subtree selected by the roleBase.
  1023. */
  1024. RoleSearchMatching: __string;
  1025. /**
  1026. * The directory search scope for the role. If set to true, scope is to search the entire subtree.
  1027. */
  1028. RoleSearchSubtree?: __boolean;
  1029. /**
  1030. * Service account username. A service account is an account in your LDAP server that has access to initiate a connection. For example, cn=admin,dc=corp, dc=example,
  1031. dc=com.
  1032. */
  1033. ServiceAccountUsername: __string;
  1034. /**
  1035. * Select a particular subtree of the directory information tree (DIT) to search for user entries. The subtree is specified by a DN, which specifies the base node of the subtree. For example, by setting this option to ou=Users,ou=corp, dc=corp,
  1036. dc=example, dc=com, the search for user entries is restricted to the subtree beneath ou=Users, ou=corp, dc=corp, dc=example, dc=com.
  1037. */
  1038. UserBase: __string;
  1039. /**
  1040. * Specifies the name of the LDAP attribute for the user group membership.
  1041. */
  1042. UserRoleName?: __string;
  1043. /**
  1044. * The LDAP search filter used to find users within the userBase. The client's username is substituted into the {0} placeholder in the search filter. For example, if this option is set to (uid={0}) and the received username is janedoe, the search filter becomes (uid=janedoe) after string substitution. It will result in matching an entry like uid=janedoe, ou=Users,ou=corp, dc=corp, dc=example,
  1045. dc=com.
  1046. */
  1047. UserSearchMatching: __string;
  1048. /**
  1049. * The directory search scope for the user. If set to true, scope is to search the entire subtree.
  1050. */
  1051. UserSearchSubtree?: __boolean;
  1052. }
  1053. export interface ListBrokersRequest {
  1054. /**
  1055. * 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.
  1056. */
  1057. MaxResults?: MaxResults;
  1058. /**
  1059. * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
  1060. */
  1061. NextToken?: __string;
  1062. }
  1063. export interface ListBrokersResponse {
  1064. /**
  1065. * A list of information about all brokers.
  1066. */
  1067. BrokerSummaries?: __listOfBrokerSummary;
  1068. /**
  1069. * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
  1070. */
  1071. NextToken?: __string;
  1072. }
  1073. export interface ListConfigurationRevisionsRequest {
  1074. /**
  1075. * The unique ID that Amazon MQ generates for the configuration.
  1076. */
  1077. ConfigurationId: __string;
  1078. /**
  1079. * 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.
  1080. */
  1081. MaxResults?: MaxResults;
  1082. /**
  1083. * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
  1084. */
  1085. NextToken?: __string;
  1086. }
  1087. export interface ListConfigurationRevisionsResponse {
  1088. /**
  1089. * The unique ID that Amazon MQ generates for the configuration.
  1090. */
  1091. ConfigurationId?: __string;
  1092. /**
  1093. * 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.
  1094. */
  1095. MaxResults?: __integer;
  1096. /**
  1097. * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
  1098. */
  1099. NextToken?: __string;
  1100. /**
  1101. * The list of all revisions for the specified configuration.
  1102. */
  1103. Revisions?: __listOfConfigurationRevision;
  1104. }
  1105. export interface ListConfigurationsRequest {
  1106. /**
  1107. * 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.
  1108. */
  1109. MaxResults?: MaxResults;
  1110. /**
  1111. * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
  1112. */
  1113. NextToken?: __string;
  1114. }
  1115. export interface ListConfigurationsResponse {
  1116. /**
  1117. * The list of all revisions for the specified configuration.
  1118. */
  1119. Configurations?: __listOfConfiguration;
  1120. /**
  1121. * 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.
  1122. */
  1123. MaxResults?: __integer;
  1124. /**
  1125. * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
  1126. */
  1127. NextToken?: __string;
  1128. }
  1129. export interface ListTagsRequest {
  1130. /**
  1131. * The Amazon Resource Name (ARN) of the resource tag.
  1132. */
  1133. ResourceArn: __string;
  1134. }
  1135. export interface ListTagsResponse {
  1136. /**
  1137. * The key-value pair for the resource tag.
  1138. */
  1139. Tags?: __mapOf__string;
  1140. }
  1141. export interface ListUsersRequest {
  1142. /**
  1143. * The unique ID that Amazon MQ generates for the broker.
  1144. */
  1145. BrokerId: __string;
  1146. /**
  1147. * 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.
  1148. */
  1149. MaxResults?: MaxResults;
  1150. /**
  1151. * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
  1152. */
  1153. NextToken?: __string;
  1154. }
  1155. export interface ListUsersResponse {
  1156. /**
  1157. * Required. The unique ID that Amazon MQ generates for the broker.
  1158. */
  1159. BrokerId?: __string;
  1160. /**
  1161. * 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.
  1162. */
  1163. MaxResults?: __integerMin5Max100;
  1164. /**
  1165. * The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.
  1166. */
  1167. NextToken?: __string;
  1168. /**
  1169. * Required. The list of all ActiveMQ usernames for the specified broker. Does not apply to RabbitMQ brokers.
  1170. */
  1171. Users?: __listOfUserSummary;
  1172. }
  1173. export interface Logs {
  1174. /**
  1175. * Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Does not apply to RabbitMQ brokers.
  1176. */
  1177. Audit?: __boolean;
  1178. /**
  1179. * Enables general logging.
  1180. */
  1181. General?: __boolean;
  1182. }
  1183. export interface LogsSummary {
  1184. /**
  1185. * Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.
  1186. */
  1187. Audit?: __boolean;
  1188. /**
  1189. * The location of the CloudWatch Logs log group where audit logs are sent.
  1190. */
  1191. AuditLogGroup?: __string;
  1192. /**
  1193. * Enables general logging.
  1194. */
  1195. General: __boolean;
  1196. /**
  1197. * The location of the CloudWatch Logs log group where general logs are sent.
  1198. */
  1199. GeneralLogGroup: __string;
  1200. /**
  1201. * The list of information about logs pending to be deployed for the specified broker.
  1202. */
  1203. Pending?: PendingLogs;
  1204. }
  1205. export type MaxResults = number;
  1206. export interface PendingLogs {
  1207. /**
  1208. * Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.
  1209. */
  1210. Audit?: __boolean;
  1211. /**
  1212. * Enables general logging.
  1213. */
  1214. General?: __boolean;
  1215. }
  1216. export type PromoteMode = "SWITCHOVER"|"FAILOVER"|string;
  1217. export interface PromoteRequest {
  1218. /**
  1219. * The unique ID that Amazon MQ generates for the broker.
  1220. */
  1221. BrokerId: __string;
  1222. /**
  1223. * The Promote mode requested. Note: Valid values for the parameter are SWITCHOVER, FAILOVER.
  1224. */
  1225. Mode: PromoteMode;
  1226. }
  1227. export interface PromoteResponse {
  1228. /**
  1229. * The unique ID that Amazon MQ generates for the broker.
  1230. */
  1231. BrokerId?: __string;
  1232. }
  1233. export interface RebootBrokerRequest {
  1234. /**
  1235. * The unique ID that Amazon MQ generates for the broker.
  1236. */
  1237. BrokerId: __string;
  1238. }
  1239. export interface RebootBrokerResponse {
  1240. }
  1241. export interface SanitizationWarning {
  1242. /**
  1243. * The name of the configuration attribute that has been sanitized.
  1244. */
  1245. AttributeName?: __string;
  1246. /**
  1247. * The name of the configuration element that has been sanitized.
  1248. */
  1249. ElementName?: __string;
  1250. /**
  1251. * The reason for which the configuration elements or attributes were sanitized.
  1252. */
  1253. Reason: SanitizationWarningReason;
  1254. }
  1255. export type SanitizationWarningReason = "DISALLOWED_ELEMENT_REMOVED"|"DISALLOWED_ATTRIBUTE_REMOVED"|"INVALID_ATTRIBUTE_VALUE_REMOVED"|string;
  1256. export interface UpdateBrokerRequest {
  1257. /**
  1258. * Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
  1259. */
  1260. AuthenticationStrategy?: AuthenticationStrategy;
  1261. /**
  1262. * Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot.
  1263. */
  1264. AutoMinorVersionUpgrade?: __boolean;
  1265. /**
  1266. * The unique ID that Amazon MQ generates for the broker.
  1267. */
  1268. BrokerId: __string;
  1269. /**
  1270. * A list of information about the configuration.
  1271. */
  1272. Configuration?: ConfigurationId;
  1273. /**
  1274. * The broker engine version. For a list of supported engine versions, see Supported engines.
  1275. */
  1276. EngineVersion?: __string;
  1277. /**
  1278. * The broker's host instance type to upgrade to. For a list of supported instance types, see Broker instance types.
  1279. */
  1280. HostInstanceType?: __string;
  1281. /**
  1282. * Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.
  1283. */
  1284. LdapServerMetadata?: LdapServerMetadataInput;
  1285. /**
  1286. * Enables Amazon CloudWatch logging for brokers.
  1287. */
  1288. Logs?: Logs;
  1289. /**
  1290. * The parameters that determine the WeeklyStartTime.
  1291. */
  1292. MaintenanceWindowStartTime?: WeeklyStartTime;
  1293. /**
  1294. * The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers.
  1295. */
  1296. SecurityGroups?: __listOf__string;
  1297. /**
  1298. * Defines whether this broker is a part of a data replication pair.
  1299. */
  1300. DataReplicationMode?: DataReplicationMode;
  1301. }
  1302. export interface UpdateBrokerResponse {
  1303. /**
  1304. * Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
  1305. */
  1306. AuthenticationStrategy?: AuthenticationStrategy;
  1307. /**
  1308. * The new boolean value that specifies whether broker engines automatically upgrade to new minor versions as new versions are released and supported by Amazon MQ.
  1309. */
  1310. AutoMinorVersionUpgrade?: __boolean;
  1311. /**
  1312. * Required. The unique ID that Amazon MQ generates for the broker.
  1313. */
  1314. BrokerId?: __string;
  1315. /**
  1316. * The ID of the updated configuration.
  1317. */
  1318. Configuration?: ConfigurationId;
  1319. /**
  1320. * The broker engine version to upgrade to. For a list of supported engine versions, see Supported engines.
  1321. */
  1322. EngineVersion?: __string;
  1323. /**
  1324. * The broker's host instance type to upgrade to. For a list of supported instance types, see Broker instance types.
  1325. */
  1326. HostInstanceType?: __string;
  1327. /**
  1328. * Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.
  1329. */
  1330. LdapServerMetadata?: LdapServerMetadataOutput;
  1331. /**
  1332. * The list of information about logs to be enabled for the specified broker.
  1333. */
  1334. Logs?: Logs;
  1335. /**
  1336. * The parameters that determine the WeeklyStartTime.
  1337. */
  1338. MaintenanceWindowStartTime?: WeeklyStartTime;
  1339. /**
  1340. * The list of security groups (1 minimum, 5 maximum) that authorizes connections to brokers.
  1341. */
  1342. SecurityGroups?: __listOf__string;
  1343. /**
  1344. * The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to CRDR.
  1345. */
  1346. DataReplicationMetadata?: DataReplicationMetadataOutput;
  1347. /**
  1348. * Describes whether this broker is a part of a data replication pair.
  1349. */
  1350. DataReplicationMode?: DataReplicationMode;
  1351. /**
  1352. * The pending replication details of the data replication-enabled broker. Only returned if pendingDataReplicationMode is set to CRDR.
  1353. */
  1354. PendingDataReplicationMetadata?: DataReplicationMetadataOutput;
  1355. /**
  1356. * Describes whether this broker will be a part of a data replication pair after reboot.
  1357. */
  1358. PendingDataReplicationMode?: DataReplicationMode;
  1359. }
  1360. export interface UpdateConfigurationRequest {
  1361. /**
  1362. * The unique ID that Amazon MQ generates for the configuration.
  1363. */
  1364. ConfigurationId: __string;
  1365. /**
  1366. * Amazon MQ for Active MQ: The base64-encoded XML configuration. Amazon MQ for RabbitMQ: the base64-encoded Cuttlefish configuration.
  1367. */
  1368. Data: __string;
  1369. /**
  1370. * The description of the configuration.
  1371. */
  1372. Description?: __string;
  1373. }
  1374. export interface UpdateConfigurationResponse {
  1375. /**
  1376. * The Amazon Resource Name (ARN) of the configuration.
  1377. */
  1378. Arn?: __string;
  1379. /**
  1380. * Required. The date and time of the configuration.
  1381. */
  1382. Created?: __timestampIso8601;
  1383. /**
  1384. * The unique ID that Amazon MQ generates for the configuration.
  1385. */
  1386. Id?: __string;
  1387. /**
  1388. * The latest revision of the configuration.
  1389. */
  1390. LatestRevision?: ConfigurationRevision;
  1391. /**
  1392. * 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.
  1393. */
  1394. Name?: __string;
  1395. /**
  1396. * The list of the first 20 warnings about the configuration elements or attributes that were sanitized.
  1397. */
  1398. Warnings?: __listOfSanitizationWarning;
  1399. }
  1400. export interface UpdateUserRequest {
  1401. /**
  1402. * The unique ID that Amazon MQ generates for the broker.
  1403. */
  1404. BrokerId: __string;
  1405. /**
  1406. * Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
  1407. */
  1408. ConsoleAccess?: __boolean;
  1409. /**
  1410. * 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.
  1411. */
  1412. Groups?: __listOf__string;
  1413. /**
  1414. * 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, colons, or equal signs (,:=).
  1415. */
  1416. Password?: __string;
  1417. /**
  1418. * 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.
  1419. */
  1420. Username: __string;
  1421. /**
  1422. * Defines whether the user is intended for data replication.
  1423. */
  1424. ReplicationUser?: __boolean;
  1425. }
  1426. export interface UpdateUserResponse {
  1427. }
  1428. export interface User {
  1429. /**
  1430. * Enables access to the ActiveMQ Web Console for the ActiveMQ user. Does not apply to RabbitMQ brokers.
  1431. */
  1432. ConsoleAccess?: __boolean;
  1433. /**
  1434. * 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. Does not apply to RabbitMQ brokers.
  1435. */
  1436. Groups?: __listOf__string;
  1437. /**
  1438. * 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, colons, or equal signs (,:=).
  1439. */
  1440. Password: __string;
  1441. /**
  1442. * The username of the broker user. The following restrictions apply to broker usernames: 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. 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. 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.
  1443. */
  1444. Username: __string;
  1445. /**
  1446. * Defines if this user is intended for CRDR replication purposes.
  1447. */
  1448. ReplicationUser?: __boolean;
  1449. }
  1450. export interface UserPendingChanges {
  1451. /**
  1452. * Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
  1453. */
  1454. ConsoleAccess?: __boolean;
  1455. /**
  1456. * 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.
  1457. */
  1458. Groups?: __listOf__string;
  1459. /**
  1460. * Required. The type of change pending for the ActiveMQ user.
  1461. */
  1462. PendingChange: ChangeType;
  1463. }
  1464. export interface UserSummary {
  1465. /**
  1466. * The type of change pending for the broker user.
  1467. */
  1468. PendingChange?: ChangeType;
  1469. /**
  1470. * Required. The username of the broker user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
  1471. */
  1472. Username: __string;
  1473. }
  1474. export interface WeeklyStartTime {
  1475. /**
  1476. * Required. The day of the week.
  1477. */
  1478. DayOfWeek: DayOfWeek;
  1479. /**
  1480. * Required. The time, in 24-hour format.
  1481. */
  1482. TimeOfDay: __string;
  1483. /**
  1484. * The time zone, UTC by default, in either the Country/City format, or the UTC offset format.
  1485. */
  1486. TimeZone?: __string;
  1487. }
  1488. export type __boolean = boolean;
  1489. export type __integer = number;
  1490. export type __integerMin5Max100 = number;
  1491. export type __listOfActionRequired = ActionRequired[];
  1492. export type __listOfAvailabilityZone = AvailabilityZone[];
  1493. export type __listOfBrokerEngineType = BrokerEngineType[];
  1494. export type __listOfBrokerInstance = BrokerInstance[];
  1495. export type __listOfBrokerInstanceOption = BrokerInstanceOption[];
  1496. export type __listOfBrokerSummary = BrokerSummary[];
  1497. export type __listOfConfiguration = Configuration[];
  1498. export type __listOfConfigurationId = ConfigurationId[];
  1499. export type __listOfConfigurationRevision = ConfigurationRevision[];
  1500. export type __listOfDeploymentMode = DeploymentMode[];
  1501. export type __listOfEngineVersion = EngineVersion[];
  1502. export type __listOfSanitizationWarning = SanitizationWarning[];
  1503. export type __listOfUser = User[];
  1504. export type __listOfUserSummary = UserSummary[];
  1505. export type __listOf__string = __string[];
  1506. export type __mapOf__string = {[key: string]: __string};
  1507. export type __string = string;
  1508. export type __timestampIso8601 = Date;
  1509. /**
  1510. * 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.
  1511. */
  1512. export type apiVersion = "2017-11-27"|"latest"|string;
  1513. export interface ClientApiVersions {
  1514. /**
  1515. * 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.
  1516. */
  1517. apiVersion?: apiVersion;
  1518. }
  1519. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  1520. /**
  1521. * Contains interfaces for use with the MQ client.
  1522. */
  1523. export import Types = MQ;
  1524. }
  1525. export = MQ;