@aws-sdk/client-appconfigdata 3.185.0 → 3.188.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,22 @@
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.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-appconfigdata
9
+
10
+
11
+
12
+
13
+
14
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-appconfigdata
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
23
 
8
24
 
@@ -1,40 +1,33 @@
1
- import { __extends } from "tslib";
2
1
  import { AppConfigDataClient } from "./AppConfigDataClient";
3
2
  import { GetLatestConfigurationCommand, } from "./commands/GetLatestConfigurationCommand";
4
3
  import { StartConfigurationSessionCommand, } from "./commands/StartConfigurationSessionCommand";
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);
4
+ export class AppConfigData extends AppConfigDataClient {
5
+ getLatestConfiguration(args, optionsOrCb, cb) {
6
+ const command = new GetLatestConfigurationCommand(args);
12
7
  if (typeof optionsOrCb === "function") {
13
8
  this.send(command, optionsOrCb);
14
9
  }
15
10
  else if (typeof cb === "function") {
16
11
  if (typeof optionsOrCb !== "object")
17
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
12
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
18
13
  this.send(command, optionsOrCb || {}, cb);
19
14
  }
20
15
  else {
21
16
  return this.send(command, optionsOrCb);
22
17
  }
23
- };
24
- AppConfigData.prototype.startConfigurationSession = function (args, optionsOrCb, cb) {
25
- var command = new StartConfigurationSessionCommand(args);
18
+ }
19
+ startConfigurationSession(args, optionsOrCb, cb) {
20
+ const command = new StartConfigurationSessionCommand(args);
26
21
  if (typeof optionsOrCb === "function") {
27
22
  this.send(command, optionsOrCb);
28
23
  }
29
24
  else if (typeof cb === "function") {
30
25
  if (typeof optionsOrCb !== "object")
31
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
26
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
32
27
  this.send(command, optionsOrCb || {}, cb);
33
28
  }
34
29
  else {
35
30
  return this.send(command, optionsOrCb);
36
31
  }
37
- };
38
- return AppConfigData;
39
- }(AppConfigDataClient));
40
- export { AppConfigData };
32
+ }
33
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
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;
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));
33
29
  }
34
- AppConfigDataClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return AppConfigDataClient;
38
- }(__Client));
39
- export { AppConfigDataClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetLatestConfigurationRequestFilterSensitiveLog, GetLatestConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetLatestConfigurationCommand, serializeAws_restJson1GetLatestConfigurationCommand, } from "../protocols/Aws_restJson1";
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;
5
+ export class GetLatestConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetLatestConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
23
20
  inputFilterSensitiveLog: GetLatestConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetLatestConfigurationResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetLatestConfigurationCommand(input, context);
33
- };
34
- GetLatestConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetLatestConfigurationCommand(output, context);
36
- };
37
- return GetLatestConfigurationCommand;
38
- }($Command));
39
- export { GetLatestConfigurationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { StartConfigurationSessionRequestFilterSensitiveLog, StartConfigurationSessionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1StartConfigurationSessionCommand, serializeAws_restJson1StartConfigurationSessionCommand, } from "../protocols/Aws_restJson1";
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;
5
+ export class StartConfigurationSessionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartConfigurationSessionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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,
23
20
  inputFilterSensitiveLog: StartConfigurationSessionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartConfigurationSessionResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1StartConfigurationSessionCommand(input, context);
33
- };
34
- StartConfigurationSessionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1StartConfigurationSessionCommand(output, context);
36
- };
37
- return StartConfigurationSessionCommand;
38
- }($Command));
39
- export { StartConfigurationSessionCommand };
31
+ }
32
+ }
@@ -1,7 +1,6 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {};
4
- var partitionHash = {
2
+ const regionHash = {};
3
+ const partitionHash = {
5
4
  aws: {
6
5
  regions: [
7
6
  "af-south-1",
@@ -121,8 +120,9 @@ var partitionHash = {
121
120
  ],
122
121
  },
123
122
  };
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
- }); };
123
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
+ ...options,
125
+ signingService: "appconfig",
126
+ regionHash,
127
+ partitionHash,
128
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
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;
2
+ export class AppConfigDataServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, AppConfigDataServiceException.prototype);
9
6
  }
10
- return AppConfigDataServiceException;
11
- }(__ServiceException));
12
- export { AppConfigDataServiceException };
7
+ }
@@ -1,4 +1,3 @@
1
- import { __assign, __extends, __read } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { AppConfigDataServiceException as __BaseException } from "./AppConfigDataServiceException";
4
3
  export var InvalidParameterProblem;
@@ -9,7 +8,7 @@ export var InvalidParameterProblem;
9
8
  })(InvalidParameterProblem || (InvalidParameterProblem = {}));
10
9
  export var BadRequestDetails;
11
10
  (function (BadRequestDetails) {
12
- BadRequestDetails.visit = function (value, visitor) {
11
+ BadRequestDetails.visit = (value, visitor) => {
13
12
  if (value.InvalidParameters !== undefined)
14
13
  return visitor.InvalidParameters(value.InvalidParameters);
15
14
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -19,34 +18,34 @@ export var BadRequestReason;
19
18
  (function (BadRequestReason) {
20
19
  BadRequestReason["INVALID_PARAMETERS"] = "InvalidParameters";
21
20
  })(BadRequestReason || (BadRequestReason = {}));
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;
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;
33
34
  }
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;
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;
46
47
  }
47
- return InternalServerException;
48
- }(__BaseException));
49
- export { InternalServerException };
48
+ }
50
49
  export var ResourceType;
51
50
  (function (ResourceType) {
52
51
  ResourceType["APPLICATION"] = "Application";
@@ -55,49 +54,58 @@ export var ResourceType;
55
54
  ResourceType["DEPLOYMENT"] = "Deployment";
56
55
  ResourceType["ENVIRONMENT"] = "Environment";
57
56
  })(ResourceType || (ResourceType = {}));
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;
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;
69
70
  }
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;
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;
82
83
  }
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;
84
+ }
85
+ export const InvalidParameterDetailFilterSensitiveLog = (obj) => ({
86
+ ...obj,
87
+ });
88
+ export const BadRequestDetailsFilterSensitiveLog = (obj) => {
89
89
  if (obj.InvalidParameters !== undefined)
90
90
  return {
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
- }, {}),
91
+ InvalidParameters: Object.entries(obj.InvalidParameters).reduce((acc, [key, value]) => ({
92
+ ...acc,
93
+ [key]: InvalidParameterDetailFilterSensitiveLog(value),
94
+ }), {}),
96
95
  };
97
96
  if (obj.$unknown !== undefined)
98
- return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
97
+ return { [obj.$unknown[0]]: "UNKNOWN" };
99
98
  };
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 }))); };
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
+ });