@aws-sdk/client-notificationscontacts 3.1137.0 → 3.1138.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
@@ -67,7 +67,7 @@ const commonParams = {
67
67
  Region: { type: "builtInParams", name: "region" },
68
68
  };
69
69
 
70
- var version = "3.1136.0";
70
+ var version = "3.1137.0";
71
71
  var packageInfo = {
72
72
  version: version};
73
73
 
@@ -307,10 +307,10 @@ const _t = "tags";
307
307
  const _tK = "tagKeys";
308
308
  const _uT = "updateTime";
309
309
  const n0 = "com.amazonaws.notificationscontacts";
310
- const _s_registry = TypeRegistry.for(_s);
310
+ const _s_registry = new TypeRegistry(_s);
311
311
  var NotificationsContactsServiceException$ = [-3, _s, "NotificationsContactsServiceException", 0, [], []];
312
312
  _s_registry.registerError(NotificationsContactsServiceException$, NotificationsContactsServiceException);
313
- const n0_registry = TypeRegistry.for(n0);
313
+ const n0_registry = new TypeRegistry(n0);
314
314
  var AccessDeniedException$ = [-3, n0, _ADE,
315
315
  { [_e]: _c, [_hE]: 403 },
316
316
  [_m],
@@ -74,10 +74,10 @@ const n0 = "com.amazonaws.notificationscontacts";
74
74
  import { TypeRegistry } from "@smithy/core/schema";
75
75
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
76
76
  import { NotificationsContactsServiceException } from "../models/NotificationsContactsServiceException";
77
- const _s_registry = TypeRegistry.for(_s);
77
+ const _s_registry = new TypeRegistry(_s);
78
78
  export var NotificationsContactsServiceException$ = [-3, _s, "NotificationsContactsServiceException", 0, [], []];
79
79
  _s_registry.registerError(NotificationsContactsServiceException$, NotificationsContactsServiceException);
80
- const n0_registry = TypeRegistry.for(n0);
80
+ const n0_registry = new TypeRegistry(n0);
81
81
  export var AccessDeniedException$ = [-3, n0, _ADE,
82
82
  { [_e]: _c, [_hE]: 403 },
83
83
  [_m],
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type ActivateEmailContactCommandInput, type ActivateEmailContactCommandOutput } from "./commands/ActivateEmailContactCommand";
3
3
  import { type CreateEmailContactCommandInput, type CreateEmailContactCommandOutput } from "./commands/CreateEmailContactCommand";
4
4
  import { type DeleteEmailContactCommandInput, type DeleteEmailContactCommandOutput } from "./commands/DeleteEmailContactCommand";
@@ -9,62 +9,68 @@ import { type SendActivationCodeCommandInput, type SendActivationCodeCommandOutp
9
9
  import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
10
10
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
11
11
  import { NotificationsContactsClient } from "./NotificationsContactsClient";
12
+ /**
13
+ * @public
14
+ */
15
+ export interface NotificationsContactsRequestOptions extends __HttpHandlerOptions {
16
+ metricsRecorder?: __MetricsRecorder<unknown>;
17
+ }
12
18
  export interface NotificationsContacts {
13
19
  /**
14
20
  * @see {@link ActivateEmailContactCommand}
15
21
  */
16
- activateEmailContact(args: ActivateEmailContactCommandInput, options?: __HttpHandlerOptions): Promise<ActivateEmailContactCommandOutput>;
22
+ activateEmailContact(args: ActivateEmailContactCommandInput, options?: NotificationsContactsRequestOptions): Promise<ActivateEmailContactCommandOutput>;
17
23
  activateEmailContact(args: ActivateEmailContactCommandInput, cb: (err: any, data?: ActivateEmailContactCommandOutput) => void): void;
18
- activateEmailContact(args: ActivateEmailContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ActivateEmailContactCommandOutput) => void): void;
24
+ activateEmailContact(args: ActivateEmailContactCommandInput, options: NotificationsContactsRequestOptions, cb: (err: any, data?: ActivateEmailContactCommandOutput) => void): void;
19
25
  /**
20
26
  * @see {@link CreateEmailContactCommand}
21
27
  */
22
- createEmailContact(args: CreateEmailContactCommandInput, options?: __HttpHandlerOptions): Promise<CreateEmailContactCommandOutput>;
28
+ createEmailContact(args: CreateEmailContactCommandInput, options?: NotificationsContactsRequestOptions): Promise<CreateEmailContactCommandOutput>;
23
29
  createEmailContact(args: CreateEmailContactCommandInput, cb: (err: any, data?: CreateEmailContactCommandOutput) => void): void;
24
- createEmailContact(args: CreateEmailContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEmailContactCommandOutput) => void): void;
30
+ createEmailContact(args: CreateEmailContactCommandInput, options: NotificationsContactsRequestOptions, cb: (err: any, data?: CreateEmailContactCommandOutput) => void): void;
25
31
  /**
26
32
  * @see {@link DeleteEmailContactCommand}
27
33
  */
28
- deleteEmailContact(args: DeleteEmailContactCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEmailContactCommandOutput>;
34
+ deleteEmailContact(args: DeleteEmailContactCommandInput, options?: NotificationsContactsRequestOptions): Promise<DeleteEmailContactCommandOutput>;
29
35
  deleteEmailContact(args: DeleteEmailContactCommandInput, cb: (err: any, data?: DeleteEmailContactCommandOutput) => void): void;
30
- deleteEmailContact(args: DeleteEmailContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEmailContactCommandOutput) => void): void;
36
+ deleteEmailContact(args: DeleteEmailContactCommandInput, options: NotificationsContactsRequestOptions, cb: (err: any, data?: DeleteEmailContactCommandOutput) => void): void;
31
37
  /**
32
38
  * @see {@link GetEmailContactCommand}
33
39
  */
34
- getEmailContact(args: GetEmailContactCommandInput, options?: __HttpHandlerOptions): Promise<GetEmailContactCommandOutput>;
40
+ getEmailContact(args: GetEmailContactCommandInput, options?: NotificationsContactsRequestOptions): Promise<GetEmailContactCommandOutput>;
35
41
  getEmailContact(args: GetEmailContactCommandInput, cb: (err: any, data?: GetEmailContactCommandOutput) => void): void;
36
- getEmailContact(args: GetEmailContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEmailContactCommandOutput) => void): void;
42
+ getEmailContact(args: GetEmailContactCommandInput, options: NotificationsContactsRequestOptions, cb: (err: any, data?: GetEmailContactCommandOutput) => void): void;
37
43
  /**
38
44
  * @see {@link ListEmailContactsCommand}
39
45
  */
