Skip to content

Commit 1853dab

Browse files
author
awstools
committed
feat(client-eventbridge): Adding AppSync as an EventBridge Target
1 parent 8b7b13e commit 1853dab

File tree

5 files changed

+72
-53
lines changed

5 files changed

+72
-53
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ export interface ListTargetsByRuleCommandOutput extends ListTargetsByRuleRespons
172172
* // MaximumRetryAttempts: Number("int"),
173173
* // MaximumEventAgeInSeconds: Number("int"),
174174
* // },
175+
* // AppSyncParameters: { // AppSyncParameters
176+
* // GraphQLOperation: "STRING_VALUE",
177+
* // },
175178
* // },
176179
* // ],
177180
* // NextToken: "STRING_VALUE",

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ export interface PutTargetsCommandOutput extends PutTargetsResponse, __MetadataB
273273
* MaximumRetryAttempts: Number("int"),
274274
* MaximumEventAgeInSeconds: Number("int"),
275275
* },
276+
* AppSyncParameters: { // AppSyncParameters
277+
* GraphQLOperation: "STRING_VALUE",
278+
* },
276279
* },
277280
* ],
278281
* };

clients/client-eventbridge/src/models/models_0.ts

Lines changed: 29 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,19 @@ export interface ApiDestination {
207207
LastModifiedTime?: Date;
208208
}
209209

210+
/**
211+
* @public
212+
* <p>Contains the GraphQL operation to be parsed and executed, if the event target is an AppSync API.</p>
213+
*/
214+
export interface AppSyncParameters {
215+
/**
216+
* @public
217+
* <p>The GraphQL operation; that is, the query, mutation, or subscription to be parsed and executed by the GraphQL service.</p>
218+
* <p>For more information, see <a href="https://docs.aws.amazon.com/appsync/latest/devguide/graphql-architecture.html#graphql-operations">Operations</a> in the <i>AppSync User Guide</i>.</p>
219+
*/
220+
GraphQLOperation?: string;
221+
}
222+
210223
/**
211224
* @public
212225
* @enum
@@ -3124,31 +3137,6 @@ export interface Rule {
31243137
/**
31253138
* @public
31263139
* <p>The state of the rule.</p>
3127-
* <p>Valid values include:</p>
3128-
* <ul>
3129-
* <li>
3130-
* <p>
3131-
* <code>DISABLED</code>: The rule is disabled. EventBridge does not match any events against the rule.</p>
3132-
* </li>
3133-
* <li>
3134-
* <p>
3135-
* <code>ENABLED</code>: The rule is enabled.
3136-
* EventBridge matches events against the rule, <i>except</i> for Amazon Web Services management events delivered through CloudTrail.</p>
3137-
* </li>
3138-
* <li>
3139-
* <p>
3140-
* <code>ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS</code>: The rule is enabled for all
3141-
* events, including Amazon Web Services management events delivered through CloudTrail.</p>
3142-
* <p>Management events provide visibility into management operations that are performed on
3143-
* resources in your Amazon Web Services account. These are also known as control plane
3144-
* operations. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events">Logging management events</a> in the <i>CloudTrail User
3145-
* Guide</i>, and <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail">Filtering management events from Amazon Web Services services</a> in the
3146-
* <i>Amazon EventBridge User Guide</i>.</p>
3147-
* <p>This value is only valid for rules on the <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is-how-it-works-concepts.html#eb-bus-concepts-buses">default</a> event bus
3148-
* or <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-event-bus.html">custom event buses</a>.
3149-
* It does not apply to <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-saas.html">partner event buses</a>.</p>
3150-
* </li>
3151-
* </ul>
31523140
*/
31533141
State?: RuleState;
31543142

@@ -4072,6 +4060,12 @@ export interface Target {
40724060
* for the dead-letter queue.</p>
40734061
*/
40744062
RetryPolicy?: RetryPolicy;
4063+
4064+
/**
4065+
* @public
4066+
* <p>Contains the GraphQL operation to be parsed and executed, if the event target is an AppSync API.</p>
4067+
*/
4068+
AppSyncParameters?: AppSyncParameters;
40754069
}
40764070

