@aws-sdk/client-codestar-notifications 3.300.0 → 3.303.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.
@@ -45,16 +45,14 @@ class ConfigurationException extends CodestarNotificationsServiceException_1.Cod
45
45
  }
46
46
  }
47
47
  exports.ConfigurationException = ConfigurationException;
48
- var DetailType;
49
- (function (DetailType) {
50
- DetailType["BASIC"] = "BASIC";
51
- DetailType["FULL"] = "FULL";
52
- })(DetailType = exports.DetailType || (exports.DetailType = {}));
53
- var NotificationRuleStatus;
54
- (function (NotificationRuleStatus) {
55
- NotificationRuleStatus["DISABLED"] = "DISABLED";
56
- NotificationRuleStatus["ENABLED"] = "ENABLED";
57
- })(NotificationRuleStatus = exports.NotificationRuleStatus || (exports.NotificationRuleStatus = {}));
48
+ exports.DetailType = {
49
+ BASIC: "BASIC",
50
+ FULL: "FULL",
51
+ };
52
+ exports.NotificationRuleStatus = {
53
+ DISABLED: "DISABLED",
54
+ ENABLED: "ENABLED",
55
+ };
58
56
  class LimitExceededException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
59
57
  constructor(opts) {
60
58
  super({
@@ -97,14 +95,13 @@ class ValidationException extends CodestarNotificationsServiceException_1.Codest
97
95
  }
98
96
  }
99
97
  exports.ValidationException = ValidationException;
100
- var TargetStatus;
101
- (function (TargetStatus) {
102
- TargetStatus["ACTIVE"] = "ACTIVE";
103
- TargetStatus["DEACTIVATED"] = "DEACTIVATED";
104
- TargetStatus["INACTIVE"] = "INACTIVE";
105
- TargetStatus["PENDING"] = "PENDING";
106
- TargetStatus["UNREACHABLE"] = "UNREACHABLE";
107
- })(TargetStatus = exports.TargetStatus || (exports.TargetStatus = {}));
98
+ exports.TargetStatus = {
99
+ ACTIVE: "ACTIVE",
100
+ DEACTIVATED: "DEACTIVATED",
101
+ INACTIVE: "INACTIVE",
102
+ PENDING: "PENDING",
103
+ UNREACHABLE: "UNREACHABLE",
104
+ };
108
105
  class ResourceNotFoundException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
109
106
  constructor(opts) {
110
107
  super({
@@ -133,24 +130,21 @@ class InvalidNextTokenException extends CodestarNotificationsServiceException_1.
133
130
  }
134
131
  }
135
132
  exports.InvalidNextTokenException = InvalidNextTokenException;
136
- var ListEventTypesFilterName;
137
- (function (ListEventTypesFilterName) {
138
- ListEventTypesFilterName["RESOURCE_TYPE"] = "RESOURCE_TYPE";
139
- ListEventTypesFilterName["SERVICE_NAME"] = "SERVICE_NAME";
140
- })(ListEventTypesFilterName = exports.ListEventTypesFilterName || (exports.ListEventTypesFilterName = {}));
141
- var ListNotificationRulesFilterName;
142
- (function (ListNotificationRulesFilterName) {
143
- ListNotificationRulesFilterName["CREATED_BY"] = "CREATED_BY";
144
- ListNotificationRulesFilterName["EVENT_TYPE_ID"] = "EVENT_TYPE_ID";
145
- ListNotificationRulesFilterName["RESOURCE"] = "RESOURCE";
146
- ListNotificationRulesFilterName["TARGET_ADDRESS"] = "TARGET_ADDRESS";
147
- })(ListNotificationRulesFilterName = exports.ListNotificationRulesFilterName || (exports.ListNotificationRulesFilterName = {}));
148
- var ListTargetsFilterName;
149
- (function (ListTargetsFilterName) {
150
- ListTargetsFilterName["TARGET_ADDRESS"] = "TARGET_ADDRESS";
151
- ListTargetsFilterName["TARGET_STATUS"] = "TARGET_STATUS";
152
- ListTargetsFilterName["TARGET_TYPE"] = "TARGET_TYPE";
153
- })(ListTargetsFilterName = exports.ListTargetsFilterName || (exports.ListTargetsFilterName = {}));
133
+ exports.ListEventTypesFilterName = {
134
+ RESOURCE_TYPE: "RESOURCE_TYPE",
135
+ SERVICE_NAME: "SERVICE_NAME",
136
+ };
137
+ exports.ListNotificationRulesFilterName = {
138
+ CREATED_BY: "CREATED_BY",
139
+ EVENT_TYPE_ID: "EVENT_TYPE_ID",
140
+ RESOURCE: "RESOURCE",
141
+ TARGET_ADDRESS: "TARGET_ADDRESS",
142
+ };
143
+ exports.ListTargetsFilterName = {
144
+ TARGET_ADDRESS: "TARGET_ADDRESS",
145
+ TARGET_STATUS: "TARGET_STATUS",
146
+ TARGET_TYPE: "TARGET_TYPE",
147
+ };
154
148
  const TargetFilterSensitiveLog = (obj) => ({
155
149
  ...obj,
156
150
  ...(obj.TargetAddress && { TargetAddress: smithy_client_1.SENSITIVE_STRING }),
@@ -39,16 +39,14 @@ export class ConfigurationException extends __BaseException {
39
39
  this.Message = opts.Message;
40
40
  }
41
41
  }
42
- export var DetailType;
43
- (function (DetailType) {
44
- DetailType["BASIC"] = "BASIC";
45
- DetailType["FULL"] = "FULL";
46
- })(DetailType || (DetailType = {}));
47
- export var NotificationRuleStatus;
48
- (function (NotificationRuleStatus) {
49
- NotificationRuleStatus["DISABLED"] = "DISABLED";
50
- NotificationRuleStatus["ENABLED"] = "ENABLED";
51
- })(NotificationRuleStatus || (NotificationRuleStatus = {}));
42
+ export const DetailType = {
43
+ BASIC: "BASIC",
44
+ FULL: "FULL",
45
+ };
46
+ export const NotificationRuleStatus = {
47
+ DISABLED: "DISABLED",
48
+ ENABLED: "ENABLED",
49
+ };
52
50
  export class LimitExceededException extends __BaseException {
53
51
  constructor(opts) {
54
52
  super({
@@ -88,14 +86,13 @@ export class ValidationException extends __BaseException {
88
86
  this.Message = opts.Message;
89
87
  }
90
88
  }
91
- export var TargetStatus;
92
- (function (TargetStatus) {
93
- TargetStatus["ACTIVE"] = "ACTIVE";
94
- TargetStatus["DEACTIVATED"] = "DEACTIVATED";
95
- TargetStatus["INACTIVE"] = "INACTIVE";
96
- TargetStatus["PENDING"] = "PENDING";
97
- TargetStatus["UNREACHABLE"] = "UNREACHABLE";
98
- })(TargetStatus || (TargetStatus = {}));
89
+ export const TargetStatus = {
90
+ ACTIVE: "ACTIVE",
91
+ DEACTIVATED: "DEACTIVATED",
92
+ INACTIVE: "INACTIVE",
93
+ PENDING: "PENDING",
94
+ UNREACHABLE: "UNREACHABLE",
95
+ };
99
96
  export class ResourceNotFoundException extends __BaseException {
100
97
  constructor(opts) {
101
98
  super({
@@ -122,24 +119,21 @@ export class InvalidNextTokenException extends __BaseException {
122
119
  this.Message = opts.Message;
123
120
  }
124
121
  }
125
- export var ListEventTypesFilterName;
126
- (function (ListEventTypesFilterName) {
127
- ListEventTypesFilterName["RESOURCE_TYPE"] = "RESOURCE_TYPE";
128
- ListEventTypesFilterName["SERVICE_NAME"] = "SERVICE_NAME";
129
- })(ListEventTypesFilterName || (ListEventTypesFilterName = {}));
130
- export var ListNotificationRulesFilterName;
131
- (function (ListNotificationRulesFilterName) {
132
- ListNotificationRulesFilterName["CREATED_BY"] = "CREATED_BY";
133
- ListNotificationRulesFilterName["EVENT_TYPE_ID"] = "EVENT_TYPE_ID";
134
- ListNotificationRulesFilterName["RESOURCE"] = "RESOURCE";
135
- ListNotificationRulesFilterName["TARGET_ADDRESS"] = "TARGET_ADDRESS";
136
- })(ListNotificationRulesFilterName || (ListNotificationRulesFilterName = {}));
137
- export var ListTargetsFilterName;
138
- (function (ListTargetsFilterName) {
139
- ListTargetsFilterName["TARGET_ADDRESS"] = "TARGET_ADDRESS";
140
- ListTargetsFilterName["TARGET_STATUS"] = "TARGET_STATUS";
141
- ListTargetsFilterName["TARGET_TYPE"] = "TARGET_TYPE";
142
- })(ListTargetsFilterName || (ListTargetsFilterName = {}));
122
+ export const ListEventTypesFilterName = {
123
+ RESOURCE_TYPE: "RESOURCE_TYPE",
124
+ SERVICE_NAME: "SERVICE_NAME",
125
+ };
126
+ export const ListNotificationRulesFilterName = {
127
+ CREATED_BY: "CREATED_BY",
128
+ EVENT_TYPE_ID: "EVENT_TYPE_ID",
129
+ RESOURCE: "RESOURCE",
130
+ TARGET_ADDRESS: "TARGET_ADDRESS",
131
+ };
132
+ export const ListTargetsFilterName = {
133
+ TARGET_ADDRESS: "TARGET_ADDRESS",
134
+ TARGET_STATUS: "TARGET_STATUS",
135
+ TARGET_TYPE: "TARGET_TYPE",
136
+ };
143
137
  export const TargetFilterSensitiveLog = (obj) => ({
144
138
  ...obj,
145
139
  ...(obj.TargetAddress && { TargetAddress: SENSITIVE_STRING }),
@@ -28,21 +28,21 @@ export interface CreateNotificationRuleCommandOutput extends CreateNotificationR
28
28
  * import { CodestarNotificationsClient, CreateNotificationRuleCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
29
29
  * // const { CodestarNotificationsClient, CreateNotificationRuleCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
30
30
  * const client = new CodestarNotificationsClient(config);
31
- * const input = {
31
+ * const input = { // CreateNotificationRuleRequest
32
32
  * Name: "STRING_VALUE", // required
33
- * EventTypeIds: [ // required
33
+ * EventTypeIds: [ // EventTypeIds // required
34
34
  * "STRING_VALUE",
35
35
  * ],
36
36
  * Resource: "STRING_VALUE", // required
37
- * Targets: [ // required
38
- * {
37
+ * Targets: [ // Targets // required
38
+ * { // Target
39
39
  * TargetType: "STRING_VALUE",
40
40
  * TargetAddress: "STRING_VALUE",
41
41
  * },
42
42
  * ],
43
43
  * DetailType: "BASIC" || "FULL", // required
44
44
  * ClientRequestToken: "STRING_VALUE",
45
- * Tags: {
45
+ * Tags: { // Tags
46
46
  * "<keys>": "STRING_VALUE",
47
47
  * },
48
48
  * Status: "ENABLED" || "DISABLED",
@@ -26,7 +26,7 @@ export interface DeleteNotificationRuleCommandOutput extends DeleteNotificationR
26
26
  * import { CodestarNotificationsClient, DeleteNotificationRuleCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
27
27
  * // const { CodestarNotificationsClient, DeleteNotificationRuleCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
28
28
  * const client = new CodestarNotificationsClient(config);
29
- * const input = {
29
+ * const input = { // DeleteNotificationRuleRequest
30
30
  * Arn: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new DeleteNotificationRuleCommand(input);
@@ -26,7 +26,7 @@ export interface DeleteTargetCommandOutput extends DeleteTargetResult, __Metadat
26
26
  * import { CodestarNotificationsClient, DeleteTargetCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
27
27
  * // const { CodestarNotificationsClient, DeleteTargetCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
28
28
  * const client = new CodestarNotificationsClient(config);
29
- * const input = {
29
+ * const input = { // DeleteTargetRequest
30
30
  * TargetAddress: "STRING_VALUE", // required
31
31
  * ForceUnsubscribeAll: true || false,
32
32
  * };
@@ -26,7 +26,7 @@ export interface DescribeNotificationRuleCommandOutput extends DescribeNotificat
26
26
  * import { CodestarNotificationsClient, DescribeNotificationRuleCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
27
27
  * // const { CodestarNotificationsClient, DescribeNotificationRuleCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
28
28
  * const client = new CodestarNotificationsClient(config);
29
- * const input = {
29
+ * const input = { // DescribeNotificationRuleRequest
30
30
  * Arn: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new DescribeNotificationRuleCommand(input);
@@ -26,9 +26,9 @@ export interface ListEventTypesCommandOutput extends ListEventTypesResult, __Met
26
26
  * import { CodestarNotificationsClient, ListEventTypesCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
27
27
  * // const { CodestarNotificationsClient, ListEventTypesCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
28
28
  * const client = new CodestarNotificationsClient(config);
29
- * const input = {
30
- * Filters: [
31
- * {
29
+ * const input = { // ListEventTypesRequest
30
+ * Filters: [ // ListEventTypesFilters
31
+ * { // ListEventTypesFilter
32
32
  * Name: "RESOURCE_TYPE" || "SERVICE_NAME", // required
33
33
  * Value: "STRING_VALUE", // required
34
34
  * },
@@ -26,9 +26,9 @@ export interface ListNotificationRulesCommandOutput extends ListNotificationRule
26
26
  * import { CodestarNotificationsClient, ListNotificationRulesCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
27
27
  * // const { CodestarNotificationsClient, ListNotificationRulesCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
28
28
  * const client = new CodestarNotificationsClient(config);
29
- * const input = {
30
- * Filters: [
31
- * {
29
+ * const input = { // ListNotificationRulesRequest
30
+ * Filters: [ // ListNotificationRulesFilters
31
+ * { // ListNotificationRulesFilter
32
32
  * Name: "EVENT_TYPE_ID" || "CREATED_BY" || "RESOURCE" || "TARGET_ADDRESS", // required
33
33
  * Value: "STRING_VALUE", // required
34
34
  * },
@@ -26,7 +26,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
26
26
  * import { CodestarNotificationsClient, ListTagsForResourceCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
27
27
  * // const { CodestarNotificationsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
28
28
  * const client = new CodestarNotificationsClient(config);
29
- * const input = {
29
+ * const input = { // ListTagsForResourceRequest
30
30
  * Arn: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new ListTagsForResourceCommand(input);
@@ -26,9 +26,9 @@ export interface ListTargetsCommandOutput extends ListTargetsResult, __MetadataB
26
26
  * import { CodestarNotificationsClient, ListTargetsCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
27
27
  * // const { CodestarNotificationsClient, ListTargetsCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
28
28
  * const client = new CodestarNotificationsClient(config);
29
- * const input = {
30
- * Filters: [
31
- * {
29
+ * const input = { // ListTargetsRequest
30
+ * Filters: [ // ListTargetsFilters
31
+ * { // ListTargetsFilter
32
32
  * Name: "TARGET_TYPE" || "TARGET_ADDRESS" || "TARGET_STATUS", // required
33
33
  * Value: "STRING_VALUE", // required
34
34
  * },
@@ -28,9 +28,9 @@ export interface SubscribeCommandOutput extends SubscribeResult, __MetadataBeare
28
28
  * import { CodestarNotificationsClient, SubscribeCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
29
29
  * // const { CodestarNotificationsClient, SubscribeCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
30
30
  * const client = new CodestarNotificationsClient(config);
31
- * const input = {
31
+ * const input = { // SubscribeRequest
32
32
  * Arn: "STRING_VALUE", // required
33
- * Target: {
33
+ * Target: { // Target
34
34
  * TargetType: "STRING_VALUE",
35
35
  * TargetAddress: "STRING_VALUE",
36
36
  * },
@@ -26,9 +26,9 @@ export interface TagResourceCommandOutput extends TagResourceResult, __MetadataB
26
26
  * import { CodestarNotificationsClient, TagResourceCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
27
27
  * // const { CodestarNotificationsClient, TagResourceCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
28
28
  * const client = new CodestarNotificationsClient(config);
29
- * const input = {
29
+ * const input = { // TagResourceRequest
30
30
  * Arn: "STRING_VALUE", // required
31
- * Tags: { // required
31
+ * Tags: { // Tags // required
32
32
  * "<keys>": "STRING_VALUE",
33
33
  * },
34
34
  * };
@@ -28,7 +28,7 @@ export interface UnsubscribeCommandOutput extends UnsubscribeResult, __MetadataB
28
28
  * import { CodestarNotificationsClient, UnsubscribeCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
29
29
  * // const { CodestarNotificationsClient, UnsubscribeCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
30
30
  * const client = new CodestarNotificationsClient(config);
31
- * const input = {
31
+ * const input = { // UnsubscribeRequest
32
32
  * Arn: "STRING_VALUE", // required
33
33
  * TargetAddress: "STRING_VALUE", // required
34
34
  * };
@@ -27,9 +27,9 @@ export interface UntagResourceCommandOutput extends UntagResourceResult, __Metad
27
27
  * import { CodestarNotificationsClient, UntagResourceCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
28
28
  * // const { CodestarNotificationsClient, UntagResourceCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
29
29
  * const client = new CodestarNotificationsClient(config);
30
- * const input = {
30
+ * const input = { // UntagResourceRequest
31
31
  * Arn: "STRING_VALUE", // required
32
- * TagKeys: [ // required
32
+ * TagKeys: [ // TagKeys // required
33
33
  * "STRING_VALUE",
34
34
  * ],
35
35
  * };
@@ -31,15 +31,15 @@ export interface UpdateNotificationRuleCommandOutput extends UpdateNotificationR
31
31
  * import { CodestarNotificationsClient, UpdateNotificationRuleCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
32
32
  * // const { CodestarNotificationsClient, UpdateNotificationRuleCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
33
33
  * const client = new CodestarNotificationsClient(config);
34
- * const input = {
34
+ * const input = { // UpdateNotificationRuleRequest
35
35
  * Arn: "STRING_VALUE", // required
36
36
  * Name: "STRING_VALUE",
37
37
  * Status: "ENABLED" || "DISABLED",
38
- * EventTypeIds: [
38
+ * EventTypeIds: [ // EventTypeIds
39
39
  * "STRING_VALUE",
40
40
  * ],
41
- * Targets: [
42
- * {
41
+ * Targets: [ // Targets
42
+ * { // Target
43
43
  * TargetType: "STRING_VALUE",
44
44
  * TargetAddress: "STRING_VALUE",
45
45
  * },
@@ -43,18 +43,28 @@ export declare class ConfigurationException extends __BaseException {
43
43
  }
44
44
  /**
45
45
  * @public
46
+ * @enum
46
47
  */
47
- export declare enum DetailType {
48
- BASIC = "BASIC",
49
- FULL = "FULL"
50
- }
48
+ export declare const DetailType: {
49
+ readonly BASIC: "BASIC";
50
+ readonly FULL: "FULL";
51
+ };
51
52
  /**
52
53
  * @public
53
54
  */
54
- export declare enum NotificationRuleStatus {
55
- DISABLED = "DISABLED",
56
- ENABLED = "ENABLED"
57
- }
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];
58
68
  /**
59
69
  * @public
60
70
  * <p>Information about the Chatbot topics or Chatbot clients associated with a notification rule.</p>
@@ -251,14 +261,19 @@ export interface EventTypeSummary {
251
261
  }
252
262
  /**
253
263
  * @public
264
+ * @enum
254
265
  */
255
- export declare enum TargetStatus {
256
- ACTIVE = "ACTIVE",
257
- DEACTIVATED = "DEACTIVATED",
258
- INACTIVE = "INACTIVE",
259
- PENDING = "PENDING",
260
- UNREACHABLE = "UNREACHABLE"
261
- }
266
+ export declare const TargetStatus: {
267
+ readonly ACTIVE: "ACTIVE";
268
+ readonly DEACTIVATED: "DEACTIVATED";
269
+ readonly INACTIVE: "INACTIVE";
270
+ readonly PENDING: "PENDING";
271
+ readonly UNREACHABLE: "UNREACHABLE";
272
+ };
273
+ /**
274
+ * @public
275
+ */
276
+ export type TargetStatus = (typeof TargetStatus)[keyof typeof TargetStatus];
262
277
  /**
263
278
  * @public
264
279
  * <p>Information about the targets specified for a notification rule.</p>
@@ -367,11 +382,16 @@ export declare class InvalidNextTokenException extends __BaseException {
367
382
  }
368
383
  /**
369
384
  * @public
385
+ * @enum
370
386
  */
371
- export declare enum ListEventTypesFilterName {
372
- RESOURCE_TYPE = "RESOURCE_TYPE",
373
- SERVICE_NAME = "SERVICE_NAME"
374
- }
387
+ export declare const ListEventTypesFilterName: {
388
+ readonly RESOURCE_TYPE: "RESOURCE_TYPE";
389
+ readonly SERVICE_NAME: "SERVICE_NAME";
390
+ };
391
+ /**
392
+ * @public
393
+ */
394
+ export type ListEventTypesFilterName = (typeof ListEventTypesFilterName)[keyof typeof ListEventTypesFilterName];
375
395
  /**
376
396
  * @public
377
397
  * <p>Information about a filter to apply to the list of returned event types. You can filter
@@ -423,13 +443,18 @@ export interface ListEventTypesResult {
423
443
  }
424
444
  /**
425
445
  * @public
446
+ * @enum
426
447
  */
427
- export declare enum ListNotificationRulesFilterName {
428
- CREATED_BY = "CREATED_BY",
429
- EVENT_TYPE_ID = "EVENT_TYPE_ID",
430
- RESOURCE = "RESOURCE",
431
- TARGET_ADDRESS = "TARGET_ADDRESS"
432
- }
448
+ export declare const ListNotificationRulesFilterName: {
449
+ readonly CREATED_BY: "CREATED_BY";
450
+ readonly EVENT_TYPE_ID: "EVENT_TYPE_ID";
451
+ readonly RESOURCE: "RESOURCE";
452
+ readonly TARGET_ADDRESS: "TARGET_ADDRESS";
453
+ };
454
+ /**
455
+ * @public
456
+ */
457
+ export type ListNotificationRulesFilterName = (typeof ListNotificationRulesFilterName)[keyof typeof ListNotificationRulesFilterName];
433
458
  /**
434
459
  * @public
435
460
  * <p>Information about a filter to apply to the list of returned notification rules. You can
@@ -516,12 +541,17 @@ export interface ListTagsForResourceResult {
516
541
  }
517
542
  /**
518
543
  * @public
544
+ * @enum
519
545
  */
520
- export declare enum ListTargetsFilterName {
521
- TARGET_ADDRESS = "TARGET_ADDRESS",
522
- TARGET_STATUS = "TARGET_STATUS",
523
- TARGET_TYPE = "TARGET_TYPE"
524
- }
546
+ export declare const ListTargetsFilterName: {
547
+ readonly TARGET_ADDRESS: "TARGET_ADDRESS";
548
+ readonly TARGET_STATUS: "TARGET_STATUS";
549
+ readonly TARGET_TYPE: "TARGET_TYPE";
550
+ };
551
+ /**
552
+ * @public
553
+ */
554
+ export type ListTargetsFilterName = (typeof ListTargetsFilterName)[keyof typeof ListTargetsFilterName];
525
555
  /**
526
556
  * @public
527
557
  * <p>Information about a filter to apply to the list of returned targets. You can filter by
@@ -27,14 +27,17 @@ export declare class ConfigurationException extends __BaseException {
27
27
  opts: __ExceptionOptionType<ConfigurationException, __BaseException>
28
28
  );
29
29
  }
30
- export declare enum DetailType {
31
- BASIC = "BASIC",
32
- FULL = "FULL",
33
- }
34
- export declare enum NotificationRuleStatus {
35
- DISABLED = "DISABLED",
36
- ENABLED = "ENABLED",
37
- }
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];
38
41
  export interface Target {
39
42
  TargetType?: string;
40
43
  TargetAddress?: string;
@@ -96,13 +99,14 @@ export interface EventTypeSummary {
96
99
  EventTypeName?: string;
97
100
  ResourceType?: string;
98
101
  }
99
- export declare enum TargetStatus {
100
- ACTIVE = "ACTIVE",
101
- DEACTIVATED = "DEACTIVATED",
102
- INACTIVE = "INACTIVE",
103
- PENDING = "PENDING",
104
- UNREACHABLE = "UNREACHABLE",
105
- }
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];
106
110
  export interface TargetSummary {
107
111
  TargetAddress?: string;
108
112
  TargetType?: string;
@@ -137,10 +141,12 @@ export declare class InvalidNextTokenException extends __BaseException {
137
141
  opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>
138
142
  );
139
143
  }
140
- export declare enum ListEventTypesFilterName {
141
- RESOURCE_TYPE = "RESOURCE_TYPE",
142
- SERVICE_NAME = "SERVICE_NAME",
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];
144
150
  export interface ListEventTypesFilter {
145
151
  Name: ListEventTypesFilterName | string | undefined;
146
152
  Value: string | undefined;
@@ -154,12 +160,14 @@ export interface ListEventTypesResult {
154
160
  EventTypes?: EventTypeSummary[];
155
161
  NextToken?: string;
156
162
  }
157
- export declare enum ListNotificationRulesFilterName {
158
- CREATED_BY = "CREATED_BY",
159
- EVENT_TYPE_ID = "EVENT_TYPE_ID",
160
- RESOURCE = "RESOURCE",
161
- TARGET_ADDRESS = "TARGET_ADDRESS",
162
- }
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];
163
171
  export interface ListNotificationRulesFilter {
164
172
  Name: ListNotificationRulesFilterName | string | undefined;
165
173
  Value: string | undefined;
@@ -183,11 +191,13 @@ export interface ListTagsForResourceRequest {
183
191
  export interface ListTagsForResourceResult {
184
192
  Tags?: Record<string, string>;
185
193
  }
186
- export declare enum ListTargetsFilterName {
187
- TARGET_ADDRESS = "TARGET_ADDRESS",
188
- TARGET_STATUS = "TARGET_STATUS",
189
- TARGET_TYPE = "TARGET_TYPE",
190
- }
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];
191
201
  export interface ListTargetsFilter {
192
202
  Name: ListTargetsFilterName | string | undefined;
193
203
  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.300.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "@types/uuid": "^8.3.0",