@aws-sdk/client-notificationscontacts 3.933.0 → 3.935.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/dist-cjs/index.js CHANGED
@@ -193,10 +193,6 @@ let ThrottlingException$1 = class ThrottlingException extends NotificationsConta
193
193
  this.retryAfterSeconds = opts.retryAfterSeconds;
194
194
  }
195
195
  };
196
- const ValidationExceptionReason = {
197
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
198
- OTHER: "other",
199
- };
200
196
  let ValidationException$1 = class ValidationException extends NotificationsContactsServiceException$1 {
201
197
  name = "ValidationException";
202
198
  $fault = "client";
@@ -233,10 +229,6 @@ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extend
233
229
  this.quotaCode = opts.quotaCode;
234
230
  }
235
231
  };
236
- const EmailContactStatus = {
237
- ACTIVE: "active",
238
- INACTIVE: "inactive",
239
- };
240
232
 
241
233
  const _ADE = "AccessDeniedException";
242
234
  const _AEC = "ActivateEmailContact";
@@ -721,6 +713,11 @@ smithyClient.createAggregatedClient(commands, NotificationsContacts);
721
713
 
722
714
  const paginateListEmailContacts = core.createPaginator(NotificationsContactsClient, ListEmailContactsCommand, "nextToken", "nextToken", "maxResults");
723
715
 