40
46
  listEmailContacts(): Promise<ListEmailContactsCommandOutput>;
41
- listEmailContacts(args: ListEmailContactsCommandInput, options?: __HttpHandlerOptions): Promise<ListEmailContactsCommandOutput>;
47
+ listEmailContacts(args: ListEmailContactsCommandInput, options?: NotificationsContactsRequestOptions): Promise<ListEmailContactsCommandOutput>;
42
48
  listEmailContacts(args: ListEmailContactsCommandInput, cb: (err: any, data?: ListEmailContactsCommandOutput) => void): void;
43
- listEmailContacts(args: ListEmailContactsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEmailContactsCommandOutput) => void): void;
49
+ listEmailContacts(args: ListEmailContactsCommandInput, options: NotificationsContactsRequestOptions, cb: (err: any, data?: ListEmailContactsCommandOutput) => void): void;
44
50
  /**
45
51
  * @see {@link ListTagsForResourceCommand}
46
52
  */
47
- listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
53
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: NotificationsContactsRequestOptions): Promise<ListTagsForResourceCommandOutput>;
48
54
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
49
- listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
55
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: NotificationsContactsRequestOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
50
56
  /**
51
57
  * @see {@link SendActivationCodeCommand}
52
58
  */
53
- sendActivationCode(args: SendActivationCodeCommandInput, options?: __HttpHandlerOptions): Promise<SendActivationCodeCommandOutput>;
59
+ sendActivationCode(args: SendActivationCodeCommandInput, options?: NotificationsContactsRequestOptions): Promise<SendActivationCodeCommandOutput>;
54
60
  sendActivationCode(args: SendActivationCodeCommandInput, cb: (err: any, data?: SendActivationCodeCommandOutput) => void): void;
