@aws-sdk/client-s3outposts 3.181.0 → 3.183.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,14 @@
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-s3outposts
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
7
15
 
8
16
 
@@ -1,70 +1,63 @@
1
- import { __extends } from "tslib";
2
1
  import { CreateEndpointCommand, } from "./commands/CreateEndpointCommand";
3
2
  import { DeleteEndpointCommand, } from "./commands/DeleteEndpointCommand";
4
3
  import { ListEndpointsCommand, } from "./commands/ListEndpointsCommand";
5
4
  import { ListSharedEndpointsCommand, } from "./commands/ListSharedEndpointsCommand";
6
5
  import { S3OutpostsClient } from "./S3OutpostsClient";
7
- var S3Outposts = (function (_super) {
8
- __extends(S3Outposts, _super);
9
- function S3Outposts() {
10
- return _super !== null && _super.apply(this, arguments) || this;
11
- }
12
- S3Outposts.prototype.createEndpoint = function (args, optionsOrCb, cb) {
13
- var command = new CreateEndpointCommand(args);
6
+ export class S3Outposts extends S3OutpostsClient {
7
+ createEndpoint(args, optionsOrCb, cb) {
8
+ const command = new CreateEndpointCommand(args);
14
9
  if (typeof optionsOrCb === "function") {
15
10
  this.send(command, optionsOrCb);
16
11
  }
17
12
  else if (typeof cb === "function") {
18
13
  if (typeof optionsOrCb !== "object")
19
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
14
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
20
15
  this.send(command, optionsOrCb || {}, cb);
21
16
  }
22
17
  else {
23
18
  return this.send(command, optionsOrCb);
24
19
  }
25
- };
26
- S3Outposts.prototype.deleteEndpoint = function (args, optionsOrCb, cb) {
27
- var command = new DeleteEndpointCommand(args);
20
+ }
21
+ deleteEndpoint(args, optionsOrCb, cb) {
22
+ const command = new DeleteEndpointCommand(args);
28
23
  if (typeof optionsOrCb === "function") {
29
24
  this.send(command, optionsOrCb);
30
25
  }
31
26
  else if (typeof cb === "function") {
32
27
  if (typeof optionsOrCb !== "object")
33
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
28
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
29
  this.send(command, optionsOrCb || {}, cb);
35
30
  }
36
31
  else {
37
32
  return this.send(command, optionsOrCb);
38
33
  }
39
- };
40
- S3Outposts.prototype.listEndpoints = function (args, optionsOrCb, cb) {
41
- var command = new ListEndpointsCommand(args);
34
+ }
35
+ listEndpoints(args, optionsOrCb, cb) {
36
+ const command = new ListEndpointsCommand(args);
42
37
  if (typeof optionsOrCb === "function") {
43
38
  this.send(command, optionsOrCb);
44
39
  }
45
40
  else if (typeof cb === "function") {
46
41
  if (typeof optionsOrCb !== "object")
47
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
42
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
43
  this.send(command, optionsOrCb || {}, cb);
49
44
  }
50
45
  else {
51
46
  return this.send(command, optionsOrCb);
52
47
  }
53
- };
54
- S3Outposts.prototype.listSharedEndpoints = function (args, optionsOrCb, cb) {
55
- var command = new ListSharedEndpointsCommand(args);
48
+ }
49
+ listSharedEndpoints(args, optionsOrCb, cb) {
50
+ const command = new ListSharedEndpointsCommand(args);
56
51
  if (typeof optionsOrCb === "function") {
57
52
  this.send(command, optionsOrCb);
58
53
  }
59
54
  else if (typeof cb === "function") {
60
55
  if (typeof optionsOrCb !== "object")
61
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
56
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
57
  this.send(command, optionsOrCb || {}, cb);
63
58
  }
64
59
  else {
65
60
  return this.send(command, optionsOrCb);
66
61
  }
67
- };
68
- return S3Outposts;
69
- }(S3OutpostsClient));
70
- export { S3Outposts };
62
+ }
63
+ }
@@ -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 S3OutpostsClient = (function (_super) {
13
- __extends(S3OutpostsClient, _super);
14
- function S3OutpostsClient(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 S3OutpostsClient 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
- S3OutpostsClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return S3OutpostsClient;
38
- }(__Client));
39
- export { S3OutpostsClient };
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 { CreateEndpointRequestFilterSensitiveLog, CreateEndpointResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateEndpointCommand, serializeAws_restJson1CreateEndpointCommand, } from "../protocols/Aws_restJson1";
6
- var CreateEndpointCommand = (function (_super) {
7
- __extends(CreateEndpointCommand, _super);
8
- function CreateEndpointCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateEndpointCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateEndpointCommand.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 = "S3OutpostsClient";
18
- var commandName = "CreateEndpointCommand";
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 = "S3OutpostsClient";
15
+ const commandName = "CreateEndpointCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateEndpointRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateEndpointResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateEndpointCommand.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_restJson1CreateEndpointCommand(input, context);
33
- };
34
- CreateEndpointCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateEndpointCommand(output, context);
36
- };
37
- return CreateEndpointCommand;
38
- }($Command));
39
- export { CreateEndpointCommand };
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 { DeleteEndpointRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteEndpointCommand, serializeAws_restJson1DeleteEndpointCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteEndpointCommand = (function (_super) {
7
- __extends(DeleteEndpointCommand, _super);
8
- function DeleteEndpointCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteEndpointCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteEndpointCommand.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 = "S3OutpostsClient";
18
- var commandName = "DeleteEndpointCommand";
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 = "S3OutpostsClient";
15
+ const commandName = "DeleteEndpointCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteEndpointRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteEndpointCommand.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_restJson1DeleteEndpointCommand(input, context);
33
- };
34
- DeleteEndpointCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteEndpointCommand(output, context);
36
- };
37
- return DeleteEndpointCommand;
38
- }($Command));
39
- export { DeleteEndpointCommand };
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 { ListEndpointsRequestFilterSensitiveLog, ListEndpointsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListEndpointsCommand, serializeAws_restJson1ListEndpointsCommand, } from "../protocols/Aws_restJson1";
6
- var ListEndpointsCommand = (function (_super) {
7
- __extends(ListEndpointsCommand, _super);
8
- function ListEndpointsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListEndpointsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListEndpointsCommand.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 = "S3OutpostsClient";
18
- var commandName = "ListEndpointsCommand";
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 = "S3OutpostsClient";
15
+ const commandName = "ListEndpointsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListEndpointsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListEndpointsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListEndpointsCommand.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_restJson1ListEndpointsCommand(input, context);
33
- };
34
- ListEndpointsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListEndpointsCommand(output, context);
36
- };
37
- return ListEndpointsCommand;
38
- }($Command));
39
- export { ListEndpointsCommand };
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 { ListSharedEndpointsRequestFilterSensitiveLog, ListSharedEndpointsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListSharedEndpointsCommand, serializeAws_restJson1ListSharedEndpointsCommand, } from "../protocols/Aws_restJson1";
6
- var ListSharedEndpointsCommand = (function (_super) {
7
- __extends(ListSharedEndpointsCommand, _super);
8
- function ListSharedEndpointsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListSharedEndpointsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListSharedEndpointsCommand.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 = "S3OutpostsClient";
18
- var commandName = "ListSharedEndpointsCommand";
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 = "S3OutpostsClient";
15
+ const commandName = "ListSharedEndpointsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListSharedEndpointsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListSharedEndpointsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListSharedEndpointsCommand.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_restJson1ListSharedEndpointsCommand(input, context);
33
- };
34
- ListSharedEndpointsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListSharedEndpointsCommand(output, context);
36
- };
37
- return ListSharedEndpointsCommand;
38
- }($Command));
39
- export { ListSharedEndpointsCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "ca-central-1": {
5
4
  variants: [],
6
5
  },
@@ -23,7 +22,7 @@ var regionHash = {
23
22
  variants: [],
24
23
  },
25
24
  };
