Skip to content

Commit 5e5f4b2

Browse files
author
awstools
committed
feat(client-eventbridge): Minor comments for Redshift Serverless workgroup target support.
1 parent 1d7f650 commit 5e5f4b2

File tree

13 files changed

+393
-467
lines changed

13 files changed

+393
-467
lines changed

clients/client-eventbridge/src/EventBridge.ts

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -823,14 +823,11 @@ export class EventBridge extends EventBridgeClient {
823823
/**
824824
* <p>Deletes the specified rule.</p>
825825
* <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-
*
827826
* <p>When you delete a rule, incoming events might continue to match to the deleted rule. Allow
828827
* a short period of time for changes to take effect.</p>
829-
*
830828
* <p>If you call delete rule multiple times for the same rule, all calls will succeed. When you
831829
* call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code> is
832830
* returned.</p>
833-
*
834831
* <p>Managed rules are rules created and managed by another Amazon Web Services service on your behalf. These
835832
* rules are created by those other Amazon Web Services services to support functionality in those services. You
836833
* 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 {
11671164
/**
11681165
* <p>Disables the specified rule. A disabled rule won't match any events, and won't
11691166
* self-trigger if it has a schedule expression.</p>
1170-
*
11711167
* <p>When you disable a rule, incoming events might continue to match to the disabled rule.
11721168
* Allow a short period of time for changes to take effect.</p>
11731169
*/
@@ -1196,7 +1192,6 @@ export class EventBridge extends EventBridgeClient {
11961192

11971193
/**
11981194
* <p>Enables the specified rule. If the rule does not exist, the operation fails.</p>
1199-
*
12001195
* <p>When you enable a rule, incoming events might not immediately start matching to a newly
12011196
* enabled rule. Allow a short period of time for changes to take effect.</p>
12021197
*/
@@ -1545,7 +1540,6 @@ export class EventBridge extends EventBridgeClient {
15451540
/**
15461541
* <p>Lists your Amazon EventBridge rules. You can either list all the rules or you can provide
15471542
* a prefix to match to the rule names.</p>
1548-
*
15491543
* <p>ListRules does not list the targets of a rule. To see the targets associated with a rule,
15501544
* use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.</p>
15511545
*/
@@ -1706,19 +1700,16 @@ export class EventBridge extends EventBridgeClient {
17061700
* account. </p>
17071701
* <p>For another account to send events to your account, that external account must have an
17081702
* EventBridge rule with your account's event bus as a target.</p>
1709-
*
17101703
* <p>To enable multiple Amazon Web Services accounts to put events to your event bus, run
17111704
* <code>PutPermission</code> once for each of these accounts. Or, if all the accounts are
17121705
* members of the same Amazon Web Services organization, you can run <code>PutPermission</code> once specifying
17131706
* <code>Principal</code> as "*" and specifying the Amazon Web Services organization ID in
17141707
* <code>Condition</code>, to grant permissions to all accounts in that organization.</p>
1715-
*
17161708
* <p>If you grant permissions using an organization, then accounts in that organization must
17171709
* specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code> to
17181710
* 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
17191711
* Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge User
17201712
* Guide</i>.</p>
1721-
*
17221713
* <p>The permission policy on the event bus cannot exceed 10 KB in size.</p>
17231714
*/
17241715
public putPermission(
@@ -1753,39 +1744,32 @@ export class EventBridge extends EventBridgeClient {
17531744
/**
17541745
* <p>Creates or updates the specified rule. Rules are enabled by default, or based on value of
17551746
* 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-
*
17571747
* <p>A single rule watches for events from a single event bus. Events generated by Amazon Web Services services
17581748
* go to your account's default event bus. Events generated by SaaS partner services or
17591749
* applications go to the matching partner event bus. If you have custom applications or
17601750
* services, you can specify whether their events go to your default event bus or a custom event
17611751
* 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-
*
17631752
* <p>If you are updating an existing rule, the rule is replaced with what you specify in this
17641753
* <code>PutRule</code> command. If you omit arguments in <code>PutRule</code>, the old values
17651754
* for those arguments are not kept. Instead, they are replaced with null values.</p>
1766-
*
17671755
* <p>When you create or update a rule, incoming events might not immediately start matching to
17681756
* new or updated rules. Allow a short period of time for changes to take effect.</p>
1769-
*
17701757
* <p>A rule must contain at least an EventPattern or ScheduleExpression. Rules with
17711758
* EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions
17721759
* self-trigger based on the given schedule. A rule can have both an EventPattern and a
17731760
* ScheduleExpression, in which case the rule triggers on matching events as well as on a
17741761
* schedule.</p>
1775-
*
17761762
* <p>When you initially create a rule, you can optionally assign one or more tags to the rule.
17771763
* Tags can help you organize and categorize your resources. You can also use them to scope user
17781764
* permissions, by granting a user permission to access or change only rules with certain tag
17791765
* values. To use the <code>PutRule</code> operation and assign tags, you must have both the
17801766
* <code>events:PutRule</code> and <code>events:TagResource</code> permissions.</p>
17811767
* <p>If you are updating an existing rule, any tags you specify in the <code>PutRule</code>
17821768
* 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-
*
17841769
* <p>Most services in Amazon Web Services treat : or / as the same character in Amazon Resource Names (ARNs).
17851770
* However, EventBridge uses an exact match in event patterns and rules. Be sure to use the
17861771
* correct ARN characters when creating event patterns so that they match the ARN syntax in the
17871772
* event you want to match.</p>
1788-
*
17891773
* <p>In EventBridge, it is possible to create rules that lead to infinite loops, where a rule
17901774
* is fired repeatedly. For example, a rule might detect that ACLs have changed on an S3 bucket,
17911775
* 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 {
18301814
* <p>Each rule can have up to five (5) targets associated with it at one time.</p>
18311815
* </note>
18321816
* <p>You can configure the following as targets for Events:</p>
1833-
*
18341817
* <ul>
18351818
* <li>
18361819
* <p>
@@ -1908,6 +1891,9 @@ export class EventBridge extends EventBridgeClient {
19081891
* <p>Redshift cluster</p>
19091892
* </li>
19101893
* <li>
1894+
* <p>Redshift Serverless workgroup</p>
1895+
* </li>
1896+
* <li>
19111897
* <p>SageMaker Pipeline</p>
19121898
* </li>
19131899
* <li>
@@ -1929,25 +1915,21 @@ export class EventBridge extends EventBridgeClient {
19291915
* <p>Systems Manager Run Command</p>
19301916
* </li>
19311917
* </ul>
1932-
*
19331918
* <p>Creating rules with built-in targets is supported only in the Amazon Web Services Management Console. The
19341919
* built-in targets are <code>EC2 CreateSnapshot API call</code>, <code>EC2 RebootInstances API
19351920
* call</code>, <code>EC2 StopInstances API call</code>, and <code>EC2 TerminateInstances API
19361921
* call</code>. </p>
1937-
*
19381922
* <p>For some target types, <code>PutTargets</code> provides target-specific parameters. If the
19391923
* target is a Kinesis data stream, you can optionally specify which shard the event goes to by
19401924
* using the <code>KinesisParameters</code> argument. To invoke a command on multiple EC2
19411925
* instances with one rule, you can use the <code>RunCommandParameters</code> field.</p>
1942-
*
19431926
* <p>To be able to make API calls against the resources that you own, Amazon EventBridge
19441927
* needs the appropriate permissions. For Lambda and Amazon SNS
19451928
* 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
19471930
* IAM roles that you specify in the <code>RoleARN</code> argument in <code>PutTargets</code>.
19481931
* For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html">Authentication
19491932
* and Access Control</a> in the <i>Amazon EventBridge User Guide</i>.</p>
1950-
*
19511933
* <p>If another Amazon Web Services account is in the same region and has granted you permission (using
19521934
* <code>PutPermission</code>), you can send events to that account. Set that account's event
19531935
* 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 {
19561938
* charged for each sent event. Each event sent to another account is charged as a custom event.
19571939
* The account receiving the event is not charged. For more information, see <a href="http://aws.amazon.com/eventbridge/pricing/">Amazon EventBridge
19581940
* Pricing</a>.</p>
1959-
*
19601941
* <note>
19611942
* <p>
19621943
* <code>Input</code>, <code>InputPath</code>, and <code>InputTransformer</code> are not
19631944
* available with <code>PutTarget</code> if the target is an event bus of a different Amazon Web Services
19641945
* account.</p>
19651946
* </note>
1966-
*
19671947
* <p>If you are setting the event bus of another account as the target, and that account
19681948
* granted permission to your account through an organization instead of directly by the account
19691949
* ID, then you must specify a <code>RoleArn</code> with proper permissions in the
19701950
* <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
19711951
* Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge User
19721952
* Guide</i>.</p>
1973-
*
19741953
* <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-
*
19761954
* <p>
19771955
* <b>Input</b>, <b>InputPath</b>, and
19781956
* <b>InputTransformer</b> are mutually exclusive and optional
19791957
* parameters of a target. When a rule is triggered due to a matched event:</p>
1980-
*
19811958
* <ul>
19821959
* <li>
19831960
* <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 {
20001977
* specify as the input to the target.</p>
20011978
* </li>
20021979
* </ul>
2003-
*
20041980
* <p>When you specify <code>InputPath</code> or <code>InputTransformer</code>, you must use
20051981
* JSON dot notation, not bracket notation.</p>
2006-
*
20071982
* <p>When you add targets to a rule and the associated rule triggers soon after, new or updated
20081983
* targets might not be immediately invoked. Allow a short period of time for changes to take
20091984
* effect.</p>
2010-
*
20111985
* <p>This action can partially fail if too many requests are made at the same time. If that
20121986
* happens, <code>FailedEntryCount</code> is non-zero in the response and each entry in
20131987
* <code>FailedEntries</code> provides the ID of the failed target and the error code.</p>
@@ -2073,14 +2047,11 @@ export class EventBridge extends EventBridgeClient {
20732047
/**
20742048
* <p>Removes the specified targets from the specified rule. When the rule is triggered, those
20752049
* targets are no longer be invoked.</p>
2076-
*
20772050
* <note>
20782051
* <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>
20792052
* </note>
2080-
*
20812053
* <p>When you remove a target, when the associated rule triggers, removed targets might
20822054
* continue to be invoked. Allow a short period of time for changes to take effect.</p>
2083-
*
20842055
* <p>This action can partially fail if too many requests are made at the same time. If that
20852056
* happens, <code>FailedEntryCount</code> is non-zero in the response and each entry in
20862057
* <code>FailedEntries</code> provides the ID of the failed target and the error code.</p>

clients/client-eventbridge/src/commands/DeleteRuleCommand.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,11 @@ export interface DeleteRuleCommandOutput extends __MetadataBearer {}
2626
/**
2727
* <p>Deletes the specified rule.</p>
2828
* <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-
*
3029
* <p>When you delete a rule, incoming events might continue to match to the deleted rule. Allow
3130
* a short period of time for changes to take effect.</p>
32-
*
3331
* <p>If you call delete rule multiple times for the same rule, all calls will succeed. When you
3432
* call delete rule for a non-existent custom eventbus, <code>ResourceNotFoundException</code> is
3533
* returned.</p>
36-
*
3734
* <p>Managed rules are rules created and managed by another Amazon Web Services service on your behalf. These
3835
* rules are created by those other Amazon Web Services services to support functionality in those services. You
3936
* can delete these rules using the <code>Force</code> option, but you should do so only if you

clients/client-eventbridge/src/commands/DisableRuleCommand.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export interface DisableRuleCommandOutput extends __MetadataBearer {}
2626
/**
2727
* <p>Disables the specified rule. A disabled rule won't match any events, and won't
2828
* self-trigger if it has a schedule expression.</p>
29-
*
3029
* <p>When you disable a rule, incoming events might continue to match to the disabled rule.
3130
* Allow a short period of time for changes to take effect.</p>
3231
* @example

clients/client-eventbridge/src/commands/EnableRuleCommand.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export interface EnableRuleCommandOutput extends __MetadataBearer {}
2525

2626
/**
2727
* <p>Enables the specified rule. If the rule does not exist, the operation fails.</p>
28-
*
2928
* <p>When you enable a rule, incoming events might not immediately start matching to a newly
3029
* enabled rule. Allow a short period of time for changes to take effect.</p>
3130
* @example

clients/client-eventbridge/src/commands/ListRulesCommand.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export interface ListRulesCommandOutput extends ListRulesResponse, __MetadataBea
2828
/**
2929
* <p>Lists your Amazon EventBridge rules. You can either list all the rules or you can provide
3030
* a prefix to match to the rule names.</p>
31-
*
3231
* <p>ListRules does not list the targets of a rule. To see the targets associated with a rule,
3332
* use <a href="https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ListTargetsByRule.html">ListTargetsByRule</a>.</p>
3433
* @example

clients/client-eventbridge/src/commands/PutPermissionCommand.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,16 @@ export interface PutPermissionCommandOutput extends __MetadataBearer {}
3030
* account. </p>
3131
* <p>For another account to send events to your account, that external account must have an
3232
* EventBridge rule with your account's event bus as a target.</p>
33-
*
3433
* <p>To enable multiple Amazon Web Services accounts to put events to your event bus, run
3534
* <code>PutPermission</code> once for each of these accounts. Or, if all the accounts are
3635
* members of the same Amazon Web Services organization, you can run <code>PutPermission</code> once specifying
3736
* <code>Principal</code> as "*" and specifying the Amazon Web Services organization ID in
3837
* <code>Condition</code>, to grant permissions to all accounts in that organization.</p>
39-
*
4038
* <p>If you grant permissions using an organization, then accounts in that organization must
4139
* specify a <code>RoleArn</code> with proper permissions when they use <code>PutTarget</code> to
4240
* 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
4341
* Receiving Events Between Amazon Web Services Accounts</a> in the <i>Amazon EventBridge User
4442
* Guide</i>.</p>
45-
*
4643
* <p>The permission policy on the event bus cannot exceed 10 KB in size.</p>
4744
* @example
4845
* Use a bare-bones client and the command you need to make an API call.

0 commit comments

Comments
 (0)