40774071
/**
@@ -4568,32 +4562,7 @@ export interface PutRuleRequest {
45684562

45694563
/**
45704564
* @public
4571-
* <p>The state of the rule.</p>
4572-
* <p>Valid values include:</p>
4573-
* <ul>
4574-
* <li>
4575-
* <p>
4576-
* <code>DISABLED</code>: The rule is disabled. EventBridge does not match any events against the rule.</p>
4577-
* </li>
4578-
* <li>
4579-
* <p>
4580-
* <code>ENABLED</code>: The rule is enabled.
4581-
* EventBridge matches events against the rule, <i>except</i> for Amazon Web Services management events delivered through CloudTrail.</p>
4582-
* </li>
4583-
* <li>
4584-
* <p>
4585-
* <code>ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS</code>: The rule is enabled for all
4586-
* events, including Amazon Web Services management events delivered through CloudTrail.</p>
4587-
* <p>Management events provide visibility into management operations that are performed on
4588-
* resources in your Amazon Web Services account. These are also known as control plane
4589-
* operations. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events">Logging management events</a> in the <i>CloudTrail User
4590-
* Guide</i>, and <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail">Filtering management events from Amazon Web Services services</a> in the
4591-
* <i>Amazon EventBridge User Guide</i>.</p>
4592-
* <p>This value is only valid for rules on the <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is-how-it-works-concepts.html#eb-bus-concepts-buses">default</a> event bus
4593-
* or <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-event-bus.html">custom event buses</a>.
4594-
* It does not apply to <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-saas.html">partner event buses</a>.</p>
4595-
* </li>
4596-
* </ul>
4565+
* <p>Indicates whether the rule is enabled or disabled.</p>
45974566
*/
45984567
State?: RuleState;
45994568

@@ -5405,6 +5374,14 @@ export interface UpdateEndpointResponse {
54055374
State?: EndpointState;
54065375
}
54075376

5377+
/**
5378+
* @internal
5379+
*/
5380+
export const AppSyncParametersFilterSensitiveLog = (obj: AppSyncParameters): any => ({
5381+
...obj,
5382+
...(obj.GraphQLOperation && { GraphQLOperation: SENSITIVE_STRING }),
5383+
});
5384+
54085385
/**
54095386
* @internal
54105387
*/
@@ -5571,6 +5548,7 @@ export const TargetFilterSensitiveLog = (obj: Target): any => ({
55715548
...(obj.RedshiftDataParameters && {
55725549
RedshiftDataParameters: RedshiftDataParametersFilterSensitiveLog(obj.RedshiftDataParameters),
55735550
}),
5551+
...(obj.AppSyncParameters && { AppSyncParameters: AppSyncParametersFilterSensitiveLog(obj.AppSyncParameters) }),
55745552
});
55755553

55765554
/**

clients/client-eventbridge/src/protocols/Aws_json1_1.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ import { EventBridgeServiceException as __BaseException } from "../models/EventB
128128
import {
129129
ActivateEventSourceRequest,
130130
ApiDestination,
131+
AppSyncParameters,
131132
Archive,
132133
AwsVpcConfiguration,
133134
BatchArrayProperties,
@@ -4079,6 +4080,8 @@ const de_ResourceNotFoundExceptionRes = async (
40794080

40804081
// se_ActivateEventSourceRequest omitted.
40814082

4083+
// se_AppSyncParameters omitted.
4084+
40824085
// se_AwsVpcConfiguration omitted.
40834086

40844087
// se_BatchArrayProperties omitted.
@@ -4427,6 +4430,8 @@ const de_ApiDestinationResponseList = (output: any, context: __SerdeContext): Ap
44274430
return retVal;
44284431
};
44294432

4433+
// de_AppSyncParameters omitted.
4434+
44304435
/**
44314436
* deserializeAws_json1_1Archive
44324437
*/