716
+ const ValidationExceptionReason = {
717
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
718
+ OTHER: "other",
719
+ };
720
+
724
721
  Object.defineProperty(exports, "$Command", {
725
722
  enumerable: true,
726
723
  get: function () { return smithyClient.Command; }
@@ -734,7 +731,6 @@ exports.ActivateEmailContactCommand = ActivateEmailContactCommand;
734
731
  exports.ConflictException = ConflictException$1;
735
732
  exports.CreateEmailContactCommand = CreateEmailContactCommand;
736
733
  exports.DeleteEmailContactCommand = DeleteEmailContactCommand;
737
- exports.EmailContactStatus = EmailContactStatus;
738
734
  exports.GetEmailContactCommand = GetEmailContactCommand;
739
735
  exports.InternalServerException = InternalServerException$1;
740
736
  exports.ListEmailContactsCommand = ListEmailContactsCommand;
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./NotificationsContactsClient";
2
2
  export * from "./NotificationsContacts";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { NotificationsContactsServiceException } from "./models/NotificationsContactsServiceException";
@@ -0,0 +1,4 @@
1
+ export const ValidationExceptionReason = {
2
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
3
+ OTHER: "other",
4
+ };
@@ -0,0 +1,115 @@
1
+ import { NotificationsContactsServiceException as __BaseException } from "./NotificationsContactsServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "AccessDeniedException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class ConflictException extends __BaseException {
15
+ name = "ConflictException";
16
+ $fault = "client";
17
+ resourceId;
18
+ resourceType;
19
+ constructor(opts) {
20
+ super({
21
+ name: "ConflictException",
22
+ $fault: "client",
23
+ ...opts,
24
+ });
25
+ Object.setPrototypeOf(this, ConflictException.prototype);
26
+ this.resourceId = opts.resourceId;
27
+ this.resourceType = opts.resourceType;
28
+ }
29
+ }
30
+ export class InternalServerException extends __BaseException {
31
+ name = "InternalServerException";
32
+ $fault = "server";
33
+ $retryable = {};
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalServerException",
37
+ $fault: "server",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InternalServerException.prototype);
41
+ }
42
+ }
43
+ export class ResourceNotFoundException extends __BaseException {
44
+ name = "ResourceNotFoundException";
45
+ $fault = "client";
46
+ resourceId;
47
+ resourceType;
48
+ constructor(opts) {
49
+ super({
50
+ name: "ResourceNotFoundException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
55
+ this.resourceId = opts.resourceId;
56
+ this.resourceType = opts.resourceType;
57
+ }
58
+ }
59
+ export class ThrottlingException extends __BaseException {
60
+ name = "ThrottlingException";
61
+ $fault = "client";
62
+ $retryable = {
63
+ throttling: true,
64
+ };
65
+ serviceCode;
66
+ quotaCode;
67
+ retryAfterSeconds;
68
+ constructor(opts) {
69
+ super({
70
+ name: "ThrottlingException",
71
+ $fault: "client",
72
+ ...opts,
73
+ });
74
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
75
+ this.serviceCode = opts.serviceCode;
76
+ this.quotaCode = opts.quotaCode;
77
+ this.retryAfterSeconds = opts.retryAfterSeconds;
78
+ }
79
+ }
80
+ export class ValidationException extends __BaseException {
81
+ name = "ValidationException";
82
+ $fault = "client";
83
+ reason;
84
+ fieldList;
85
+ constructor(opts) {
86
+ super({
87
+ name: "ValidationException",
88
+ $fault: "client",
89
+ ...opts,
90
+ });
91
+ Object.setPrototypeOf(this, ValidationException.prototype);
92
+ this.reason = opts.reason;
93
+ this.fieldList = opts.fieldList;
94
+ }
95
+ }
96
+ export class ServiceQuotaExceededException extends __BaseException {
97
+ name = "ServiceQuotaExceededException";
98
+ $fault = "client";
99
+ resourceId;
100
+ resourceType;
101
+ serviceCode;
102
+ quotaCode;
103
+ constructor(opts) {
104
+ super({
105
+ name: "ServiceQuotaExceededException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
110
+ this.resourceId = opts.resourceId;
111
+ this.resourceType = opts.resourceType;
112
+ this.serviceCode = opts.serviceCode;
113
+ this.quotaCode = opts.quotaCode;
114
+ }
115
+ }
@@ -1,122 +1,3 @@
1
- import { NotificationsContactsServiceException as __BaseException } from "./NotificationsContactsServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "AccessDeniedException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
- }
13
- }
14
- export class ConflictException extends __BaseException {
15
- name = "ConflictException";
16
- $fault = "client";
17
- resourceId;
18
- resourceType;
19
- constructor(opts) {
20
- super({
21
- name: "ConflictException",
22
- $fault: "client",
23
- ...opts,
24
- });
25
- Object.setPrototypeOf(this, ConflictException.prototype);
26
- this.resourceId = opts.resourceId;
27
- this.resourceType = opts.resourceType;
28
- }
29
- }
30
- export class InternalServerException extends __BaseException {
31
- name = "InternalServerException";
32
- $fault = "server";
33
- $retryable = {};
34
- constructor(opts) {
35
- super({
36
- name: "InternalServerException",
37
- $fault: "server",
38
- ...opts,
39
- });
40
- Object.setPrototypeOf(this, InternalServerException.prototype);
41
- }
42
- }
43
- export class ResourceNotFoundException extends __BaseException {
44
- name = "ResourceNotFoundException";
45
- $fault = "client";
46
- resourceId;
47
- resourceType;
48
- constructor(opts) {
49
- super({
50
- name: "ResourceNotFoundException",
51
- $fault: "client",
52
- ...opts,
53
- });
54
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
55
- this.resourceId = opts.resourceId;
56
- this.resourceType = opts.resourceType;
57
- }
58
- }
59
- export class ThrottlingException extends __BaseException {
60
- name = "ThrottlingException";
61
- $fault = "client";
62
- $retryable = {
63
- throttling: true,
64
- };
65
- serviceCode;
66
- quotaCode;
67
- retryAfterSeconds;
68
- constructor(opts) {
69
- super({
70
- name: "ThrottlingException",
71
- $fault: "client",
72
- ...opts,
73
- });
74
- Object.setPrototypeOf(this, ThrottlingException.prototype);
75
- this.serviceCode = opts.serviceCode;
76
- this.quotaCode = opts.quotaCode;
77
- this.retryAfterSeconds = opts.retryAfterSeconds;
78
- }
79
- }
80
- export const ValidationExceptionReason = {
81
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
82
- OTHER: "other",
83
- };
84
- export class ValidationException extends __BaseException {
85
- name = "ValidationException";
86
- $fault = "client";
87
- reason;
88
- fieldList;
89
- constructor(opts) {
90
- super({
91
- name: "ValidationException",
92
- $fault: "client",
93
- ...opts,
94
- });
95
- Object.setPrototypeOf(this, ValidationException.prototype);
96
- this.reason = opts.reason;
97
- this.fieldList = opts.fieldList;
98
- }
99
- }
100
- export class ServiceQuotaExceededException extends __BaseException {
101
- name = "ServiceQuotaExceededException";
102
- $fault = "client";
103
- resourceId;
104
- resourceType;
105
- serviceCode;
106
- quotaCode;
107
- constructor(opts) {
108
- super({
109
- name: "ServiceQuotaExceededException",
110
- $fault: "client",
111
- ...opts,
112
- });
113
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
114
- this.resourceId = opts.resourceId;
115
- this.resourceType = opts.resourceType;
116
- this.serviceCode = opts.serviceCode;
117
- this.quotaCode = opts.quotaCode;
118
- }
119
- }
120
1
  export const EmailContactStatus = {
121
2
  ACTIVE: "active",
122
3
  INACTIVE: "inactive",
@@ -72,7 +72,7 @@ const _tK = "tagKeys";
72
72
  const _uT = "updateTime";
73
73
  const n0 = "com.amazonaws.notificationscontacts";
74
74
  import { TypeRegistry } from "@smithy/core/schema";
75
- import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
75
+ import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
76
76
  import { NotificationsContactsServiceException as __NotificationsContactsServiceException } from "../models/NotificationsContactsServiceException";
77
77
  export var EmailContactName = [0, n0, _ECN, 8, 0];
78
78
  export var SensitiveEmailContactAddress = [0, n0, _SECA, 8, 0];
@@ -10,5 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { NotificationsContactsExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export * from "./pagination";
13
- export * from "./models";
13
+ export * from "./models/enums";
14
+ export * from "./models/errors";
15
+ export type * from "./models/models_0";
14
16
  export { NotificationsContactsServiceException } from "./models/NotificationsContactsServiceException";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ValidationExceptionReason: {
6
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
7
+ readonly OTHER: "other";
8
+ };
9
+ /**
10
+ * @public
11
+ */
12
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
@@ -0,0 +1,157 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ValidationExceptionReason } from "./enums";
3
+ import { ValidationExceptionField } from "./models_0";
4
+ import { NotificationsContactsServiceException as __BaseException } from "./NotificationsContactsServiceException";
5
+ /**
6
+ * <p>You do not have sufficient access to perform this action.</p>
7
+ * @public
8
+ */
9
+ export declare class AccessDeniedException extends __BaseException {
10
+ readonly name: "AccessDeniedException";
11
+ readonly $fault: "client";
12
+ /**
13
+ * @internal
14
+ */
15
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
+ }
17
+ /**
18
+ * <p>Updating or deleting a resource can cause an inconsistent state.</p>
19
+ * @public
20
+ */
21
+ export declare class ConflictException extends __BaseException {
22
+ readonly name: "ConflictException";
23
+ readonly $fault: "client";
24
+ /**
25
+ * <p>The resource ID that prompted the conflict error.</p>
26
+ * @public
27
+ */
28
+ resourceId: string | undefined;
29
+ /**
30
+ * <p>The resource type that prompted the conflict error.</p>
31
+ * @public
32
+ */
33
+ resourceType: string | undefined;
34
+ /**
35
+ * @internal
36
+ */
37
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
38
+ }
39
+ /**
40
+ * <p>Unexpected error during processing of request.</p>
41
+ * @public
42
+ */
43
+ export declare class InternalServerException extends __BaseException {
44
+ readonly name: "InternalServerException";
45
+ readonly $fault: "server";
46
+ $retryable: {};
47
+ /**
48
+ * @internal
49
+ */
50
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
51
+ }
52
+ /**
53
+ * <p>Your request references a resource which does not exist. </p>
54
+ * @public
55
+ */
56
+ export declare class ResourceNotFoundException extends __BaseException {
57
+ readonly name: "ResourceNotFoundException";
58
+ readonly $fault: "client";
59
+ /**
60
+ * <p>The ID of the resource that wasn't found.</p>
61
+ * @public
62
+ */
63
+ resourceId: string | undefined;
64
+ /**
65
+ * <p>The type of resource that wasn't found.</p>
66
+ * @public
67
+ */
68
+ resourceType: string | undefined;
69
+ /**
70
+ * @internal
71
+ */
72
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
73
+ }
74
+ /**
75
+ * <p>The request was denied due to request throttling.</p>
76
+ * @public
77
+ */
78
+ export declare class ThrottlingException extends __BaseException {
79
+ readonly name: "ThrottlingException";
80
+ readonly $fault: "client";
81
+ $retryable: {
82
+ throttling: boolean;
83
+ };
84
+ /**
85
+ * <p>Identifies the service being throttled.</p>
86
+ * @public
87
+ */
88
+ serviceCode?: string | undefined;
89
+ /**
90
+ * <p>Identifies the quota that is being throttled.</p>
91
+ * @public
92
+ */
93
+ quotaCode?: string | undefined;
94
+ /**
95
+ * <p>The number of seconds a client should wait before retrying the request.</p>
96
+ * @public
97
+ */
98
+ retryAfterSeconds?: number | undefined;
99
+ /**
100
+ * @internal
101
+ */
102
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
103
+ }
104
+ /**
105
+ * <p>The input fails to satisfy the constraints specified by an AWS service.</p>
106
+ * @public
107
+ */
108
+ export declare class ValidationException extends __BaseException {
109
+ readonly name: "ValidationException";
110
+ readonly $fault: "client";
111
+ /**
112
+ * <p>The reason why your input is considered invalid.</p>
113
+ * @public
114
+ */
115
+ reason: ValidationExceptionReason | undefined;
116
+ /**
117
+ * <p>The list of input fields that are invalid.</p>
118
+ * @public
119
+ */
120
+ fieldList?: ValidationExceptionField[] | undefined;
121
+ /**
122
+ * @internal
123
+ */
124
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
125
+ }
126
+ /**
127
+ * <p> Request would cause a service quota to be exceeded.</p>
128
+ * @public
129
+ */
130
+ export declare class ServiceQuotaExceededException extends __BaseException {
131
+ readonly name: "ServiceQuotaExceededException";
132
+ readonly $fault: "client";
133
+ /**
134
+ * <p>The ID of the resource that exceeds the service quota.</p>
135
+ * @public
136
+ */
137
+ resourceId: string | undefined;
138
+ /**
139
+ * <p>The type of the resource that exceeds the service quota.</p>
140
+ * @public
141
+ */
142
+ resourceType: string | undefined;
143
+ /**
144
+ * <p>The code for the service quota exceeded in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
145
+ * @public
146
+ */
147
+ serviceCode: string | undefined;
148
+ /**
149
+ * <p>The code for the service quota in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
150
+ * @public
151
+ */
152
+ quotaCode: string | undefined;
153
+ /**
154
+ * @internal
155
+ */
156
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
157
+ }
@@ -1,17 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { NotificationsContactsServiceException as __BaseException } from "./NotificationsContactsServiceException";
3
- /**
4
- * <p>You do not have sufficient access to perform this action.</p>
5
- * @public
6
- */
7
- export declare class AccessDeniedException extends __BaseException {
8
- readonly name: "AccessDeniedException";
9
- readonly $fault: "client";
10
- /**
11
- * @internal
12
- */
13
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
- }
15
1
  /**
16
2
  * @public
17
3
  */
@@ -33,93 +19,6 @@ export interface ActivateEmailContactRequest {
33
19
  */
34
20
  export interface ActivateEmailContactResponse {
35
21
  }
36
- /**
37
- * <p>Updating or deleting a resource can cause an inconsistent state.</p>
38
- * @public
39
- */
40
- export declare class ConflictException extends __BaseException {
41
- readonly name: "ConflictException";
42
- readonly $fault: "client";
43
- /**
44
- * <p>The resource ID that prompted the conflict error.</p>
45
- * @public
46
- */
47
- resourceId: string | undefined;
48
- /**
49
- * <p>The resource type that prompted the conflict error.</p>
50
- * @public
51
- */
52
- resourceType: string | undefined;
53
- /**
54
- * @internal
55
- */
56
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
57
- }
58
- /**
59
- * <p>Unexpected error during processing of request.</p>
60
- * @public
61
- */
62
- export declare class InternalServerException extends __BaseException {
63
- readonly name: "InternalServerException";
64
- readonly $fault: "server";
65
- $retryable: {};
66
- /**
67
- * @internal
68
- */
69
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
70
- }
71
- /**
72
- * <p>Your request references a resource which does not exist. </p>
73
- * @public
74
- */
75
- export declare class ResourceNotFoundException extends __BaseException {
76
- readonly name: "ResourceNotFoundException";
77
- readonly $fault: "client";
78
- /**
79
- * <p>The ID of the resource that wasn't found.</p>
80
- * @public
81
- */
82
- resourceId: string | undefined;
83
- /**
84
- * <p>The type of resource that wasn't found.</p>
85
- * @public
86
- */
87
- resourceType: string | undefined;
88
- /**
89
- * @internal
90
- */
91
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
92
- }
93
- /**
94
- * <p>The request was denied due to request throttling.</p>
95
- * @public
96
- */
97
- export declare class ThrottlingException extends __BaseException {
98
- readonly name: "ThrottlingException";
99
- readonly $fault: "client";
100
- $retryable: {
101
- throttling: boolean;
102
- };
103
- /**
104
- * <p>Identifies the service being throttled.</p>
105
- * @public
106
- */
107
- serviceCode?: string | undefined;
108
- /**
109
- * <p>Identifies the quota that is being throttled.</p>
110
- * @public
111
- */
112
- quotaCode?: string | undefined;
113
- /**
114
- * <p>The number of seconds a client should wait before retrying the request.</p>
115
- * @public
116
- */
117
- retryAfterSeconds?: number | undefined;
118
- /**
119
- * @internal
120
- */
121
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
122
- }
123
22
  /**
124
23
  * <p>Stores information about a field passed inside a request that resulted in an exception.</p>
125
24
  * @public
@@ -136,40 +35,6 @@ export interface ValidationExceptionField {
136
35
  */
137
36
  message: string | undefined;
138
37
  }
139
- /**
140
- * @public
141
- * @enum
142
- */
143
- export declare const ValidationExceptionReason: {
144
- readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
145
- readonly OTHER: "other";
146
- };
147
- /**
148
- * @public
149
- */
150
- export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
151
- /**
152
- * <p>The input fails to satisfy the constraints specified by an AWS service.</p>
153
- * @public
154
- */
155
- export declare class ValidationException extends __BaseException {
156
- readonly name: "ValidationException";
157
- readonly $fault: "client";
158
- /**
159
- * <p>The reason why your input is considered invalid.</p>
160
- * @public
161
- */
162
- reason: ValidationExceptionReason | undefined;
163
- /**
164
- * <p>The list of input fields that are invalid.</p>
165
- * @public
166
- */
167
- fieldList?: ValidationExceptionField[] | undefined;
168
- /**
169
- * @internal
170
- */
171
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
172
- }
173
38
  /**
174
39
  * @public
175
40
  */
@@ -203,38 +68,6 @@ export interface CreateEmailContactResponse {
203
68
  */
204
69
  arn: string | undefined;
205
70
  }
206
- /**
207
- * <p> Request would cause a service quota to be exceeded.</p>
208
- * @public
209
- */
210
- export declare class ServiceQuotaExceededException extends __BaseException {
211
- readonly name: "ServiceQuotaExceededException";
212
- readonly $fault: "client";
213
- /**
214
- * <p>The ID of the resource that exceeds the service quota.</p>
215
- * @public
216
- */
217
- resourceId: string | undefined;
218
- /**
219
- * <p>The type of the resource that exceeds the service quota.</p>
220
- * @public
221
- */
222
- resourceType: string | undefined;
223
- /**
224
- * <p>The code for the service quota exceeded in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
225
- * @public
226
- */
227
- serviceCode: string | undefined;
228
- /**
229
- * <p>The code for the service quota in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
230
- * @public
231
- */
232
- quotaCode: string | undefined;
233
- /**
234
- * @internal
235
- */
236
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
237
- }
238
71
  /**
239
72
  * @public
240
73
  */
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { NotificationsContactsExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
9
11
  export { NotificationsContactsServiceException } from "./models/NotificationsContactsServiceException";
@@ -0,0 +1,6 @@
1
+ export declare const ValidationExceptionReason: {
2
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
3
+ readonly OTHER: "other";
4
+ };
5
+ export type ValidationExceptionReason =
6
+ (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
@@ -0,0 +1,68 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ValidationExceptionReason } from "./enums";
3
+ import { ValidationExceptionField } from "./models_0";
4
+ import { NotificationsContactsServiceException as __BaseException } from "./NotificationsContactsServiceException";
5
+ export declare class AccessDeniedException extends __BaseException {
6
+ readonly name: "AccessDeniedException";
7
+ readonly $fault: "client";
8
+ constructor(
9
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
10
+ );
11
+ }
12
+ export declare class ConflictException extends __BaseException {
13
+ readonly name: "ConflictException";
14
+ readonly $fault: "client";
15
+ resourceId: string | undefined;
16
+ resourceType: string | undefined;
17
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
18
+ }
19
+ export declare class InternalServerException extends __BaseException {
20
+ readonly name: "InternalServerException";
21
+ readonly $fault: "server";
22
+ $retryable: {};
23
+ constructor(
24
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
25
+ );
26
+ }
27
+ export declare class ResourceNotFoundException extends __BaseException {
28
+ readonly name: "ResourceNotFoundException";
29
+ readonly $fault: "client";
30
+ resourceId: string | undefined;
31
+ resourceType: string | undefined;
32
+ constructor(
33
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
34
+ );
35
+ }
36
+ export declare class ThrottlingException extends __BaseException {
37
+ readonly name: "ThrottlingException";
38
+ readonly $fault: "client";
39
+ $retryable: {
40
+ throttling: boolean;
41
+ };
42
+ serviceCode?: string | undefined;
43
+ quotaCode?: string | undefined;
44
+ retryAfterSeconds?: number | undefined;
45
+ constructor(
46
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
47
+ );
48
+ }
49
+ export declare class ValidationException extends __BaseException {
50
+ readonly name: "ValidationException";
51
+ readonly $fault: "client";
52
+ reason: ValidationExceptionReason | undefined;
53
+ fieldList?: ValidationExceptionField[] | undefined;
54
+ constructor(
55
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
56
+ );
57
+ }
58
+ export declare class ServiceQuotaExceededException extends __BaseException {
59
+ readonly name: "ServiceQuotaExceededException";
60
+ readonly $fault: "client";
61
+ resourceId: string | undefined;
62
+ resourceType: string | undefined;
63
+ serviceCode: string | undefined;
64
+ quotaCode: string | undefined;
65
+ constructor(
66
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
67
+ );
68
+ }
@@ -1,73 +1,12 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { NotificationsContactsServiceException as __BaseException } from "./NotificationsContactsServiceException";
3
- export declare class AccessDeniedException extends __BaseException {
4
- readonly name: "AccessDeniedException";
5
- readonly $fault: "client";
6
- constructor(
7
- opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
- );
9
- }
10
1
  export interface ActivateEmailContactRequest {
11
2
  arn: string | undefined;
12
3
  code: string | undefined;
13
4
  }
14
5
  export interface ActivateEmailContactResponse {}
15
- export declare class ConflictException extends __BaseException {
16
- readonly name: "ConflictException";
17
- readonly $fault: "client";
18
- resourceId: string | undefined;
19
- resourceType: string | undefined;
20
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
21
- }
22
- export declare class InternalServerException extends __BaseException {
23
- readonly name: "InternalServerException";
24
- readonly $fault: "server";
25
- $retryable: {};
26
- constructor(
27
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
28
- );
29
- }
30
- export declare class ResourceNotFoundException extends __BaseException {
31
- readonly name: "ResourceNotFoundException";
32
- readonly $fault: "client";
33
- resourceId: string | undefined;
34
- resourceType: string | undefined;
35
- constructor(
36
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
37
- );
38
- }
39
- export declare class ThrottlingException extends __BaseException {
40
- readonly name: "ThrottlingException";
41
- readonly $fault: "client";
42
- $retryable: {
43
- throttling: boolean;
44
- };
45
- serviceCode?: string | undefined;
46
- quotaCode?: string | undefined;
47
- retryAfterSeconds?: number | undefined;
48
- constructor(
49
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
50
- );
51
- }
52
6
  export interface ValidationExceptionField {
53
7
  name: string | undefined;
54
8
  message: string | undefined;
55
9
  }
56
- export declare const ValidationExceptionReason: {
57
- readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
58
- readonly OTHER: "other";
59
- };
60
- export type ValidationExceptionReason =
61
- (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
62
- export declare class ValidationException extends __BaseException {
63
- readonly name: "ValidationException";
64
- readonly $fault: "client";
65
- reason: ValidationExceptionReason | undefined;
66
- fieldList?: ValidationExceptionField[] | undefined;
67
- constructor(
68
- opts: __ExceptionOptionType<ValidationException, __BaseException>
69
- );
70
- }
71
10
  export interface CreateEmailContactRequest {
72
11
  name: string | undefined;
73
12
  emailAddress: string | undefined;
@@ -76,17 +15,6 @@ export interface CreateEmailContactRequest {
76
15
  export interface CreateEmailContactResponse {
77
16
  arn: string | undefined;
78
17
  }
79
- export declare class ServiceQuotaExceededException extends __BaseException {
80
- readonly name: "ServiceQuotaExceededException";
81
- readonly $fault: "client";
82
- resourceId: string | undefined;
83
- resourceType: string | undefined;
84
- serviceCode: string | undefined;
85
- quotaCode: string | undefined;
86
- constructor(
87
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
88
- );
89
- }
90
18
  export interface DeleteEmailContactRequest {
91
19
  arn: string | undefined;
92
20
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-notificationscontacts",
3
3
  "description": "AWS SDK for JavaScript Notificationscontacts Client for Node.js, Browser and React Native",
4
- "version": "3.933.0",
4
+ "version": "3.935.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-notificationscontacts",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.932.0",
24
- "@aws-sdk/credential-provider-node": "3.933.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.932.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.932.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";