@aws-sdk/client-eventbridge 3.574.0 → 3.575.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.
Files changed (49) hide show
  1. package/README.md +17 -9
  2. package/dist-cjs/index.js +76 -3
  3. package/dist-es/EventBridge.js +2 -0
  4. package/dist-es/commands/UpdateEventBusCommand.js +24 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/protocols/Aws_json1_1.js +57 -2
  7. package/dist-types/EventBridge.d.ts +17 -9
  8. package/dist-types/EventBridgeClient.d.ts +12 -11
  9. package/dist-types/commands/CreateApiDestinationCommand.d.ts +4 -2
  10. package/dist-types/commands/CreateArchiveCommand.d.ts +23 -0
  11. package/dist-types/commands/CreateEndpointCommand.d.ts +6 -3
  12. package/dist-types/commands/CreateEventBusCommand.d.ts +10 -0
  13. package/dist-types/commands/CreatePartnerEventSourceCommand.d.ts +16 -14
  14. package/dist-types/commands/DeleteEndpointCommand.d.ts +5 -1
  15. package/dist-types/commands/DeletePartnerEventSourceCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteRuleCommand.d.ts +7 -6
  17. package/dist-types/commands/DescribeEndpointCommand.d.ts +6 -1
  18. package/dist-types/commands/DescribeEventBusCommand.d.ts +10 -4
  19. package/dist-types/commands/DescribePartnerEventSourceCommand.d.ts +2 -3
  20. package/dist-types/commands/DisableRuleCommand.d.ts +2 -2
  21. package/dist-types/commands/EnableRuleCommand.d.ts +2 -2
  22. package/dist-types/commands/ListEndpointsCommand.d.ts +6 -1
  23. package/dist-types/commands/ListEventBusesCommand.d.ts +3 -0
  24. package/dist-types/commands/ListEventSourcesCommand.d.ts +2 -2
  25. package/dist-types/commands/ListPartnerEventSourceAccountsCommand.d.ts +2 -3
  26. package/dist-types/commands/ListRulesCommand.d.ts +2 -2
  27. package/dist-types/commands/PutEventsCommand.d.ts +9 -6
  28. package/dist-types/commands/PutPartnerEventsCommand.d.ts +3 -5
  29. package/dist-types/commands/PutPermissionCommand.d.ts +9 -9
  30. package/dist-types/commands/PutRuleCommand.d.ts +10 -11
  31. package/dist-types/commands/PutTargetsCommand.d.ts +28 -28
  32. package/dist-types/commands/RemovePermissionCommand.d.ts +4 -4
  33. package/dist-types/commands/RemoveTargetsCommand.d.ts +4 -3
  34. package/dist-types/commands/TagResourceCommand.d.ts +4 -4
  35. package/dist-types/commands/TestEventPatternCommand.d.ts +4 -4
  36. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  37. package/dist-types/commands/UpdateEndpointCommand.d.ts +5 -1
  38. package/dist-types/commands/UpdateEventBusCommand.d.ts +82 -0
  39. package/dist-types/commands/index.d.ts +1 -0
  40. package/dist-types/index.d.ts +9 -9
  41. package/dist-types/models/models_0.d.ts +524 -200
  42. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  43. package/dist-types/ts3.4/EventBridge.d.ts +18 -0
  44. package/dist-types/ts3.4/EventBridgeClient.d.ts +8 -2
  45. package/dist-types/ts3.4/commands/UpdateEventBusCommand.d.ts +38 -0
  46. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  47. package/dist-types/ts3.4/models/models_0.d.ts +30 -3
  48. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  49. package/package.json +40 -40
@@ -56,6 +56,7 @@ import { UpdateApiDestinationCommandInput, UpdateApiDestinationCommandOutput } f
56
56
  import { UpdateArchiveCommandInput, UpdateArchiveCommandOutput } from "../commands/UpdateArchiveCommand";
57
57
  import { UpdateConnectionCommandInput, UpdateConnectionCommandOutput } from "../commands/UpdateConnectionCommand";
58
58
  import { UpdateEndpointCommandInput, UpdateEndpointCommandOutput } from "../commands/UpdateEndpointCommand";