codegen/sdk-codegen/aws-models/eventbridge.json

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,6 +1817,20 @@
18171817
}
18181818
}
18191819
},
1820+
"com.amazonaws.eventbridge#AppSyncParameters": {
1821+
"type": "structure",
1822+
"members": {
1823+
"GraphQLOperation": {
1824+
"target": "com.amazonaws.eventbridge#GraphQLOperation",
1825+
"traits": {
1826+
"smithy.api#documentation": "<p>The GraphQL operation; that is, the query, mutation, or subscription to be parsed and executed by the GraphQL service.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/appsync/latest/devguide/graphql-architecture.html#graphql-operations\">Operations</a> in the <i>AppSync User Guide</i>.</p>"
1827+
}
1828+
}
1829+
},
1830+
"traits": {
1831+
"smithy.api#documentation": "<p>Contains the GraphQL operation to be parsed and executed, if the event target is an AppSync API.</p>"
1832+
}
1833+
},
18201834
"com.amazonaws.eventbridge#Archive": {
18211835
"type": "structure",
18221836
"members": {
@@ -5431,6 +5445,16 @@
54315445
"smithy.api#documentation": "<p>The failover configuration for an endpoint. This includes what triggers failover and what happens when it's triggered.</p>"
54325446
}
54335447
},
5448+
"com.amazonaws.eventbridge#GraphQLOperation": {
5449+
"type": "string",
5450+
"traits": {
5451+
"smithy.api#length": {
5452+
"min": 1,
5453+
"max": 1048576
5454+
},
5455+
"smithy.api#sensitive": {}
5456+
}
5457+
},
54345458
"com.amazonaws.eventbridge#HeaderKey": {
54355459
"type": "string",
54365460
"traits": {
@@ -7381,7 +7405,7 @@
73817405
"State": {
73827406
"target": "com.amazonaws.eventbridge#RuleState",
73837407
"traits": {
7384-
"smithy.api#documentation": "<p>The state of the rule.</p>\n <p>Valid values include:</p>\n <ul>\n <li>\n <p>\n <code>DISABLED</code>: The rule is disabled. EventBridge does not match any events against the rule.</p>\n </li>\n <li>\n <p>\n <code>ENABLED</code>: The rule is enabled. \n EventBridge matches events against the rule, <i>except</i> for Amazon Web Services management events delivered through CloudTrail.</p>\n </li>\n <li>\n <p>\n <code>ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS</code>: The rule is enabled for all\n events, including Amazon Web Services management events delivered through CloudTrail.</p>\n <p>Management events provide visibility into management operations that are performed on\n resources in your Amazon Web Services account. These are also known as control plane\n operations. For more information, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events\">Logging management events</a> in the <i>CloudTrail User\n Guide</i>, and <a href=\"https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail\">Filtering management events from Amazon Web Services services</a> in the\n <i>Amazon EventBridge User Guide</i>.</p>\n <p>This value is only valid for rules on the <a href=\"https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is-how-it-works-concepts.html#eb-bus-concepts-buses\">default</a> event bus \n or <a href=\"https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-event-bus.html\">custom event buses</a>. \n It does not apply to <a href=\"https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-saas.html\">partner event buses</a>.</p>\n </li>\n </ul>"
7408+
"smithy.api#documentation": "<p>Indicates whether the rule is enabled or disabled.</p>"
73857409
}
73867410
},
73877411
"Description": {
@@ -8142,7 +8166,7 @@
81428166
"State": {
81438167
"target": "com.amazonaws.eventbridge#RuleState",
81448168
"traits": {
8145-
"smithy.api#documentation": "<p>The state of the rule.</p>\n <p>Valid values include:</p>\n <ul>\n <li>\n <p>\n <code>DISABLED</code>: The rule is disabled. EventBridge does not match any events against the rule.</p>\n </li>\n <li>\n <p>\n <code>ENABLED</code>: The rule is enabled. \n EventBridge matches events against the rule, <i>except</i> for Amazon Web Services management events delivered through CloudTrail.</p>\n </li>\n <li>\n <p>\n <code>ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS</code>: The rule is enabled for all\n events, including Amazon Web Services management events delivered through CloudTrail.</p>\n <p>Management events provide visibility into management operations that are performed on\n resources in your Amazon Web Services account. These are also known as control plane\n operations. For more information, see <a href=\"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html#logging-management-events\">Logging management events</a> in the <i>CloudTrail User\n Guide</i>, and <a href=\"https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-service-event.html#eb-service-event-cloudtrail\">Filtering management events from Amazon Web Services services</a> in the\n <i>Amazon EventBridge User Guide</i>.</p>\n <p>This value is only valid for rules on the <a href=\"https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is-how-it-works-concepts.html#eb-bus-concepts-buses\">default</a> event bus \n or <a href=\"https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-event-bus.html\">custom event buses</a>. \n It does not apply to <a href=\"https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-saas.html\">partner event buses</a>.</p>\n </li>\n </ul>"
8169+
"smithy.api#documentation": "<p>The state of the rule.</p>"
81468170
}
81478171
},
81488172
"Description": {
@@ -8815,6 +8839,12 @@
88158839
"traits": {
88168840
"smithy.api#documentation": "<p>The <code>RetryPolicy</code> object that contains the retry policy configuration to use\n for the dead-letter queue.</p>"
88178841
}
8842+
},
8843+
"AppSyncParameters": {
8844+
"target": "com.amazonaws.eventbridge#AppSyncParameters",
8845+
"traits": {
8846+
"smithy.api#documentation": "<p>Contains the GraphQL operation to be parsed and executed, if the event target is an AppSync API.</p>"
8847+
}
88188848
}
88198849
},
88208850
"traits": {

0 commit comments

Comments
 (0)