@aws-sdk/client-appconfigdata 3.183.0 → 3.185.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.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-appconfigdata
@@ -240,10 +240,10 @@ const deserializeAws_restJson1StringMap = (output, context) => {
240
240
  }, {});
241
241
  };
242
242
  const deserializeMetadata = (output) => {
243
- var _a;
243
+ var _a, _b;
244
244
  return ({
245
245
  httpStatusCode: output.statusCode,
246
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
246
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
247
247
  extendedRequestId: output.headers["x-amz-id-2"],
248
248
  cfId: output.headers["x-amz-cf-id"],
249
249
  });
@@ -1,33 +1,40 @@
1
+ import { __extends } from "tslib";
1
2
  import { AppConfigDataClient } from "./AppConfigDataClient";
2
3
  import { GetLatestConfigurationCommand, } from "./commands/GetLatestConfigurationCommand";
3
4
  import { StartConfigurationSessionCommand, } from "./commands/StartConfigurationSessionCommand";
4
- export class AppConfigData extends AppConfigDataClient {
5
- getLatestConfiguration(args, optionsOrCb, cb) {
6
- const command = new GetLatestConfigurationCommand(args);
5
+ var AppConfigData = (function (_super) {
6
+ __extends(AppConfigData, _super);
7
+ function AppConfigData() {
8
+ return _super !== null && _super.apply(this, arguments) || this;
9
+ }
10
+ AppConfigData.prototype.getLatestConfiguration = function (args, optionsOrCb, cb) {
11
+ var command = new GetLatestConfigurationCommand(args);
7
12
  if (typeof optionsOrCb === "function") {
8
13
  this.send(command, optionsOrCb);
9
14
  }
10
15
  else if (typeof cb === "function") {
11
16
  if (typeof optionsOrCb !== "object")
12
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
17
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
13
18
  this.send(command, optionsOrCb || {}, cb);
14
19
  }
15
20
  else {
16
21
  return this.send(command, optionsOrCb);
17
22
  }
18
- }
19
- startConfigurationSession(args, optionsOrCb, cb) {
20
- const command = new StartConfigurationSessionCommand(args);
23
+ };
24
+ AppConfigData.prototype.startConfigurationSession = function (args, optionsOrCb, cb) {
25
+ var command = new StartConfigurationSessionCommand(args);
21
26
  if (typeof optionsOrCb === "function") {
22
27
  this.send(command, optionsOrCb);
23
28
  }
24
29
  else if (typeof cb === "function") {
25
30
  if (typeof optionsOrCb !== "object")
26
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
31
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
27
32
  this.send(command, optionsOrCb || {}, cb);
28
33
  }
29
34
  else {
30
35
  return this.send(command, optionsOrCb);
31
36
  }
32
- }
33
- }
37
+ };
38
+ return AppConfigData;
39
+ }(AppConfigDataClient));
40
+ export { AppConfigData };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class AppConfigDataClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var AppConfigDataClient = (function (_super) {
13
+ __extends(AppConfigDataClient, _super);
14
+ function AppConfigDataClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ AppConfigDataClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return AppConfigDataClient;
38
+ }(__Client));
39
+ export { AppConfigDataClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetLatestConfigurationRequestFilterSensitiveLog, GetLatestConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetLatestConfigurationCommand, serializeAws_restJson1GetLatestConfigurationCommand, } from "../protocols/Aws_restJson1";
5
- export class GetLatestConfigurationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetLatestConfigurationCommand = (function (_super) {
7
+ __extends(GetLatestConfigurationCommand, _super);
8
+ function GetLatestConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetLatestConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AppConfigDataClient";
15
- const commandName = "GetLatestConfigurationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppConfigDataClient";
18
+ var commandName = "GetLatestConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetLatestConfigurationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetLatestConfigurationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetLatestConfigurationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetLatestConfigurationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetLatestConfigurationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetLatestConfigurationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetLatestConfigurationCommand;
38
+ }($Command));
39
+ export { GetLatestConfigurationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { StartConfigurationSessionRequestFilterSensitiveLog, StartConfigurationSessionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1StartConfigurationSessionCommand, serializeAws_restJson1StartConfigurationSessionCommand, } from "../protocols/Aws_restJson1";
5
- export class StartConfigurationSessionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var StartConfigurationSessionCommand = (function (_super) {
7
+ __extends(StartConfigurationSessionCommand, _super);
8
+ function StartConfigurationSessionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ StartConfigurationSessionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AppConfigDataClient";
15
- const commandName = "StartConfigurationSessionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppConfigDataClient";
18
+ var commandName = "StartConfigurationSessionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: StartConfigurationSessionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: StartConfigurationSessionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ StartConfigurationSessionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1StartConfigurationSessionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ StartConfigurationSessionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1StartConfigurationSessionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return StartConfigurationSessionCommand;
38
+ }($Command));
39
+ export { StartConfigurationSessionCommand };
@@ -1,6 +1,7 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {};
3
- const partitionHash = {
3
+ var regionHash = {};
4
+ var partitionHash = {
4
5
  aws: {
5
6
  regions: [
6
7
  "af-south-1",
@@ -120,9 +121,8 @@ const partitionHash = {
120
121
  ],
121
122
  },
122
123
  };
123
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
- ...options,
125
- signingService: "appconfig",
126
- regionHash,
127
- partitionHash,
128
- });
124
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
+ return __generator(this, function (_a) {
126
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "appconfig", regionHash: regionHash, partitionHash: partitionHash }))];
127
+ });
128
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class AppConfigDataServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, AppConfigDataServiceException.prototype);
3
+ var AppConfigDataServiceException = (function (_super) {
4
+ __extends(AppConfigDataServiceException, _super);
5
+ function AppConfigDataServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, AppConfigDataServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return AppConfigDataServiceException;
11
+ }(__ServiceException));
12
+ export { AppConfigDataServiceException };
@@ -1,3 +1,4 @@
1
+ import { __assign, __extends, __read } from "tslib";
1
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
3
  import { AppConfigDataServiceException as __BaseException } from "./AppConfigDataServiceException";
