@aws-sdk/client-location 3.52.0 → 3.53.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.
@@ -3,3 +3,4 @@ export * from "./LocationClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { LocationServiceException } from "./models/LocationServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from Location service.
4
+ */
5
+ export declare class LocationServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,12 +1,17 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { LocationServiceException as __BaseException } from "./LocationServiceException";
2
3
  /**
3
4
  * <p>The request was denied because of insufficient access or permissions. Check with an
4
5
  * administrator to verify your permissions.</p>
5
6
  */
6
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
7
- name: "AccessDeniedException";
8
- $fault: "client";
7
+ export declare class AccessDeniedException extends __BaseException {
8
+ readonly name: "AccessDeniedException";
9
+ readonly $fault: "client";
9
10
  Message: string | undefined;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
10
15
  }
11
16
  export interface AssociateTrackerConsumerRequest {
12
17
  /**
@@ -43,48 +48,68 @@ export declare namespace AssociateTrackerConsumerResponse {
43
48
  /**
44
49
  * <p>The request was unsuccessful because of a conflict.</p>
45
50
  */
46
- export interface ConflictException extends __SmithyException, $MetadataBearer {
47
- name: "ConflictException";
48
- $fault: "client";
51
+ export declare class ConflictException extends __BaseException {
52
+ readonly name: "ConflictException";
53
+ readonly $fault: "client";
49
54
  Message: string | undefined;
55
+ /**
56
+ * @internal
57
+ */
58
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
50
59
  }
51
60
  /**
52
61
  * <p>The request has failed to process because of an unknown server error, exception, or failure.</p>
53
62
  */
54
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
55
- name: "InternalServerException";
56
- $fault: "server";
63
+ export declare class InternalServerException extends __BaseException {
64
+ readonly name: "InternalServerException";
65
+ readonly $fault: "server";
57
66
  $retryable: {};
58
67
  Message: string | undefined;
68
+ /**
69
+ * @internal
70
+ */
71
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
59
72
  }
60
73
  /**
61
74
  * <p>The resource that you've entered was not found in your AWS account.</p>
62
75
  */
63
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
64
- name: "ResourceNotFoundException";
65
- $fault: "client";
76
+ export declare class ResourceNotFoundException extends __BaseException {
77
+ readonly name: "ResourceNotFoundException";
78
+ readonly $fault: "client";
66
79
  Message: string | undefined;
80
+ /**
81
+ * @internal
82
+ */
83
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
67
84
  }
68
85
  /**
69
86
  * <p>The operation was denied because the request would exceed the maximum <a href="https://docs.aws.amazon.com/location/latest/developerguide/location-quotas.html">quota</a>
70
87
  * set for Amazon Location Service.</p>
71
88
  */
72
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
73
- name: "ServiceQuotaExceededException";
74
- $fault: "client";
89
+ export declare class ServiceQuotaExceededException extends __BaseException {
90
+ readonly name: "ServiceQuotaExceededException";
91
+ readonly $fault: "client";
75
92
  /**
76
93
  * <p>A message with the reason for the service quota exceeded exception error.</p>
77
94
  */
78
95
  Message: string | undefined;
96
+ /**
97
+ * @internal
98
+ */
99
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
79
100
  }
80
101
  /**
81
102
  * <p>The request was denied because of request throttling.</p>
82
103
  */
83
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
84
- name: "ThrottlingException";
85
- $fault: "client";
104
+ export declare class ThrottlingException extends __BaseException {
105
+ readonly name: "ThrottlingException";
106
+ readonly $fault: "client";
86
107
  $retryable: {};
87
108
  Message: string | undefined;
109
+ /**
110
+ * @internal
111
+ */
112
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
88
113
  }
89
114
  /**
90
115
  * <p>The input failed to meet the constraints specified by the AWS service in a specified
@@ -110,9 +135,9 @@ export declare type ValidationExceptionReason = "CannotParse" | "FieldValidation
110
135
  /**
111
136
  * <p>The input failed to meet the constraints specified by the AWS service. </p>
112
137
  */
113
- export interface ValidationException extends __SmithyException, $MetadataBearer {
114
- name: "ValidationException";
115
- $fault: "client";
138
+ export declare class ValidationException extends __BaseException {
139
+ readonly name: "ValidationException";
140
+ readonly $fault: "client";
116
141
  Message: string | undefined;
117
142
  /**
118
143
  * <p>A message with the reason for the validation exception error.</p>
@@ -122,6 +147,10 @@ export interface ValidationException extends __SmithyException, $MetadataBearer
122
147
  * <p>The field where the invalid entry was detected.</p>
123
148
  */
124
149
  FieldList: ValidationExceptionField[] | undefined;
150
+ /**
151
+ * @internal
152
+ */
153
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
125
154
  }
126
155
  export interface BatchDeleteDevicePositionHistoryRequest {
127
156
  /**
@@ -3,3 +3,4 @@ export * from "./LocationClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { LocationServiceException } from "./models/LocationServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class LocationServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,9 +1,12 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { LocationServiceException as __BaseException } from "./LocationServiceException";
2
3
 
3
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
4
- name: "AccessDeniedException";
5
- $fault: "client";
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
6
7
  Message: string | undefined;
8
+
9
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
7
10
  }
8
11
  export interface AssociateTrackerConsumerRequest {
9
12
 
@@ -22,37 +25,47 @@ export declare namespace AssociateTrackerConsumerResponse {
22
25
  const filterSensitiveLog: (obj: AssociateTrackerConsumerResponse) => any;
23
26
  }
24
27
 
25
- export interface ConflictException extends __SmithyException, $MetadataBearer {
26
- name: "ConflictException";
27
- $fault: "client";
28
+ export declare class ConflictException extends __BaseException {
29
+ readonly name: "ConflictException";
30
+ readonly $fault: "client";
28
31
  Message: string | undefined;
32
+
33
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
29
34
  }
30
35
 
31
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
32
- name: "InternalServerException";
33
- $fault: "server";
36
+ export declare class InternalServerException extends __BaseException {
37
+ readonly name: "InternalServerException";
38
+ readonly $fault: "server";
34
39
  $retryable: {};
35
40
  Message: string | undefined;
41
+
42
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
36
43
  }
37
44
 
38
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
39
- name: "ResourceNotFoundException";
40
- $fault: "client";
45
+ export declare class ResourceNotFoundException extends __BaseException {
46
+ readonly name: "ResourceNotFoundException";
47
+ readonly $fault: "client";
41
48
  Message: string | undefined;
49
+
50
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
42
51
  }
43
52
 
44
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
45
- name: "ServiceQuotaExceededException";
46
- $fault: "client";
53
+ export declare class ServiceQuotaExceededException extends __BaseException {
54
+ readonly name: "ServiceQuotaExceededException";
55
+ readonly $fault: "client";
47
56
 
48
57
  Message: string | undefined;
58
+
59
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
49
60
  }
50
61
 
51
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
52
- name: "ThrottlingException";
53
- $fault: "client";
62
+ export declare class ThrottlingException extends __BaseException {
63
+ readonly name: "ThrottlingException";
64
+ readonly $fault: "client";
54
65
  $retryable: {};
55
66
  Message: string | undefined;
67
+
68
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
56
69
  }
57
70
 
58
71
  export interface ValidationExceptionField {
@@ -67,14 +80,16 @@ export declare namespace ValidationExceptionField {
67
80
  }
68
81
  export declare type ValidationExceptionReason = "CannotParse" | "FieldValidationFailed" | "Missing" | "Other" | "UnknownOperation";
69
82
 
70
- export interface ValidationException extends __SmithyException, $MetadataBearer {
71
- name: "ValidationException";
72
- $fault: "client";
83
+ export declare class ValidationException extends __BaseException {
84
+ readonly name: "ValidationException";
85
+ readonly $fault: "client";
73
86
  Message: string | undefined;
74
87
 
75
88
  Reason: ValidationExceptionReason | string | undefined;
76
89
 
77
90
  FieldList: ValidationExceptionField[] | undefined;
91
+
92
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
78
93
  }
79
94
  export interface BatchDeleteDevicePositionHistoryRequest {
80
95
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-location",
3
3
  "description": "AWS SDK for JavaScript Location Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.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",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"