26
- var partitionHash = {
25
+ const partitionHash = {
27
26
  aws: {
28
27
  regions: [
29
28
  "af-south-1",
@@ -148,8 +147,9 @@ var partitionHash = {
148
147
  ],
149
148
  },
150
149
  };
151
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
152
- return __generator(this, function (_a) {
153
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "s3-outposts", regionHash: regionHash, partitionHash: partitionHash }))];
154
- });
155
- }); };
150
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
151
+ ...options,
152
+ signingService: "s3-outposts",
153
+ regionHash,
154
+ partitionHash,
155
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var S3OutpostsServiceException = (function (_super) {
4
- __extends(S3OutpostsServiceException, _super);
5
- function S3OutpostsServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, S3OutpostsServiceException.prototype);
8
- return _this;
2
+ export class S3OutpostsServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, S3OutpostsServiceException.prototype);
9
6
  }
10
- return S3OutpostsServiceException;
11
- }(__ServiceException));
12
- export { S3OutpostsServiceException };
7
+ }
@@ -1,87 +1,104 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { S3OutpostsServiceException as __BaseException } from "./S3OutpostsServiceException";
3
- var AccessDeniedException = (function (_super) {
4
- __extends(AccessDeniedException, _super);
5
- function AccessDeniedException(opts) {
6
- var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
7
- _this.name = "AccessDeniedException";
8
- _this.$fault = "client";
9
- Object.setPrototypeOf(_this, AccessDeniedException.prototype);
10
- _this.Message = opts.Message;
11
- return _this;
2
+ export class AccessDeniedException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "AccessDeniedException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "AccessDeniedException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ this.Message = opts.Message;
12
13
  }
13
- return AccessDeniedException;
14
- }(__BaseException));
15
- export { AccessDeniedException };
16
- var ConflictException = (function (_super) {
17
- __extends(ConflictException, _super);
18
- function ConflictException(opts) {
19
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
20
- _this.name = "ConflictException";
21
- _this.$fault = "client";
22
- Object.setPrototypeOf(_this, ConflictException.prototype);
23
- _this.Message = opts.Message;
24
- return _this;
14
+ }
15
+ export class ConflictException extends __BaseException {
16
+ constructor(opts) {
17
+ super({
18
+ name: "ConflictException",
19
+ $fault: "client",
20
+ ...opts,
21
+ });
22
+ this.name = "ConflictException";
23
+ this.$fault = "client";
24
+ Object.setPrototypeOf(this, ConflictException.prototype);
25
+ this.Message = opts.Message;
25
26
  }
26
- return ConflictException;
27
- }(__BaseException));
28
- export { ConflictException };
27
+ }
29
28
  export var EndpointAccessType;