55
- sendActivationCode(args: SendActivationCodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendActivationCodeCommandOutput) => void): void;
61
+ sendActivationCode(args: SendActivationCodeCommandInput, options: NotificationsContactsRequestOptions, cb: (err: any, data?: SendActivationCodeCommandOutput) => void): void;
56
62
  /**
57
63
  * @see {@link TagResourceCommand}
58
64
  */
59
- tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
65
+ tagResource(args: TagResourceCommandInput, options?: NotificationsContactsRequestOptions): Promise<TagResourceCommandOutput>;
60
66
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
61
- tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
67
+ tagResource(args: TagResourceCommandInput, options: NotificationsContactsRequestOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
62
68
  /**
63
69
  * @see {@link UntagResourceCommand}
64
70
  */
65
- untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
71
+ untagResource(args: UntagResourceCommandInput, options?: NotificationsContactsRequestOptions): Promise<UntagResourceCommandOutput>;
66
72
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
67
- untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
73
+ untagResource(args: UntagResourceCommandInput, options: NotificationsContactsRequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
68
74
  /**
69
75
  * @see {@link ListEmailContactsCommand}
70
76
  * @param args - command input.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
3
4
  PaginationConfiguration,
4
5
  Paginator,
5
6
  } from "@smithy/types";
@@ -37,10 +38,13 @@ import {
37
38
  UntagResourceCommandOutput,
38
39
  } from "./commands/UntagResourceCommand";
39
40
  import { NotificationsContactsClient } from "./NotificationsContactsClient";
41
+ export interface NotificationsContactsRequestOptions extends __HttpHandlerOptions {
42
+ metricsRecorder?: __MetricsRecorder<unknown>;
43
+ }
40
44
  export interface NotificationsContacts {
41
45
  activateEmailContact(
42
46
  args: ActivateEmailContactCommandInput,
43
- options?: __HttpHandlerOptions,
47
+ options?: NotificationsContactsRequestOptions,
44
48
  ): Promise<ActivateEmailContactCommandOutput>;
45
49
  activateEmailContact(
46
50
  args: ActivateEmailContactCommandInput,
@@ -48,12 +52,12 @@ export interface NotificationsContacts {
48
52
  ): void;
49
53
  activateEmailContact(
50
54
  args: ActivateEmailContactCommandInput,
51
- options: __HttpHandlerOptions,
55
+ options: NotificationsContactsRequestOptions,
52
56
  cb: (err: any, data?: ActivateEmailContactCommandOutput) => void,
53
57
  ): void;
54
58
  createEmailContact(
55
59
  args: CreateEmailContactCommandInput,
56
- options?: __HttpHandlerOptions,
60
+ options?: NotificationsContactsRequestOptions,
57
61
  ): Promise<CreateEmailContactCommandOutput>;
58
62
  createEmailContact(
59
63
  args: CreateEmailContactCommandInput,
@@ -61,12 +65,12 @@ export interface NotificationsContacts {
61
65
  ): void;
62
66
  createEmailContact(
63
67
  args: CreateEmailContactCommandInput,
64
- options: __HttpHandlerOptions,
68
+ options: NotificationsContactsRequestOptions,
65
69
  cb: (err: any, data?: CreateEmailContactCommandOutput) => void,
66
70
  ): void;
67
71
  deleteEmailContact(
68
72
  args: DeleteEmailContactCommandInput,
69
- options?: __HttpHandlerOptions,
73
+ options?: NotificationsContactsRequestOptions,
70
74
  ): Promise<DeleteEmailContactCommandOutput>;
71
75
  deleteEmailContact(
72
76
  args: DeleteEmailContactCommandInput,
@@ -74,12 +78,12 @@ export interface NotificationsContacts {
74
78
  ): void;
75
79
  deleteEmailContact(
76
80
  args: DeleteEmailContactCommandInput,
77
- options: __HttpHandlerOptions,
81
+ options: NotificationsContactsRequestOptions,
78
82
  cb: (err: any, data?: DeleteEmailContactCommandOutput) => void,
79
83
  ): void;
80
84
  getEmailContact(
81
85
  args: GetEmailContactCommandInput,
82
- options?: __HttpHandlerOptions,
86
+ options?: NotificationsContactsRequestOptions,
83
87
  ): Promise<GetEmailContactCommandOutput>;
84
88
  getEmailContact(
85
89
  args: GetEmailContactCommandInput,
@@ -87,13 +91,13 @@ export interface NotificationsContacts {
87
91
  ): void;
88
92
  getEmailContact(
89
93
  args: GetEmailContactCommandInput,
90
- options: __HttpHandlerOptions,
94
+ options: NotificationsContactsRequestOptions,
91
95
  cb: (err: any, data?: GetEmailContactCommandOutput) => void,
92
96
  ): void;
93
97
  listEmailContacts(): Promise<ListEmailContactsCommandOutput>;
94
98
  listEmailContacts(
95
99
  args: ListEmailContactsCommandInput,
96
- options?: __HttpHandlerOptions,
100
+ options?: NotificationsContactsRequestOptions,
97
101
  ): Promise<ListEmailContactsCommandOutput>;
98
102
  listEmailContacts(
99
103
  args: ListEmailContactsCommandInput,
@@ -101,12 +105,12 @@ export interface NotificationsContacts {
101
105
  ): void;
102
106
  listEmailContacts(
103
107
  args: ListEmailContactsCommandInput,
104
- options: __HttpHandlerOptions,
108
+ options: NotificationsContactsRequestOptions,
105
109
  cb: (err: any, data?: ListEmailContactsCommandOutput) => void,
106
110
  ): void;
107
111
  listTagsForResource(
108
112
  args: ListTagsForResourceCommandInput,
109
- options?: __HttpHandlerOptions,
113
+ options?: NotificationsContactsRequestOptions,
110
114
  ): Promise<ListTagsForResourceCommandOutput>;
111
115
  listTagsForResource(
112
116
  args: ListTagsForResourceCommandInput,
@@ -114,12 +118,12 @@ export interface NotificationsContacts {
114
118
  ): void;
115
119
  listTagsForResource(
116
120
  args: ListTagsForResourceCommandInput,
117
- options: __HttpHandlerOptions,
121
+ options: NotificationsContactsRequestOptions,
118
122
  cb: (err: any, data?: ListTagsForResourceCommandOutput) => void,
119
123
  ): void;
120
124
  sendActivationCode(
121
125
  args: SendActivationCodeCommandInput,
122
- options?: __HttpHandlerOptions,
126
+ options?: NotificationsContactsRequestOptions,
123
127
  ): Promise<SendActivationCodeCommandOutput>;
124
128
  sendActivationCode(
125
129
  args: SendActivationCodeCommandInput,
@@ -127,12 +131,12 @@ export interface NotificationsContacts {
127
131
  ): void;
128
132
  sendActivationCode(
129
133
  args: SendActivationCodeCommandInput,
130
- options: __HttpHandlerOptions,
134
+ options: NotificationsContactsRequestOptions,
131
135
  cb: (err: any, data?: SendActivationCodeCommandOutput) => void,
132
136
  ): void;
133
137
  tagResource(
134
138
  args: TagResourceCommandInput,
135
- options?: __HttpHandlerOptions,
139
+ options?: NotificationsContactsRequestOptions,
136
140
  ): Promise<TagResourceCommandOutput>;
137
141
  tagResource(
138
142
  args: TagResourceCommandInput,
@@ -140,12 +144,12 @@ export interface NotificationsContacts {
140
144
  ): void;
141
145
  tagResource(
142
146
  args: TagResourceCommandInput,
143
- options: __HttpHandlerOptions,
147
+ options: NotificationsContactsRequestOptions,
144
148
  cb: (err: any, data?: TagResourceCommandOutput) => void,
145
149
  ): void;
146
150
  untagResource(
147
151
  args: UntagResourceCommandInput,
148
- options?: __HttpHandlerOptions,
152
+ options?: NotificationsContactsRequestOptions,
149
153
  ): Promise<UntagResourceCommandOutput>;
150
154
  untagResource(
151
155
  args: UntagResourceCommandInput,
@@ -153,7 +157,7 @@ export interface NotificationsContacts {
153
157
  ): void;
154
158
  untagResource(
155
159
  args: UntagResourceCommandInput,
156
- options: __HttpHandlerOptions,
160
+ options: NotificationsContactsRequestOptions,
157
161
  cb: (err: any, data?: UntagResourceCommandOutput) => void,
158
162
  ): void;
159
163
  paginateListEmailContacts(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-notificationscontacts",
3
- "version": "3.1137.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Notificationscontacts Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-notificationscontacts",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {