@aws-sdk/client-eventbridgev2 3.1140.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 (169) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +362 -0
  3. package/dist-cjs/index.js +1982 -0
  4. package/dist-es/EventBridgeV2.js +73 -0
  5. package/dist-es/EventBridgeV2Client.js +49 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +12 -0
  9. package/dist-es/commands/CreateEventBusCommand.js +4 -0
  10. package/dist-es/commands/CreateEventSourceCommand.js +4 -0
  11. package/dist-es/commands/CreateSubscriberCommand.js +4 -0
  12. package/dist-es/commands/DeleteEventBusCommand.js +4 -0
  13. package/dist-es/commands/DeleteEventSourceCommand.js +4 -0
  14. package/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
  15. package/dist-es/commands/DeleteSubscriberCommand.js +4 -0
  16. package/dist-es/commands/DescribeEventBusCommand.js +4 -0
  17. package/dist-es/commands/DescribeEventSourceCommand.js +4 -0
  18. package/dist-es/commands/DescribeSubscriberCommand.js +4 -0
  19. package/dist-es/commands/GetResourcePolicyCommand.js +4 -0
  20. package/dist-es/commands/ListEventBusesCommand.js +4 -0
  21. package/dist-es/commands/ListEventSourcesCommand.js +4 -0
  22. package/dist-es/commands/ListResourcePoliciesCommand.js +4 -0
  23. package/dist-es/commands/ListSubscribersCommand.js +4 -0
  24. package/dist-es/commands/ListTagsForResourceCommand.js +4 -0
  25. package/dist-es/commands/PutEventsCommand.js +4 -0
  26. package/dist-es/commands/PutRawEventsCommand.js +4 -0
  27. package/dist-es/commands/PutResourcePolicyCommand.js +4 -0
  28. package/dist-es/commands/RevokeResourceCommand.js +4 -0
  29. package/dist-es/commands/TagResourceCommand.js +4 -0
  30. package/dist-es/commands/UntagResourceCommand.js +4 -0
  31. package/dist-es/commands/UpdateEventBusCommand.js +4 -0
  32. package/dist-es/commands/UpdateEventSourceCommand.js +4 -0
  33. package/dist-es/commands/UpdateSubscriberCommand.js +4 -0
  34. package/dist-es/commands/index.js +25 -0
  35. package/dist-es/endpoint/EndpointParameters.js +15 -0
  36. package/dist-es/endpoint/bdd.js +85 -0
  37. package/dist-es/endpoint/endpointResolver.js +14 -0
  38. package/dist-es/extensionConfiguration.js +1 -0
  39. package/dist-es/index.js +11 -0
  40. package/dist-es/models/EventBridgeV2ServiceException.js +8 -0
  41. package/dist-es/models/enums.js +78 -0
  42. package/dist-es/models/errors.js +217 -0
  43. package/dist-es/models/models_0.js +1 -0
  44. package/dist-es/pagination/Interfaces.js +1 -0
  45. package/dist-es/pagination/ListEventBusesPaginator.js +4 -0
  46. package/dist-es/pagination/ListEventSourcesPaginator.js +4 -0
  47. package/dist-es/pagination/ListResourcePoliciesPaginator.js +4 -0
  48. package/dist-es/pagination/ListSubscribersPaginator.js +4 -0
  49. package/dist-es/pagination/index.js +5 -0
  50. package/dist-es/runtimeConfig.browser.js +31 -0
  51. package/dist-es/runtimeConfig.js +45 -0
  52. package/dist-es/runtimeConfig.native.js +9 -0
  53. package/dist-es/runtimeConfig.shared.js +41 -0
  54. package/dist-es/runtimeExtensions.js +9 -0
  55. package/dist-es/schemas/schemas_0.js +939 -0
  56. package/dist-es/waiters/index.js +2 -0
  57. package/dist-es/waiters/waitForEventBusActive.js +58 -0
  58. package/dist-es/waiters/waitForEventBusDeleted.js +34 -0
  59. package/dist-types/EventBridgeV2.d.ts +242 -0
  60. package/dist-types/EventBridgeV2Client.d.ts +222 -0
  61. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  62. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  63. package/dist-types/commandBuilder.d.ts +26 -0
  64. package/dist-types/commands/CreateEventBusCommand.d.ts +128 -0
  65. package/dist-types/commands/CreateEventSourceCommand.d.ts +135 -0
  66. package/dist-types/commands/CreateSubscriberCommand.d.ts +245 -0
  67. package/dist-types/commands/DeleteEventBusCommand.d.ts +100 -0
  68. package/dist-types/commands/DeleteEventSourceCommand.d.ts +94 -0
  69. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +106 -0
  70. package/dist-types/commands/DeleteSubscriberCommand.d.ts +90 -0
  71. package/dist-types/commands/DescribeEventBusCommand.d.ts +102 -0
  72. package/dist-types/commands/DescribeEventSourceCommand.d.ts +113 -0
  73. package/dist-types/commands/DescribeSubscriberCommand.d.ts +215 -0
  74. package/dist-types/commands/GetResourcePolicyCommand.d.ts +95 -0
  75. package/dist-types/commands/ListEventBusesCommand.d.ts +104 -0
  76. package/dist-types/commands/ListEventSourcesCommand.d.ts +107 -0
  77. package/dist-types/commands/ListResourcePoliciesCommand.d.ts +98 -0
  78. package/dist-types/commands/ListSubscribersCommand.d.ts +108 -0
  79. package/dist-types/commands/ListTagsForResourceCommand.d.ts +91 -0
  80. package/dist-types/commands/PutEventsCommand.d.ts +120 -0
  81. package/dist-types/commands/PutRawEventsCommand.d.ts +127 -0
  82. package/dist-types/commands/PutResourcePolicyCommand.d.ts +132 -0
  83. package/dist-types/commands/RevokeResourceCommand.d.ts +99 -0
  84. package/dist-types/commands/TagResourceCommand.d.ts +100 -0
  85. package/dist-types/commands/UntagResourceCommand.d.ts +97 -0
  86. package/dist-types/commands/UpdateEventBusCommand.d.ts +117 -0
  87. package/dist-types/commands/UpdateEventSourceCommand.d.ts +118 -0
  88. package/dist-types/commands/UpdateSubscriberCommand.d.ts +224 -0
  89. package/dist-types/commands/index.d.ts +25 -0
  90. package/dist-types/endpoint/EndpointParameters.d.ts +63 -0
  91. package/dist-types/endpoint/bdd.d.ts +2 -0
  92. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  93. package/dist-types/extensionConfiguration.d.ts +9 -0
  94. package/dist-types/index.d.ts +25 -0
  95. package/dist-types/models/EventBridgeV2ServiceException.d.ts +14 -0
  96. package/dist-types/models/enums.d.ts +250 -0
  97. package/dist-types/models/errors.d.ts +227 -0
  98. package/dist-types/models/models_0.d.ts +2532 -0
  99. package/dist-types/pagination/Interfaces.d.ts +8 -0
  100. package/dist-types/pagination/ListEventBusesPaginator.d.ts +7 -0
  101. package/dist-types/pagination/ListEventSourcesPaginator.d.ts +7 -0
  102. package/dist-types/pagination/ListResourcePoliciesPaginator.d.ts +7 -0
  103. package/dist-types/pagination/ListSubscribersPaginator.d.ts +7 -0
  104. package/dist-types/pagination/index.d.ts +5 -0
  105. package/dist-types/runtimeConfig.browser.d.ts +59 -0
  106. package/dist-types/runtimeConfig.d.ts +59 -0
  107. package/dist-types/runtimeConfig.native.d.ts +58 -0
  108. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  109. package/dist-types/runtimeExtensions.d.ts +17 -0
  110. package/dist-types/schemas/schemas_0.d.ts +140 -0
  111. package/dist-types/ts3.4/EventBridgeV2.d.ts +484 -0
  112. package/dist-types/ts3.4/EventBridgeV2Client.d.ts +253 -0
  113. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  114. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  115. package/dist-types/ts3.4/commandBuilder.d.ts +42 -0
  116. package/dist-types/ts3.4/commands/CreateEventBusCommand.d.ts +38 -0
  117. package/dist-types/ts3.4/commands/CreateEventSourceCommand.d.ts +39 -0
  118. package/dist-types/ts3.4/commands/CreateSubscriberCommand.d.ts +38 -0
  119. package/dist-types/ts3.4/commands/DeleteEventBusCommand.d.ts +38 -0
  120. package/dist-types/ts3.4/commands/DeleteEventSourceCommand.d.ts +39 -0
  121. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +39 -0
  122. package/dist-types/ts3.4/commands/DeleteSubscriberCommand.d.ts +38 -0
  123. package/dist-types/ts3.4/commands/DescribeEventBusCommand.d.ts +38 -0
  124. package/dist-types/ts3.4/commands/DescribeEventSourceCommand.d.ts +39 -0
  125. package/dist-types/ts3.4/commands/DescribeSubscriberCommand.d.ts +39 -0
  126. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
  127. package/dist-types/ts3.4/commands/ListEventBusesCommand.d.ts +38 -0
  128. package/dist-types/ts3.4/commands/ListEventSourcesCommand.d.ts +38 -0
  129. package/dist-types/ts3.4/commands/ListResourcePoliciesCommand.d.ts +39 -0
  130. package/dist-types/ts3.4/commands/ListSubscribersCommand.d.ts +38 -0
  131. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  132. package/dist-types/ts3.4/commands/PutEventsCommand.d.ts +38 -0
  133. package/dist-types/ts3.4/commands/PutRawEventsCommand.d.ts +38 -0
  134. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
  135. package/dist-types/ts3.4/commands/RevokeResourceCommand.d.ts +38 -0
  136. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  137. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  138. package/dist-types/ts3.4/commands/UpdateEventBusCommand.d.ts +38 -0
  139. package/dist-types/ts3.4/commands/UpdateEventSourceCommand.d.ts +39 -0
  140. package/dist-types/ts3.4/commands/UpdateSubscriberCommand.d.ts +38 -0
  141. package/dist-types/ts3.4/commands/index.d.ts +25 -0
  142. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +64 -0
  143. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  144. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  145. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  146. package/dist-types/ts3.4/index.d.ts +14 -0
  147. package/dist-types/ts3.4/models/EventBridgeV2ServiceException.d.ts +9 -0
  148. package/dist-types/ts3.4/models/enums.d.ts +95 -0
  149. package/dist-types/ts3.4/models/errors.d.ts +98 -0
  150. package/dist-types/ts3.4/models/models_0.d.ts +552 -0
  151. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  152. package/dist-types/ts3.4/pagination/ListEventBusesPaginator.d.ts +11 -0
  153. package/dist-types/ts3.4/pagination/ListEventSourcesPaginator.d.ts +11 -0
  154. package/dist-types/ts3.4/pagination/ListResourcePoliciesPaginator.d.ts +11 -0
  155. package/dist-types/ts3.4/pagination/ListSubscribersPaginator.d.ts +11 -0
  156. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  157. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
  158. package/dist-types/ts3.4/runtimeConfig.d.ts +103 -0
  159. package/dist-types/ts3.4/runtimeConfig.native.d.ts +99 -0
  160. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  161. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  162. package/dist-types/ts3.4/schemas/schemas_0.d.ts +140 -0
  163. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  164. package/dist-types/ts3.4/waiters/waitForEventBusActive.d.ts +15 -0
  165. package/dist-types/ts3.4/waiters/waitForEventBusDeleted.d.ts +16 -0
  166. package/dist-types/waiters/index.d.ts +2 -0
  167. package/dist-types/waiters/waitForEventBusActive.d.ts +15 -0
  168. package/dist-types/waiters/waitForEventBusDeleted.d.ts +16 -0
  169. package/package.json +69 -0
@@ -0,0 +1,108 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListSubscribersRequest, ListSubscribersResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListSubscribersCommand}.
11
+ */
12
+ export interface ListSubscribersCommandInput extends ListSubscribersRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListSubscribersCommand}.
18
+ */
19
+ export interface ListSubscribersCommandOutput extends ListSubscribersResponse, __MetadataBearer {
20
+ }
21
+ declare const ListSubscribersCommand_base: {
22
+ new (input: ListSubscribersCommandInput): import("@smithy/core/client").CommandImpl<ListSubscribersCommandInput, ListSubscribersCommandOutput, import("..").EventBridgeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListSubscribersCommandInput]): import("@smithy/core/client").CommandImpl<ListSubscribersCommandInput, ListSubscribersCommandOutput, import("..").EventBridgeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * Lists subscribers as summaries. By default the list spans the subscribers the
28
+ * caller account owns across all buses; set EventBusArn to scope it to one bus.
29
+ * Use DescribeSubscriber to retrieve full configuration.
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { EventBridgeV2Client, ListSubscribersCommand } from "@aws-sdk/client-eventbridgev2"; // ES Modules import
34
+ * // const { EventBridgeV2Client, ListSubscribersCommand } = require("@aws-sdk/client-eventbridgev2"); // CommonJS import
35
+ * // import type { EventBridgeV2ClientConfig } from "@aws-sdk/client-eventbridgev2";
36
+ * const config = {}; // type is EventBridgeV2ClientConfig
37
+ * const client = new EventBridgeV2Client(config);
38
+ * const input = { // ListSubscribersRequest
39
+ * EventBusArn: "STRING_VALUE",
40
+ * NamePrefix: "STRING_VALUE",
41
+ * NextToken: "STRING_VALUE",
42
+ * MaxResults: Number("int"),
43
+ * };
44
+ * const command = new ListSubscribersCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // ListSubscribersResponse
47
+ * // Subscribers: [ // SubscriberSummaryList
48
+ * // { // SubscriberSummary
49
+ * // SubscriberArn: "STRING_VALUE",
50
+ * // Name: "STRING_VALUE",
51
+ * // EventBusArn: "STRING_VALUE",
52
+ * // TargetArn: "STRING_VALUE",
53
+ * // Type: "FIFO" || "UNORDERED",
54
+ * // Revoked: true || false,
55
+ * // State: "RUNNING" || "STOPPED",
56
+ * // CreationTime: new Date("TIMESTAMP"),
57
+ * // LastModifiedTime: new Date("TIMESTAMP"),
58
+ * // SubscriberAccountId: "STRING_VALUE",
59
+ * // },
60
+ * // ],
61
+ * // NextToken: "STRING_VALUE",
62
+ * // };
63
+ *
64
+ * ```
65
+ *
66
+ * @param ListSubscribersCommandInput - {@link ListSubscribersCommandInput}
67
+ * @returns {@link ListSubscribersCommandOutput}
68
+ * @see {@link ListSubscribersCommandInput} for command's `input` shape.
69
+ * @see {@link ListSubscribersCommandOutput} for command's `response` shape.
70
+ * @see {@link EventBridgeV2ClientResolvedConfig | config} for EventBridgeV2Client's `config` shape.
71
+ *
72
+ * @throws {@link ResourceNotFoundException} (client fault)
73
+ * The resource does not exist.
74
+ *
75
+ * @throws {@link AccessDeniedException} (client fault)
76
+ * The caller does not have the permissions required to perform the operation.
77
+ * This error is also returned when the operation cannot use the AWS KMS key for
78
+ * the event bus.
79
+ *
80
+ * @throws {@link InternalException} (server fault)
81
+ * The request failed because of an internal service error. Retry the request.
82
+ *
83
+ * @throws {@link InvalidInputException} (client fault)
84
+ * A request parameter is missing or not valid.
85
+ *
86
+ * @throws {@link ThrottlingException} (client fault)
87
+ * The request was throttled because it exceeds a request rate limit. Retry the
88
+ * request with backoff.
89
+ *
90
+ * @throws {@link EventBridgeV2ServiceException}
91
+ * <p>Base exception class for all service exceptions from EventBridgeV2 service.</p>
92
+ *
93
+ *
94
+ * @public
95
+ */
96
+ export declare class ListSubscribersCommand extends ListSubscribersCommand_base {
97
+ /** @internal type navigation helper, not in runtime. */
98
+ protected static __types: {
99
+ api: {
100
+ input: ListSubscribersRequest;
101
+ output: ListSubscribersResponse;
102
+ };
103
+ sdk: {
104
+ input: ListSubscribersCommandInput;
105
+ output: ListSubscribersCommandOutput;
106
+ };
107
+ };
108
+ }
@@ -0,0 +1,91 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListTagsForResourceCommand}.
11
+ */
12
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListTagsForResourceCommand}.
18
+ */
19
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
20
+ }
21
+ declare const ListTagsForResourceCommand_base: {
22
+ new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, import("..").EventBridgeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, import("..").EventBridgeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * Lists the tags on an event bus, subscriber, or event source.
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { EventBridgeV2Client, ListTagsForResourceCommand } from "@aws-sdk/client-eventbridgev2"; // ES Modules import
32
+ * // const { EventBridgeV2Client, ListTagsForResourceCommand } = require("@aws-sdk/client-eventbridgev2"); // CommonJS import
33
+ * // import type { EventBridgeV2ClientConfig } from "@aws-sdk/client-eventbridgev2";
34
+ * const config = {}; // type is EventBridgeV2ClientConfig
35
+ * const client = new EventBridgeV2Client(config);
36
+ * const input = { // ListTagsForResourceRequest
37
+ * ResourceArn: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new ListTagsForResourceCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // ListTagsForResourceResponse
42
+ * // Tags: { // TagMap
43
+ * // "<keys>": "STRING_VALUE",
44
+ * // },
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
50
+ * @returns {@link ListTagsForResourceCommandOutput}
51
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
52
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
53
+ * @see {@link EventBridgeV2ClientResolvedConfig | config} for EventBridgeV2Client's `config` shape.
54
+ *
55
+ * @throws {@link ResourceNotFoundException} (client fault)
56
+ * The resource does not exist.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * The caller does not have the permissions required to perform the operation.
60
+ * This error is also returned when the operation cannot use the AWS KMS key for
61
+ * the event bus.
62
+ *
63
+ * @throws {@link InternalException} (server fault)
64
+ * The request failed because of an internal service error. Retry the request.
65
+ *
66
+ * @throws {@link InvalidInputException} (client fault)
67
+ * A request parameter is missing or not valid.
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * The request was throttled because it exceeds a request rate limit. Retry the
71
+ * request with backoff.
72
+ *
73
+ * @throws {@link EventBridgeV2ServiceException}
74
+ * <p>Base exception class for all service exceptions from EventBridgeV2 service.</p>
75
+ *
76
+ *
77
+ * @public
78
+ */
79
+ export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
80
+ /** @internal type navigation helper, not in runtime. */
81
+ protected static __types: {
82
+ api: {
83
+ input: ListTagsForResourceRequest;
84
+ output: ListTagsForResourceResponse;
85
+ };
86
+ sdk: {
87
+ input: ListTagsForResourceCommandInput;
88
+ output: ListTagsForResourceCommandOutput;
89
+ };
90
+ };
91
+ }
@@ -0,0 +1,120 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { PutEventsRequest, PutEventsResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link PutEventsCommand}.
11
+ */
12
+ export interface PutEventsCommandInput extends PutEventsRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link PutEventsCommand}.
18
+ */
19
+ export interface PutEventsCommandOutput extends PutEventsResponse, __MetadataBearer {
20
+ }
21
+ declare const PutEventsCommand_base: {
22
+ new (input: PutEventsCommandInput): import("@smithy/core/client").CommandImpl<PutEventsCommandInput, PutEventsCommandOutput, import("..").EventBridgeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: PutEventsCommandInput): import("@smithy/core/client").CommandImpl<PutEventsCommandInput, PutEventsCommandOutput, import("..").EventBridgeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * Publishes events to an event bus.
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { EventBridgeV2Client, PutEventsCommand } from "@aws-sdk/client-eventbridgev2"; // ES Modules import
32
+ * // const { EventBridgeV2Client, PutEventsCommand } = require("@aws-sdk/client-eventbridgev2"); // CommonJS import
33
+ * // import type { EventBridgeV2ClientConfig } from "@aws-sdk/client-eventbridgev2";
34
+ * const config = {}; // type is EventBridgeV2ClientConfig
35
+ * const client = new EventBridgeV2Client(config);
36
+ * const input = { // PutEventsRequest
37
+ * EventBusArn: "STRING_VALUE", // required
38
+ * Entries: [ // PutEventsRequestEntryList // required
39
+ * { // PutEventsRequestEntry
40
+ * Source: "STRING_VALUE", // required
41
+ * DetailType: "STRING_VALUE", // required
42
+ * Detail: "STRING_VALUE",
43
+ * Resources: [ // PutEventsResourceList
44
+ * "STRING_VALUE",
45
+ * ],
46
+ * Time: new Date("TIMESTAMP"),
47
+ * SystemMetadata: { // PutEventsSystemMetadata
48
+ * EventGroupId: "STRING_VALUE",
49
+ * DeduplicationId: "STRING_VALUE",
50
+ * },
51
+ * },
52
+ * ],
53
+ * DeduplicationConfiguration: { // DeduplicationConfiguration
54
+ * DeduplicationType: "CONTENT_BASED", // required
55
+ * },
56
+ * };
57
+ * const command = new PutEventsCommand(input);
58
+ * const response = await client.send(command);
59
+ * // { // PutEventsResponse
60
+ * // FailedEntryCount: Number("int"),
61
+ * // Entries: [ // PutEventsResultEntryList
62
+ * // { // PutEventsResultEntry
63
+ * // EventId: "STRING_VALUE",
64
+ * // SequenceNumber: "STRING_VALUE",
65
+ * // SuccessCode: "PUBLISHED" || "DEDUPLICATED",
66
+ * // ErrorCode: "STRING_VALUE",
67
+ * // ErrorMessage: "STRING_VALUE",
68
+ * // },
69
+ * // ],
70
+ * // };
71
+ *
72
+ * ```
73
+ *
74
+ * @param PutEventsCommandInput - {@link PutEventsCommandInput}
75
+ * @returns {@link PutEventsCommandOutput}
76
+ * @see {@link PutEventsCommandInput} for command's `input` shape.
77
+ * @see {@link PutEventsCommandOutput} for command's `response` shape.
78
+ * @see {@link EventBridgeV2ClientResolvedConfig | config} for EventBridgeV2Client's `config` shape.
79
+ *
80
+ * @throws {@link InternalException} (server fault)
81
+ * The request failed because of an internal service error. Retry the request.
82
+ *
83
+ * @throws {@link InvalidStateException} (client fault)
84
+ * The resource is not in a state that allows the operation. For example, an
85
+ * event bus that is still being created cannot accept events.
86
+ *
87
+ * @throws {@link ResourceNotFoundException} (client fault)
88
+ * The resource does not exist.
89
+ *
90
+ * @throws {@link AccessDeniedException} (client fault)
91
+ * The caller does not have the permissions required to perform the operation.
92
+ * This error is also returned when the operation cannot use the AWS KMS key for
93
+ * the event bus.
94
+ *
95
+ * @throws {@link InvalidInputException} (client fault)
96
+ * A request parameter is missing or not valid.
97
+ *
98
+ * @throws {@link ThrottlingException} (client fault)
99
+ * The request was throttled because it exceeds a request rate limit. Retry the
100
+ * request with backoff.
101
+ *
102
+ * @throws {@link EventBridgeV2ServiceException}
103
+ * <p>Base exception class for all service exceptions from EventBridgeV2 service.</p>
104
+ *
105
+ *
106
+ * @public
107
+ */
108
+ export declare class PutEventsCommand extends PutEventsCommand_base {
109
+ /** @internal type navigation helper, not in runtime. */
110
+ protected static __types: {
111
+ api: {
112
+ input: PutEventsRequest;
113
+ output: PutEventsResponse;
114
+ };
115
+ sdk: {
116
+ input: PutEventsCommandInput;
117
+ output: PutEventsCommandOutput;
118
+ };
119
+ };
120
+ }
@@ -0,0 +1,127 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { PutRawEventsRequest, PutRawEventsResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link PutRawEventsCommand}.
11
+ */
12
+ export interface PutRawEventsCommandInput extends PutRawEventsRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link PutRawEventsCommand}.
18
+ */
19
+ export interface PutRawEventsCommandOutput extends PutRawEventsResponse, __MetadataBearer {
20
+ }
21
+ declare const PutRawEventsCommand_base: {
22
+ new (input: PutRawEventsCommandInput): import("@smithy/core/client").CommandImpl<PutRawEventsCommandInput, PutRawEventsCommandOutput, import("..").EventBridgeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: PutRawEventsCommandInput): import("@smithy/core/client").CommandImpl<PutRawEventsCommandInput, PutRawEventsCommandOutput, import("..").EventBridgeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * Publishes pre-shaped events to an event bus.
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { EventBridgeV2Client, PutRawEventsCommand } from "@aws-sdk/client-eventbridgev2"; // ES Modules import
32
+ * // const { EventBridgeV2Client, PutRawEventsCommand } = require("@aws-sdk/client-eventbridgev2"); // CommonJS import
33
+ * // import type { EventBridgeV2ClientConfig } from "@aws-sdk/client-eventbridgev2";
34
+ * const config = {}; // type is EventBridgeV2ClientConfig
35
+ * const client = new EventBridgeV2Client(config);
36
+ * const input = { // PutRawEventsRequest
37
+ * EventBusArn: "STRING_VALUE", // required
38
+ * Entries: [ // PutRawEventsRequestEntryList // required
39
+ * { // PutRawEventsRequestEntry
40
+ * Data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
41
+ * Metadata: { // EventMetadataMap
42
+ * "<keys>": "STRING_VALUE",
43
+ * },
44
+ * SystemMetadata: { // PutRawEventsSystemMetadata
45
+ * ContentType: "STRING_VALUE", // required
46
+ * DeduplicationId: "STRING_VALUE",
47
+ * EventGroupId: "STRING_VALUE",
48
+ * },
49
+ * },
50
+ * ],
51
+ * SchemaRegistryConfiguration: { // SchemaRegistryConfiguration
52
+ * RegistryUri: "STRING_VALUE", // required
53
+ * ConfluentPublicRegistryConfiguration: { // ConfluentPublicRegistryConfiguration
54
+ * ConnectionArn: "STRING_VALUE", // required
55
+ * },
56
+ * },
57
+ * DeduplicationConfiguration: { // DeduplicationConfiguration
58
+ * DeduplicationType: "CONTENT_BASED", // required
59
+ * },
60
+ * };
61
+ * const command = new PutRawEventsCommand(input);
62
+ * const response = await client.send(command);
63
+ * // { // PutRawEventsResponse
64
+ * // FailedEntryCount: Number("int"),
65
+ * // Entries: [ // PutRawEventsResultEntryList
66
+ * // { // PutRawEventsResultEntry
67
+ * // EventId: "STRING_VALUE",
68
+ * // SequenceNumber: "STRING_VALUE",
69
+ * // SuccessCode: "PUBLISHED" || "DEDUPLICATED",
70
+ * // ErrorCode: "STRING_VALUE",
71
+ * // ErrorMessage: "STRING_VALUE",
72
+ * // },
73
+ * // ],
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param PutRawEventsCommandInput - {@link PutRawEventsCommandInput}
79
+ * @returns {@link PutRawEventsCommandOutput}
80
+ * @see {@link PutRawEventsCommandInput} for command's `input` shape.
81
+ * @see {@link PutRawEventsCommandOutput} for command's `response` shape.
82
+ * @see {@link EventBridgeV2ClientResolvedConfig | config} for EventBridgeV2Client's `config` shape.
83
+ *
84
+ * @throws {@link InvalidStateException} (client fault)
85
+ * The resource is not in a state that allows the operation. For example, an
86
+ * event bus that is still being created cannot accept events.
87
+ *
88
+ * @throws {@link ResourceNotFoundException} (client fault)
89
+ * The resource does not exist.
90
+ *
91
+ * @throws {@link SchemaRegistryUnavailableException} (client fault)
92
+ * The configured schema registry could not be reached. Retry the request.
93
+ *
94
+ * @throws {@link AccessDeniedException} (client fault)
95
+ * The caller does not have the permissions required to perform the operation.
96
+ * This error is also returned when the operation cannot use the AWS KMS key for
97
+ * the event bus.
98
+ *
99
+ * @throws {@link InternalException} (server fault)
100
+ * The request failed because of an internal service error. Retry the request.
101
+ *
102
+ * @throws {@link InvalidInputException} (client fault)
103
+ * A request parameter is missing or not valid.
104
+ *
105
+ * @throws {@link ThrottlingException} (client fault)
106
+ * The request was throttled because it exceeds a request rate limit. Retry the
107
+ * request with backoff.
108
+ *
109
+ * @throws {@link EventBridgeV2ServiceException}
110
+ * <p>Base exception class for all service exceptions from EventBridgeV2 service.</p>
111
+ *
112
+ *
113
+ * @public
114
+ */
115
+ export declare class PutRawEventsCommand extends PutRawEventsCommand_base {
116
+ /** @internal type navigation helper, not in runtime. */
117
+ protected static __types: {
118
+ api: {
119
+ input: PutRawEventsRequest;
120
+ output: PutRawEventsResponse;
121
+ };
122
+ sdk: {
123
+ input: PutRawEventsCommandInput;
124
+ output: PutRawEventsCommandOutput;
125
+ };
126
+ };
127
+ }
@@ -0,0 +1,132 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link PutResourcePolicyCommand}.
11
+ */
12
+ export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link PutResourcePolicyCommand}.
18
+ */
19
+ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer {
20
+ }
21
+ declare const PutResourcePolicyCommand_base: {
22
+ new (input: PutResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, import("..").EventBridgeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: PutResourcePolicyCommandInput): import("@smithy/core/client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, import("..").EventBridgeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * Attaches a named resource policy to an event bus — the only resource type that
28
+ * supports policies; other resource ARNs are rejected. Each bus holds two named
29
+ * policies: "default" (customer-managed, full IAM policy language including Deny)
30
+ * and "AWS_RAM" (written exclusively by AWS Resource Access Manager to reflect
31
+ * resource shares). Both policies are evaluated on cross-account authorization;
32
+ * an explicit Deny in either overrides an Allow in the other. Operations that
33
+ * omit PolicyName target "default". A "default" policy that would grant public
34
+ * access is rejected with PublicPolicyException and is not attached; this check
35
+ * is always on and cannot be disabled.
36
+ * @example
37
+ * Use a bare-bones client and the command you need to make an API call.
38
+ * ```javascript
39
+ * import { EventBridgeV2Client, PutResourcePolicyCommand } from "@aws-sdk/client-eventbridgev2"; // ES Modules import
40
+ * // const { EventBridgeV2Client, PutResourcePolicyCommand } = require("@aws-sdk/client-eventbridgev2"); // CommonJS import
41
+ * // import type { EventBridgeV2ClientConfig } from "@aws-sdk/client-eventbridgev2";
42
+ * const config = {}; // type is EventBridgeV2ClientConfig
43
+ * const client = new EventBridgeV2Client(config);
44
+ * const input = { // PutResourcePolicyRequest
45
+ * ResourceArn: "STRING_VALUE", // required
46
+ * PolicyDocument: "STRING_VALUE", // required
47
+ * PolicyName: "STRING_VALUE",
48
+ * ExpectedRevisionId: "STRING_VALUE",
49
+ * };
50
+ * const command = new PutResourcePolicyCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // PutResourcePolicyResponse
53
+ * // ResourceArn: "STRING_VALUE", // required
54
+ * // PolicyName: "STRING_VALUE", // required
55
+ * // RevisionId: "STRING_VALUE",
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param PutResourcePolicyCommandInput - {@link PutResourcePolicyCommandInput}
61
+ * @returns {@link PutResourcePolicyCommandOutput}
62
+ * @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
63
+ * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
64
+ * @see {@link EventBridgeV2ClientResolvedConfig | config} for EventBridgeV2Client's `config` shape.
65
+ *
66
+ * @throws {@link ConcurrentModificationException} (client fault)
67
+ * Another change to the resource is already in progress. Retry the request.
68
+ *
69
+ * @throws {@link ConflictException} (client fault)
70
+ * A client-supplied precondition (e.g. ExpectedRevisionId on a resource-policy
71
+ * write) did not match the current state of the resource. Retrying the same
72
+ * request will fail again; re-read the resource and re-evaluate before retrying.
73
+ *
74
+ * A conditional request is not retry-safe on its own. If an earlier attempt
75
+ * committed but its response never reached the caller, retrying fails with this
76
+ * error, which is indistinguishable from another writer having won. Compare the
77
+ * resource's current contents with what the request intended: a successful
78
+ * attempt stores a revision ID the caller never saw, so the revision alone
79
+ * cannot tell the two apart, but matching contents mean the change took effect.
80
+ *
81
+ * @throws {@link PolicyLengthExceededException} (client fault)
82
+ * The policy document is larger than the account's resource policy size quota, or
83
+ * larger than the service maximum.
84
+ *
85
+ * @throws {@link PublicPolicyException} (client fault)
86
+ * The policy was rejected because it would grant public access to the event bus.
87
+ * A statement grants public access when its principal is a wildcard and no
88
+ * condition limits the callers to specific AWS accounts or principals. To fix
89
+ * it, replace the wildcard principal with specific principals, or add a
90
+ * condition that limits the callers to specific AWS accounts. Conditions on
91
+ * event content (events:source, events:detail-type, events:Metadata/*) do not
92
+ * identify the caller and do not make a wildcard principal non-public. Returned
93
+ * only for the "default" policy; the "AWS_RAM" policy is composed by AWS
94
+ * Resource Access Manager and never grants public access.
95
+ *
96
+ * @throws {@link ResourceNotFoundException} (client fault)
97
+ * The resource does not exist.
98
+ *
99
+ * @throws {@link AccessDeniedException} (client fault)
100
+ * The caller does not have the permissions required to perform the operation.
101
+ * This error is also returned when the operation cannot use the AWS KMS key for
102
+ * the event bus.
103
+ *
104
+ * @throws {@link InternalException} (server fault)
105
+ * The request failed because of an internal service error. Retry the request.
106
+ *
107
+ * @throws {@link InvalidInputException} (client fault)
108
+ * A request parameter is missing or not valid.
109
+ *
110
+ * @throws {@link ThrottlingException} (client fault)
111
+ * The request was throttled because it exceeds a request rate limit. Retry the
112
+ * request with backoff.
113
+ *
114
+ * @throws {@link EventBridgeV2ServiceException}
115
+ * <p>Base exception class for all service exceptions from EventBridgeV2 service.</p>
116
+ *
117
+ *
118
+ * @public
119
+ */
120
+ export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base {
121
+ /** @internal type navigation helper, not in runtime. */
122
+ protected static __types: {
123
+ api: {
124
+ input: PutResourcePolicyRequest;
125
+ output: PutResourcePolicyResponse;
126
+ };
127
+ sdk: {
128
+ input: PutResourcePolicyCommandInput;
129
+ output: PutResourcePolicyCommandOutput;
130
+ };
131
+ };
132
+ }
@@ -0,0 +1,99 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { RevokeResourceRequest, RevokeResourceResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link RevokeResourceCommand}.
11
+ */
12
+ export interface RevokeResourceCommandInput extends RevokeResourceRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link RevokeResourceCommand}.
18
+ */
19
+ export interface RevokeResourceCommandOutput extends RevokeResourceResponse, __MetadataBearer {
20
+ }
21
+ declare const RevokeResourceCommand_base: {
22
+ new (input: RevokeResourceCommandInput): import("@smithy/core/client").CommandImpl<RevokeResourceCommandInput, RevokeResourceCommandOutput, import("..").EventBridgeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: RevokeResourceCommandInput): import("@smithy/core/client").CommandImpl<RevokeResourceCommandInput, RevokeResourceCommandOutput, import("..").EventBridgeV2ClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * Revokes a subscriber or an EventSource. The bus owner calls this to withdraw a
28
+ * misbehaving resource attached to their bus. Revocation is terminal: there is no
29
+ * operation that clears it. A revoked resource refuses mutating operations with
30
+ * InvalidStateException; delete stays available for cleanup.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { EventBridgeV2Client, RevokeResourceCommand } from "@aws-sdk/client-eventbridgev2"; // ES Modules import
35
+ * // const { EventBridgeV2Client, RevokeResourceCommand } = require("@aws-sdk/client-eventbridgev2"); // CommonJS import
36
+ * // import type { EventBridgeV2ClientConfig } from "@aws-sdk/client-eventbridgev2";
37
+ * const config = {}; // type is EventBridgeV2ClientConfig
38
+ * const client = new EventBridgeV2Client(config);
39
+ * const input = { // RevokeResourceRequest
40
+ * Arn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new RevokeResourceCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // RevokeResourceResponse
45
+ * // Arn: "STRING_VALUE",
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param RevokeResourceCommandInput - {@link RevokeResourceCommandInput}
51
+ * @returns {@link RevokeResourceCommandOutput}
52
+ * @see {@link RevokeResourceCommandInput} for command's `input` shape.
53
+ * @see {@link RevokeResourceCommandOutput} for command's `response` shape.
54
+ * @see {@link EventBridgeV2ClientResolvedConfig | config} for EventBridgeV2Client's `config` shape.
55
+ *
56
+ * @throws {@link ConcurrentModificationException} (client fault)
57
+ * Another change to the resource is already in progress. Retry the request.
58
+ *
59
+ * @throws {@link InvalidStateException} (client fault)
60
+ * The resource is not in a state that allows the operation. For example, an
61
+ * event bus that is still being created cannot accept events.
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * The resource does not exist.
65
+ *
66
+ * @throws {@link AccessDeniedException} (client fault)
67
+ * The caller does not have the permissions required to perform the operation.
68
+ * This error is also returned when the operation cannot use the AWS KMS key for
69
+ * the event bus.
70
+ *
71
+ * @throws {@link InternalException} (server fault)
72
+ * The request failed because of an internal service error. Retry the request.
73
+ *
74
+ * @throws {@link InvalidInputException} (client fault)
75
+ * A request parameter is missing or not valid.
76
+ *
77
+ * @throws {@link ThrottlingException} (client fault)
78
+ * The request was throttled because it exceeds a request rate limit. Retry the
79
+ * request with backoff.
80
+ *
81
+ * @throws {@link EventBridgeV2ServiceException}
82
+ * <p>Base exception class for all service exceptions from EventBridgeV2 service.</p>
83
+ *
84
+ *
85
+ * @public
86
+ */
87
+ export declare class RevokeResourceCommand extends RevokeResourceCommand_base {
88
+ /** @internal type navigation helper, not in runtime. */
89
+ protected static __types: {
90
+ api: {
91
+ input: RevokeResourceRequest;
92
+ output: RevokeResourceResponse;
93
+ };
94
+ sdk: {
95
+ input: RevokeResourceCommandInput;
96
+ output: RevokeResourceCommandOutput;
97
+ };
98
+ };
99
+ }