59
+ import { UpdateEventBusCommandInput, UpdateEventBusCommandOutput } from "../commands/UpdateEventBusCommand";
59
60
  /**
60
61
  * serializeAws_json1_1ActivateEventSourceCommand
61
62
  */
@@ -280,6 +281,10 @@ export declare const se_UpdateConnectionCommand: (input: UpdateConnectionCommand
280
281
  * serializeAws_json1_1UpdateEndpointCommand
281
282
  */
282
283
  export declare const se_UpdateEndpointCommand: (input: UpdateEndpointCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
284
+ /**
285
+ * serializeAws_json1_1UpdateEventBusCommand
286
+ */
287
+ export declare const se_UpdateEventBusCommand: (input: UpdateEventBusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
283
288
  /**
284
289
  * deserializeAws_json1_1ActivateEventSourceCommand
285
290
  */
@@ -504,3 +509,7 @@ export declare const de_UpdateConnectionCommand: (output: __HttpResponse, contex
504
509
  * deserializeAws_json1_1UpdateEndpointCommand
505
510
  */
506
511
  export declare const de_UpdateEndpointCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateEndpointCommandOutput>;
512
+ /**
513
+ * deserializeAws_json1_1UpdateEventBusCommand
514
+ */
515
+ export declare const de_UpdateEventBusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateEventBusCommandOutput>;
@@ -223,6 +223,10 @@ import {
223
223
  UpdateEndpointCommandInput,
224
224
  UpdateEndpointCommandOutput,
225
225
  } from "./commands/UpdateEndpointCommand";
226
+ import {
227
+ UpdateEventBusCommandInput,
228
+ UpdateEventBusCommandOutput,
229
+ } from "./commands/UpdateEventBusCommand";
226
230
  import { EventBridgeClient } from "./EventBridgeClient";
227
231
  export interface EventBridge {
228
232
  activateEventSource(
@@ -964,6 +968,20 @@ export interface EventBridge {
964
968
  options: __HttpHandlerOptions,
965
969
  cb: (err: any, data?: UpdateEndpointCommandOutput) => void
966
970
  ): void;
971
+ updateEventBus(): Promise<UpdateEventBusCommandOutput>;
972
+ updateEventBus(
973
+ args: UpdateEventBusCommandInput,
974
+ options?: __HttpHandlerOptions
975
+ ): Promise<UpdateEventBusCommandOutput>;
976
+ updateEventBus(
977
+ args: UpdateEventBusCommandInput,
978
+ cb: (err: any, data?: UpdateEventBusCommandOutput) => void
979
+ ): void;
980
+ updateEventBus(
981
+ args: UpdateEventBusCommandInput,
982
+ options: __HttpHandlerOptions,
983
+ cb: (err: any, data?: UpdateEventBusCommandOutput) => void
984
+ ): void;
967
985
  }
968
986
  export declare class EventBridge
969
987
  extends EventBridgeClient
@@ -269,6 +269,10 @@ import {
269
269
  UpdateEndpointCommandInput,
270
270
  UpdateEndpointCommandOutput,
271
271
  } from "./commands/UpdateEndpointCommand";
272
+ import {
273
+ UpdateEventBusCommandInput,
274
+ UpdateEventBusCommandOutput,
275
+ } from "./commands/UpdateEventBusCommand";
272
276
  import {
273
277
  ClientInputEndpointParameters,
274
278
  ClientResolvedEndpointParameters,
@@ -332,7 +336,8 @@ export type ServiceInputTypes =
332
336
  | UpdateApiDestinationCommandInput
333
337
  | UpdateArchiveCommandInput
334
338
  | UpdateConnectionCommandInput
335
- | UpdateEndpointCommandInput;
339
+ | UpdateEndpointCommandInput
340
+ | UpdateEventBusCommandInput;
336
341
  export type ServiceOutputTypes =
337
342
  | ActivateEventSourceCommandOutput
338
343
  | CancelReplayCommandOutput
@@ -389,7 +394,8 @@ export type ServiceOutputTypes =
389
394
  | UpdateApiDestinationCommandOutput
390
395
  | UpdateArchiveCommandOutput
391
396
  | UpdateConnectionCommandOutput
392
- | UpdateEndpointCommandOutput;
397
+ | UpdateEndpointCommandOutput
398
+ | UpdateEventBusCommandOutput;
393
399
  export interface ClientDefaults
394
400
  extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
395
401
  requestHandler?: __HttpHandlerUserInput;
@@ -0,0 +1,38 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ EventBridgeClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../EventBridgeClient";
8
+ import {
9
+ UpdateEventBusRequest,
10
+ UpdateEventBusResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface UpdateEventBusCommandInput extends UpdateEventBusRequest {}
14
+ export interface UpdateEventBusCommandOutput
15
+ extends UpdateEventBusResponse,
16
+ __MetadataBearer {}
17
+ declare const UpdateEventBusCommand_base: {
18
+ new (
19
+ input: UpdateEventBusCommandInput
20
+ ): import("@smithy/smithy-client").CommandImpl<
21
+ UpdateEventBusCommandInput,
22
+ UpdateEventBusCommandOutput,
23
+ EventBridgeClientResolvedConfig,
24
+ ServiceInputTypes,
25
+ ServiceOutputTypes
26
+ >;
27
+ new (
28
+ ...[input]: [] | [UpdateEventBusCommandInput]
29
+ ): import("@smithy/smithy-client").CommandImpl<
30
+ UpdateEventBusCommandInput,
31
+ UpdateEventBusCommandOutput,
32
+ EventBridgeClientResolvedConfig,
33
+ ServiceInputTypes,
34
+ ServiceOutputTypes
35
+ >;
36
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
37
+ };
38
+ export declare class UpdateEventBusCommand extends UpdateEventBusCommand_base {}
@@ -54,3 +54,4 @@ export * from "./UpdateApiDestinationCommand";
54
54
  export * from "./UpdateArchiveCommand";
55
55
  export * from "./UpdateConnectionCommand";
56
56
  export * from "./UpdateEndpointCommand";
57
+ export * from "./UpdateEventBusCommand";
@@ -300,6 +300,9 @@ export interface CreateEndpointResponse {
300
300
  RoleArn?: string;
301
301
  State?: EndpointState;
302
302
  }
303
+ export interface DeadLetterConfig {
304
+ Arn?: string;
305
+ }
303
306
  export interface Tag {
304
307
  Key: string | undefined;
305
308
  Value: string | undefined;
@@ -307,10 +310,16 @@ export interface Tag {
307
310
  export interface CreateEventBusRequest {
308
311
  Name: string | undefined;
309
312
  EventSourceName?: string;
313
+ Description?: string;
314
+ KmsKeyIdentifier?: string;
315
+ DeadLetterConfig?: DeadLetterConfig;
310
316
  Tags?: Tag[];
311
317
  }
312
318
  export interface CreateEventBusResponse {
313
319
  EventBusArn?: string;
320
+ Description?: string;
321
+ KmsKeyIdentifier?: string;
322
+ DeadLetterConfig?: DeadLetterConfig;
314
323
  }
315
324
  export interface CreatePartnerEventSourceRequest {
316
325
  Name: string | undefined;
@@ -466,7 +475,12 @@ export interface DescribeEventBusRequest {
466
475
  export interface DescribeEventBusResponse {
467
476
  Name?: string;
468
477
  Arn?: string;
478
+ Description?: string;
479
+ KmsKeyIdentifier?: string;
480
+ DeadLetterConfig?: DeadLetterConfig;
469
481
  Policy?: string;
482
+ CreationTime?: Date;
483
+ LastModifiedTime?: Date;
470
484
  }
471
485
  export interface DescribeEventSourceRequest {
472
486
  Name: string | undefined;
@@ -618,7 +632,10 @@ export interface ListEventBusesRequest {
618
632
  export interface EventBus {
619
633
  Name?: string;
620
634
  Arn?: string;
635
+ Description?: string;
621
636
  Policy?: string;
637
+ CreationTime?: Date;
638
+ LastModifiedTime?: Date;
622
639
  }
623
640
  export interface ListEventBusesResponse {
624
641
  EventBuses?: EventBus[];
@@ -746,9 +763,6 @@ export interface BatchParameters {
746
763
  ArrayProperties?: BatchArrayProperties;
747
764
  RetryStrategy?: BatchRetryStrategy;
748
765
  }
749
- export interface DeadLetterConfig {
750
- Arn?: string;
751
- }
752
766
  export interface CapacityProviderStrategyItem {
753
767
  capacityProvider: string | undefined;
754
768
  weight?: number;
@@ -1095,6 +1109,19 @@ export interface UpdateEndpointResponse {
1095
1109
  EndpointUrl?: string;
1096
1110
  State?: EndpointState;
1097
1111
  }
1112
+ export interface UpdateEventBusRequest {
1113
+ Name?: string;
1114
+ KmsKeyIdentifier?: string;
1115
+ Description?: string;
1116
+ DeadLetterConfig?: DeadLetterConfig;
1117
+ }
1118
+ export interface UpdateEventBusResponse {
1119
+ Arn?: string;
1120
+ Name?: string;
1121
+ KmsKeyIdentifier?: string;
1122
+ Description?: string;
1123
+ DeadLetterConfig?: DeadLetterConfig;
1124
+ }
1098
1125
  export declare const AppSyncParametersFilterSensitiveLog: (
1099
1126
  obj: AppSyncParameters
1100
1127
  ) => any;
@@ -227,6 +227,10 @@ import {
227
227
  UpdateEndpointCommandInput,
228
228
  UpdateEndpointCommandOutput,
229
229
  } from "../commands/UpdateEndpointCommand";
230
+ import {
231
+ UpdateEventBusCommandInput,
232
+ UpdateEventBusCommandOutput,
233
+ } from "../commands/UpdateEventBusCommand";
230
234
  export declare const se_ActivateEventSourceCommand: (
231
235
  input: ActivateEventSourceCommandInput,
232
236
  context: __SerdeContext
@@ -451,6 +455,10 @@ export declare const se_UpdateEndpointCommand: (
451
455
  input: UpdateEndpointCommandInput,
452
456
  context: __SerdeContext
453
457
  ) => Promise<__HttpRequest>;
458
+ export declare const se_UpdateEventBusCommand: (
459
+ input: UpdateEventBusCommandInput,
460
+ context: __SerdeContext
461
+ ) => Promise<__HttpRequest>;
454
462
  export declare const de_ActivateEventSourceCommand: (
455
463
  output: __HttpResponse,
456
464
  context: __SerdeContext
@@ -675,3 +683,7 @@ export declare const de_UpdateEndpointCommand: (
675
683
  output: __HttpResponse,
676
684
  context: __SerdeContext
677
685
  ) => Promise<UpdateEndpointCommandOutput>;
686
+ export declare const de_UpdateEventBusCommand: (
687
+ output: __HttpResponse,
688
+ context: __SerdeContext
689
+ ) => Promise<UpdateEventBusCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-eventbridge",
3
3
  "description": "AWS SDK for JavaScript Eventbridge Client for Node.js, Browser and React Native",
4
- "version": "3.574.0",
4
+ "version": "3.575.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-eventbridge",
@@ -22,48 +22,48 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "3.0.0",
24
24
  "@aws-crypto/sha256-js": "3.0.0",
25
- "@aws-sdk/client-sso-oidc": "3.574.0",
26
- "@aws-sdk/client-sts": "3.574.0",
27
- "@aws-sdk/core": "3.572.0",
28
- "@aws-sdk/credential-provider-node": "3.572.0",
29
- "@aws-sdk/middleware-host-header": "3.567.0",
30
- "@aws-sdk/middleware-logger": "3.568.0",
31
- "@aws-sdk/middleware-recursion-detection": "3.567.0",
32
- "@aws-sdk/middleware-signing": "3.572.0",
33
- "@aws-sdk/middleware-user-agent": "3.572.0",
34
- "@aws-sdk/region-config-resolver": "3.572.0",
35
- "@aws-sdk/signature-v4-multi-region": "3.572.0",
36
- "@aws-sdk/types": "3.567.0",
37
- "@aws-sdk/util-endpoints": "3.572.0",
38
- "@aws-sdk/util-user-agent-browser": "3.567.0",
39
- "@aws-sdk/util-user-agent-node": "3.568.0",
40
- "@smithy/config-resolver": "^2.2.0",
41
- "@smithy/fetch-http-handler": "^2.5.0",
42
- "@smithy/hash-node": "^2.2.0",
43
- "@smithy/invalid-dependency": "^2.2.0",
44
- "@smithy/middleware-content-length": "^2.2.0",
45
- "@smithy/middleware-endpoint": "^2.5.1",
46
- "@smithy/middleware-retry": "^2.3.1",
47
- "@smithy/middleware-serde": "^2.3.0",
48
- "@smithy/middleware-stack": "^2.2.0",
49
- "@smithy/node-config-provider": "^2.3.0",
50
- "@smithy/node-http-handler": "^2.5.0",
51
- "@smithy/protocol-http": "^3.3.0",
52
- "@smithy/smithy-client": "^2.5.1",
53
- "@smithy/types": "^2.12.0",
54
- "@smithy/url-parser": "^2.2.0",
55
- "@smithy/util-base64": "^2.3.0",
56
- "@smithy/util-body-length-browser": "^2.2.0",
57
- "@smithy/util-body-length-node": "^2.3.0",
58
- "@smithy/util-defaults-mode-browser": "^2.2.1",
59
- "@smithy/util-defaults-mode-node": "^2.3.1",
60
- "@smithy/util-endpoints": "^1.2.0",
61
- "@smithy/util-retry": "^2.2.0",
62
- "@smithy/util-utf8": "^2.3.0",
25
+ "@aws-sdk/client-sso-oidc": "3.575.0",
26
+ "@aws-sdk/client-sts": "3.575.0",
27
+ "@aws-sdk/core": "3.575.0",
28
+ "@aws-sdk/credential-provider-node": "3.575.0",
29
+ "@aws-sdk/middleware-host-header": "3.575.0",
30
+ "@aws-sdk/middleware-logger": "3.575.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.575.0",
32
+ "@aws-sdk/middleware-signing": "3.575.0",
33
+ "@aws-sdk/middleware-user-agent": "3.575.0",
34
+ "@aws-sdk/region-config-resolver": "3.575.0",
35
+ "@aws-sdk/signature-v4-multi-region": "3.575.0",
36
+ "@aws-sdk/types": "3.575.0",
37
+ "@aws-sdk/util-endpoints": "3.575.0",
38
+ "@aws-sdk/util-user-agent-browser": "3.575.0",
39
+ "@aws-sdk/util-user-agent-node": "3.575.0",
40
+ "@smithy/config-resolver": "^3.0.0",
41
+ "@smithy/fetch-http-handler": "^3.0.0",
42
+ "@smithy/hash-node": "^3.0.0",
43
+ "@smithy/invalid-dependency": "^3.0.0",
44
+ "@smithy/middleware-content-length": "^3.0.0",
45
+ "@smithy/middleware-endpoint": "^3.0.0",
46
+ "@smithy/middleware-retry": "^3.0.0",
47
+ "@smithy/middleware-serde": "^3.0.0",
48
+ "@smithy/middleware-stack": "^3.0.0",
49
+ "@smithy/node-config-provider": "^3.0.0",
50
+ "@smithy/node-http-handler": "^3.0.0",
51
+ "@smithy/protocol-http": "^4.0.0",
52
+ "@smithy/smithy-client": "^3.0.0",
53
+ "@smithy/types": "^3.0.0",
54
+ "@smithy/url-parser": "^3.0.0",
55
+ "@smithy/util-base64": "^3.0.0",
56
+ "@smithy/util-body-length-browser": "^3.0.0",
57
+ "@smithy/util-body-length-node": "^3.0.0",
58
+ "@smithy/util-defaults-mode-browser": "^3.0.0",
59
+ "@smithy/util-defaults-mode-node": "^3.0.0",
60
+ "@smithy/util-endpoints": "^2.0.0",
61
+ "@smithy/util-retry": "^3.0.0",
62
+ "@smithy/util-utf8": "^3.0.0",
63
63
  "tslib": "^2.6.2"
64
64
  },
65
65
  "devDependencies": {
66
- "@aws-sdk/signature-v4-crt": "3.572.0",
66
+ "@aws-sdk/signature-v4-crt": "3.575.0",
67
67
  "@tsconfig/node16": "16.1.3",
68
68
  "@types/node": "^16.18.96",
69
69
  "concurrently": "7.0.0",