You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/client-eventbridge/src/EventBridge.ts
+4-33Lines changed: 4 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -823,14 +823,11 @@ export class EventBridge extends EventBridgeClient {
823
823
/**
824
824
* <p>Deletes the specified rule.</p>
825
825
* <p>Before you can delete the rule, you must remove all targets, using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html">RemoveTargets</a>.</p>
826
-
*
827
826
* <p>When you delete a rule, incoming events might continue to match to the deleted rule. Allow
828
827
* a short period of time for changes to take effect.</p>
829
-
*
830
828
* <p>If you call delete rule multiple times for the same rule, all calls will succeed. When you
831
829
* call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code> is
832
830
* returned.</p>
833
-
*
834
831
* <p>Managed rules are rules created and managed by another Amazon Web Services service on your behalf. These
835
832
* rules are created by those other Amazon Web Services services to support functionality in those services. You
836
833
* can delete these rules using the <code>Force</code> option, but you should do so only if you
@@ -1167,7 +1164,6 @@ export class EventBridge extends EventBridgeClient {
1167
1164
/**
1168
1165
* <p>Disables the specified rule. A disabled rule won't match any events, and won't
1169
1166
* self-trigger if it has a schedule expression.</p>
1170
-
*
1171
1167
* <p>When you disable a rule, incoming events might continue to match to the disabled rule.
1172
1168
* Allow a short period of time for changes to take effect.</p>
1173
1169
*/
@@ -1196,7 +1192,6 @@ export class EventBridge extends EventBridgeClient {
1196
1192
1197
1193
/**
1198
1194
* <p>Enables the specified rule. If the rule does not exist, the operation fails.</p>
1199
-
*
1200
1195
* <p>When you enable a rule, incoming events might not immediately start matching to a newly
1201
1196
* enabled rule. Allow a short period of time for changes to take effect.</p>
1202
1197
*/
@@ -1545,7 +1540,6 @@ export class EventBridge extends EventBridgeClient {
1545
1540
/**
1546
1541
* <p>Lists your Amazon EventBridge rules. You can either list all the rules or you can provide
1547
1542
* a prefix to match to the rule names.</p>
1548
-
*
1549
1543
* <p>ListRules does not list the targets of a rule. To see the targets associated with a rule,
1550
1544
* use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.</p>
1551
1545
*/
@@ -1706,19 +1700,16 @@ export class EventBridge extends EventBridgeClient {
1706
1700
* account. </p>
1707
1701
* <p>For another account to send events to your account, that external account must have an
1708
1702
* EventBridge rule with your account's event bus as a target.</p>
1709
-
*
1710
1703
* <p>To enable multiple Amazon Web Services accounts to put events to your event bus, run
1711
1704
* <code>PutPermission</code> once for each of these accounts. Or, if all the accounts are
1712
1705
* members of the same Amazon Web Services organization, you can run <code>PutPermission</code> once specifying
1713
1706
* <code>Principal</code> as "*" and specifying the Amazon Web Services organization ID in
1714
1707
* <code>Condition</code>, to grant permissions to all accounts in that organization.</p>
1715
-
*
1716
1708
* <p>If you grant permissions using an organization, then accounts in that organization must
1717
1709
* specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code> to
1718
1710
* add your account's event bus as a target. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending and
1719
1711
* Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge User
1720
1712
* Guide</i>.</p>
1721
-
*
1722
1713
* <p>The permission policy on the event bus cannot exceed 10 KB in size.</p>
1723
1714
*/
1724
1715
publicputPermission(
@@ -1753,39 +1744,32 @@ export class EventBridge extends EventBridgeClient {
1753
1744
/**
1754
1745
* <p>Creates or updates the specified rule. Rules are enabled by default, or based on value of
1755
1746
* the state. You can disable a rule using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DisableRule.html">DisableRule</a>.</p>
1756
-
*
1757
1747
* <p>A single rule watches for events from a single event bus. Events generated by Amazon Web Services services
1758
1748
* go to your account's default event bus. Events generated by SaaS partner services or
1759
1749
* applications go to the matching partner event bus. If you have custom applications or
1760
1750
* services, you can specify whether their events go to your default event bus or a custom event
1761
1751
* bus that you have created. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_CreateEventBus.html">CreateEventBus</a>.</p>
1762
-
*
1763
1752
* <p>If you are updating an existing rule, the rule is replaced with what you specify in this
1764
1753
* <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>, the old values
1765
1754
* for those arguments are not kept. Instead, they are replaced with null values.</p>
1766
-
*
1767
1755
* <p>When you create or update a rule, incoming events might not immediately start matching to
1768
1756
* new or updated rules. Allow a short period of time for changes to take effect.</p>
1769
-
*
1770
1757
* <p>A rule must contain at least an EventPattern or ScheduleExpression. Rules with
1771
1758
* EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions
1772
1759
* self-trigger based on the given schedule. A rule can have both an EventPattern and a
1773
1760
* ScheduleExpression, in which case the rule triggers on matching events as well as on a
1774
1761
* schedule.</p>
1775
-
*
1776
1762
* <p>When you initially create a rule, you can optionally assign one or more tags to the rule.
1777
1763
* Tags can help you organize and categorize your resources. You can also use them to scope user
1778
1764
* permissions, by granting a user permission to access or change only rules with certain tag
1779
1765
* values. To use the <code>PutRule</code> operation and assign tags, you must have both the
1780
1766
* <code>events:PutRule</code> and <code>events:TagResource</code> permissions.</p>
1781
1767
* <p>If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
1782
1768
* operation are ignored. To update the tags of an existing rule, use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_TagResource.html">TagResource</a> and <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_UntagResource.html">UntagResource</a>.</p>
1783
-
*
1784
1769
* <p>Most services in Amazon Web Services treat : or / as the same character in Amazon Resource Names (ARNs).
1785
1770
* However, EventBridge uses an exact match in event patterns and rules. Be sure to use the
1786
1771
* correct ARN characters when creating event patterns so that they match the ARN syntax in the
1787
1772
* event you want to match.</p>
1788
-
*
1789
1773
* <p>In EventBridge, it is possible to create rules that lead to infinite loops, where a rule
1790
1774
* is fired repeatedly. For example, a rule might detect that ACLs have changed on an S3 bucket,
1791
1775
* and trigger software to change them to the desired state. If the rule is not written
@@ -1830,7 +1814,6 @@ export class EventBridge extends EventBridgeClient {
1830
1814
* <p>Each rule can have up to five (5) targets associated with it at one time.</p>
1831
1815
* </note>
1832
1816
* <p>You can configure the following as targets for Events:</p>
1833
-
*
1834
1817
* <ul>
1835
1818
* <li>
1836
1819
* <p>
@@ -1908,6 +1891,9 @@ export class EventBridge extends EventBridgeClient {
1908
1891
* <p>Redshift cluster</p>
1909
1892
* </li>
1910
1893
* <li>
1894
+
* <p>Redshift Serverless workgroup</p>
1895
+
* </li>
1896
+
* <li>
1911
1897
* <p>SageMaker Pipeline</p>
1912
1898
* </li>
1913
1899
* <li>
@@ -1929,25 +1915,21 @@ export class EventBridge extends EventBridgeClient {
1929
1915
* <p>Systems Manager Run Command</p>
1930
1916
* </li>
1931
1917
* </ul>
1932
-
*
1933
1918
* <p>Creating rules with built-in targets is supported only in the Amazon Web Services Management Console. The
1934
1919
* built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances API
1935
1920
* call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances API
1936
1921
* call</code>. </p>
1937
-
*
1938
1922
* <p>For some target types, <code>PutTargets</code> provides target-specific parameters. If the
1939
1923
* target is a Kinesis data stream, you can optionally specify which shard the event goes to by
1940
1924
* using the <code>KinesisParameters</code> argument. To invoke a command on multiple EC2
1941
1925
* instances with one rule, you can use the <code>RunCommandParameters</code> field.</p>
1942
-
*
1943
1926
* <p>To be able to make API calls against the resources that you own, Amazon EventBridge
1944
1927
* needs the appropriate permissions. For Lambda and Amazon SNS
1945
1928
* resources, EventBridge relies on resource-based policies. For EC2 instances, Kinesis Data Streams,
1946
-
* Step Functions state machines and API Gateway REST APIs, EventBridge relies on
1929
+
* Step Functions state machines and API Gateway APIs, EventBridge relies on
1947
1930
* IAM roles that you specify in the <code>RoleARN</code> argument in <code>PutTargets</code>.
1948
1931
* For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html">Authentication
1949
1932
* and Access Control</a> in the <i>Amazon EventBridge User Guide</i>.</p>
1950
-
*
1951
1933
* <p>If another Amazon Web Services account is in the same region and has granted you permission (using
1952
1934
* <code>PutPermission</code>), you can send events to that account. Set that account's event
1953
1935
* bus as a target of the rules in your account. To send the matched events to the other account,
@@ -1956,28 +1938,23 @@ export class EventBridge extends EventBridgeClient {
1956
1938
* charged for each sent event. Each event sent to another account is charged as a custom event.
1957
1939
* The account receiving the event is not charged. For more information, see <a href="http://aws.amazon.com/eventbridge/pricing/">Amazon EventBridge
1958
1940
* Pricing</a>.</p>
1959
-
*
1960
1941
* <note>
1961
1942
* <p>
1962
1943
* <code>Input</code>, <code>InputPath</code>, and <code>InputTransformer</code> are not
1963
1944
* available with <code>PutTarget</code> if the target is an event bus of a different Amazon Web Services
1964
1945
* account.</p>
1965
1946
* </note>
1966
-
*
1967
1947
* <p>If you are setting the event bus of another account as the target, and that account
1968
1948
* granted permission to your account through an organization instead of directly by the account
1969
1949
* ID, then you must specify a <code>RoleArn</code> with proper permissions in the
1970
1950
* <code>Target</code> structure. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending and
1971
1951
* Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge User
1972
1952
* Guide</i>.</p>
1973
-
*
1974
1953
* <p>For more information about enabling cross-account events, see <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutPermission.html">PutPermission</a>.</p>
1975
-
*
1976
1954
* <p>
1977
1955
* <b>Input</b>, <b>InputPath</b>, and
1978
1956
* <b>InputTransformer</b> are mutually exclusive and optional
1979
1957
* parameters of a target. When a rule is triggered due to a matched event:</p>
1980
-
*
1981
1958
* <ul>
1982
1959
* <li>
1983
1960
* <p>If none of the following arguments are specified for a target, then the entire event
@@ -2000,14 +1977,11 @@ export class EventBridge extends EventBridgeClient {
2000
1977
* specify as the input to the target.</p>
2001
1978
* </li>
2002
1979
* </ul>
2003
-
*
2004
1980
* <p>When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must use
2005
1981
* JSON dot notation, not bracket notation.</p>
2006
-
*
2007
1982
* <p>When you add targets to a rule and the associated rule triggers soon after, new or updated
2008
1983
* targets might not be immediately invoked. Allow a short period of time for changes to take
2009
1984
* effect.</p>
2010
-
*
2011
1985
* <p>This action can partially fail if too many requests are made at the same time. If that
2012
1986
* happens, <code>FailedEntryCount</code> is non-zero in the response and each entry in
2013
1987
* <code>FailedEntries</code> provides the ID of the failed target and the error code.</p>
@@ -2073,14 +2047,11 @@ export class EventBridge extends EventBridgeClient {
2073
2047
/**
2074
2048
* <p>Removes the specified targets from the specified rule. When the rule is triggered, those
2075
2049
* targets are no longer be invoked.</p>
2076
-
*
2077
2050
* <note>
2078
2051
* <p>A successful execution of <code>RemoveTargets</code> doesn't guarantee all targets are removed from the rule, it means that the target(s) listed in the request are removed.</p>
2079
2052
* </note>
2080
-
*
2081
2053
* <p>When you remove a target, when the associated rule triggers, removed targets might
2082
2054
* continue to be invoked. Allow a short period of time for changes to take effect.</p>
2083
-
*
2084
2055
* <p>This action can partially fail if too many requests are made at the same time. If that
2085
2056
* happens, <code>FailedEntryCount</code> is non-zero in the response and each entry in
2086
2057
* <code>FailedEntries</code> provides the ID of the failed target and the error code.</p>
* <p>Before you can delete the rule, you must remove all targets, using <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_RemoveTargets.html">RemoveTargets</a>.</p>
29
-
*
30
29
* <p>When you delete a rule, incoming events might continue to match to the deleted rule. Allow
31
30
* a short period of time for changes to take effect.</p>
32
-
*
33
31
* <p>If you call delete rule multiple times for the same rule, all calls will succeed. When you
34
32
* call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code> is
35
33
* returned.</p>
36
-
*
37
34
* <p>Managed rules are rules created and managed by another Amazon Web Services service on your behalf. These
38
35
* rules are created by those other Amazon Web Services services to support functionality in those services. You
39
36
* can delete these rules using the <code>Force</code> option, but you should do so only if you
* <p>For another account to send events to your account, that external account must have an
32
32
* EventBridge rule with your account's event bus as a target.</p>
33
-
*
34
33
* <p>To enable multiple Amazon Web Services accounts to put events to your event bus, run
35
34
* <code>PutPermission</code> once for each of these accounts. Or, if all the accounts are
36
35
* members of the same Amazon Web Services organization, you can run <code>PutPermission</code> once specifying
37
36
* <code>Principal</code> as "*" and specifying the Amazon Web Services organization ID in
38
37
* <code>Condition</code>, to grant permissions to all accounts in that organization.</p>
39
-
*
40
38
* <p>If you grant permissions using an organization, then accounts in that organization must
41
39
* specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code> to
42
40
* add your account's event bus as a target. For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending and
43
41
* Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge User
44
42
* Guide</i>.</p>
45
-
*
46
43
* <p>The permission policy on the event bus cannot exceed 10 KB in size.</p>
47
44
* @example
48
45
* Use a bare-bones client and the command you need to make an API call.
0 commit comments