@aws-sdk/client-appsync 3.321.1 → 3.326.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.
- package/README.md +2 -2
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +5 -1
- package/dist-cjs/protocols/Aws_restJson1.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1 -0
- package/dist-types/AppSync.d.ts +2 -2
- package/dist-types/AppSyncClient.d.ts +2 -2
- package/dist-types/commands/AssociateApiCommand.d.ts +15 -3
- package/dist-types/commands/CreateApiCacheCommand.d.ts +19 -5
- package/dist-types/commands/CreateApiKeyCommand.d.ts +15 -3
- package/dist-types/commands/CreateDataSourceCommand.d.ts +63 -5
- package/dist-types/commands/CreateDomainNameCommand.d.ts +14 -2
- package/dist-types/commands/CreateFunctionCommand.d.ts +34 -4
- package/dist-types/commands/CreateGraphqlApiCommand.d.ts +71 -4
- package/dist-types/commands/CreateResolverCommand.d.ts +46 -7
- package/dist-types/commands/CreateTypeCommand.d.ts +18 -5
- package/dist-types/commands/DeleteApiCacheCommand.d.ts +10 -5
- package/dist-types/commands/DeleteApiKeyCommand.d.ts +8 -3
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +10 -5
- package/dist-types/commands/DeleteDomainNameCommand.d.ts +10 -5
- package/dist-types/commands/DeleteFunctionCommand.d.ts +8 -3
- package/dist-types/commands/DeleteGraphqlApiCommand.d.ts +10 -5
- package/dist-types/commands/DeleteResolverCommand.d.ts +10 -5
- package/dist-types/commands/DeleteTypeCommand.d.ts +10 -5
- package/dist-types/commands/DisassociateApiCommand.d.ts +10 -5
- package/dist-types/commands/EvaluateCodeCommand.d.ts +31 -7
- package/dist-types/commands/EvaluateMappingTemplateCommand.d.ts +20 -7
- package/dist-types/commands/FlushApiCacheCommand.d.ts +10 -5
- package/dist-types/commands/GetApiAssociationCommand.d.ts +15 -3
- package/dist-types/commands/GetApiCacheCommand.d.ts +19 -5
- package/dist-types/commands/GetDataSourceCommand.d.ts +63 -5
- package/dist-types/commands/GetDomainNameCommand.d.ts +16 -3
- package/dist-types/commands/GetFunctionCommand.d.ts +32 -3
- package/dist-types/commands/GetGraphqlApiCommand.d.ts +70 -3
- package/dist-types/commands/GetIntrospectionSchemaCommand.d.ts +8 -1
- package/dist-types/commands/GetResolverCommand.d.ts +42 -3
- package/dist-types/commands/GetSchemaCreationStatusCommand.d.ts +11 -3
- package/dist-types/commands/GetTypeCommand.d.ts +18 -5
- package/dist-types/commands/ListApiKeysCommand.d.ts +22 -6
- package/dist-types/commands/ListDataSourcesCommand.d.ts +64 -3
- package/dist-types/commands/ListDomainNamesCommand.d.ts +17 -2
- package/dist-types/commands/ListFunctionsCommand.d.ts +35 -3
- package/dist-types/commands/ListGraphqlApisCommand.d.ts +71 -2
- package/dist-types/commands/ListResolversByFunctionCommand.d.ts +45 -3
- package/dist-types/commands/ListResolversCommand.d.ts +45 -3
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +12 -3
- package/dist-types/commands/ListTypesCommand.d.ts +21 -5
- package/dist-types/commands/StartSchemaCreationCommand.d.ts +14 -7
- package/dist-types/commands/TagResourceCommand.d.ts +8 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +8 -3
- package/dist-types/commands/UpdateApiCacheCommand.d.ts +19 -5
- package/dist-types/commands/UpdateApiKeyCommand.d.ts +15 -3
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +63 -5
- package/dist-types/commands/UpdateDomainNameCommand.d.ts +18 -5
- package/dist-types/commands/UpdateFunctionCommand.d.ts +32 -3
- package/dist-types/commands/UpdateGraphqlApiCommand.d.ts +72 -5
- package/dist-types/commands/UpdateResolverCommand.d.ts +44 -5
- package/dist-types/commands/UpdateTypeCommand.d.ts +18 -5
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +383 -287
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +9 -0
- package/package.json +16 -16
|
@@ -29,32 +29,38 @@ export declare const AuthenticationType: {
|
|
|
29
29
|
export type AuthenticationType = (typeof AuthenticationType)[keyof typeof AuthenticationType];
|
|
30
30
|
/**
|
|
31
31
|
* @public
|
|
32
|
-
* <p>A <code>LambdaAuthorizerConfig</code> specifies how to authorize AppSync
|
|
33
|
-
* using the <code>AWS_LAMBDA</code> authorizer mode. Be aware that an AppSync API can have only
|
|
34
|
-
*
|
|
32
|
+
* <p>A <code>LambdaAuthorizerConfig</code> specifies how to authorize AppSync
|
|
33
|
+
* API access when using the <code>AWS_LAMBDA</code> authorizer mode. Be aware that an AppSync API can have only one Lambda authorizer configured at a
|
|
34
|
+
* time.</p>
|
|
35
35
|
*/
|
|
36
36
|
export interface LambdaAuthorizerConfig {
|
|
37
37
|
/**
|
|
38
|
-
* <p>The number of seconds a response should be cached for. The default is
|
|
39
|
-
*
|
|
38
|
+
* <p>The number of seconds a response should be cached for. The default is 0 seconds, which
|
|
39
|
+
* disables caching. If you don't specify a value for
|
|
40
|
+
* <code>authorizerResultTtlInSeconds</code>, the default value is used. The maximum value
|
|
41
|
+
* is one hour (3600 seconds). The Lambda function can override this by returning
|
|
42
|
+
* a <code>ttlOverride</code> key in its response.</p>
|
|
40
43
|
*/
|
|
41
44
|
authorizerResultTtlInSeconds?: number;
|
|
42
45
|
/**
|
|
43
|
-
* <p>The Amazon Resource Name (ARN) of the Lambda function to be called for
|
|
44
|
-
* be a standard Lambda ARN, a version ARN
|
|
46
|
+
* <p>The Amazon Resource Name (ARN) of the Lambda function to be called for
|
|
47
|
+
* authorization. This can be a standard Lambda ARN, a version ARN
|
|
48
|
+
* (<code>.../v3</code>), or an alias ARN. </p>
|
|
45
49
|
* <p>
|
|
46
|
-
* <b>Note</b>: This Lambda function must have the
|
|
47
|
-
* resource-based policy assigned to it. When configuring Lambda
|
|
48
|
-
* done for you. To use the Command Line Interface
|
|
50
|
+
* <b>Note</b>: This Lambda function must have the
|
|
51
|
+
* following resource-based policy assigned to it. When configuring Lambda
|
|
52
|
+
* authorizers in the console, this is done for you. To use the Command Line Interface
|
|
53
|
+
* (CLI), run the following:</p>
|
|
49
54
|
* <p>
|
|
50
55
|
* <code>aws lambda add-permission --function-name
|
|
51
|
-
* "arn:aws:lambda:us-east-2:111122223333:function:my-function" --statement-id "appsync"
|
|
52
|
-
* appsync.amazonaws.com --action lambda:InvokeFunction</code>
|
|
56
|
+
* "arn:aws:lambda:us-east-2:111122223333:function:my-function" --statement-id "appsync"
|
|
57
|
+
* --principal appsync.amazonaws.com --action lambda:InvokeFunction</code>
|
|
53
58
|
* </p>
|
|
54
59
|
*/
|
|
55
60
|
authorizerUri: string | undefined;
|
|
56
61
|
/**
|
|
57
|
-
* <p>A regular expression for validation of tokens before the Lambda function is
|
|
62
|
+
* <p>A regular expression for validation of tokens before the Lambda function is
|
|
63
|
+
* called.</p>
|
|
58
64
|
*/
|
|
59
65
|
identityValidationExpression?: string;
|
|
60
66
|
}
|
|
@@ -64,14 +70,15 @@ export interface LambdaAuthorizerConfig {
|
|
|
64
70
|
*/
|
|
65
71
|
export interface OpenIDConnectConfig {
|
|
66
72
|
/**
|
|
67
|
-
* <p>The issuer for the OIDC configuration. The issuer returned by discovery must exactly
|
|
68
|
-
*
|
|
73
|
+
* <p>The issuer for the OIDC configuration. The issuer returned by discovery must exactly
|
|
74
|
+
* match the value of <code>iss</code> in the ID token.</p>
|
|
69
75
|
*/
|
|
70
76
|
issuer: string | undefined;
|
|
71
77
|
/**
|
|
72
|
-
* <p>The client identifier of the relying party at the OpenID identity provider. This
|
|
73
|
-
* obtained when the relying party is registered with the OpenID
|
|
74
|
-
*
|
|
78
|
+
* <p>The client identifier of the relying party at the OpenID identity provider. This
|
|
79
|
+
* identifier is typically obtained when the relying party is registered with the OpenID
|
|
80
|
+
* identity provider. You can specify a regular expression so that AppSync can
|
|
81
|
+
* validate against multiple client identifiers at a time.</p>
|
|
75
82
|
*/
|
|
76
83
|
clientId?: string;
|
|
77
84
|
/**
|
|
@@ -97,8 +104,8 @@ export interface CognitoUserPoolConfig {
|
|
|
97
104
|
*/
|
|
98
105
|
awsRegion: string | undefined;
|
|
99
106
|
/**
|
|
100
|
-
* <p>A regular expression for validating the incoming Amazon Cognito user pool app client
|
|
101
|
-
* isn't set, no filtering is applied.</p>
|
|
107
|
+
* <p>A regular expression for validating the incoming Amazon Cognito user pool app client
|
|
108
|
+
* ID. If this value isn't set, no filtering is applied.</p>
|
|
102
109
|
*/
|
|
103
110
|
appIdClientRegex?: string;
|
|
104
111
|
}
|
|
@@ -108,8 +115,8 @@ export interface CognitoUserPoolConfig {
|
|
|
108
115
|
*/
|
|
109
116
|
export interface AdditionalAuthenticationProvider {
|
|
110
117
|
/**
|
|
111
|
-
* <p>The authentication type: API key, Identity and Access Management (IAM), OpenID
|
|
112
|
-
*
|
|
118
|
+
* <p>The authentication type: API key, Identity and Access Management (IAM), OpenID
|
|
119
|
+
* Connect (OIDC), Amazon Cognito user pools, or Lambda.</p>
|
|
113
120
|
*/
|
|
114
121
|
authenticationType?: AuthenticationType | string;
|
|
115
122
|
/**
|
|
@@ -156,18 +163,18 @@ export interface ApiAssociation {
|
|
|
156
163
|
* <ul>
|
|
157
164
|
* <li>
|
|
158
165
|
* <p>
|
|
159
|
-
* <b>PROCESSING</b>: The API association is being
|
|
160
|
-
* modify association requests during processing.</p>
|
|
166
|
+
* <b>PROCESSING</b>: The API association is being
|
|
167
|
+
* created. You cannot modify association requests during processing.</p>
|
|
161
168
|
* </li>
|
|
162
169
|
* <li>
|
|
163
170
|
* <p>
|
|
164
|
-
* <b>SUCCESS</b>: The API association was successful.
|
|
165
|
-
* associations after success.</p>
|
|
171
|
+
* <b>SUCCESS</b>: The API association was successful.
|
|
172
|
+
* You can modify associations after success.</p>
|
|
166
173
|
* </li>
|
|
167
174
|
* <li>
|
|
168
175
|
* <p>
|
|
169
|
-
* <b>FAILED</b>: The API association has failed. You
|
|
170
|
-
* associations after failure.</p>
|
|
176
|
+
* <b>FAILED</b>: The API association has failed. You
|
|
177
|
+
* can modify associations after failure.</p>
|
|
171
178
|
* </li>
|
|
172
179
|
* </ul>
|
|
173
180
|
*/
|
|
@@ -244,18 +251,20 @@ export interface ApiCache {
|
|
|
244
251
|
* <ul>
|
|
245
252
|
* <li>
|
|
246
253
|
* <p>
|
|
247
|
-
* <b>FULL_REQUEST_CACHING</b>: All requests are fully
|
|
254
|
+
* <b>FULL_REQUEST_CACHING</b>: All requests are fully
|
|
255
|
+
* cached.</p>
|
|
248
256
|
* </li>
|
|
249
257
|
* <li>
|
|
250
258
|
* <p>
|
|
251
|
-
* <b>PER_RESOLVER_CACHING</b>: Individual resolvers
|
|
252
|
-
* cached.</p>
|
|
259
|
+
* <b>PER_RESOLVER_CACHING</b>: Individual resolvers
|
|
260
|
+
* that you specify are cached.</p>
|
|
253
261
|
* </li>
|
|
254
262
|
* </ul>
|
|
255
263
|
*/
|
|
256
264
|
apiCachingBehavior?: ApiCachingBehavior | string;
|
|
257
265
|
/**
|
|
258
|
-
* <p>Transit encryption flag when connecting to cache. You cannot update this setting after
|
|
266
|
+
* <p>Transit encryption flag when connecting to cache. You cannot update this setting after
|
|
267
|
+
* creation.</p>
|
|
259
268
|
*/
|
|
260
269
|
transitEncryptionEnabled?: boolean;
|
|
261
270
|
/**
|
|
@@ -344,23 +353,28 @@ export interface ApiCache {
|
|
|
344
353
|
* <ul>
|
|
345
354
|
* <li>
|
|
346
355
|
* <p>
|
|
347
|
-
* <b>AVAILABLE</b>: The instance is available for
|
|
356
|
+
* <b>AVAILABLE</b>: The instance is available for
|
|
357
|
+
* use.</p>
|
|
348
358
|
* </li>
|
|
349
359
|
* <li>
|
|
350
360
|
* <p>
|
|
351
|
-
* <b>CREATING</b>: The instance is currently
|
|
361
|
+
* <b>CREATING</b>: The instance is currently
|
|
362
|
+
* creating.</p>
|
|
352
363
|
* </li>
|
|
353
364
|
* <li>
|
|
354
365
|
* <p>
|
|
355
|
-
* <b>DELETING</b>: The instance is currently
|
|
366
|
+
* <b>DELETING</b>: The instance is currently
|
|
367
|
+
* deleting.</p>
|
|
356
368
|
* </li>
|
|
357
369
|
* <li>
|
|
358
370
|
* <p>
|
|
359
|
-
* <b>MODIFYING</b>: The instance is currently
|
|
371
|
+
* <b>MODIFYING</b>: The instance is currently
|
|
372
|
+
* modifying.</p>
|
|
360
373
|
* </li>
|
|
361
374
|
* <li>
|
|
362
375
|
* <p>
|
|
363
|
-
* <b>FAILED</b>: The instance has failed
|
|
376
|
+
* <b>FAILED</b>: The instance has failed
|
|
377
|
+
* creation.</p>
|
|
364
378
|
* </li>
|
|
365
379
|
* </ul>
|
|
366
380
|
*/
|
|
@@ -369,12 +383,13 @@ export interface ApiCache {
|
|
|
369
383
|
/**
|
|
370
384
|
* @public
|
|
371
385
|
* <p>Describes an API key.</p>
|
|
372
|
-
* <p>Customers invoke AppSync GraphQL API operations with API keys as an
|
|
373
|
-
* There are two key versions:</p>
|
|
386
|
+
* <p>Customers invoke AppSync GraphQL API operations with API keys as an
|
|
387
|
+
* identity mechanism. There are two key versions:</p>
|
|
374
388
|
* <p>
|
|
375
|
-
* <b>da1</b>: We introduced this version at launch in November
|
|
376
|
-
* always expire after 7 days. Amazon DynamoDB TTL manages key
|
|
377
|
-
* after February 21, 2018, and they should no
|
|
389
|
+
* <b>da1</b>: We introduced this version at launch in November
|
|
390
|
+
* 2017. These keys always expire after 7 days. Amazon DynamoDB TTL manages key
|
|
391
|
+
* expiration. These keys ceased to be valid after February 21, 2018, and they should no
|
|
392
|
+
* longer be used.</p>
|
|
378
393
|
* <ul>
|
|
379
394
|
* <li>
|
|
380
395
|
* <p>
|
|
@@ -382,7 +397,8 @@ export interface ApiCache {
|
|
|
382
397
|
* </li>
|
|
383
398
|
* <li>
|
|
384
399
|
* <p>
|
|
385
|
-
* <code>CreateApiKey</code> returns the expiration time in
|
|
400
|
+
* <code>CreateApiKey</code> returns the expiration time in
|
|
401
|
+
* milliseconds.</p>
|
|
386
402
|
* </li>
|
|
387
403
|
* <li>
|
|
388
404
|
* <p>
|
|
@@ -393,40 +409,45 @@ export interface ApiCache {
|
|
|
393
409
|
* <code>DeleteApiKey</code> deletes the item from the table.</p>
|
|
394
410
|
* </li>
|
|
395
411
|
* <li>
|
|
396
|
-
* <p>Expiration is stored in DynamoDB as milliseconds. This results in a
|
|
397
|
-
* not automatically deleted because DynamoDB expects the
|
|
398
|
-
* one-time action, we deleted these keys from the
|
|
412
|
+
* <p>Expiration is stored in DynamoDB as milliseconds. This results in a
|
|
413
|
+
* bug where keys are not automatically deleted because DynamoDB expects the
|
|
414
|
+
* TTL to be stored in seconds. As a one-time action, we deleted these keys from the
|
|
415
|
+
* table on February 21, 2018.</p>
|
|
399
416
|
* </li>
|
|
400
417
|
* </ul>
|
|
401
418
|
* <p>
|
|
402
|
-
* <b>da2</b>: We introduced this version in February 2018 when
|
|
419
|
+
* <b>da2</b>: We introduced this version in February 2018 when
|
|
420
|
+
* AppSync added support to extend key expiration.</p>
|
|
403
421
|
* <ul>
|
|
404
422
|
* <li>
|
|
405
423
|
* <p>
|
|
406
|
-
* <code>ListApiKeys</code> returns the expiration time and deletion time in
|
|
424
|
+
* <code>ListApiKeys</code> returns the expiration time and deletion time in
|
|
425
|
+
* seconds.</p>
|
|
407
426
|
* </li>
|
|
408
427
|
* <li>
|
|
409
428
|
* <p>
|
|
410
|
-
* <code>CreateApiKey</code> returns the expiration time and deletion time in
|
|
411
|
-
* user-provided expiration time in seconds.</p>
|
|
429
|
+
* <code>CreateApiKey</code> returns the expiration time and deletion time in
|
|
430
|
+
* seconds and accepts a user-provided expiration time in seconds.</p>
|
|
412
431
|
* </li>
|
|
413
432
|
* <li>
|
|
414
433
|
* <p>
|
|
415
|
-
* <code>UpdateApiKey</code> returns the expiration time and and deletion time in
|
|
416
|
-
* a user-provided expiration time in seconds. Expired API keys are
|
|
417
|
-
* time. You can update the key expiration time as
|
|
434
|
+
* <code>UpdateApiKey</code> returns the expiration time and and deletion time in
|
|
435
|
+
* seconds and accepts a user-provided expiration time in seconds. Expired API keys are
|
|
436
|
+
* kept for 60 days after the expiration time. You can update the key expiration time as
|
|
437
|
+
* long as the key isn't deleted.</p>
|
|
418
438
|
* </li>
|
|
419
439
|
* <li>
|
|
420
440
|
* <p>
|
|
421
441
|
* <code>DeleteApiKey</code> deletes the item from the table.</p>
|
|
422
442
|
* </li>
|
|
423
443
|
* <li>
|
|
424
|
-
* <p>Expiration is stored in DynamoDB as seconds. After the expiration
|
|
425
|
-
* authenticate will fail. However, you can reinstate the key
|
|
444
|
+
* <p>Expiration is stored in DynamoDB as seconds. After the expiration
|
|
445
|
+
* time, using the key to authenticate will fail. However, you can reinstate the key
|
|
446
|
+
* before deletion.</p>
|
|
426
447
|
* </li>
|
|
427
448
|
* <li>
|
|
428
|
-
* <p>Deletion is stored in DynamoDB as seconds. The key is deleted after
|
|
429
|
-
* time.</p>
|
|
449
|
+
* <p>Deletion is stored in DynamoDB as seconds. The key is deleted after
|
|
450
|
+
* deletion time.</p>
|
|
430
451
|
* </li>
|
|
431
452
|
* </ul>
|
|
432
453
|
*/
|
|
@@ -440,13 +461,13 @@ export interface ApiKey {
|
|
|
440
461
|
*/
|
|
441
462
|
description?: string;
|
|
442
463
|
/**
|
|
443
|
-
* <p>The time after which the API key expires. The date is represented as seconds since the
|
|
444
|
-
* to the nearest hour.</p>
|
|
464
|
+
* <p>The time after which the API key expires. The date is represented as seconds since the
|
|
465
|
+
* epoch, rounded down to the nearest hour.</p>
|
|
445
466
|
*/
|
|
446
467
|
expires?: number;
|
|
447
468
|
/**
|
|
448
|
-
* <p>The time after which the API key is deleted. The date is represented as seconds since
|
|
449
|
-
* down to the nearest hour.</p>
|
|
469
|
+
* <p>The time after which the API key is deleted. The date is represented as seconds since
|
|
470
|
+
* the epoch, rounded down to the nearest hour.</p>
|
|
450
471
|
*/
|
|
451
472
|
deletes?: number;
|
|
452
473
|
}
|
|
@@ -500,18 +521,18 @@ export declare const RuntimeName: {
|
|
|
500
521
|
export type RuntimeName = (typeof RuntimeName)[keyof typeof RuntimeName];
|
|
501
522
|
/**
|
|
502
523
|
* @public
|
|
503
|
-
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
|
|
504
|
-
*
|
|
524
|
+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note
|
|
525
|
+
* that if a runtime is specified, code must also be specified.</p>
|
|
505
526
|
*/
|
|
506
527
|
export interface AppSyncRuntime {
|
|
507
528
|
/**
|
|
508
529
|
* <p>The <code>name</code> of the runtime to use. Currently, the only allowed value is
|
|
509
|
-
*
|
|
530
|
+
* <code>APPSYNC_JS</code>.</p>
|
|
510
531
|
*/
|
|
511
532
|
name: RuntimeName | string | undefined;
|
|
512
533
|
/**
|
|
513
534
|
* <p>The <code>version</code> of the runtime to use. Currently, the only allowed version is
|
|
514
|
-
*
|
|
535
|
+
* <code>1.0.0</code>.</p>
|
|
515
536
|
*/
|
|
516
537
|
runtimeVersion: string | undefined;
|
|
517
538
|
}
|
|
@@ -524,7 +545,7 @@ export interface AssociateApiRequest {
|
|
|
524
545
|
*/
|
|
525
546
|
domainName: string | undefined;
|
|
526
547
|
/**
|
|
527
|
-
* <p>The API ID.</p>
|
|
548
|
+
* <p>The API ID. Private APIs can not be associated with custom domains.</p>
|
|
528
549
|
*/
|
|
529
550
|
apiId: string | undefined;
|
|
530
551
|
}
|
|
@@ -562,12 +583,14 @@ export interface CodeErrorLocation {
|
|
|
562
583
|
export interface CodeError {
|
|
563
584
|
/**
|
|
564
585
|
* <p>The type of code error. </p>
|
|
565
|
-
* <p>Examples include, but aren't limited to: <code>LINT_ERROR</code>,
|
|
586
|
+
* <p>Examples include, but aren't limited to: <code>LINT_ERROR</code>,
|
|
587
|
+
* <code>PARSER_ERROR</code>.</p>
|
|
566
588
|
*/
|
|
567
589
|
errorType?: string;
|
|
568
590
|
/**
|
|
569
591
|
* <p>A user presentable error.</p>
|
|
570
|
-
* <p>Examples include, but aren't limited to: <code>Parsing error: Unterminated string
|
|
592
|
+
* <p>Examples include, but aren't limited to: <code>Parsing error: Unterminated string
|
|
593
|
+
* literal</code>.</p>
|
|
571
594
|
*/
|
|
572
595
|
value?: string;
|
|
573
596
|
/**
|
|
@@ -577,8 +600,8 @@ export interface CodeError {
|
|
|
577
600
|
}
|
|
578
601
|
/**
|
|
579
602
|
* @public
|
|
580
|
-
* <p>Provides further details for the reason behind the bad request. For reason type
|
|
581
|
-
*
|
|
603
|
+
* <p>Provides further details for the reason behind the bad request. For reason type
|
|
604
|
+
* <code>CODE_ERROR</code>, the detail will contain a list of code errors.</p>
|
|
582
605
|
*/
|
|
583
606
|
export interface BadRequestDetail {
|
|
584
607
|
/**
|
|
@@ -599,20 +622,20 @@ export declare const BadRequestReason: {
|
|
|
599
622
|
export type BadRequestReason = (typeof BadRequestReason)[keyof typeof BadRequestReason];
|
|
600
623
|
/**
|
|
601
624
|
* @public
|
|
602
|
-
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
603
|
-
* field values, and then try again.</p>
|
|
625
|
+
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
626
|
+
* missing. Check the field values, and then try again.</p>
|
|
604
627
|
*/
|
|
605
628
|
export declare class BadRequestException extends __BaseException {
|
|
606
629
|
readonly name: "BadRequestException";
|
|
607
630
|
readonly $fault: "client";
|
|
608
631
|
/**
|
|
609
632
|
* <p>Provides context for the cause of the bad request. The only supported value is
|
|
610
|
-
*
|
|
633
|
+
* <code>CODE_ERROR</code>.</p>
|
|
611
634
|
*/
|
|
612
635
|
reason?: BadRequestReason | string;
|
|
613
636
|
/**
|
|
614
|
-
* <p>Provides further details for the reason behind the bad request. For reason type
|
|
615
|
-
*
|
|
637
|
+
* <p>Provides further details for the reason behind the bad request. For reason type
|
|
638
|
+
* <code>CODE_ERROR</code>, the detail will contain a list of code errors.</p>
|
|
616
639
|
*/
|
|
617
640
|
detail?: BadRequestDetail;
|
|
618
641
|
/**
|
|
@@ -634,7 +657,8 @@ export declare class InternalFailureException extends __BaseException {
|
|
|
634
657
|
}
|
|
635
658
|
/**
|
|
636
659
|
* @public
|
|
637
|
-
* <p>The resource specified in the request was not found. Check the resource, and then try
|
|
660
|
+
* <p>The resource specified in the request was not found. Check the resource, and then try
|
|
661
|
+
* again.</p>
|
|
638
662
|
*/
|
|
639
663
|
export declare class NotFoundException extends __BaseException {
|
|
640
664
|
readonly name: "NotFoundException";
|
|
@@ -679,8 +703,8 @@ export interface AuthorizationConfig {
|
|
|
679
703
|
* <ul>
|
|
680
704
|
* <li>
|
|
681
705
|
* <p>
|
|
682
|
-
* <b>AWS_IAM</b>: The authorization type is Signature
|
|
683
|
-
* (SigV4).</p>
|
|
706
|
+
* <b>AWS_IAM</b>: The authorization type is Signature
|
|
707
|
+
* Version 4 (SigV4).</p>
|
|
684
708
|
* </li>
|
|
685
709
|
* </ul>
|
|
686
710
|
*/
|
|
@@ -692,8 +716,8 @@ export interface AuthorizationConfig {
|
|
|
692
716
|
}
|
|
693
717
|
/**
|
|
694
718
|
* @public
|
|
695
|
-
* <p>Another modification is in progress at this time and it must complete before you can
|
|
696
|
-
* change.</p>
|
|
719
|
+
* <p>Another modification is in progress at this time and it must complete before you can
|
|
720
|
+
* make your change.</p>
|
|
697
721
|
*/
|
|
698
722
|
export declare class ConcurrentModificationException extends __BaseException {
|
|
699
723
|
readonly name: "ConcurrentModificationException";
|
|
@@ -718,7 +742,8 @@ export interface CreateApiCacheRequest {
|
|
|
718
742
|
*/
|
|
719
743
|
ttl: number | undefined;
|
|
720
744
|
/**
|
|
721
|
-
* <p>Transit encryption flag when connecting to cache. You cannot update this setting after
|
|
745
|
+
* <p>Transit encryption flag when connecting to cache. You cannot update this setting after
|
|
746
|
+
* creation.</p>
|
|
722
747
|
*/
|
|
723
748
|
transitEncryptionEnabled?: boolean;
|
|
724
749
|
/**
|
|
@@ -730,12 +755,13 @@ export interface CreateApiCacheRequest {
|
|
|
730
755
|
* <ul>
|
|
731
756
|
* <li>
|
|
732
757
|
* <p>
|
|
733
|
-
* <b>FULL_REQUEST_CACHING</b>: All requests are fully
|
|
758
|
+
* <b>FULL_REQUEST_CACHING</b>: All requests are fully
|
|
759
|
+
* cached.</p>
|
|
734
760
|
* </li>
|
|
735
761
|
* <li>
|
|
736
762
|
* <p>
|
|
737
|
-
* <b>PER_RESOLVER_CACHING</b>: Individual resolvers
|
|
738
|
-
* cached.</p>
|
|
763
|
+
* <b>PER_RESOLVER_CACHING</b>: Individual resolvers
|
|
764
|
+
* that you specify are cached.</p>
|
|
739
765
|
* </li>
|
|
740
766
|
* </ul>
|
|
741
767
|
*/
|
|
@@ -853,9 +879,9 @@ export interface CreateApiKeyRequest {
|
|
|
853
879
|
*/
|
|
854
880
|
description?: string;
|
|
855
881
|
/**
|
|
856
|
-
* <p>From the creation time, the time after which the API key expires. The date is
|
|
857
|
-
* the epoch, rounded down to the nearest hour. The default value
|
|
858
|
-
* For more information, see .</p>
|
|
882
|
+
* <p>From the creation time, the time after which the API key expires. The date is
|
|
883
|
+
* represented as seconds since the epoch, rounded down to the nearest hour. The default value
|
|
884
|
+
* for this parameter is 7 days from creation time. For more information, see .</p>
|
|
859
885
|
*/
|
|
860
886
|
expires?: number;
|
|
861
887
|
}
|
|
@@ -894,7 +920,8 @@ export interface DeltaSyncConfig {
|
|
|
894
920
|
*/
|
|
895
921
|
deltaSyncTableName?: string;
|
|
896
922
|
/**
|
|
897
|
-
* <p>The number of minutes that a Delta Sync log entry is stored in the Delta Sync
|
|
923
|
+
* <p>The number of minutes that a Delta Sync log entry is stored in the Delta Sync
|
|
924
|
+
* table.</p>
|
|
898
925
|
*/
|
|
899
926
|
deltaSyncTableTTL?: number;
|
|
900
927
|
}
|
|
@@ -927,8 +954,9 @@ export interface DynamodbDataSourceConfig {
|
|
|
927
954
|
/**
|
|
928
955
|
* @public
|
|
929
956
|
* <p>Describes an OpenSearch data source configuration.</p>
|
|
930
|
-
* <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This
|
|
931
|
-
* deprecated. For new data sources, use <a>OpenSearchServiceDataSourceConfig</a> to specify an OpenSearch data
|
|
957
|
+
* <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This
|
|
958
|
+
* configuration is deprecated. For new data sources, use <a>OpenSearchServiceDataSourceConfig</a> to specify an OpenSearch data
|
|
959
|
+
* source.</p>
|
|
932
960
|
*/
|
|
933
961
|
export interface ElasticsearchDataSourceConfig {
|
|
934
962
|
/**
|
|
@@ -946,8 +974,8 @@ export interface ElasticsearchDataSourceConfig {
|
|
|
946
974
|
*/
|
|
947
975
|
export interface EventBridgeDataSourceConfig {
|
|
948
976
|
/**
|
|
949
|
-
* <p>The ARN of the event bus. For more information about event buses, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus.html">Amazon
|
|
950
|
-
* buses</a>.</p>
|
|
977
|
+
* <p>The ARN of the event bus. For more information about event buses, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus.html">Amazon
|
|
978
|
+
* EventBridge event buses</a>.</p>
|
|
951
979
|
*/
|
|
952
980
|
eventBusArn: string | undefined;
|
|
953
981
|
}
|
|
@@ -957,9 +985,10 @@ export interface EventBridgeDataSourceConfig {
|
|
|
957
985
|
*/
|
|
958
986
|
export interface HttpDataSourceConfig {
|
|
959
987
|
/**
|
|
960
|
-
* <p>The HTTP URL endpoint. You can specify either the domain name or IP, and port
|
|
961
|
-
* scheme must be HTTP or HTTPS. If you don't specify the port,
|
|
962
|
-
*
|
|
988
|
+
* <p>The HTTP URL endpoint. You can specify either the domain name or IP, and port
|
|
989
|
+
* combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the port,
|
|
990
|
+
* AppSync uses the default port 80 for the HTTP endpoint and port 443 for
|
|
991
|
+
* HTTPS endpoints.</p>
|
|
963
992
|
*/
|
|
964
993
|
endpoint?: string;
|
|
965
994
|
/**
|
|
@@ -1013,7 +1042,8 @@ export interface RdsHttpEndpointConfig {
|
|
|
1013
1042
|
*/
|
|
1014
1043
|
schema?: string;
|
|
1015
1044
|
/**
|
|
1016
|
-
* <p>Amazon Web Services secret store Amazon Resource Name (ARN) for database
|
|
1045
|
+
* <p>Amazon Web Services secret store Amazon Resource Name (ARN) for database
|
|
1046
|
+
* credentials.</p>
|
|
1017
1047
|
*/
|
|
1018
1048
|
awsSecretStoreArn?: string;
|
|
1019
1049
|
}
|
|
@@ -1038,8 +1068,9 @@ export interface RelationalDatabaseDataSourceConfig {
|
|
|
1038
1068
|
* <ul>
|
|
1039
1069
|
* <li>
|
|
1040
1070
|
* <p>
|
|
1041
|
-
* <b>RDS_HTTP_ENDPOINT</b>: The relational database
|
|
1042
|
-
*
|
|
1071
|
+
* <b>RDS_HTTP_ENDPOINT</b>: The relational database
|
|
1072
|
+
* source type is an Amazon Relational Database Service (Amazon RDS) HTTP
|
|
1073
|
+
* endpoint.</p>
|
|
1043
1074
|
* </li>
|
|
1044
1075
|
* </ul>
|
|
1045
1076
|
*/
|
|
@@ -1088,8 +1119,8 @@ export interface CreateDataSourceRequest {
|
|
|
1088
1119
|
*/
|
|
1089
1120
|
type: DataSourceType | string | undefined;
|
|
1090
1121
|
/**
|
|
1091
|
-
* <p>The Identity and Access Management (IAM) service role Amazon Resource Name (ARN)
|
|
1092
|
-
* The system assumes this role when accessing the data source.</p>
|
|
1122
|
+
* <p>The Identity and Access Management (IAM) service role Amazon Resource Name (ARN)
|
|
1123
|
+
* for the data source. The system assumes this role when accessing the data source.</p>
|
|
1093
1124
|
*/
|
|
1094
1125
|
serviceRoleArn?: string;
|
|
1095
1126
|
/**
|
|
@@ -1102,9 +1133,8 @@ export interface CreateDataSourceRequest {
|
|
|
1102
1133
|
lambdaConfig?: LambdaDataSourceConfig;
|
|
1103
1134
|
/**
|
|
1104
1135
|
* <p>Amazon OpenSearch Service settings.</p>
|
|
1105
|
-
* <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This
|
|
1106
|
-
* deprecated. For new data sources, use <a>CreateDataSourceRequest$openSearchServiceConfig</a> to
|
|
1107
|
-
* create an OpenSearch data source.</p>
|
|
1136
|
+
* <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This
|
|
1137
|
+
* configuration is deprecated. For new data sources, use <a>CreateDataSourceRequest$openSearchServiceConfig</a> to create an OpenSearch data source.</p>
|
|
1108
1138
|
*/
|
|
1109
1139
|
elasticsearchConfig?: ElasticsearchDataSourceConfig;
|
|
1110
1140
|
/**
|
|
@@ -1146,48 +1176,50 @@ export interface DataSource {
|
|
|
1146
1176
|
* <ul>
|
|
1147
1177
|
* <li>
|
|
1148
1178
|
* <p>
|
|
1149
|
-
* <b>AWS_LAMBDA</b>: The data source is an Lambda
|
|
1150
|
-
* function.</p>
|
|
1179
|
+
* <b>AWS_LAMBDA</b>: The data source is an Lambda function.</p>
|
|
1151
1180
|
* </li>
|
|
1152
1181
|
* <li>
|
|
1153
1182
|
* <p>
|
|
1154
|
-
* <b>AMAZON_DYNAMODB</b>: The data source is an Amazon DynamoDB
|
|
1155
|
-
* table.</p>
|
|
1183
|
+
* <b>AMAZON_DYNAMODB</b>: The data source is an Amazon DynamoDB table.</p>
|
|
1156
1184
|
* </li>
|
|
1157
1185
|
* <li>
|
|
1158
1186
|
* <p>
|
|
1159
|
-
* <b>AMAZON_ELASTICSEARCH</b>: The data source is an
|
|
1160
|
-
*
|
|
1187
|
+
* <b>AMAZON_ELASTICSEARCH</b>: The data source is an
|
|
1188
|
+
* Amazon OpenSearch Service domain.</p>
|
|
1161
1189
|
* </li>
|
|
1162
1190
|
* <li>
|
|
1163
1191
|
* <p>
|
|
1164
|
-
* <b>AMAZON_OPENSEARCH_SERVICE</b>: The data source is
|
|
1192
|
+
* <b>AMAZON_OPENSEARCH_SERVICE</b>: The data source is
|
|
1193
|
+
* an Amazon OpenSearch Service domain.</p>
|
|
1165
1194
|
* </li>
|
|
1166
1195
|
* <li>
|
|
1167
1196
|
* <p>
|
|
1168
|
-
* <b>AMAZON_EVENTBRIDGE</b>: The data source is an
|
|
1197
|
+
* <b>AMAZON_EVENTBRIDGE</b>: The data source is an
|
|
1198
|
+
* Amazon EventBridge configuration.</p>
|
|
1169
1199
|
* </li>
|
|
1170
1200
|
* <li>
|
|
1171
1201
|
* <p>
|
|
1172
|
-
* <b>NONE</b>: There is no data source. Use this type
|
|
1173
|
-
* invoke a GraphQL operation without connecting to a data source, such
|
|
1174
|
-
* transformation with resolvers or invoking a
|
|
1202
|
+
* <b>NONE</b>: There is no data source. Use this type
|
|
1203
|
+
* when you want to invoke a GraphQL operation without connecting to a data source, such
|
|
1204
|
+
* as when you're performing data transformation with resolvers or invoking a
|
|
1205
|
+
* subscription from a mutation.</p>
|
|
1175
1206
|
* </li>
|
|
1176
1207
|
* <li>
|
|
1177
1208
|
* <p>
|
|
1178
|
-
* <b>HTTP</b>: The data source is an HTTP
|
|
1209
|
+
* <b>HTTP</b>: The data source is an HTTP
|
|
1210
|
+
* endpoint.</p>
|
|
1179
1211
|
* </li>
|
|
1180
1212
|
* <li>
|
|
1181
1213
|
* <p>
|
|
1182
|
-
* <b>RELATIONAL_DATABASE</b>: The data source is a
|
|
1183
|
-
* database.</p>
|
|
1214
|
+
* <b>RELATIONAL_DATABASE</b>: The data source is a
|
|
1215
|
+
* relational database.</p>
|
|
1184
1216
|
* </li>
|
|
1185
1217
|
* </ul>
|
|
1186
1218
|
*/
|
|
1187
1219
|
type?: DataSourceType | string;
|
|
1188
1220
|
/**
|
|
1189
|
-
* <p>The Identity and Access Management (IAM) service role Amazon Resource Name (ARN)
|
|
1190
|
-
* The system assumes this role when accessing the data source.</p>
|
|
1221
|
+
* <p>The Identity and Access Management (IAM) service role Amazon Resource Name (ARN)
|
|
1222
|
+
* for the data source. The system assumes this role when accessing the data source.</p>
|
|
1191
1223
|
*/
|
|
1192
1224
|
serviceRoleArn?: string;
|
|
1193
1225
|
/**
|
|
@@ -1237,7 +1269,9 @@ export interface CreateDomainNameRequest {
|
|
|
1237
1269
|
*/
|
|
1238
1270
|
domainName: string | undefined;
|
|
1239
1271
|
/**
|
|
1240
|
-
* <p>The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager
|
|
1272
|
+
* <p>The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager
|
|
1273
|
+
* (ACM) certificate or an Identity and Access Management (IAM)
|
|
1274
|
+
* server certificate.</p>
|
|
1241
1275
|
*/
|
|
1242
1276
|
certificateArn: string | undefined;
|
|
1243
1277
|
/**
|
|
@@ -1259,7 +1293,9 @@ export interface DomainNameConfig {
|
|
|
1259
1293
|
*/
|
|
1260
1294
|
description?: string;
|
|
1261
1295
|
/**
|
|
1262
|
-
* <p>The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager
|
|
1296
|
+
* <p>The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager
|
|
1297
|
+
* (ACM) certificate or an Identity and Access Management (IAM)
|
|
1298
|
+
* server certificate.</p>
|
|
1263
1299
|
*/
|
|
1264
1300
|
certificateArn?: string;
|
|
1265
1301
|
/**
|
|
@@ -1308,20 +1344,21 @@ export declare const ConflictHandlerType: {
|
|
|
1308
1344
|
export type ConflictHandlerType = (typeof ConflictHandlerType)[keyof typeof ConflictHandlerType];
|
|
1309
1345
|
/**
|
|
1310
1346
|
* @public
|
|
1311
|
-
* <p>The <code>LambdaConflictHandlerConfig</code> object when configuring <code>LAMBDA</code>
|
|
1312
|
-
* Handler.</p>
|
|
1347
|
+
* <p>The <code>LambdaConflictHandlerConfig</code> object when configuring <code>LAMBDA</code>
|
|
1348
|
+
* as the Conflict Handler.</p>
|
|
1313
1349
|
*/
|
|
1314
1350
|
export interface LambdaConflictHandlerConfig {
|
|
1315
1351
|
/**
|
|
1316
|
-
* <p>The Amazon Resource Name (ARN) for the Lambda function to use as the
|
|
1352
|
+
* <p>The Amazon Resource Name (ARN) for the Lambda function to use as the
|
|
1353
|
+
* Conflict Handler.</p>
|
|
1317
1354
|
*/
|
|
1318
1355
|
lambdaConflictHandlerArn?: string;
|
|
1319
1356
|
}
|
|
1320
1357
|
/**
|
|
1321
1358
|
* @public
|
|
1322
1359
|
* <p>Describes a Sync configuration for a resolver.</p>
|
|
1323
|
-
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the
|
|
1324
|
-
* invoked.</p>
|
|
1360
|
+
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the
|
|
1361
|
+
* resolver is invoked.</p>
|
|
1325
1362
|
*/
|
|
1326
1363
|
export interface SyncConfig {
|
|
1327
1364
|
/**
|
|
@@ -1329,18 +1366,19 @@ export interface SyncConfig {
|
|
|
1329
1366
|
* <ul>
|
|
1330
1367
|
* <li>
|
|
1331
1368
|
* <p>
|
|
1332
|
-
* <b>OPTIMISTIC_CONCURRENCY</b>: Resolve conflicts by
|
|
1333
|
-
* when versions don't match the latest version at the
|
|
1369
|
+
* <b>OPTIMISTIC_CONCURRENCY</b>: Resolve conflicts by
|
|
1370
|
+
* rejecting mutations when versions don't match the latest version at the
|
|
1371
|
+
* server.</p>
|
|
1334
1372
|
* </li>
|
|
1335
1373
|
* <li>
|
|
1336
1374
|
* <p>
|
|
1337
|
-
* <b>AUTOMERGE</b>: Resolve conflicts with the
|
|
1338
|
-
* resolution strategy.</p>
|
|
1375
|
+
* <b>AUTOMERGE</b>: Resolve conflicts with the
|
|
1376
|
+
* Automerge conflict resolution strategy.</p>
|
|
1339
1377
|
* </li>
|
|
1340
1378
|
* <li>
|
|
1341
1379
|
* <p>
|
|
1342
|
-
* <b>LAMBDA</b>: Resolve conflicts with an Lambda function
|
|
1343
|
-
*
|
|
1380
|
+
* <b>LAMBDA</b>: Resolve conflicts with an Lambda function supplied in the
|
|
1381
|
+
* <code>LambdaConflictHandlerConfig</code>.</p>
|
|
1344
1382
|
* </li>
|
|
1345
1383
|
* </ul>
|
|
1346
1384
|
*/
|
|
@@ -1350,20 +1388,20 @@ export interface SyncConfig {
|
|
|
1350
1388
|
* <ul>
|
|
1351
1389
|
* <li>
|
|
1352
1390
|
* <p>
|
|
1353
|
-
* <b>VERSION</b>: Detect conflicts based on object
|
|
1354
|
-
* resolver.</p>
|
|
1391
|
+
* <b>VERSION</b>: Detect conflicts based on object
|
|
1392
|
+
* versions for this resolver.</p>
|
|
1355
1393
|
* </li>
|
|
1356
1394
|
* <li>
|
|
1357
1395
|
* <p>
|
|
1358
|
-
* <b>NONE</b>: Do not detect conflicts when invoking
|
|
1359
|
-
* resolver.</p>
|
|
1396
|
+
* <b>NONE</b>: Do not detect conflicts when invoking
|
|
1397
|
+
* this resolver.</p>
|
|
1360
1398
|
* </li>
|
|
1361
1399
|
* </ul>
|
|
1362
1400
|
*/
|
|
1363
1401
|
conflictDetection?: ConflictDetectionType | string;
|
|
1364
1402
|
/**
|
|
1365
|
-
* <p>The <code>LambdaConflictHandlerConfig</code> when configuring <code>LAMBDA</code> as the
|
|
1366
|
-
* Handler.</p>
|
|
1403
|
+
* <p>The <code>LambdaConflictHandlerConfig</code> when configuring <code>LAMBDA</code> as the
|
|
1404
|
+
* Conflict Handler.</p>
|
|
1367
1405
|
*/
|
|
1368
1406
|
lambdaConflictHandlerConfig?: LambdaConflictHandlerConfig;
|
|
1369
1407
|
}
|
|
@@ -1389,8 +1427,8 @@ export interface CreateFunctionRequest {
|
|
|
1389
1427
|
*/
|
|
1390
1428
|
dataSourceName: string | undefined;
|
|
1391
1429
|
/**
|
|
1392
|
-
* <p>The <code>Function</code> request mapping template. Functions support only the
|
|
1393
|
-
* request mapping template.</p>
|
|
1430
|
+
* <p>The <code>Function</code> request mapping template. Functions support only the
|
|
1431
|
+
* 2018-05-29 version of the request mapping template.</p>
|
|
1394
1432
|
*/
|
|
1395
1433
|
requestMappingTemplate?: string;
|
|
1396
1434
|
/**
|
|
@@ -1398,14 +1436,15 @@ export interface CreateFunctionRequest {
|
|
|
1398
1436
|
*/
|
|
1399
1437
|
responseMappingTemplate?: string;
|
|
1400
1438
|
/**
|
|
1401
|
-
* <p>The <code>version</code> of the request mapping template. Currently, the supported value
|
|
1402
|
-
* that when using VTL and mapping templates, the
|
|
1439
|
+
* <p>The <code>version</code> of the request mapping template. Currently, the supported value
|
|
1440
|
+
* is 2018-05-29. Note that when using VTL and mapping templates, the
|
|
1441
|
+
* <code>functionVersion</code> is required.</p>
|
|
1403
1442
|
*/
|
|
1404
1443
|
functionVersion?: string;
|
|
1405
1444
|
/**
|
|
1406
1445
|
* <p>Describes a Sync configuration for a resolver.</p>
|
|
1407
|
-
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the
|
|
1408
|
-
* invoked.</p>
|
|
1446
|
+
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the
|
|
1447
|
+
* resolver is invoked.</p>
|
|
1409
1448
|
*/
|
|
1410
1449
|
syncConfig?: SyncConfig;
|
|
1411
1450
|
/**
|
|
@@ -1413,19 +1452,21 @@ export interface CreateFunctionRequest {
|
|
|
1413
1452
|
*/
|
|
1414
1453
|
maxBatchSize?: number;
|
|
1415
1454
|
/**
|
|
1416
|
-
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
|
|
1417
|
-
*
|
|
1455
|
+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note
|
|
1456
|
+
* that if a runtime is specified, code must also be specified.</p>
|
|
1418
1457
|
*/
|
|
1419
1458
|
runtime?: AppSyncRuntime;
|
|
1420
1459
|
/**
|
|
1421
|
-
* <p>The <code>function</code> code that contains the request and response functions. When
|
|
1422
|
-
*
|
|
1460
|
+
* <p>The <code>function</code> code that contains the request and response functions. When
|
|
1461
|
+
* code is used, the <code>runtime</code> is required. The <code>runtime</code> value must be
|
|
1462
|
+
* <code>APPSYNC_JS</code>.</p>
|
|
1423
1463
|
*/
|
|
1424
1464
|
code?: string;
|
|
1425
1465
|
}
|
|
1426
1466
|
/**
|
|
1427
1467
|
* @public
|
|
1428
|
-
* <p>A function is a reusable entity. You can use multiple functions to compose the resolver
|
|
1468
|
+
* <p>A function is a reusable entity. You can use multiple functions to compose the resolver
|
|
1469
|
+
* logic.</p>
|
|
1429
1470
|
*/
|
|
1430
1471
|
export interface FunctionConfiguration {
|
|
1431
1472
|
/**
|
|
@@ -1449,8 +1490,8 @@ export interface FunctionConfiguration {
|
|
|
1449
1490
|
*/
|
|
1450
1491
|
dataSourceName?: string;
|
|
1451
1492
|
/**
|
|
1452
|
-
* <p>The <code>Function</code> request mapping template. Functions support only the
|
|
1453
|
-
* request mapping template.</p>
|
|
1493
|
+
* <p>The <code>Function</code> request mapping template. Functions support only the
|
|
1494
|
+
* 2018-05-29 version of the request mapping template.</p>
|
|
1454
1495
|
*/
|
|
1455
1496
|
requestMappingTemplate?: string;
|
|
1456
1497
|
/**
|
|
@@ -1458,14 +1499,14 @@ export interface FunctionConfiguration {
|
|
|
1458
1499
|
*/
|
|
1459
1500
|
responseMappingTemplate?: string;
|
|
1460
1501
|
/**
|
|
1461
|
-
* <p>The version of the request mapping template. Currently, only the 2018-05-29 version of
|
|
1462
|
-
* supported.</p>
|
|
1502
|
+
* <p>The version of the request mapping template. Currently, only the 2018-05-29 version of
|
|
1503
|
+
* the template is supported.</p>
|
|
1463
1504
|
*/
|
|
1464
1505
|
functionVersion?: string;
|
|
1465
1506
|
/**
|
|
1466
1507
|
* <p>Describes a Sync configuration for a resolver.</p>
|
|
1467
|
-
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the
|
|
1468
|
-
* invoked.</p>
|
|
1508
|
+
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the
|
|
1509
|
+
* resolver is invoked.</p>
|
|
1469
1510
|
*/
|
|
1470
1511
|
syncConfig?: SyncConfig;
|
|
1471
1512
|
/**
|
|
@@ -1473,13 +1514,14 @@ export interface FunctionConfiguration {
|
|
|
1473
1514
|
*/
|
|
1474
1515
|
maxBatchSize?: number;
|
|
1475
1516
|
/**
|
|
1476
|
-
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
|
|
1477
|
-
*
|
|
1517
|
+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note
|
|
1518
|
+
* that if a runtime is specified, code must also be specified.</p>
|
|
1478
1519
|
*/
|
|
1479
1520
|
runtime?: AppSyncRuntime;
|
|
1480
1521
|
/**
|
|
1481
|
-
* <p>The <code>function</code> code that contains the request and response functions. When
|
|
1482
|
-
*
|
|
1522
|
+
* <p>The <code>function</code> code that contains the request and response functions. When
|
|
1523
|
+
* code is used, the <code>runtime</code> is required. The <code>runtime</code> value must be
|
|
1524
|
+
* <code>APPSYNC_JS</code>.</p>
|
|
1483
1525
|
*/
|
|
1484
1526
|
code?: string;
|
|
1485
1527
|
}
|
|
@@ -1515,12 +1557,13 @@ export interface LogConfig {
|
|
|
1515
1557
|
* <ul>
|
|
1516
1558
|
* <li>
|
|
1517
1559
|
* <p>
|
|
1518
|
-
* <b>NONE</b>: No field-level logs are
|
|
1560
|
+
* <b>NONE</b>: No field-level logs are
|
|
1561
|
+
* captured.</p>
|
|
1519
1562
|
* </li>
|
|
1520
1563
|
* <li>
|
|
1521
1564
|
* <p>
|
|
1522
|
-
* <b>ERROR</b>: Logs the following information only for
|
|
1523
|
-
* in error:</p>
|
|
1565
|
+
* <b>ERROR</b>: Logs the following information only for
|
|
1566
|
+
* the fields that are in error:</p>
|
|
1524
1567
|
* <ul>
|
|
1525
1568
|
* <li>
|
|
1526
1569
|
* <p>The error section in the server response.</p>
|
|
@@ -1529,20 +1572,22 @@ export interface LogConfig {
|
|
|
1529
1572
|
* <p>Field-level errors.</p>
|
|
1530
1573
|
* </li>
|
|
1531
1574
|
* <li>
|
|
1532
|
-
* <p>The generated request/response functions that got resolved for error
|
|
1575
|
+
* <p>The generated request/response functions that got resolved for error
|
|
1576
|
+
* fields.</p>
|
|
1533
1577
|
* </li>
|
|
1534
1578
|
* </ul>
|
|
1535
1579
|
* </li>
|
|
1536
1580
|
* <li>
|
|
1537
1581
|
* <p>
|
|
1538
|
-
* <b>ALL</b>: The following information is logged for
|
|
1539
|
-
* query:</p>
|
|
1582
|
+
* <b>ALL</b>: The following information is logged for
|
|
1583
|
+
* all fields in the query:</p>
|
|
1540
1584
|
* <ul>
|
|
1541
1585
|
* <li>
|
|
1542
1586
|
* <p>Field-level tracing information.</p>
|
|
1543
1587
|
* </li>
|
|
1544
1588
|
* <li>
|
|
1545
|
-
* <p>The generated request/response functions that got resolved for each
|
|
1589
|
+
* <p>The generated request/response functions that got resolved for each
|
|
1590
|
+
* field.</p>
|
|
1546
1591
|
* </li>
|
|
1547
1592
|
* </ul>
|
|
1548
1593
|
* </li>
|
|
@@ -1550,13 +1595,13 @@ export interface LogConfig {
|
|
|
1550
1595
|
*/
|
|
1551
1596
|
fieldLogLevel: FieldLogLevel | string | undefined;
|
|
1552
1597
|
/**
|
|
1553
|
-
* <p>The service role that AppSync assumes to publish to CloudWatch
|
|
1554
|
-
* account.</p>
|
|
1598
|
+
* <p>The service role that AppSync assumes to publish to CloudWatch
|
|
1599
|
+
* logs in your account.</p>
|
|
1555
1600
|
*/
|
|
1556
1601
|
cloudWatchLogsRoleArn: string | undefined;
|
|
1557
1602
|
/**
|
|
1558
|
-
* <p>Set to TRUE to exclude sections that contain information such as headers, context, and
|
|
1559
|
-
* templates, regardless of logging level.</p>
|
|
1603
|
+
* <p>Set to TRUE to exclude sections that contain information such as headers, context, and
|
|
1604
|
+
* evaluated mapping templates, regardless of logging level.</p>
|
|
1560
1605
|
*/
|
|
1561
1606
|
excludeVerboseContent?: boolean;
|
|
1562
1607
|
}
|
|
@@ -1586,16 +1631,28 @@ export interface UserPoolConfig {
|
|
|
1586
1631
|
*/
|
|
1587
1632
|
awsRegion: string | undefined;
|
|
1588
1633
|
/**
|
|
1589
|
-
* <p>The action that you want your GraphQL API to take when a request that uses Amazon Cognito user pool
|
|
1590
|
-
*
|
|
1634
|
+
* <p>The action that you want your GraphQL API to take when a request that uses Amazon Cognito user pool authentication doesn't match the Amazon Cognito user pool
|
|
1635
|
+
* configuration.</p>
|
|
1591
1636
|
*/
|
|
1592
1637
|
defaultAction: DefaultAction | string | undefined;
|
|
1593
1638
|
/**
|
|
1594
|
-
* <p>A regular expression for validating the incoming Amazon Cognito user pool app client
|
|
1595
|
-
* isn't set, no filtering is applied.</p>
|
|
1639
|
+
* <p>A regular expression for validating the incoming Amazon Cognito user pool app client
|
|
1640
|
+
* ID. If this value isn't set, no filtering is applied.</p>
|
|
1596
1641
|
*/
|
|
1597
1642
|
appIdClientRegex?: string;
|
|
1598
1643
|
}
|
|
1644
|
+
/**
|
|
1645
|
+
* @public
|
|
1646
|
+
* @enum
|
|
1647
|
+
*/
|
|
1648
|
+
export declare const GraphQLApiVisibility: {
|
|
1649
|
+
readonly GLOBAL: "GLOBAL";
|
|
1650
|
+
readonly PRIVATE: "PRIVATE";
|
|
1651
|
+
};
|
|
1652
|
+
/**
|
|
1653
|
+
* @public
|
|
1654
|
+
*/
|
|
1655
|
+
export type GraphQLApiVisibility = (typeof GraphQLApiVisibility)[keyof typeof GraphQLApiVisibility];
|
|
1599
1656
|
/**
|
|
1600
1657
|
* @public
|
|
1601
1658
|
*/
|
|
@@ -1609,8 +1666,8 @@ export interface CreateGraphqlApiRequest {
|
|
|
1609
1666
|
*/
|
|
1610
1667
|
logConfig?: LogConfig;
|
|
1611
1668
|
/**
|
|
1612
|
-
* <p>The authentication type: API key, Identity and Access Management (IAM), OpenID
|
|
1613
|
-
*
|
|
1669
|
+
* <p>The authentication type: API key, Identity and Access Management (IAM), OpenID
|
|
1670
|
+
* Connect (OIDC), Amazon Cognito user pools, or Lambda.</p>
|
|
1614
1671
|
*/
|
|
1615
1672
|
authenticationType: AuthenticationType | string | undefined;
|
|
1616
1673
|
/**
|
|
@@ -1626,17 +1683,25 @@ export interface CreateGraphqlApiRequest {
|
|
|
1626
1683
|
*/
|
|
1627
1684
|
tags?: Record<string, string>;
|
|
1628
1685
|
/**
|
|
1629
|
-
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
1686
|
+
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
1687
|
+
* API.</p>
|
|
1630
1688
|
*/
|
|
1631
1689
|
additionalAuthenticationProviders?: AdditionalAuthenticationProvider[];
|
|
1632
1690
|
/**
|
|
1633
|
-
* <p>A flag indicating whether to use X-Ray tracing for the
|
|
1691
|
+
* <p>A flag indicating whether to use X-Ray tracing for the
|
|
1692
|
+
* <code>GraphqlApi</code>.</p>
|
|
1634
1693
|
*/
|
|
1635
1694
|
xrayEnabled?: boolean;
|
|
1636
1695
|
/**
|
|
1637
1696
|
* <p>Configuration for Lambda function authorization.</p>
|
|
1638
1697
|
*/
|
|
1639
1698
|
lambdaAuthorizerConfig?: LambdaAuthorizerConfig;
|
|
1699
|
+
/**
|
|
1700
|
+
* <p>Sets the value of the GraphQL API to public (<code>GLOBAL</code>) or private (<code>PRIVATE</code>). If no
|
|
1701
|
+
* value is provided, the visibility will be set to <code>GLOBAL</code> by default. This value cannot be changed
|
|
1702
|
+
* once the API has been created.</p>
|
|
1703
|
+
*/
|
|
1704
|
+
visibility?: GraphQLApiVisibility | string;
|
|
1640
1705
|
}
|
|
1641
1706
|
/**
|
|
1642
1707
|
* @public
|
|
@@ -1680,22 +1745,34 @@ export interface GraphqlApi {
|
|
|
1680
1745
|
*/
|
|
1681
1746
|
tags?: Record<string, string>;
|
|
1682
1747
|
/**
|
|
1683
|
-
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
1748
|
+
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
1749
|
+
* API.</p>
|
|
1684
1750
|
*/
|
|
1685
1751
|
additionalAuthenticationProviders?: AdditionalAuthenticationProvider[];
|
|
1686
1752
|
/**
|
|
1687
|
-
* <p>A flag indicating whether to use X-Ray tracing for this
|
|
1753
|
+
* <p>A flag indicating whether to use X-Ray tracing for this
|
|
1754
|
+
* <code>GraphqlApi</code>.</p>
|
|
1688
1755
|
*/
|
|
1689
1756
|
xrayEnabled?: boolean;
|
|
1690
1757
|
/**
|
|
1691
1758
|
* <p>The ARN of the WAF access control list (ACL) associated with this
|
|
1692
|
-
*
|
|
1759
|
+
* <code>GraphqlApi</code>, if one exists.</p>
|
|
1693
1760
|
*/
|
|
1694
1761
|
wafWebAclArn?: string;
|
|
1695
1762
|
/**
|
|
1696
1763
|
* <p>Configuration for Lambda function authorization.</p>
|
|
1697
1764
|
*/
|
|
1698
1765
|
lambdaAuthorizerConfig?: LambdaAuthorizerConfig;
|
|
1766
|
+
/**
|
|
1767
|
+
* <p>The DNS records for the API.</p>
|
|
1768
|
+
*/
|
|
1769
|
+
dns?: Record<string, string>;
|
|
1770
|
+
/**
|
|
1771
|
+
* <p>Sets the value of the GraphQL API to public (<code>GLOBAL</code>) or private (<code>PRIVATE</code>). If no
|
|
1772
|
+
* value is provided, the visibility will be set to <code>GLOBAL</code> by default. This value cannot be changed
|
|
1773
|
+
* once the API has been created.</p>
|
|
1774
|
+
*/
|
|
1775
|
+
visibility?: GraphQLApiVisibility | string;
|
|
1699
1776
|
}
|
|
1700
1777
|
/**
|
|
1701
1778
|
* @public
|
|
@@ -1718,8 +1795,8 @@ export interface CachingConfig {
|
|
|
1718
1795
|
ttl: number | undefined;
|
|
1719
1796
|
/**
|
|
1720
1797
|
* <p>The caching keys for a resolver that has caching activated.</p>
|
|
1721
|
-
* <p>Valid values are entries from the <code>$context.arguments</code>,
|
|
1722
|
-
* <code>$context.identity</code> maps.</p>
|
|
1798
|
+
* <p>Valid values are entries from the <code>$context.arguments</code>,
|
|
1799
|
+
* <code>$context.source</code>, and <code>$context.identity</code> maps.</p>
|
|
1723
1800
|
*/
|
|
1724
1801
|
cachingKeys?: string[];
|
|
1725
1802
|
}
|
|
@@ -1767,10 +1844,12 @@ export interface CreateResolverRequest {
|
|
|
1767
1844
|
dataSourceName?: string;
|
|
1768
1845
|
/**
|
|
1769
1846
|
* <p>The mapping template to use for requests.</p>
|
|
1770
|
-
* <p>A resolver uses a request mapping template to convert a GraphQL expression into a format
|
|
1771
|
-
* can understand. Mapping templates are written in Apache Velocity
|
|
1772
|
-
*
|
|
1773
|
-
*
|
|
1847
|
+
* <p>A resolver uses a request mapping template to convert a GraphQL expression into a format
|
|
1848
|
+
* that a data source can understand. Mapping templates are written in Apache Velocity
|
|
1849
|
+
* Template Language (VTL).</p>
|
|
1850
|
+
* <p>VTL request mapping templates are optional when using an Lambda data
|
|
1851
|
+
* source. For all other data sources, VTL request and response mapping templates are
|
|
1852
|
+
* required.</p>
|
|
1774
1853
|
*/
|
|
1775
1854
|
requestMappingTemplate?: string;
|
|
1776
1855
|
/**
|
|
@@ -1782,14 +1861,16 @@ export interface CreateResolverRequest {
|
|
|
1782
1861
|
* <ul>
|
|
1783
1862
|
* <li>
|
|
1784
1863
|
* <p>
|
|
1785
|
-
* <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is
|
|
1786
|
-
* resolver type. You can use a UNIT resolver to run a GraphQL query against
|
|
1864
|
+
* <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is
|
|
1865
|
+
* the default resolver type. You can use a UNIT resolver to run a GraphQL query against
|
|
1866
|
+
* a single data source.</p>
|
|
1787
1867
|
* </li>
|
|
1788
1868
|
* <li>
|
|
1789
1869
|
* <p>
|
|
1790
|
-
* <b>PIPELINE</b>: A PIPELINE resolver type. You can
|
|
1791
|
-
* resolver to invoke a series of <code>Function</code> objects in a
|
|
1792
|
-
* resolver to run a GraphQL query against
|
|
1870
|
+
* <b>PIPELINE</b>: A PIPELINE resolver type. You can
|
|
1871
|
+
* use a PIPELINE resolver to invoke a series of <code>Function</code> objects in a
|
|
1872
|
+
* serial manner. You can use a pipeline resolver to run a GraphQL query against
|
|
1873
|
+
* multiple data sources.</p>
|
|
1793
1874
|
* </li>
|
|
1794
1875
|
* </ul>
|
|
1795
1876
|
*/
|
|
@@ -1811,13 +1892,14 @@ export interface CreateResolverRequest {
|
|
|
1811
1892
|
*/
|
|
1812
1893
|
maxBatchSize?: number;
|
|
1813
1894
|
/**
|
|
1814
|
-
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
|
|
1815
|
-
*
|
|
1895
|
+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note
|
|
1896
|
+
* that if a runtime is specified, code must also be specified.</p>
|
|
1816
1897
|
*/
|
|
1817
1898
|
runtime?: AppSyncRuntime;
|
|
1818
1899
|
/**
|
|
1819
|
-
* <p>The <code>resolver</code> code that contains the request and response functions. When
|
|
1820
|
-
*
|
|
1900
|
+
* <p>The <code>resolver</code> code that contains the request and response functions. When
|
|
1901
|
+
* code is used, the <code>runtime</code> is required. The <code>runtime</code> value must be
|
|
1902
|
+
* <code>APPSYNC_JS</code>.</p>
|
|
1821
1903
|
*/
|
|
1822
1904
|
code?: string;
|
|
1823
1905
|
}
|
|
@@ -1855,14 +1937,16 @@ export interface Resolver {
|
|
|
1855
1937
|
* <ul>
|
|
1856
1938
|
* <li>
|
|
1857
1939
|
* <p>
|
|
1858
|
-
* <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is
|
|
1859
|
-
* resolver type. You can use a UNIT resolver to run a GraphQL query against
|
|
1940
|
+
* <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is
|
|
1941
|
+
* the default resolver type. You can use a UNIT resolver to run a GraphQL query against
|
|
1942
|
+
* a single data source.</p>
|
|
1860
1943
|
* </li>
|
|
1861
1944
|
* <li>
|
|
1862
1945
|
* <p>
|
|
1863
|
-
* <b>PIPELINE</b>: A PIPELINE resolver type. You can
|
|
1864
|
-
* resolver to invoke a series of <code>Function</code> objects in a
|
|
1865
|
-
* resolver to run a GraphQL query against
|
|
1946
|
+
* <b>PIPELINE</b>: A PIPELINE resolver type. You can
|
|
1947
|
+
* use a PIPELINE resolver to invoke a series of <code>Function</code> objects in a
|
|
1948
|
+
* serial manner. You can use a pipeline resolver to run a GraphQL query against
|
|
1949
|
+
* multiple data sources.</p>
|
|
1866
1950
|
* </li>
|
|
1867
1951
|
* </ul>
|
|
1868
1952
|
*/
|
|
@@ -1884,13 +1968,14 @@ export interface Resolver {
|
|
|
1884
1968
|
*/
|
|
1885
1969
|
maxBatchSize?: number;
|
|
1886
1970
|
/**
|
|
1887
|
-
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
|
|
1888
|
-
*
|
|
1971
|
+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note
|
|
1972
|
+
* that if a runtime is specified, code must also be specified.</p>
|
|
1889
1973
|
*/
|
|
1890
1974
|
runtime?: AppSyncRuntime;
|
|
1891
1975
|
/**
|
|
1892
|
-
* <p>The <code>resolver</code> code that contains the request and response functions. When
|
|
1893
|
-
*
|
|
1976
|
+
* <p>The <code>resolver</code> code that contains the request and response functions. When
|
|
1977
|
+
* code is used, the <code>runtime</code> is required. The <code>runtime</code> value must be
|
|
1978
|
+
* <code>APPSYNC_JS</code>.</p>
|
|
1894
1979
|
*/
|
|
1895
1980
|
code?: string;
|
|
1896
1981
|
}
|
|
@@ -2126,23 +2211,24 @@ export interface DisassociateApiResponse {
|
|
|
2126
2211
|
*/
|
|
2127
2212
|
export interface EvaluateCodeRequest {
|
|
2128
2213
|
/**
|
|
2129
|
-
* <p>The runtime to be used when evaluating the code. Currently, only the
|
|
2130
|
-
*
|
|
2214
|
+
* <p>The runtime to be used when evaluating the code. Currently, only the
|
|
2215
|
+
* <code>APPSYNC_JS</code> runtime is supported.</p>
|
|
2131
2216
|
*/
|
|
2132
2217
|
runtime: AppSyncRuntime | undefined;
|
|
2133
2218
|
/**
|
|
2134
|
-
* <p>The code definition to be evaluated. Note that <code>code</code> and
|
|
2135
|
-
*
|
|
2219
|
+
* <p>The code definition to be evaluated. Note that <code>code</code> and
|
|
2220
|
+
* <code>runtime</code> are both required for this action. The <code>runtime</code> value
|
|
2221
|
+
* must be <code>APPSYNC_JS</code>.</p>
|
|
2136
2222
|
*/
|
|
2137
2223
|
code: string | undefined;
|
|
2138
2224
|
/**
|
|
2139
|
-
* <p>The map that holds all of the contextual information for your resolver invocation. A
|
|
2140
|
-
*
|
|
2225
|
+
* <p>The map that holds all of the contextual information for your resolver invocation. A
|
|
2226
|
+
* <code>context</code> is required for this action.</p>
|
|
2141
2227
|
*/
|
|
2142
2228
|
context: string | undefined;
|
|
2143
2229
|
/**
|
|
2144
|
-
* <p>The function within the code to be evaluated. If provided, the valid values are
|
|
2145
|
-
* <code>response</code>.</p>
|
|
2230
|
+
* <p>The function within the code to be evaluated. If provided, the valid values are
|
|
2231
|
+
* <code>request</code> and <code>response</code>.</p>
|
|
2146
2232
|
*/
|
|
2147
2233
|
function?: string;
|
|
2148
2234
|
}
|
|
@@ -2173,8 +2259,8 @@ export interface EvaluateCodeResponse {
|
|
|
2173
2259
|
*/
|
|
2174
2260
|
error?: EvaluateCodeErrorDetail;
|
|
2175
2261
|
/**
|
|
2176
|
-
* <p>A list of logs that were generated by calls to <code>util.log.info</code> and
|
|
2177
|
-
*
|
|
2262
|
+
* <p>A list of logs that were generated by calls to <code>util.log.info</code> and
|
|
2263
|
+
* <code>util.log.error</code> in the evaluated code.</p>
|
|
2178
2264
|
*/
|
|
2179
2265
|
logs?: string[];
|
|
2180
2266
|
}
|
|
@@ -2183,20 +2269,20 @@ export interface EvaluateCodeResponse {
|
|
|
2183
2269
|
*/
|
|
2184
2270
|
export interface EvaluateMappingTemplateRequest {
|
|
2185
2271
|
/**
|
|
2186
|
-
* <p>The mapping template; this can be a request or response template. A
|
|
2187
|
-
*
|
|
2272
|
+
* <p>The mapping template; this can be a request or response template. A
|
|
2273
|
+
* <code>template</code> is required for this action.</p>
|
|
2188
2274
|
*/
|
|
2189
2275
|
template: string | undefined;
|
|
2190
2276
|
/**
|
|
2191
|
-
* <p>The map that holds all of the contextual information for your resolver invocation. A
|
|
2192
|
-
*
|
|
2277
|
+
* <p>The map that holds all of the contextual information for your resolver invocation. A
|
|
2278
|
+
* <code>context</code> is required for this action.</p>
|
|
2193
2279
|
*/
|
|
2194
2280
|
context: string | undefined;
|
|
2195
2281
|
}
|
|
2196
2282
|
/**
|
|
2197
2283
|
* @public
|
|
2198
|
-
* <p>Contains the list of errors generated. When using JavaScript, this will apply to the
|
|
2199
|
-
* function evaluation.</p>
|
|
2284
|
+
* <p>Contains the list of errors generated. When using JavaScript, this will apply to the
|
|
2285
|
+
* request or response function evaluation.</p>
|
|
2200
2286
|
*/
|
|
2201
2287
|
export interface ErrorDetail {
|
|
2202
2288
|
/**
|
|
@@ -2217,8 +2303,8 @@ export interface EvaluateMappingTemplateResponse {
|
|
|
2217
2303
|
*/
|
|
2218
2304
|
error?: ErrorDetail;
|
|
2219
2305
|
/**
|
|
2220
|
-
* <p>A list of logs that were generated by calls to <code>util.log.info</code> and
|
|
2221
|
-
*
|
|
2306
|
+
* <p>A list of logs that were generated by calls to <code>util.log.info</code> and
|
|
2307
|
+
* <code>util.log.error</code> in the evaluated code.</p>
|
|
2222
2308
|
*/
|
|
2223
2309
|
logs?: string[];
|
|
2224
2310
|
}
|
|
@@ -2464,8 +2550,8 @@ export type SchemaStatus = (typeof SchemaStatus)[keyof typeof SchemaStatus];
|
|
|
2464
2550
|
*/
|
|
2465
2551
|
export interface GetSchemaCreationStatusResponse {
|
|
2466
2552
|
/**
|
|
2467
|
-
* <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When
|
|
2468
|
-
* ACTIVE state, you can add data.</p>
|
|
2553
|
+
* <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When
|
|
2554
|
+
* the schema is in the ACTIVE state, you can add data.</p>
|
|
2469
2555
|
*/
|
|
2470
2556
|
status?: SchemaStatus | string;
|
|
2471
2557
|
/**
|
|
@@ -2508,8 +2594,8 @@ export interface ListApiKeysRequest {
|
|
|
2508
2594
|
*/
|
|
2509
2595
|
apiId: string | undefined;
|
|
2510
2596
|
/**
|
|
2511
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2512
|
-
* next set of items in the list.</p>
|
|
2597
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2598
|
+
* use to return the next set of items in the list.</p>
|
|
2513
2599
|
*/
|
|
2514
2600
|
nextToken?: string;
|
|
2515
2601
|
/**
|
|
@@ -2526,8 +2612,8 @@ export interface ListApiKeysResponse {
|
|
|
2526
2612
|
*/
|
|
2527
2613
|
apiKeys?: ApiKey[];
|
|
2528
2614
|
/**
|
|
2529
|
-
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2530
|
-
* list.</p>
|
|
2615
|
+
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2616
|
+
* items in the list.</p>
|
|
2531
2617
|
*/
|
|
2532
2618
|
nextToken?: string;
|
|
2533
2619
|
}
|
|
@@ -2540,8 +2626,8 @@ export interface ListDataSourcesRequest {
|
|
|
2540
2626
|
*/
|
|
2541
2627
|
apiId: string | undefined;
|
|
2542
2628
|
/**
|
|
2543
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2544
|
-
* next set of items in the list.</p>
|
|
2629
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2630
|
+
* use to return the next set of items in the list.</p>
|
|
2545
2631
|
*/
|
|
2546
2632
|
nextToken?: string;
|
|
2547
2633
|
/**
|
|
@@ -2558,8 +2644,8 @@ export interface ListDataSourcesResponse {
|
|
|
2558
2644
|
*/
|
|
2559
2645
|
dataSources?: DataSource[];
|
|
2560
2646
|
/**
|
|
2561
|
-
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2562
|
-
* list.</p>
|
|
2647
|
+
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2648
|
+
* items in the list.</p>
|
|
2563
2649
|
*/
|
|
2564
2650
|
nextToken?: string;
|
|
2565
2651
|
}
|
|
@@ -2598,8 +2684,8 @@ export interface ListFunctionsRequest {
|
|
|
2598
2684
|
*/
|
|
2599
2685
|
apiId: string | undefined;
|
|
2600
2686
|
/**
|
|
2601
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2602
|
-
* next set of items in the list.</p>
|
|
2687
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2688
|
+
* use to return the next set of items in the list.</p>
|
|
2603
2689
|
*/
|
|
2604
2690
|
nextToken?: string;
|
|
2605
2691
|
/**
|
|
@@ -2616,8 +2702,8 @@ export interface ListFunctionsResponse {
|
|
|
2616
2702
|
*/
|
|
2617
2703
|
functions?: FunctionConfiguration[];
|
|
2618
2704
|
/**
|
|
2619
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2620
|
-
* next set of items in the list.</p>
|
|
2705
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2706
|
+
* use to return the next set of items in the list.</p>
|
|
2621
2707
|
*/
|
|
2622
2708
|
nextToken?: string;
|
|
2623
2709
|
}
|
|
@@ -2626,8 +2712,8 @@ export interface ListFunctionsResponse {
|
|
|
2626
2712
|
*/
|
|
2627
2713
|
export interface ListGraphqlApisRequest {
|
|
2628
2714
|
/**
|
|
2629
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2630
|
-
* next set of items in the list.</p>
|
|
2715
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2716
|
+
* use to return the next set of items in the list.</p>
|
|
2631
2717
|
*/
|
|
2632
2718
|
nextToken?: string;
|
|
2633
2719
|
/**
|
|
@@ -2644,8 +2730,8 @@ export interface ListGraphqlApisResponse {
|
|
|
2644
2730
|
*/
|
|
2645
2731
|
graphqlApis?: GraphqlApi[];
|
|
2646
2732
|
/**
|
|
2647
|
-
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2648
|
-
* list.</p>
|
|
2733
|
+
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2734
|
+
* items in the list.</p>
|
|
2649
2735
|
*/
|
|
2650
2736
|
nextToken?: string;
|
|
2651
2737
|
}
|
|
@@ -2662,8 +2748,8 @@ export interface ListResolversRequest {
|
|
|
2662
2748
|
*/
|
|
2663
2749
|
typeName: string | undefined;
|
|
2664
2750
|
/**
|
|
2665
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2666
|
-
* next set of items in the list.</p>
|
|
2751
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2752
|
+
* use to return the next set of items in the list.</p>
|
|
2667
2753
|
*/
|
|
2668
2754
|
nextToken?: string;
|
|
2669
2755
|
/**
|
|
@@ -2680,8 +2766,8 @@ export interface ListResolversResponse {
|
|
|
2680
2766
|
*/
|
|
2681
2767
|
resolvers?: Resolver[];
|
|
2682
2768
|
/**
|
|
2683
|
-
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2684
|
-
* list.</p>
|
|
2769
|
+
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2770
|
+
* items in the list.</p>
|
|
2685
2771
|
*/
|
|
2686
2772
|
nextToken?: string;
|
|
2687
2773
|
}
|
|
@@ -2698,8 +2784,8 @@ export interface ListResolversByFunctionRequest {
|
|
|
2698
2784
|
*/
|
|
2699
2785
|
functionId: string | undefined;
|
|
2700
2786
|
/**
|
|
2701
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2702
|
-
* next set of items in the list.</p>
|
|
2787
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2788
|
+
* use to return the next set of items in the list.</p>
|
|
2703
2789
|
*/
|
|
2704
2790
|
nextToken?: string;
|
|
2705
2791
|
/**
|
|
@@ -2751,8 +2837,8 @@ export interface ListTypesRequest {
|
|
|
2751
2837
|
*/
|
|
2752
2838
|
format: TypeDefinitionFormat | string | undefined;
|
|
2753
2839
|
/**
|
|
2754
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2755
|
-
* next set of items in the list.</p>
|
|
2840
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2841
|
+
* use to return the next set of items in the list.</p>
|
|
2756
2842
|
*/
|
|
2757
2843
|
nextToken?: string;
|
|
2758
2844
|
/**
|
|
@@ -2769,8 +2855,8 @@ export interface ListTypesResponse {
|
|
|
2769
2855
|
*/
|
|
2770
2856
|
types?: Type[];
|
|
2771
2857
|
/**
|
|
2772
|
-
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2773
|
-
* list.</p>
|
|
2858
|
+
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2859
|
+
* items in the list.</p>
|
|
2774
2860
|
*/
|
|
2775
2861
|
nextToken?: string;
|
|
2776
2862
|
}
|
|
@@ -2792,8 +2878,8 @@ export interface StartSchemaCreationRequest {
|
|
|
2792
2878
|
*/
|
|
2793
2879
|
export interface StartSchemaCreationResponse {
|
|
2794
2880
|
/**
|
|
2795
|
-
* <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When
|
|
2796
|
-
* ACTIVE state, you can add data.</p>
|
|
2881
|
+
* <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When
|
|
2882
|
+
* the schema is in the ACTIVE state, you can add data.</p>
|
|
2797
2883
|
*/
|
|
2798
2884
|
status?: SchemaStatus | string;
|
|
2799
2885
|
}
|
|
@@ -2852,12 +2938,13 @@ export interface UpdateApiCacheRequest {
|
|
|
2852
2938
|
* <ul>
|
|
2853
2939
|
* <li>
|
|
2854
2940
|
* <p>
|
|
2855
|
-
* <b>FULL_REQUEST_CACHING</b>: All requests are fully
|
|
2941
|
+
* <b>FULL_REQUEST_CACHING</b>: All requests are fully
|
|
2942
|
+
* cached.</p>
|
|
2856
2943
|
* </li>
|
|
2857
2944
|
* <li>
|
|
2858
2945
|
* <p>
|
|
2859
|
-
* <b>PER_RESOLVER_CACHING</b>: Individual resolvers
|
|
2860
|
-
* cached.</p>
|
|
2946
|
+
* <b>PER_RESOLVER_CACHING</b>: Individual resolvers
|
|
2947
|
+
* that you specify are cached.</p>
|
|
2861
2948
|
* </li>
|
|
2862
2949
|
* </ul>
|
|
2863
2950
|
*/
|
|
@@ -2967,8 +3054,8 @@ export interface UpdateApiKeyRequest {
|
|
|
2967
3054
|
*/
|
|
2968
3055
|
description?: string;
|
|
2969
3056
|
/**
|
|
2970
|
-
* <p>From the update time, the time after which the API key expires. The date is represented
|
|
2971
|
-
* epoch. For more information, see .</p>
|
|
3057
|
+
* <p>From the update time, the time after which the API key expires. The date is represented
|
|
3058
|
+
* as seconds since the epoch. For more information, see .</p>
|
|
2972
3059
|
*/
|
|
2973
3060
|
expires?: number;
|
|
2974
3061
|
}
|
|
@@ -3015,8 +3102,8 @@ export interface UpdateDataSourceRequest {
|
|
|
3015
3102
|
lambdaConfig?: LambdaDataSourceConfig;
|
|
3016
3103
|
/**
|
|
3017
3104
|
* <p>The new OpenSearch configuration.</p>
|
|
3018
|
-
* <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This
|
|
3019
|
-
* deprecated. Instead, use <a>UpdateDataSourceRequest$openSearchServiceConfig</a> to update an OpenSearch data source.</p>
|
|
3105
|
+
* <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This
|
|
3106
|
+
* configuration is deprecated. Instead, use <a>UpdateDataSourceRequest$openSearchServiceConfig</a> to update an OpenSearch data source.</p>
|
|
3020
3107
|
*/
|
|
3021
3108
|
elasticsearchConfig?: ElasticsearchDataSourceConfig;
|
|
3022
3109
|
/**
|
|
@@ -3093,8 +3180,8 @@ export interface UpdateFunctionRequest {
|
|
|
3093
3180
|
*/
|
|
3094
3181
|
dataSourceName: string | undefined;
|
|
3095
3182
|
/**
|
|
3096
|
-
* <p>The <code>Function</code> request mapping template. Functions support only the
|
|
3097
|
-
* request mapping template.</p>
|
|
3183
|
+
* <p>The <code>Function</code> request mapping template. Functions support only the
|
|
3184
|
+
* 2018-05-29 version of the request mapping template.</p>
|
|
3098
3185
|
*/
|
|
3099
3186
|
requestMappingTemplate?: string;
|
|
3100
3187
|
/**
|
|
@@ -3102,15 +3189,15 @@ export interface UpdateFunctionRequest {
|
|
|
3102
3189
|
*/
|
|
3103
3190
|
responseMappingTemplate?: string;
|
|
3104
3191
|
/**
|
|
3105
|
-
* <p>The <code>version</code> of the request mapping template. Currently, the supported value
|
|
3106
|
-
* 2018-05-29. Note
|
|
3107
|
-
*
|
|
3192
|
+
* <p>The <code>version</code> of the request mapping template. Currently, the supported value
|
|
3193
|
+
* is 2018-05-29. Note that when using VTL and mapping templates, the
|
|
3194
|
+
* <code>functionVersion</code> is required.</p>
|
|
3108
3195
|
*/
|
|
3109
3196
|
functionVersion?: string;
|
|
3110
3197
|
/**
|
|
3111
3198
|
* <p>Describes a Sync configuration for a resolver.</p>
|
|
3112
|
-
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the
|
|
3113
|
-
* invoked.</p>
|
|
3199
|
+
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the
|
|
3200
|
+
* resolver is invoked.</p>
|
|
3114
3201
|
*/
|
|
3115
3202
|
syncConfig?: SyncConfig;
|
|
3116
3203
|
/**
|
|
@@ -3118,13 +3205,14 @@ export interface UpdateFunctionRequest {
|
|
|
3118
3205
|
*/
|
|
3119
3206
|
maxBatchSize?: number;
|
|
3120
3207
|
/**
|
|
3121
|
-
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
|
|
3122
|
-
*
|
|
3208
|
+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note
|
|
3209
|
+
* that if a runtime is specified, code must also be specified.</p>
|
|
3123
3210
|
*/
|
|
3124
3211
|
runtime?: AppSyncRuntime;
|
|
3125
3212
|
/**
|
|
3126
|
-
* <p>The <code>function</code> code that contains the request and response functions. When
|
|
3127
|
-
*
|
|
3213
|
+
* <p>The <code>function</code> code that contains the request and response functions. When
|
|
3214
|
+
* code is used, the <code>runtime</code> is required. The <code>runtime</code> value must be
|
|
3215
|
+
* <code>APPSYNC_JS</code>.</p>
|
|
3128
3216
|
*/
|
|
3129
3217
|
code?: string;
|
|
3130
3218
|
}
|
|
@@ -3158,7 +3246,8 @@ export interface UpdateGraphqlApiRequest {
|
|
|
3158
3246
|
*/
|
|
3159
3247
|
authenticationType?: AuthenticationType | string;
|
|
3160
3248
|
/**
|
|
3161
|
-
* <p>The new Amazon Cognito user pool configuration for the <code>~GraphqlApi</code>
|
|
3249
|
+
* <p>The new Amazon Cognito user pool configuration for the <code>~GraphqlApi</code>
|
|
3250
|
+
* object.</p>
|
|
3162
3251
|
*/
|
|
3163
3252
|
userPoolConfig?: UserPoolConfig;
|
|
3164
3253
|
/**
|
|
@@ -3166,11 +3255,13 @@ export interface UpdateGraphqlApiRequest {
|
|
|
3166
3255
|
*/
|
|
3167
3256
|
openIDConnectConfig?: OpenIDConnectConfig;
|
|
3168
3257
|
/**
|
|
3169
|
-
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
3258
|
+
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
3259
|
+
* API.</p>
|
|
3170
3260
|
*/
|
|
3171
3261
|
additionalAuthenticationProviders?: AdditionalAuthenticationProvider[];
|
|
3172
3262
|
/**
|
|
3173
|
-
* <p>A flag indicating whether to use X-Ray tracing for the
|
|
3263
|
+
* <p>A flag indicating whether to use X-Ray tracing for the
|
|
3264
|
+
* <code>GraphqlApi</code>.</p>
|
|
3174
3265
|
*/
|
|
3175
3266
|
xrayEnabled?: boolean;
|
|
3176
3267
|
/**
|
|
@@ -3209,10 +3300,12 @@ export interface UpdateResolverRequest {
|
|
|
3209
3300
|
dataSourceName?: string;
|
|
3210
3301
|
/**
|
|
3211
3302
|
* <p>The new request mapping template.</p>
|
|
3212
|
-
* <p>A resolver uses a request mapping template to convert a GraphQL expression into a format
|
|
3213
|
-
* can understand. Mapping templates are written in Apache Velocity
|
|
3214
|
-
*
|
|
3215
|
-
*
|
|
3303
|
+
* <p>A resolver uses a request mapping template to convert a GraphQL expression into a format
|
|
3304
|
+
* that a data source can understand. Mapping templates are written in Apache Velocity
|
|
3305
|
+
* Template Language (VTL).</p>
|
|
3306
|
+
* <p>VTL request mapping templates are optional when using an Lambda data
|
|
3307
|
+
* source. For all other data sources, VTL request and response mapping templates are
|
|
3308
|
+
* required.</p>
|
|
3216
3309
|
*/
|
|
3217
3310
|
requestMappingTemplate?: string;
|
|
3218
3311
|
/**
|
|
@@ -3224,14 +3317,16 @@ export interface UpdateResolverRequest {
|
|
|
3224
3317
|
* <ul>
|
|
3225
3318
|
* <li>
|
|
3226
3319
|
* <p>
|
|
3227
|
-
* <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is
|
|
3228
|
-
* resolver type. You can use a UNIT resolver to run a GraphQL query against
|
|
3320
|
+
* <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is
|
|
3321
|
+
* the default resolver type. You can use a UNIT resolver to run a GraphQL query against
|
|
3322
|
+
* a single data source.</p>
|
|
3229
3323
|
* </li>
|
|
3230
3324
|
* <li>
|
|
3231
3325
|
* <p>
|
|
3232
|
-
* <b>PIPELINE</b>: A PIPELINE resolver type. You can
|
|
3233
|
-
* resolver to invoke a series of <code>Function</code> objects in a
|
|
3234
|
-
* resolver to run a GraphQL query against
|
|
3326
|
+
* <b>PIPELINE</b>: A PIPELINE resolver type. You can
|
|
3327
|
+
* use a PIPELINE resolver to invoke a series of <code>Function</code> objects in a
|
|
3328
|
+
* serial manner. You can use a pipeline resolver to run a GraphQL query against
|
|
3329
|
+
* multiple data sources.</p>
|
|
3235
3330
|
* </li>
|
|
3236
3331
|
* </ul>
|
|
3237
3332
|
*/
|
|
@@ -3253,13 +3348,14 @@ export interface UpdateResolverRequest {
|
|
|
3253
3348
|
*/
|
|
3254
3349
|
maxBatchSize?: number;
|
|
3255
3350
|
/**
|
|
3256
|
-
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and
|
|
3257
|
-
*
|
|
3351
|
+
* <p>Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note
|
|
3352
|
+
* that if a runtime is specified, code must also be specified.</p>
|
|
3258
3353
|
*/
|
|
3259
3354
|
runtime?: AppSyncRuntime;
|
|
3260
3355
|
/**
|
|
3261
|
-
* <p>The <code>resolver</code> code that contains the request and response functions. When
|
|
3262
|
-
*
|
|
3356
|
+
* <p>The <code>resolver</code> code that contains the request and response functions. When
|
|
3357
|
+
* code is used, the <code>runtime</code> is required. The <code>runtime</code> value must be
|
|
3358
|
+
* <code>APPSYNC_JS</code>.</p>
|
|
3263
3359
|
*/
|
|
3264
3360
|
code?: string;
|
|
3265
3361
|
}
|