@aws-sdk/client-codestar-notifications 3.934.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
@@ -159,14 +159,6 @@ let ConfigurationException$1 = class ConfigurationException extends CodestarNoti
159
159
  this.Message = opts.Message;
160
160
  }
161
161
  };
162
- const DetailType = {
163
- BASIC: "BASIC",
164
- FULL: "FULL",
165
- };
166
- const NotificationRuleStatus = {
167
- DISABLED: "DISABLED",
168
- ENABLED: "ENABLED",
169
- };
170
162
  let LimitExceededException$1 = class LimitExceededException extends CodestarNotificationsServiceException$1 {
171
163
  name = "LimitExceededException";
172
164
  $fault = "client";
@@ -209,13 +201,6 @@ let ValidationException$1 = class ValidationException extends CodestarNotificati
209
201
  this.Message = opts.Message;
210
202
  }
211
203
  };
212
- const TargetStatus = {
213
- ACTIVE: "ACTIVE",
214
- DEACTIVATED: "DEACTIVATED",
215
- INACTIVE: "INACTIVE",
216
- PENDING: "PENDING",
217
- UNREACHABLE: "UNREACHABLE",
218
- };
219
204
  let ResourceNotFoundException$1 = class ResourceNotFoundException extends CodestarNotificationsServiceException$1 {
220
205
  name = "ResourceNotFoundException";
221
206
  $fault = "client";
@@ -244,21 +229,6 @@ let InvalidNextTokenException$1 = class InvalidNextTokenException extends Codest
244
229
  this.Message = opts.Message;
245
230
  }
246
231
  };
247
- const ListEventTypesFilterName = {
248
- RESOURCE_TYPE: "RESOURCE_TYPE",
249
- SERVICE_NAME: "SERVICE_NAME",
250
- };
251
- const ListNotificationRulesFilterName = {
252
- CREATED_BY: "CREATED_BY",
253
- EVENT_TYPE_ID: "EVENT_TYPE_ID",
254
- RESOURCE: "RESOURCE",
255
- TARGET_ADDRESS: "TARGET_ADDRESS",
256
- };
257
- const ListTargetsFilterName = {
258
- TARGET_ADDRESS: "TARGET_ADDRESS",
259
- TARGET_STATUS: "TARGET_STATUS",
260
- TARGET_TYPE: "TARGET_TYPE",
261
- };
262
232
 
263
233
  const _A = "Arn";
264
234
  const _ADE = "AccessDeniedException";