30
29
  (function (EndpointAccessType) {
31
30
  EndpointAccessType["CUSTOMER_OWNED_IP"] = "CustomerOwnedIp";
32
31
  EndpointAccessType["PRIVATE"] = "Private";
33
32
  })(EndpointAccessType || (EndpointAccessType = {}));
34
- var InternalServerException = (function (_super) {
35
- __extends(InternalServerException, _super);
36
- function InternalServerException(opts) {
37
- var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
38
- _this.name = "InternalServerException";
39
- _this.$fault = "server";
40
- Object.setPrototypeOf(_this, InternalServerException.prototype);
41
- _this.Message = opts.Message;
42
- return _this;
33
+ export class InternalServerException extends __BaseException {
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalServerException",
37
+ $fault: "server",
38
+ ...opts,
39
+ });
40
+ this.name = "InternalServerException";
41
+ this.$fault = "server";
42
+ Object.setPrototypeOf(this, InternalServerException.prototype);
43
+ this.Message = opts.Message;
43
44
  }
44
- return InternalServerException;
45
- }(__BaseException));
46
- export { InternalServerException };
47
- var ResourceNotFoundException = (function (_super) {
48
- __extends(ResourceNotFoundException, _super);
49
- function ResourceNotFoundException(opts) {
50
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
51
- _this.name = "ResourceNotFoundException";
52
- _this.$fault = "client";
53
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
54
- _this.Message = opts.Message;
55
- return _this;
45
+ }
46
+ export class ResourceNotFoundException extends __BaseException {
47
+ constructor(opts) {
48
+ super({
49
+ name: "ResourceNotFoundException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ this.name = "ResourceNotFoundException";
54
+ this.$fault = "client";
55
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
56
+ this.Message = opts.Message;
56
57
  }
57
- return ResourceNotFoundException;
58
- }(__BaseException));
59
- export { ResourceNotFoundException };
60
- var ValidationException = (function (_super) {
61
- __extends(ValidationException, _super);
62
- function ValidationException(opts) {
63
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
64
- _this.name = "ValidationException";
65
- _this.$fault = "client";
66
- Object.setPrototypeOf(_this, ValidationException.prototype);
67
- _this.Message = opts.Message;
68
- return _this;
58
+ }
59
+ export class ValidationException extends __BaseException {
60
+ constructor(opts) {
61
+ super({
62
+ name: "ValidationException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ this.name = "ValidationException";
67
+ this.$fault = "client";
68
+ Object.setPrototypeOf(this, ValidationException.prototype);
69
+ this.Message = opts.Message;
69
70
  }
70
- return ValidationException;
71
- }(__BaseException));
72
- export { ValidationException };
71
+ }
73
72
  export var EndpointStatus;
74
73
  (function (EndpointStatus) {
75
74
  EndpointStatus["AVAILABLE"] = "Available";
76
75
  EndpointStatus["DELETING"] = "Deleting";
77
76
  EndpointStatus["PENDING"] = "Pending";
78
77
  })(EndpointStatus || (EndpointStatus = {}));
79
- export var CreateEndpointRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
80
- export var CreateEndpointResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
81
- export var DeleteEndpointRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
- export var NetworkInterfaceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
83
- export var EndpointFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
84
- export var ListEndpointsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
- export var ListEndpointsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
86
- export var ListSharedEndpointsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
- export var ListSharedEndpointsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
+ export const CreateEndpointRequestFilterSensitiveLog = (obj) => ({
79
+ ...obj,
80
+ });
81
+ export const CreateEndpointResultFilterSensitiveLog = (obj) => ({
82
+ ...obj,
83
+ });
84
+ export const DeleteEndpointRequestFilterSensitiveLog = (obj) => ({
85
+ ...obj,
86
+ });
87
+ export const NetworkInterfaceFilterSensitiveLog = (obj) => ({
88
+ ...obj,
89
+ });
90
+ export const EndpointFilterSensitiveLog = (obj) => ({
91
+ ...obj,
92
+ });
93
+ export const ListEndpointsRequestFilterSensitiveLog = (obj) => ({
94
+ ...obj,
95
+ });
96
+ export const ListEndpointsResultFilterSensitiveLog = (obj) => ({
97
+ ...obj,
98
+ });
99
+ export const ListSharedEndpointsRequestFilterSensitiveLog = (obj) => ({
100
+ ...obj,
101
+ });
102
+ export const ListSharedEndpointsResultFilterSensitiveLog = (obj) => ({
103
+ ...obj,
104
+ });