@aws-sdk/client-location 3.987.0 → 3.988.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LocationServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class LocationServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, LocationServiceException.prototype);
10
+ }
11
+ }
12
+ exports.LocationServiceException = LocationServiceException;
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceNotFoundException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const LocationServiceException_1 = require("./LocationServiceException");
5
+ class AccessDeniedException extends LocationServiceException_1.LocationServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "AccessDeniedException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
20
+ class ConflictException extends LocationServiceException_1.LocationServiceException {
21
+ name = "ConflictException";
22
+ $fault = "client";
23
+ Message;
24
+ constructor(opts) {
25
+ super({
26
+ name: "ConflictException",
27
+ $fault: "client",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, ConflictException.prototype);
31
+ this.Message = opts.Message;
32
+ }
33
+ }
34
+ exports.ConflictException = ConflictException;
35
+ class InternalServerException extends LocationServiceException_1.LocationServiceException {
36
+ name = "InternalServerException";
37
+ $fault = "server";
38
+ $retryable = {};
39
+ Message;
40
+ constructor(opts) {
41
+ super({
42
+ name: "InternalServerException",
43
+ $fault: "server",
44
+ ...opts,
45
+ });
46
+ Object.setPrototypeOf(this, InternalServerException.prototype);
47
+ this.Message = opts.Message;
48
+ }
49
+ }
50
+ exports.InternalServerException = InternalServerException;
51
+ class ServiceQuotaExceededException extends LocationServiceException_1.LocationServiceException {
52
+ name = "ServiceQuotaExceededException";
53
+ $fault = "client";
54
+ Message;
55
+ constructor(opts) {
56
+ super({
57
+ name: "ServiceQuotaExceededException",
58
+ $fault: "client",
59
+ ...opts,
60
+ });
61
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
62
+ this.Message = opts.Message;
63
+ }
64
+ }
65
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
66
+ class ThrottlingException extends LocationServiceException_1.LocationServiceException {
67
+ name = "ThrottlingException";
68
+ $fault = "client";
69
+ $retryable = {};
70
+ Message;
71
+ constructor(opts) {
72
+ super({
73
+ name: "ThrottlingException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
78
+ this.Message = opts.Message;
79
+ }
80
+ }
81
+ exports.ThrottlingException = ThrottlingException;
82
+ class ValidationException extends LocationServiceException_1.LocationServiceException {
83
+ name = "ValidationException";
84
+ $fault = "client";
85
+ Message;
86
+ Reason;
87
+ FieldList;
88
+ constructor(opts) {
89
+ super({
90
+ name: "ValidationException",
91
+ $fault: "client",
92
+ ...opts,
93
+ });
94
+ Object.setPrototypeOf(this, ValidationException.prototype);
95
+ this.Message = opts.Message;
96
+ this.Reason = opts.Reason;
97
+ this.FieldList = opts.FieldList;
98
+ }
99
+ }
100
+ exports.ValidationException = ValidationException;
101
+ class ResourceNotFoundException extends LocationServiceException_1.LocationServiceException {
102
+ name = "ResourceNotFoundException";
103
+ $fault = "client";
104
+ Message;
105
+ constructor(opts) {
106
+ super({
107
+ name: "ResourceNotFoundException",
108
+ $fault: "client",
109
+ ...opts,
110
+ });
111
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
112
+ this.Message = opts.Message;
113
+ }
114
+ }
115
+ exports.ResourceNotFoundException = ResourceNotFoundException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2020-11-19",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.location",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2020-11-19",
33
35
  serviceTarget: "LocationService",
34
36
  },