@@ -881,6 +851,37 @@ const paginateListNotificationRules = core.createPaginator(CodestarNotifications
881
851
 
882
852
  const paginateListTargets = core.createPaginator(CodestarNotificationsClient, ListTargetsCommand, "NextToken", "NextToken", "MaxResults");
883
853
 
854
+ const DetailType = {
855
+ BASIC: "BASIC",
856
+ FULL: "FULL",
857
+ };
858
+ const NotificationRuleStatus = {
859
+ DISABLED: "DISABLED",
860
+ ENABLED: "ENABLED",
861
+ };
862
+ const TargetStatus = {
863
+ ACTIVE: "ACTIVE",
864
+ DEACTIVATED: "DEACTIVATED",
865
+ INACTIVE: "INACTIVE",
866
+ PENDING: "PENDING",
867
+ UNREACHABLE: "UNREACHABLE",
868
+ };
869
+ const ListEventTypesFilterName = {
870
+ RESOURCE_TYPE: "RESOURCE_TYPE",
871
+ SERVICE_NAME: "SERVICE_NAME",
872
+ };
873
+ const ListNotificationRulesFilterName = {
874
+ CREATED_BY: "CREATED_BY",
875
+ EVENT_TYPE_ID: "EVENT_TYPE_ID",
876
+ RESOURCE: "RESOURCE",
877
+ TARGET_ADDRESS: "TARGET_ADDRESS",
878
+ };
879
+ const ListTargetsFilterName = {
880
+ TARGET_ADDRESS: "TARGET_ADDRESS",
881
+ TARGET_STATUS: "TARGET_STATUS",
882
+ TARGET_TYPE: "TARGET_TYPE",
883
+ };
884
+
884
885
  Object.defineProperty(exports, "$Command", {
885
886
  enumerable: true,
886
887
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./CodestarNotificationsClient";
2
2
  export * from "./CodestarNotifications";
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 { CodestarNotificationsServiceException } from "./models/CodestarNotificationsServiceException";
@@ -0,0 +1,30 @@
1
+ export const DetailType = {
2
+ BASIC: "BASIC",
3
+ FULL: "FULL",
4
+ };
5
+ export const NotificationRuleStatus = {
6
+ DISABLED: "DISABLED",
7
+ ENABLED: "ENABLED",
8
+ };
9
+ export const TargetStatus = {
10
+ ACTIVE: "ACTIVE",
11
+ DEACTIVATED: "DEACTIVATED",
12
+ INACTIVE: "INACTIVE",
13
+ PENDING: "PENDING",
14
+ UNREACHABLE: "UNREACHABLE",
15
+ };
16
+ export const ListEventTypesFilterName = {
17
+ RESOURCE_TYPE: "RESOURCE_TYPE",
18
+ SERVICE_NAME: "SERVICE_NAME",
19
+ };
20
+ export const ListNotificationRulesFilterName = {
21
+ CREATED_BY: "CREATED_BY",
22
+ EVENT_TYPE_ID: "EVENT_TYPE_ID",
23
+ RESOURCE: "RESOURCE",
24
+ TARGET_ADDRESS: "TARGET_ADDRESS",
25
+ };
26
+ export const ListTargetsFilterName = {
27
+ TARGET_ADDRESS: "TARGET_ADDRESS",
28
+ TARGET_STATUS: "TARGET_STATUS",
29
+ TARGET_TYPE: "TARGET_TYPE",
30
+ };
@@ -0,0 +1,113 @@
1
+ import { CodestarNotificationsServiceException as __BaseException } from "./CodestarNotificationsServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ Message;
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
+ this.Message = opts.Message;
14
+ }
15
+ }
16
+ export class ConcurrentModificationException extends __BaseException {
17
+ name = "ConcurrentModificationException";
18
+ $fault = "client";
19
+ Message;
20
+ constructor(opts) {
21
+ super({
22
+ name: "ConcurrentModificationException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
27
+ this.Message = opts.Message;
28
+ }
29
+ }
30
+ export class ConfigurationException extends __BaseException {
31
+ name = "ConfigurationException";
32
+ $fault = "client";
33
+ Message;
34
+ constructor(opts) {
35
+ super({
36
+ name: "ConfigurationException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, ConfigurationException.prototype);
41
+ this.Message = opts.Message;
42
+ }
43
+ }
44
+ export class LimitExceededException extends __BaseException {
45
+ name = "LimitExceededException";
46
+ $fault = "client";
47
+ Message;
48
+ constructor(opts) {
49
+ super({
50
+ name: "LimitExceededException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
55
+ this.Message = opts.Message;
56
+ }
57
+ }
58
+ export class ResourceAlreadyExistsException extends __BaseException {
59
+ name = "ResourceAlreadyExistsException";
60
+ $fault = "client";
61
+ Message;
62
+ constructor(opts) {
63
+ super({
64
+ name: "ResourceAlreadyExistsException",
65
+ $fault: "client",
66
+ ...opts,
67
+ });
68
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
69
+ this.Message = opts.Message;
70
+ }
71
+ }
72
+ export class ValidationException extends __BaseException {
73
+ name = "ValidationException";
74
+ $fault = "client";
75
+ Message;
76
+ constructor(opts) {
77
+ super({
78
+ name: "ValidationException",
79
+ $fault: "client",
80
+ ...opts,
81
+ });
82
+ Object.setPrototypeOf(this, ValidationException.prototype);
83
+ this.Message = opts.Message;
84
+ }
85
+ }
86
+ export class ResourceNotFoundException extends __BaseException {
87
+ name = "ResourceNotFoundException";
88
+ $fault = "client";
89
+ Message;
90
+ constructor(opts) {
91
+ super({
92
+ name: "ResourceNotFoundException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
97
+ this.Message = opts.Message;
98
+ }
99
+ }
100
+ export class InvalidNextTokenException extends __BaseException {
101
+ name = "InvalidNextTokenException";
102
+ $fault = "client";
103
+ Message;
104
+ constructor(opts) {
105
+ super({
106
+ name: "InvalidNextTokenException",
107
+ $fault: "client",
108
+ ...opts,
109
+ });
110
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
111
+ this.Message = opts.Message;
112
+ }
113
+ }
@@ -1,143 +1 @@
1
- import { CodestarNotificationsServiceException as __BaseException } from "./CodestarNotificationsServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- Message;
6
- constructor(opts) {
7
- super({
8
- name: "AccessDeniedException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
- this.Message = opts.Message;
14
- }
15
- }
16
- export class ConcurrentModificationException extends __BaseException {
17
- name = "ConcurrentModificationException";
18
- $fault = "client";
19
- Message;
20
- constructor(opts) {
21
- super({
22
- name: "ConcurrentModificationException",
23
- $fault: "client",
24
- ...opts,
25
- });
26
- Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
27
- this.Message = opts.Message;
28
- }
29
- }
30
- export class ConfigurationException extends __BaseException {
31
- name = "ConfigurationException";
32
- $fault = "client";
33
- Message;
34
- constructor(opts) {
35
- super({
36
- name: "ConfigurationException",
37
- $fault: "client",
38
- ...opts,
39
- });
40
- Object.setPrototypeOf(this, ConfigurationException.prototype);
41
- this.Message = opts.Message;
42
- }
43
- }
44
- export const DetailType = {
45
- BASIC: "BASIC",
46
- FULL: "FULL",
47
- };
48
- export const NotificationRuleStatus = {
49
- DISABLED: "DISABLED",
50
- ENABLED: "ENABLED",
51
- };
52
- export class LimitExceededException extends __BaseException {
53
- name = "LimitExceededException";
54
- $fault = "client";
55
- Message;
56
- constructor(opts) {
57
- super({
58
- name: "LimitExceededException",
59
- $fault: "client",
60
- ...opts,
61
- });
62
- Object.setPrototypeOf(this, LimitExceededException.prototype);
63
- this.Message = opts.Message;
64
- }
65
- }
66
- export class ResourceAlreadyExistsException extends __BaseException {
67
- name = "ResourceAlreadyExistsException";
68
- $fault = "client";
69
- Message;
70
- constructor(opts) {
71
- super({
72
- name: "ResourceAlreadyExistsException",
73
- $fault: "client",
74
- ...opts,
75
- });
76
- Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
77
- this.Message = opts.Message;
78
- }
79
- }
80
- export class ValidationException extends __BaseException {
81
- name = "ValidationException";
82
- $fault = "client";
83
- Message;
84
- constructor(opts) {
85
- super({
86
- name: "ValidationException",
87
- $fault: "client",
88
- ...opts,
89
- });
90
- Object.setPrototypeOf(this, ValidationException.prototype);
91
- this.Message = opts.Message;
92
- }
93
- }
94
- export const TargetStatus = {
95
- ACTIVE: "ACTIVE",
96
- DEACTIVATED: "DEACTIVATED",
97
- INACTIVE: "INACTIVE",
98
- PENDING: "PENDING",
99
- UNREACHABLE: "UNREACHABLE",
100
- };
101
- export class ResourceNotFoundException extends __BaseException {
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
- export class InvalidNextTokenException extends __BaseException {
116
- name = "InvalidNextTokenException";
117
- $fault = "client";
118
- Message;
119
- constructor(opts) {
120
- super({
121
- name: "InvalidNextTokenException",
122
- $fault: "client",
123
- ...opts,
124
- });
125
- Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
126
- this.Message = opts.Message;
127
- }
128
- }
129
- export const ListEventTypesFilterName = {
130
- RESOURCE_TYPE: "RESOURCE_TYPE",
131
- SERVICE_NAME: "SERVICE_NAME",
132
- };
133
- export const ListNotificationRulesFilterName = {
134
- CREATED_BY: "CREATED_BY",
135
- EVENT_TYPE_ID: "EVENT_TYPE_ID",
136
- RESOURCE: "RESOURCE",
137
- TARGET_ADDRESS: "TARGET_ADDRESS",
138
- };
139
- export const ListTargetsFilterName = {
140
- TARGET_ADDRESS: "TARGET_ADDRESS",
141
- TARGET_STATUS: "TARGET_STATUS",
142
- TARGET_TYPE: "TARGET_TYPE",
143
- };
1
+ export {};
@@ -98,7 +98,7 @@ const _tK = "tagKeys";
98
98
  const n0 = "com.amazonaws.codestarnotifications";
99
99
  import { TypeRegistry } from "@smithy/core/schema";
100
100
  import { CodestarNotificationsServiceException as __CodestarNotificationsServiceException } from "../models/CodestarNotificationsServiceException";
101
- import { AccessDeniedException as __AccessDeniedException, ConcurrentModificationException as __ConcurrentModificationException, ConfigurationException as __ConfigurationException, InvalidNextTokenException as __InvalidNextTokenException, LimitExceededException as __LimitExceededException, ResourceAlreadyExistsException as __ResourceAlreadyExistsException, ResourceNotFoundException as __ResourceNotFoundException, ValidationException as __ValidationException, } from "../models/index";
101
+ import { AccessDeniedException as __AccessDeniedException, ConcurrentModificationException as __ConcurrentModificationException, ConfigurationException as __ConfigurationException, InvalidNextTokenException as __InvalidNextTokenException, LimitExceededException as __LimitExceededException, ResourceAlreadyExistsException as __ResourceAlreadyExistsException, ResourceNotFoundException as __ResourceNotFoundException, ValidationException as __ValidationException, } from "../models/errors";
102
102
  export var NotificationRuleName = [0, n0, _NRN, 8, 0];
103
103
  export var TargetAddress = [0, n0, _TA, 8, 0];
104
104
  export var AccessDeniedException = [
@@ -87,5 +87,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
87
87
  export type { CodestarNotificationsExtensionConfiguration } from "./extensionConfiguration";
88
88
  export * from "./commands";
89
89
  export * from "./pagination";
90
- export * from "./models";
90
+ export * from "./models/enums";
91
+ export * from "./models/errors";
92
+ export type * from "./models/models_0";
91
93
  export { CodestarNotificationsServiceException } from "./models/CodestarNotificationsServiceException";
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const DetailType: {
6
+ readonly BASIC: "BASIC";
7
+ readonly FULL: "FULL";
8
+ };
9
+ /**
10
+ * @public
11
+ */
12
+ export type DetailType = (typeof DetailType)[keyof typeof DetailType];
13
+ /**
14
+ * @public
15
+ * @enum
16
+ */
17
+ export declare const NotificationRuleStatus: {
18
+ readonly DISABLED: "DISABLED";
19
+ readonly ENABLED: "ENABLED";
20
+ };
21
+ /**
22
+ * @public
23
+ */
24
+ export type NotificationRuleStatus = (typeof NotificationRuleStatus)[keyof typeof NotificationRuleStatus];
25
+ /**
26
+ * @public
27
+ * @enum
28
+ */
29
+ export declare const TargetStatus: {
30
+ readonly ACTIVE: "ACTIVE";
31
+ readonly DEACTIVATED: "DEACTIVATED";
32
+ readonly INACTIVE: "INACTIVE";
33
+ readonly PENDING: "PENDING";
34
+ readonly UNREACHABLE: "UNREACHABLE";
35
+ };
36
+ /**
37
+ * @public
38
+ */
39
+ export type TargetStatus = (typeof TargetStatus)[keyof typeof TargetStatus];
40
+ /**
41
+ * @public
42
+ * @enum
43
+ */
44
+ export declare const ListEventTypesFilterName: {
45
+ readonly RESOURCE_TYPE: "RESOURCE_TYPE";
46
+ readonly SERVICE_NAME: "SERVICE_NAME";
47
+ };
48
+ /**
49
+ * @public
50
+ */
51
+ export type ListEventTypesFilterName = (typeof ListEventTypesFilterName)[keyof typeof ListEventTypesFilterName];
52
+ /**
53
+ * @public
54
+ * @enum
55
+ */
56
+ export declare const ListNotificationRulesFilterName: {
57
+ readonly CREATED_BY: "CREATED_BY";
58
+ readonly EVENT_TYPE_ID: "EVENT_TYPE_ID";
59
+ readonly RESOURCE: "RESOURCE";
60
+ readonly TARGET_ADDRESS: "TARGET_ADDRESS";
61
+ };
62
+ /**
63
+ * @public
64
+ */
65
+ export type ListNotificationRulesFilterName = (typeof ListNotificationRulesFilterName)[keyof typeof ListNotificationRulesFilterName];
66
+ /**
67
+ * @public
68
+ * @enum
69
+ */
70
+ export declare const ListTargetsFilterName: {
71
+ readonly TARGET_ADDRESS: "TARGET_ADDRESS";
72
+ readonly TARGET_STATUS: "TARGET_STATUS";
73
+ readonly TARGET_TYPE: "TARGET_TYPE";
74
+ };
75
+ /**
76
+ * @public
77
+ */
78
+ export type ListTargetsFilterName = (typeof ListTargetsFilterName)[keyof typeof ListTargetsFilterName];
@@ -0,0 +1,111 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { CodestarNotificationsServiceException as __BaseException } from "./CodestarNotificationsServiceException";
3
+ /**
4
+ * <p>CodeStar Notifications can't create the notification rule because you do not have sufficient
5
+ * permissions.</p>
6
+ * @public
7
+ */
8
+ export declare class AccessDeniedException extends __BaseException {
9
+ readonly name: "AccessDeniedException";
10
+ readonly $fault: "client";
11
+ Message?: string | undefined;
12
+ /**
13
+ * @internal
14
+ */
15
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
+ }
17
+ /**
18
+ * <p>CodeStar Notifications can't complete the request because the resource is being modified by
19
+ * another process. Wait a few minutes and try again.</p>
20
+ * @public
21
+ */
22
+ export declare class ConcurrentModificationException extends __BaseException {
23
+ readonly name: "ConcurrentModificationException";
24
+ readonly $fault: "client";
25
+ Message?: string | undefined;
26
+ /**
27
+ * @internal
28
+ */
29
+ constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
30
+ }
31
+ /**
32
+ * <p>Some or all of the configuration is incomplete, missing, or not valid.</p>
33
+ * @public
34
+ */
35
+ export declare class ConfigurationException extends __BaseException {
36
+ readonly name: "ConfigurationException";
37
+ readonly $fault: "client";
38
+ Message?: string | undefined;
39
+ /**
40
+ * @internal
41
+ */
42
+ constructor(opts: __ExceptionOptionType<ConfigurationException, __BaseException>);
43
+ }
44
+ /**
45
+ * <p>One of the CodeStar Notifications limits has been exceeded. Limits apply to
46
+ * accounts, notification rules, notifications, resources, and targets. For more
47
+ * information, see Limits.</p>
48
+ * @public
49
+ */
50
+ export declare class LimitExceededException extends __BaseException {
51
+ readonly name: "LimitExceededException";
52
+ readonly $fault: "client";
53
+ Message?: string | undefined;
54
+ /**
55
+ * @internal
56
+ */
57
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
58
+ }
59
+ /**
60
+ * <p>A resource with the same name or ID already exists. Notification rule names must be
61
+ * unique in your Amazon Web Services account.</p>
62
+ * @public
63
+ */
64
+ export declare class ResourceAlreadyExistsException extends __BaseException {
65
+ readonly name: "ResourceAlreadyExistsException";
66
+ readonly $fault: "client";
67
+ Message?: string | undefined;
68
+ /**
69
+ * @internal
70
+ */
71
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
72
+ }
73
+ /**
74
+ * <p>One or more parameter values are not valid.</p>
75
+ * @public
76
+ */
77
+ export declare class ValidationException extends __BaseException {
78
+ readonly name: "ValidationException";
79
+ readonly $fault: "client";
80
+ Message?: string | undefined;
81
+ /**
82
+ * @internal
83
+ */
84
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
85
+ }
86
+ /**
87
+ * <p>CodeStar Notifications can't find a resource that matches the provided ARN. </p>
88
+ * @public
89
+ */
90
+ export declare class ResourceNotFoundException extends __BaseException {
91
+ readonly name: "ResourceNotFoundException";
92
+ readonly $fault: "client";
93
+ Message?: string | undefined;
94
+ /**
95
+ * @internal
96
+ */
97
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
98
+ }
99
+ /**
100
+ * <p>The value for the enumeration token used in the request to return the next batch of the results is not valid. </p>
101
+ * @public
102
+ */
103
+ export declare class InvalidNextTokenException extends __BaseException {
104
+ readonly name: "InvalidNextTokenException";
105
+ readonly $fault: "client";
106
+ Message?: string | undefined;
107
+ /**
108
+ * @internal
109
+ */
110
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
111
+ }
@@ -1,70 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { CodestarNotificationsServiceException as __BaseException } from "./CodestarNotificationsServiceException";
3
- /**
4
- * <p>CodeStar Notifications can't create the notification rule because you do not have sufficient
5
- * permissions.</p>
6
- * @public
7
- */
8
- export declare class AccessDeniedException extends __BaseException {
9
- readonly name: "AccessDeniedException";
10
- readonly $fault: "client";
11
- Message?: string | undefined;
12
- /**
13
- * @internal
14
- */
15
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
- }
17
- /**
18
- * <p>CodeStar Notifications can't complete the request because the resource is being modified by
19
- * another process. Wait a few minutes and try again.</p>
20
- * @public
21
- */
22
- export declare class ConcurrentModificationException extends __BaseException {
23
- readonly name: "ConcurrentModificationException";
24
- readonly $fault: "client";
25
- Message?: string | undefined;
26
- /**
27
- * @internal
28
- */
29
- constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
30
- }
31
- /**
32
- * <p>Some or all of the configuration is incomplete, missing, or not valid.</p>
33
- * @public
34
- */
35
- export declare class ConfigurationException extends __BaseException {
36
- readonly name: "ConfigurationException";
37
- readonly $fault: "client";
38
- Message?: string | undefined;
39
- /**
40
- * @internal
41
- */
42
- constructor(opts: __ExceptionOptionType<ConfigurationException, __BaseException>);
43
- }
44
- /**
45
- * @public
46
- * @enum
47
- */
48
- export declare const DetailType: {
49
- readonly BASIC: "BASIC";
50
- readonly FULL: "FULL";
51
- };
52
- /**
53
- * @public
54
- */
55
- export type DetailType = (typeof DetailType)[keyof typeof DetailType];
56
- /**
57
- * @public
58
- * @enum
59
- */
60
- export declare const NotificationRuleStatus: {
61
- readonly DISABLED: "DISABLED";
62
- readonly ENABLED: "ENABLED";
63
- };
64
- /**
65
- * @public
66
- */
67
- export type NotificationRuleStatus = (typeof NotificationRuleStatus)[keyof typeof NotificationRuleStatus];
1
+ import { DetailType, ListEventTypesFilterName, ListNotificationRulesFilterName, ListTargetsFilterName, NotificationRuleStatus, TargetStatus } from "./enums";
68
2
  /**
69
3
  * <p>Information about the Amazon Q Developer in chat applications topics or Amazon Q Developer in chat applications clients associated with a notification rule.</p>
70
4
  * @public
@@ -157,48 +91,6 @@ export interface CreateNotificationRuleResult {
157
91
  */
158
92
  Arn?: string | undefined;
159
93
  }
160
- /**
161
- * <p>One of the CodeStar Notifications limits has been exceeded. Limits apply to
162
- * accounts, notification rules, notifications, resources, and targets. For more
163
- * information, see Limits.</p>
164
- * @public
165
- */
166
- export declare class LimitExceededException extends __BaseException {
167
- readonly name: "LimitExceededException";
168
- readonly $fault: "client";
169
- Message?: string | undefined;
170
- /**
171
- * @internal
172
- */
173
- constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
174
- }
175
- /**
176
- * <p>A resource with the same name or ID already exists. Notification rule names must be
177
- * unique in your Amazon Web Services account.</p>
178
- * @public
179
- */
180
- export declare class ResourceAlreadyExistsException extends __BaseException {
181
- readonly name: "ResourceAlreadyExistsException";
182
- readonly $fault: "client";
183
- Message?: string | undefined;
184
- /**
185
- * @internal
186
- */
187
- constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
188
- }
189
- /**
190
- * <p>One or more parameter values are not valid.</p>
191
- * @public
192
- */
193
- export declare class ValidationException extends __BaseException {
194
- readonly name: "ValidationException";
195
- readonly $fault: "client";
196
- Message?: string | undefined;
197
- /**
198
- * @internal
199
- */
200
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
201
- }
202
94
  /**
203
95
  * @public
204
96
  */
@@ -279,21 +171,6 @@ export interface EventTypeSummary {
279
171
  */
280
172
  ResourceType?: string | undefined;
281
173
  }
282
- /**
283
- * @public
284
- * @enum
285
- */
286
- export declare const TargetStatus: {
287
- readonly ACTIVE: "ACTIVE";
288
- readonly DEACTIVATED: "DEACTIVATED";
289
- readonly INACTIVE: "INACTIVE";
290
- readonly PENDING: "PENDING";
291
- readonly UNREACHABLE: "UNREACHABLE";
292
- };
293
- /**
294
- * @public
295
- */
296
- export type TargetStatus = (typeof TargetStatus)[keyof typeof TargetStatus];
297
174
  /**
298
175
  * <p>Information about the targets specified for a notification rule.</p>
299
176
  * @public
@@ -388,44 +265,6 @@ export interface DescribeNotificationRuleResult {
388
265
  */
389
266
  Tags?: Record<string, string> | undefined;
390
267
  }
391
- /**
392
- * <p>CodeStar Notifications can't find a resource that matches the provided ARN. </p>
393
- * @public
394
- */
395
- export declare class ResourceNotFoundException extends __BaseException {
396
- readonly name: "ResourceNotFoundException";
397
- readonly $fault: "client";
398
- Message?: string | undefined;
399
- /**
400
- * @internal
401
- */
402
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
403
- }
404
- /**
405
- * <p>The value for the enumeration token used in the request to return the next batch of the results is not valid. </p>
406
- * @public
407
- */
408
- export declare class InvalidNextTokenException extends __BaseException {
409
- readonly name: "InvalidNextTokenException";
410
- readonly $fault: "client";
411
- Message?: string | undefined;
412
- /**
413
- * @internal
414
- */
415
- constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
416
- }
417
- /**
418
- * @public
419
- * @enum
420
- */
421
- export declare const ListEventTypesFilterName: {
422
- readonly RESOURCE_TYPE: "RESOURCE_TYPE";
423
- readonly SERVICE_NAME: "SERVICE_NAME";
424
- };
425
- /**
426
- * @public
427
- */
428
- export type ListEventTypesFilterName = (typeof ListEventTypesFilterName)[keyof typeof ListEventTypesFilterName];
429
268
  /**
430
269
  * <p>Information about a filter to apply to the list of returned event types. You can filter
431
270
  * by resource type or service name.</p>
@@ -482,20 +321,6 @@ export interface ListEventTypesResult {
482
321
  */
483
322
  NextToken?: string | undefined;
484
323
  }
485
- /**
486
- * @public
487
- * @enum
488
- */
489
- export declare const ListNotificationRulesFilterName: {
490
- readonly CREATED_BY: "CREATED_BY";
491
- readonly EVENT_TYPE_ID: "EVENT_TYPE_ID";
492
- readonly RESOURCE: "RESOURCE";
493
- readonly TARGET_ADDRESS: "TARGET_ADDRESS";
494
- };
495
- /**
496
- * @public
497
- */
498
- export type ListNotificationRulesFilterName = (typeof ListNotificationRulesFilterName)[keyof typeof ListNotificationRulesFilterName];
499
324
  /**
500
325
  * <p>Information about a filter to apply to the list of returned notification rules. You can
501
326
  * filter by event type, owner, resource, or target.</p>
@@ -591,19 +416,6 @@ export interface ListTagsForResourceResult {
591
416
  */
592
417
  Tags?: Record<string, string> | undefined;
593
418
  }
594
- /**
595
- * @public
596
- * @enum
597
- */
598
- export declare const ListTargetsFilterName: {
599
- readonly TARGET_ADDRESS: "TARGET_ADDRESS";
600
- readonly TARGET_STATUS: "TARGET_STATUS";
601
- readonly TARGET_TYPE: "TARGET_TYPE";
602
- };
603
- /**
604
- * @public
605
- */
606
- export type ListTargetsFilterName = (typeof ListTargetsFilterName)[keyof typeof ListTargetsFilterName];
607
419
  /**
608
420
  * <p>Information about a filter to apply to the list of returned targets. You can filter by
609
421
  * target type, address, or status. For example, to filter results to notification rules
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { CodestarNotificationsExtensionConfiguration } 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 { CodestarNotificationsServiceException } from "./models/CodestarNotificationsServiceException";
@@ -0,0 +1,40 @@
1
+ export declare const DetailType: {
2
+ readonly BASIC: "BASIC";
3
+ readonly FULL: "FULL";
4
+ };
5
+ export type DetailType = (typeof DetailType)[keyof typeof DetailType];
6
+ export declare const NotificationRuleStatus: {
7
+ readonly DISABLED: "DISABLED";
8
+ readonly ENABLED: "ENABLED";
9
+ };
10
+ export type NotificationRuleStatus =
11
+ (typeof NotificationRuleStatus)[keyof typeof NotificationRuleStatus];
12
+ export declare const TargetStatus: {
13
+ readonly ACTIVE: "ACTIVE";
14
+ readonly DEACTIVATED: "DEACTIVATED";
15
+ readonly INACTIVE: "INACTIVE";
16
+ readonly PENDING: "PENDING";
17
+ readonly UNREACHABLE: "UNREACHABLE";
18
+ };
19
+ export type TargetStatus = (typeof TargetStatus)[keyof typeof TargetStatus];
20
+ export declare const ListEventTypesFilterName: {
21
+ readonly RESOURCE_TYPE: "RESOURCE_TYPE";
22
+ readonly SERVICE_NAME: "SERVICE_NAME";
23
+ };
24
+ export type ListEventTypesFilterName =
25
+ (typeof ListEventTypesFilterName)[keyof typeof ListEventTypesFilterName];
26
+ export declare const ListNotificationRulesFilterName: {
27
+ readonly CREATED_BY: "CREATED_BY";
28
+ readonly EVENT_TYPE_ID: "EVENT_TYPE_ID";
29
+ readonly RESOURCE: "RESOURCE";
30
+ readonly TARGET_ADDRESS: "TARGET_ADDRESS";
31
+ };
32
+ export type ListNotificationRulesFilterName =
33
+ (typeof ListNotificationRulesFilterName)[keyof typeof ListNotificationRulesFilterName];
34
+ export declare const ListTargetsFilterName: {
35
+ readonly TARGET_ADDRESS: "TARGET_ADDRESS";
36
+ readonly TARGET_STATUS: "TARGET_STATUS";
37
+ readonly TARGET_TYPE: "TARGET_TYPE";
38
+ };
39
+ export type ListTargetsFilterName =
40
+ (typeof ListTargetsFilterName)[keyof typeof ListTargetsFilterName];
@@ -0,0 +1,69 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { CodestarNotificationsServiceException as __BaseException } from "./CodestarNotificationsServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ Message?: string | undefined;
7
+ constructor(
8
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
+ );
10
+ }
11
+ export declare class ConcurrentModificationException extends __BaseException {
12
+ readonly name: "ConcurrentModificationException";
13
+ readonly $fault: "client";
14
+ Message?: string | undefined;
15
+ constructor(
16
+ opts: __ExceptionOptionType<
17
+ ConcurrentModificationException,
18
+ __BaseException
19
+ >
20
+ );
21
+ }
22
+ export declare class ConfigurationException extends __BaseException {
23
+ readonly name: "ConfigurationException";
24
+ readonly $fault: "client";
25
+ Message?: string | undefined;
26
+ constructor(
27
+ opts: __ExceptionOptionType<ConfigurationException, __BaseException>
28
+ );
29
+ }
30
+ export declare class LimitExceededException extends __BaseException {
31
+ readonly name: "LimitExceededException";
32
+ readonly $fault: "client";
33
+ Message?: string | undefined;
34
+ constructor(
35
+ opts: __ExceptionOptionType<LimitExceededException, __BaseException>
36
+ );
37
+ }
38
+ export declare class ResourceAlreadyExistsException extends __BaseException {
39
+ readonly name: "ResourceAlreadyExistsException";
40
+ readonly $fault: "client";
41
+ Message?: string | undefined;
42
+ constructor(
43
+ opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>
44
+ );
45
+ }
46
+ export declare class ValidationException extends __BaseException {
47
+ readonly name: "ValidationException";
48
+ readonly $fault: "client";
49
+ Message?: string | undefined;
50
+ constructor(
51
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
52
+ );
53
+ }
54
+ export declare class ResourceNotFoundException extends __BaseException {
55
+ readonly name: "ResourceNotFoundException";
56
+ readonly $fault: "client";
57
+ Message?: string | undefined;
58
+ constructor(
59
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
60
+ );
61
+ }
62
+ export declare class InvalidNextTokenException extends __BaseException {
63
+ readonly name: "InvalidNextTokenException";
64
+ readonly $fault: "client";
65
+ Message?: string | undefined;
66
+ constructor(
67
+ opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>
68
+ );
69
+ }
@@ -1,43 +1,11 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { CodestarNotificationsServiceException as __BaseException } from "./CodestarNotificationsServiceException";
3
- export declare class AccessDeniedException extends __BaseException {
4
- readonly name: "AccessDeniedException";
5
- readonly $fault: "client";
6
- Message?: string | undefined;
7
- constructor(
8
- opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
9
- );
10
- }
11
- export declare class ConcurrentModificationException extends __BaseException {
12
- readonly name: "ConcurrentModificationException";
13
- readonly $fault: "client";
14
- Message?: string | undefined;
15
- constructor(
16
- opts: __ExceptionOptionType<
17
- ConcurrentModificationException,
18
- __BaseException
19
- >
20
- );
21
- }
22
- export declare class ConfigurationException extends __BaseException {
23
- readonly name: "ConfigurationException";
24
- readonly $fault: "client";
25
- Message?: string | undefined;
26
- constructor(
27
- opts: __ExceptionOptionType<ConfigurationException, __BaseException>
28
- );
29
- }
30
- export declare const DetailType: {
31
- readonly BASIC: "BASIC";
32
- readonly FULL: "FULL";
33
- };
34
- export type DetailType = (typeof DetailType)[keyof typeof DetailType];
35
- export declare const NotificationRuleStatus: {
36
- readonly DISABLED: "DISABLED";
37
- readonly ENABLED: "ENABLED";
38
- };
39
- export type NotificationRuleStatus =
40
- (typeof NotificationRuleStatus)[keyof typeof NotificationRuleStatus];
1
+ import {
2
+ DetailType,
3
+ ListEventTypesFilterName,
4
+ ListNotificationRulesFilterName,
5
+ ListTargetsFilterName,
6
+ NotificationRuleStatus,
7
+ TargetStatus,
8
+ } from "./enums";
41
9
  export interface Target {
42
10
  TargetType?: string | undefined;
43
11
  TargetAddress?: string | undefined;
@@ -55,30 +23,6 @@ export interface CreateNotificationRuleRequest {
55
23
  export interface CreateNotificationRuleResult {
56
24
  Arn?: string | undefined;
57
25
  }
58
- export declare class LimitExceededException extends __BaseException {
59
- readonly name: "LimitExceededException";
60
- readonly $fault: "client";
61
- Message?: string | undefined;
62
- constructor(
63
- opts: __ExceptionOptionType<LimitExceededException, __BaseException>
64
- );
65
- }
66
- export declare class ResourceAlreadyExistsException extends __BaseException {
67
- readonly name: "ResourceAlreadyExistsException";
68
- readonly $fault: "client";
69
- Message?: string | undefined;
70
- constructor(
71
- opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>
72
- );
73
- }
74
- export declare class ValidationException extends __BaseException {
75
- readonly name: "ValidationException";
76
- readonly $fault: "client";
77
- Message?: string | undefined;
78
- constructor(
79
- opts: __ExceptionOptionType<ValidationException, __BaseException>
80
- );
81
- }
82
26
  export interface DeleteNotificationRuleRequest {
83
27
  Arn: string | undefined;
84
28
  }
@@ -99,14 +43,6 @@ export interface EventTypeSummary {
99
43
  EventTypeName?: string | undefined;
100
44
  ResourceType?: string | undefined;
101
45
  }
102
- export declare const TargetStatus: {
103
- readonly ACTIVE: "ACTIVE";
104
- readonly DEACTIVATED: "DEACTIVATED";
105
- readonly INACTIVE: "INACTIVE";
106
- readonly PENDING: "PENDING";
107
- readonly UNREACHABLE: "UNREACHABLE";
108
- };
109
- export type TargetStatus = (typeof TargetStatus)[keyof typeof TargetStatus];
110
46
  export interface TargetSummary {
111
47
  TargetAddress?: string | undefined;
112
48
  TargetType?: string | undefined;
@@ -125,28 +61,6 @@ export interface DescribeNotificationRuleResult {
125
61
  LastModifiedTimestamp?: Date | undefined;
126
62
  Tags?: Record<string, string> | undefined;
127
63
  }
128
- export declare class ResourceNotFoundException extends __BaseException {
129
- readonly name: "ResourceNotFoundException";
130
- readonly $fault: "client";
131
- Message?: string | undefined;
132
- constructor(
133
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
134
- );
135
- }
136
- export declare class InvalidNextTokenException extends __BaseException {
137
- readonly name: "InvalidNextTokenException";
138
- readonly $fault: "client";
139
- Message?: string | undefined;
140
- constructor(
141
- opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>
142
- );
143
- }
144
- export declare const ListEventTypesFilterName: {
145
- readonly RESOURCE_TYPE: "RESOURCE_TYPE";
146
- readonly SERVICE_NAME: "SERVICE_NAME";
147
- };
148
- export type ListEventTypesFilterName =
149
- (typeof ListEventTypesFilterName)[keyof typeof ListEventTypesFilterName];
150
64
  export interface ListEventTypesFilter {
151
65
  Name: ListEventTypesFilterName | undefined;
152
66
  Value: string | undefined;
@@ -160,14 +74,6 @@ export interface ListEventTypesResult {
160
74
  EventTypes?: EventTypeSummary[] | undefined;
161
75
  NextToken?: string | undefined;
162
76
  }
163
- export declare const ListNotificationRulesFilterName: {
164
- readonly CREATED_BY: "CREATED_BY";
165
- readonly EVENT_TYPE_ID: "EVENT_TYPE_ID";
166
- readonly RESOURCE: "RESOURCE";
167
- readonly TARGET_ADDRESS: "TARGET_ADDRESS";
168
- };
169
- export type ListNotificationRulesFilterName =
170
- (typeof ListNotificationRulesFilterName)[keyof typeof ListNotificationRulesFilterName];
171
77
  export interface ListNotificationRulesFilter {
172
78
  Name: ListNotificationRulesFilterName | undefined;
173
79
  Value: string | undefined;
@@ -191,13 +97,6 @@ export interface ListTagsForResourceRequest {
191
97
  export interface ListTagsForResourceResult {
192
98
  Tags?: Record<string, string> | undefined;
193
99
  }
194
- export declare const ListTargetsFilterName: {
195
- readonly TARGET_ADDRESS: "TARGET_ADDRESS";
196
- readonly TARGET_STATUS: "TARGET_STATUS";
197
- readonly TARGET_TYPE: "TARGET_TYPE";
198
- };
199
- export type ListTargetsFilterName =
200
- (typeof ListTargetsFilterName)[keyof typeof ListTargetsFilterName];
201
100
  export interface ListTargetsFilter {
202
101
  Name: ListTargetsFilterName | undefined;
203
102
  Value: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codestar-notifications",
3
3
  "description": "AWS SDK for JavaScript Codestar Notifications Client for Node.js, Browser and React Native",
4
- "version": "3.934.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-codestar-notifications",
@@ -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.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.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.934.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.934.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";