3
4
  export var InvalidParameterProblem;
@@ -8,7 +9,7 @@ export var InvalidParameterProblem;
8
9
  })(InvalidParameterProblem || (InvalidParameterProblem = {}));
9
10
  export var BadRequestDetails;
10
11
  (function (BadRequestDetails) {
11
- BadRequestDetails.visit = (value, visitor) => {
12
+ BadRequestDetails.visit = function (value, visitor) {
12
13
  if (value.InvalidParameters !== undefined)
13
14
  return visitor.InvalidParameters(value.InvalidParameters);
14
15
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -18,34 +19,34 @@ export var BadRequestReason;
18
19
  (function (BadRequestReason) {
19
20
  BadRequestReason["INVALID_PARAMETERS"] = "InvalidParameters";
20
21
  })(BadRequestReason || (BadRequestReason = {}));
21
- export class BadRequestException extends __BaseException {
22
- constructor(opts) {
23
- super({
24
- name: "BadRequestException",
25
- $fault: "client",
26
- ...opts,
27
- });
28
- this.name = "BadRequestException";
29
- this.$fault = "client";
30
- Object.setPrototypeOf(this, BadRequestException.prototype);
31
- this.Message = opts.Message;
32
- this.Reason = opts.Reason;
33
- this.Details = opts.Details;
22
+ var BadRequestException = (function (_super) {
23
+ __extends(BadRequestException, _super);
24
+ function BadRequestException(opts) {
25
+ var _this = _super.call(this, __assign({ name: "BadRequestException", $fault: "client" }, opts)) || this;
26
+ _this.name = "BadRequestException";
27
+ _this.$fault = "client";
28
+ Object.setPrototypeOf(_this, BadRequestException.prototype);
29
+ _this.Message = opts.Message;
30
+ _this.Reason = opts.Reason;
31
+ _this.Details = opts.Details;
32
+ return _this;
34
33
  }
35
- }
36
- export class InternalServerException extends __BaseException {
37
- constructor(opts) {
38
- super({
39
- name: "InternalServerException",
40
- $fault: "server",
41
- ...opts,
42
- });
43
- this.name = "InternalServerException";
44
- this.$fault = "server";
45
- Object.setPrototypeOf(this, InternalServerException.prototype);
46
- this.Message = opts.Message;
34
+ return BadRequestException;
35
+ }(__BaseException));
36
+ export { BadRequestException };
37
+ var InternalServerException = (function (_super) {
38
+ __extends(InternalServerException, _super);
39
+ function InternalServerException(opts) {
40
+ var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
41
+ _this.name = "InternalServerException";
42
+ _this.$fault = "server";
43
+ Object.setPrototypeOf(_this, InternalServerException.prototype);
44
+ _this.Message = opts.Message;
45
+ return _this;
47
46
  }
48
- }
47
+ return InternalServerException;
48
+ }(__BaseException));
49
+ export { InternalServerException };
49
50
  export var ResourceType;
50
51
  (function (ResourceType) {
51
52
  ResourceType["APPLICATION"] = "Application";
@@ -54,58 +55,49 @@ export var ResourceType;
54
55
  ResourceType["DEPLOYMENT"] = "Deployment";
55
56
  ResourceType["ENVIRONMENT"] = "Environment";
56
57
  })(ResourceType || (ResourceType = {}));
57
- export class ResourceNotFoundException extends __BaseException {
58
- constructor(opts) {
59
- super({
60
- name: "ResourceNotFoundException",
61
- $fault: "client",
62
- ...opts,
63
- });
64
- this.name = "ResourceNotFoundException";
65
- this.$fault = "client";
66
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
67
- this.Message = opts.Message;
68
- this.ResourceType = opts.ResourceType;
69
- this.ReferencedBy = opts.ReferencedBy;
58
+ var ResourceNotFoundException = (function (_super) {
59
+ __extends(ResourceNotFoundException, _super);
60
+ function ResourceNotFoundException(opts) {
61
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
62
+ _this.name = "ResourceNotFoundException";
63
+ _this.$fault = "client";
64
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
65
+ _this.Message = opts.Message;
66
+ _this.ResourceType = opts.ResourceType;
67
+ _this.ReferencedBy = opts.ReferencedBy;
68
+ return _this;
70
69
  }
71
- }
72
- export class ThrottlingException extends __BaseException {
73
- constructor(opts) {
74
- super({
75
- name: "ThrottlingException",
76
- $fault: "client",
77
- ...opts,
78
- });
79
- this.name = "ThrottlingException";
80
- this.$fault = "client";
81
- Object.setPrototypeOf(this, ThrottlingException.prototype);
82
- this.Message = opts.Message;
70
+ return ResourceNotFoundException;
71
+ }(__BaseException));
72
+ export { ResourceNotFoundException };
73
+ var ThrottlingException = (function (_super) {
74
+ __extends(ThrottlingException, _super);
75
+ function ThrottlingException(opts) {
76
+ var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
77
+ _this.name = "ThrottlingException";
78
+ _this.$fault = "client";
79
+ Object.setPrototypeOf(_this, ThrottlingException.prototype);
80
+ _this.Message = opts.Message;
81
+ return _this;
83
82
  }
84
- }
85
- export const InvalidParameterDetailFilterSensitiveLog = (obj) => ({
86
- ...obj,
87
- });
88
- export const BadRequestDetailsFilterSensitiveLog = (obj) => {
83
+ return ThrottlingException;
84
+ }(__BaseException));
85
+ export { ThrottlingException };
86
+ export var InvalidParameterDetailFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
+ export var BadRequestDetailsFilterSensitiveLog = function (obj) {
88
+ var _a;
89
89
  if (obj.InvalidParameters !== undefined)
90
90
  return {
91
- InvalidParameters: Object.entries(obj.InvalidParameters).reduce((acc, [key, value]) => ({
92
- ...acc,
93
- [key]: InvalidParameterDetailFilterSensitiveLog(value),
94
- }), {}),
91
+ InvalidParameters: Object.entries(obj.InvalidParameters).reduce(function (acc, _a) {
92
+ var _b;
93
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
94
+ return (__assign(__assign({}, acc), (_b = {}, _b[key] = InvalidParameterDetailFilterSensitiveLog(value), _b)));
95
+ }, {}),
95
96
  };
96
97
  if (obj.$unknown !== undefined)
97
- return { [obj.$unknown[0]]: "UNKNOWN" };
98
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
98
99
  };
99
- export const StartConfigurationSessionRequestFilterSensitiveLog = (obj) => ({
100
- ...obj,
101
- });
102
- export const StartConfigurationSessionResponseFilterSensitiveLog = (obj) => ({
103
- ...obj,
104
- });
105
- export const GetLatestConfigurationRequestFilterSensitiveLog = (obj) => ({
106
- ...obj,
107
- });
108
- export const GetLatestConfigurationResponseFilterSensitiveLog = (obj) => ({
109
- ...obj,
110
- ...(obj.Configuration && { Configuration: SENSITIVE_STRING }),
111
- });
100
+ export var StartConfigurationSessionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
101
+ export var StartConfigurationSessionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
+ export var GetLatestConfigurationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
103
+ export var GetLatestConfigurationResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Configuration && { Configuration: SENSITIVE_STRING }))); };