@aws-sdk/client-mq 3.76.0 → 3.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.77.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.76.0...v3.77.0) (2022-04-25)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-mq:** This release adds the CRITICAL_ACTION_REQUIRED broker state and the ActionRequired API property. CRITICAL_ACTION_REQUIRED informs you when your broker is degraded. ActionRequired provides you with a code which you can use to find instructions in the Developer Guide on how to resolve the issue. ([0abb527](https://github.com/aws/aws-sdk-js-v3/commit/0abb5271bc2c7656c2cb66c7c97aa123a10266ca))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.76.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.75.0...v3.76.0) (2022-04-22)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-mq
@@ -1,8 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DescribeBrokerEngineTypesResponse = exports.DescribeBrokerEngineTypesRequest = exports.DescribeBrokerResponse = exports.LogsSummary = exports.PendingLogs = exports.LdapServerMetadataOutput = exports.DescribeBrokerRequest = exports.DeleteUserResponse = exports.DeleteUserRequest = exports.DeleteTagsRequest = exports.DeleteBrokerResponse = exports.DeleteBrokerRequest = exports.CreateUserResponse = exports.CreateUserRequest = exports.NotFoundException = exports.CreateTagsRequest = exports.CreateConfigurationResponse = exports.CreateConfigurationRequest = exports.UnauthorizedException = exports.InternalServerErrorException = exports.ForbiddenException = exports.CreateBrokerResponse = exports.CreateBrokerRequest = exports.WeeklyStartTime = exports.DayOfWeek = exports.Logs = exports.LdapServerMetadataInput = exports.EncryptionOptions = exports.ConflictException = exports.Configurations = exports.BadRequestException = exports.UserSummary = exports.ChangeType = exports.User = exports.SanitizationWarning = exports.SanitizationWarningReason = exports.ConfigurationId = exports.Configuration = exports.ConfigurationRevision = exports.AuthenticationStrategy = exports.BrokerSummary = exports.BrokerState = exports.BrokerInstanceOption = exports.DeploymentMode = exports.BrokerStorageType = exports.BrokerInstance = exports.BrokerEngineType = exports.EngineVersion = exports.EngineType = exports.AvailabilityZone = void 0;
4
- exports.UpdateUserResponse = exports.UpdateUserRequest = exports.UpdateConfigurationResponse = exports.UpdateConfigurationRequest = exports.UpdateBrokerResponse = exports.UpdateBrokerRequest = exports.RebootBrokerResponse = exports.RebootBrokerRequest = exports.ListUsersResponse = exports.ListUsersRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListConfigurationsResponse = exports.ListConfigurationsRequest = exports.ListConfigurationRevisionsResponse = exports.ListConfigurationRevisionsRequest = exports.ListBrokersResponse = exports.ListBrokersRequest = exports.DescribeUserResponse = exports.UserPendingChanges = exports.DescribeUserRequest = exports.DescribeConfigurationRevisionResponse = exports.DescribeConfigurationRevisionRequest = exports.DescribeConfigurationResponse = exports.DescribeConfigurationRequest = exports.DescribeBrokerInstanceOptionsResponse = exports.DescribeBrokerInstanceOptionsRequest = void 0;
3
+ exports.DescribeBrokerEngineTypesRequest = exports.DescribeBrokerResponse = exports.LogsSummary = exports.PendingLogs = exports.LdapServerMetadataOutput = exports.DescribeBrokerRequest = exports.DeleteUserResponse = exports.DeleteUserRequest = exports.DeleteTagsRequest = exports.DeleteBrokerResponse = exports.DeleteBrokerRequest = exports.CreateUserResponse = exports.CreateUserRequest = exports.NotFoundException = exports.CreateTagsRequest = exports.CreateConfigurationResponse = exports.CreateConfigurationRequest = exports.UnauthorizedException = exports.InternalServerErrorException = exports.ForbiddenException = exports.CreateBrokerResponse = exports.CreateBrokerRequest = exports.WeeklyStartTime = exports.DayOfWeek = exports.Logs = exports.LdapServerMetadataInput = exports.EncryptionOptions = exports.ConflictException = exports.Configurations = exports.BadRequestException = exports.UserSummary = exports.ChangeType = exports.User = exports.SanitizationWarning = exports.SanitizationWarningReason = exports.ConfigurationId = exports.Configuration = exports.ConfigurationRevision = exports.AuthenticationStrategy = exports.BrokerSummary = exports.BrokerState = exports.BrokerInstanceOption = exports.DeploymentMode = exports.BrokerStorageType = exports.BrokerInstance = exports.BrokerEngineType = exports.EngineVersion = exports.EngineType = exports.AvailabilityZone = exports.ActionRequired = void 0;
4
+ exports.UpdateUserResponse = exports.UpdateUserRequest = exports.UpdateConfigurationResponse = exports.UpdateConfigurationRequest = exports.UpdateBrokerResponse = exports.UpdateBrokerRequest = exports.RebootBrokerResponse = exports.RebootBrokerRequest = exports.ListUsersResponse = exports.ListUsersRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListConfigurationsResponse = exports.ListConfigurationsRequest = exports.ListConfigurationRevisionsResponse = exports.ListConfigurationRevisionsRequest = exports.ListBrokersResponse = exports.ListBrokersRequest = exports.DescribeUserResponse = exports.UserPendingChanges = exports.DescribeUserRequest = exports.DescribeConfigurationRevisionResponse = exports.DescribeConfigurationRevisionRequest = exports.DescribeConfigurationResponse = exports.DescribeConfigurationRequest = exports.DescribeBrokerInstanceOptionsResponse = exports.DescribeBrokerInstanceOptionsRequest = exports.DescribeBrokerEngineTypesResponse = void 0;
5
5
  const MqServiceException_1 = require("./MqServiceException");
6
+ var ActionRequired;
7
+ (function (ActionRequired) {
8
+ ActionRequired.filterSensitiveLog = (obj) => ({
9
+ ...obj,
10
+ });
11
+ })(ActionRequired = exports.ActionRequired || (exports.ActionRequired = {}));
6
12
  var AvailabilityZone;
7
13
  (function (AvailabilityZone) {
8
14
  AvailabilityZone.filterSensitiveLog = (obj) => ({
@@ -53,6 +59,7 @@ var BrokerState;
53
59
  (function (BrokerState) {
54
60
  BrokerState["CREATION_FAILED"] = "CREATION_FAILED";
55
61
  BrokerState["CREATION_IN_PROGRESS"] = "CREATION_IN_PROGRESS";
62
+ BrokerState["CRITICAL_ACTION_REQUIRED"] = "CRITICAL_ACTION_REQUIRED";
56
63
  BrokerState["DELETION_IN_PROGRESS"] = "DELETION_IN_PROGRESS";
57
64
  BrokerState["REBOOT_IN_PROGRESS"] = "REBOOT_IN_PROGRESS";
58
65
  BrokerState["RUNNING"] = "RUNNING";
@@ -1064,6 +1064,7 @@ const deserializeAws_restJson1DescribeBrokerCommand = async (output, context) =>
1064
1064
  }
1065
1065
  const contents = {
1066
1066
  $metadata: deserializeMetadata(output),
1067
+ ActionsRequired: undefined,
1067
1068
  AuthenticationStrategy: undefined,
1068
1069
  AutoMinorVersionUpgrade: undefined,
1069
1070
  BrokerArn: undefined,
@@ -1094,6 +1095,9 @@ const deserializeAws_restJson1DescribeBrokerCommand = async (output, context) =>
1094
1095
  Users: undefined,
1095
1096
  };
1096
1097
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1098
+ if (data.actionsRequired !== undefined && data.actionsRequired !== null) {
1099
+ contents.ActionsRequired = deserializeAws_restJson1__listOfActionRequired(data.actionsRequired, context);
1100
+ }
1097
1101
  if (data.authenticationStrategy !== undefined && data.authenticationStrategy !== null) {
1098
1102
  contents.AuthenticationStrategy = (0, smithy_client_1.expectString)(data.authenticationStrategy);
1099
1103
  }
@@ -2206,6 +2210,17 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
2206
2210
  });
2207
2211
  return retVal;
2208
2212
  };
2213
+ const deserializeAws_restJson1__listOfActionRequired = (output, context) => {
2214
+ const retVal = (output || [])
2215
+ .filter((e) => e != null)
2216
+ .map((entry) => {
2217
+ if (entry === null) {
2218
+ return null;
2219
+ }
2220
+ return deserializeAws_restJson1ActionRequired(entry, context);
2221
+ });
2222
+ return retVal;
2223
+ };
2209
2224
  const deserializeAws_restJson1__listOfAvailabilityZone = (output, context) => {
2210
2225
  const retVal = (output || [])
2211
2226
  .filter((e) => e != null)
@@ -2349,6 +2364,12 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
2349
2364
  };
2350
2365
  }, {});
2351
2366
  };
2367
+ const deserializeAws_restJson1ActionRequired = (output, context) => {
2368
+ return {
2369
+ ActionRequiredCode: (0, smithy_client_1.expectString)(output.actionRequiredCode),
2370
+ ActionRequiredInfo: (0, smithy_client_1.expectString)(output.actionRequiredInfo),
2371
+ };
2372
+ };
2352
2373
  const deserializeAws_restJson1AvailabilityZone = (output, context) => {
2353
2374
  return {
2354
2375
  Name: (0, smithy_client_1.expectString)(output.name),
@@ -1,5 +1,9 @@
1
1
  import { __assign, __extends } from "tslib";
2
2
  import { MqServiceException as __BaseException } from "./MqServiceException";
3
+ export var ActionRequired;
4
+ (function (ActionRequired) {
5
+ ActionRequired.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
+ })(ActionRequired || (ActionRequired = {}));
3
7
  export var AvailabilityZone;
4
8
  (function (AvailabilityZone) {
5
9
  AvailabilityZone.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -40,6 +44,7 @@ export var BrokerState;
40
44
  (function (BrokerState) {
41
45
  BrokerState["CREATION_FAILED"] = "CREATION_FAILED";
42
46
  BrokerState["CREATION_IN_PROGRESS"] = "CREATION_IN_PROGRESS";
47
+ BrokerState["CRITICAL_ACTION_REQUIRED"] = "CRITICAL_ACTION_REQUIRED";
43
48
  BrokerState["DELETION_IN_PROGRESS"] = "DELETION_IN_PROGRESS";
44
49
  BrokerState["REBOOT_IN_PROGRESS"] = "REBOOT_IN_PROGRESS";
45
50
  BrokerState["RUNNING"] = "RUNNING";
@@ -1251,6 +1251,7 @@ export var deserializeAws_restJson1DescribeBrokerCommand = function (output, con
1251
1251
  }
1252
1252
  contents = {
1253
1253
  $metadata: deserializeMetadata(output),
1254
+ ActionsRequired: undefined,
1254
1255
  AuthenticationStrategy: undefined,
1255
1256
  AutoMinorVersionUpgrade: undefined,
1256
1257
  BrokerArn: undefined,
@@ -1285,6 +1286,9 @@ export var deserializeAws_restJson1DescribeBrokerCommand = function (output, con
1285
1286
  return [4, parseBody(output.body, context)];
1286
1287
  case 1:
1287
1288
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1289
+ if (data.actionsRequired !== undefined && data.actionsRequired !== null) {
1290
+ contents.ActionsRequired = deserializeAws_restJson1__listOfActionRequired(data.actionsRequired, context);
1291
+ }
1288
1292
  if (data.authenticationStrategy !== undefined && data.authenticationStrategy !== null) {
1289
1293
  contents.AuthenticationStrategy = __expectString(data.authenticationStrategy);
1290
1294
  }
@@ -2683,6 +2687,17 @@ var deserializeAws_restJson1__listOf__string = function (output, context) {
2683
2687
  });
2684
2688
  return retVal;
2685
2689
  };
2690
+ var deserializeAws_restJson1__listOfActionRequired = function (output, context) {
2691
+ var retVal = (output || [])
2692
+ .filter(function (e) { return e != null; })
2693
+ .map(function (entry) {
2694
+ if (entry === null) {
2695
+ return null;
2696
+ }
2697
+ return deserializeAws_restJson1ActionRequired(entry, context);
2698
+ });
2699
+ return retVal;
2700
+ };
2686
2701
  var deserializeAws_restJson1__listOfAvailabilityZone = function (output, context) {
2687
2702
  var retVal = (output || [])
2688
2703
  .filter(function (e) { return e != null; })
@@ -2825,6 +2840,12 @@ var deserializeAws_restJson1__mapOf__string = function (output, context) {
2825
2840
  return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
2826
2841
  }, {});
2827
2842
  };
2843
+ var deserializeAws_restJson1ActionRequired = function (output, context) {
2844
+ return {
2845
+ ActionRequiredCode: __expectString(output.actionRequiredCode),
2846
+ ActionRequiredInfo: __expectString(output.actionRequiredInfo),
2847
+ };
2848
+ };
2828
2849
  var deserializeAws_restJson1AvailabilityZone = function (output, context) {
2829
2850
  return {
2830
2851
  Name: __expectString(output.name),
@@ -1,5 +1,24 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { MqServiceException as __BaseException } from "./MqServiceException";
3
+ /**
4
+ * <p>The action required to resolve a broker issue when the broker is in a CRITICAL_ACTION_REQUIRED state.</p>
5
+ */
6
+ export interface ActionRequired {
7
+ /**
8
+ * <p>The code you can use to resolve your broker issue when the broker is in a CRITICAL_ACTION_REQUIRED state. You can find instructions by choosing the link for your code from the list of action required codes in <a href="https://docs.aws.amazon.com//latest/developer-guide/troubleshooting-action-required-codes.html">Amazon MQ action required codes</a>. Each code references a topic with detailed information, instructions, and recommendations for how to resolve the issue and prevent future occurrences.</p>
9
+ */
10
+ ActionRequiredCode?: string;
11
+ /**
12
+ * <p>Information about the action required to resolve your broker issue when the broker is in a CRITICAL_ACTION_REQUIRED state.</p>
13
+ */
14
+ ActionRequiredInfo?: string;
15
+ }
16
+ export declare namespace ActionRequired {
17
+ /**
18
+ * @internal
19
+ */
20
+ const filterSensitiveLog: (obj: ActionRequired) => any;
21
+ }
3
22
  /**
4
23
  * <p>Name of the availability zone.</p>
5
24
  */
@@ -123,6 +142,7 @@ export declare namespace BrokerInstanceOption {
123
142
  export declare enum BrokerState {
124
143
  CREATION_FAILED = "CREATION_FAILED",
125
144
  CREATION_IN_PROGRESS = "CREATION_IN_PROGRESS",
145
+ CRITICAL_ACTION_REQUIRED = "CRITICAL_ACTION_REQUIRED",
126
146
  DELETION_IN_PROGRESS = "DELETION_IN_PROGRESS",
127
147
  REBOOT_IN_PROGRESS = "REBOOT_IN_PROGRESS",
128
148
  RUNNING = "RUNNING"
@@ -1027,6 +1047,10 @@ export declare namespace LogsSummary {
1027
1047
  const filterSensitiveLog: (obj: LogsSummary) => any;
1028
1048
  }
1029
1049
  export interface DescribeBrokerResponse {
1050
+ /**
1051
+ * <p>A list of actions required for a broker.</p>
1052
+ */
1053
+ ActionsRequired?: ActionRequired[];
1030
1054
  /**
1031
1055
  * <p>The authentication strategy used to secure the broker. The default is SIMPLE.</p>
1032
1056
  */
@@ -1,6 +1,17 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { MqServiceException as __BaseException } from "./MqServiceException";
3
3
 
4
+ export interface ActionRequired {
5
+
6
+ ActionRequiredCode?: string;
7
+
8
+ ActionRequiredInfo?: string;
9
+ }
10
+ export declare namespace ActionRequired {
11
+
12
+ const filterSensitiveLog: (obj: ActionRequired) => any;
13
+ }
14
+
4
15
  export interface AvailabilityZone {
5
16
 
6
17
  Name?: string;
@@ -77,6 +88,7 @@ export declare namespace BrokerInstanceOption {
77
88
  export declare enum BrokerState {
78
89
  CREATION_FAILED = "CREATION_FAILED",
79
90
  CREATION_IN_PROGRESS = "CREATION_IN_PROGRESS",
91
+ CRITICAL_ACTION_REQUIRED = "CRITICAL_ACTION_REQUIRED",
80
92
  DELETION_IN_PROGRESS = "DELETION_IN_PROGRESS",
81
93
  REBOOT_IN_PROGRESS = "REBOOT_IN_PROGRESS",
82
94
  RUNNING = "RUNNING"
@@ -599,6 +611,8 @@ export declare namespace LogsSummary {
599
611
  }
600
612
  export interface DescribeBrokerResponse {
601
613
 
614
+ ActionsRequired?: ActionRequired[];
615
+
602
616
  AuthenticationStrategy?: AuthenticationStrategy | string;
603
617
 
604
618
  AutoMinorVersionUpgrade?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mq",
3
3
  "description": "AWS SDK for JavaScript Mq Client for Node.js, Browser and React Native",
4
- "version": "3.76.0",
4
+ "version": "3.77.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",