@aws-sdk/client-appsync 3.211.0 → 3.213.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/AppSync.js +15 -0
- package/dist-cjs/commands/EvaluateCodeCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +42 -4
- package/dist-cjs/protocols/Aws_restJson1.js +168 -14
- package/dist-es/AppSync.js +15 -0
- package/dist-es/commands/EvaluateCodeCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +31 -0
- package/dist-es/protocols/Aws_restJson1.js +163 -12
- package/dist-types/AppSync.d.ts +26 -18
- package/dist-types/AppSyncClient.d.ts +5 -4
- package/dist-types/commands/CreateFunctionCommand.d.ts +1 -2
- package/dist-types/commands/CreateResolverCommand.d.ts +2 -2
- package/dist-types/commands/EvaluateCodeCommand.d.ts +41 -0
- package/dist-types/commands/EvaluateMappingTemplateCommand.d.ts +5 -6
- package/dist-types/commands/ListApiKeysCommand.d.ts +3 -4
- package/dist-types/commands/StartSchemaCreationCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +459 -293
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/AppSync.d.ts +17 -0
- package/dist-types/ts3.4/AppSyncClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/EvaluateCodeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +74 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +28 -28
|
@@ -19,37 +19,32 @@ export declare enum AuthenticationType {
|
|
|
19
19
|
OPENID_CONNECT = "OPENID_CONNECT"
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* <p>A <code>LambdaAuthorizerConfig</code> specifies how to authorize AppSync
|
|
23
|
-
*
|
|
24
|
-
* time.</p>
|
|
22
|
+
* <p>A <code>LambdaAuthorizerConfig</code> specifies how to authorize AppSync API access when
|
|
23
|
+
* using the <code>AWS_LAMBDA</code> authorizer mode. Be aware that an AppSync API can have only
|
|
24
|
+
* one Lambda authorizer configured at a time.</p>
|
|
25
25
|
*/
|
|
26
26
|
export interface LambdaAuthorizerConfig {
|
|
27
27
|
/**
|
|
28
|
-
* <p>The number of seconds a response should be cached for. The default is 5 minutes (300
|
|
29
|
-
*
|
|
30
|
-
* <code>ttlOverride</code> key in its response. A value of 0 disables caching of
|
|
31
|
-
* responses.</p>
|
|
28
|
+
* <p>The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a <code>ttlOverride</code> key in its response. A value
|
|
29
|
+
* of 0 disables caching of responses.</p>
|
|
32
30
|
*/
|
|
33
31
|
authorizerResultTtlInSeconds?: number;
|
|
34
32
|
/**
|
|
35
|
-
* <p>The Amazon Resource Name (ARN) of the Lambda function to be called for
|
|
36
|
-
*
|
|
37
|
-
* (<code>.../v3</code>), or an alias ARN. </p>
|
|
33
|
+
* <p>The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can
|
|
34
|
+
* be a standard Lambda ARN, a version ARN (<code>.../v3</code>), or an alias ARN. </p>
|
|
38
35
|
* <p>
|
|
39
|
-
* <b>Note</b>: This Lambda function must have the
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* (CLI), run the following:</p>
|
|
36
|
+
* <b>Note</b>: This Lambda function must have the following
|
|
37
|
+
* resource-based policy assigned to it. When configuring Lambda authorizers in the console, this is
|
|
38
|
+
* done for you. To use the Command Line Interface (CLI), run the following:</p>
|
|
43
39
|
* <p>
|
|
44
40
|
* <code>aws lambda add-permission --function-name
|
|
45
|
-
* "arn:aws:lambda:us-east-2:111122223333:function:my-function" --statement-id "appsync"
|
|
46
|
-
*
|
|
41
|
+
* "arn:aws:lambda:us-east-2:111122223333:function:my-function" --statement-id "appsync" --principal
|
|
42
|
+
* appsync.amazonaws.com --action lambda:InvokeFunction</code>
|
|
47
43
|
* </p>
|
|
48
44
|
*/
|
|
49
45
|
authorizerUri: string | undefined;
|
|
50
46
|
/**
|
|
51
|
-
* <p>A regular expression for validation of tokens before the Lambda function is
|
|
52
|
-
* called.</p>
|
|
47
|
+
* <p>A regular expression for validation of tokens before the Lambda function is called.</p>
|
|
53
48
|
*/
|
|
54
49
|
identityValidationExpression?: string;
|
|
55
50
|
}
|
|
@@ -58,15 +53,14 @@ export interface LambdaAuthorizerConfig {
|
|
|
58
53
|
*/
|
|
59
54
|
export interface OpenIDConnectConfig {
|
|
60
55
|
/**
|
|
61
|
-
* <p>The issuer for the OIDC configuration. The issuer returned by discovery must exactly
|
|
62
|
-
*
|
|
56
|
+
* <p>The issuer for the OIDC configuration. The issuer returned by discovery must exactly match the value of
|
|
57
|
+
* <code>iss</code> in the ID token.</p>
|
|
63
58
|
*/
|
|
64
59
|
issuer: string | undefined;
|
|
65
60
|
/**
|
|
66
|
-
* <p>The client identifier of the relying party at the OpenID identity provider. This
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* validate against multiple client identifiers at a time.</p>
|
|
61
|
+
* <p>The client identifier of the relying party at the OpenID identity provider. This identifier is typically
|
|
62
|
+
* obtained when the relying party is registered with the OpenID identity provider. You can specify a regular
|
|
63
|
+
* expression so that AppSync can validate against multiple client identifiers at a time.</p>
|
|
70
64
|
*/
|
|
71
65
|
clientId?: string;
|
|
72
66
|
/**
|
|
@@ -91,8 +85,8 @@ export interface CognitoUserPoolConfig {
|
|
|
91
85
|
*/
|
|
92
86
|
awsRegion: string | undefined;
|
|
93
87
|
/**
|
|
94
|
-
* <p>A regular expression for validating the incoming Amazon Cognito user pool app client
|
|
95
|
-
*
|
|
88
|
+
* <p>A regular expression for validating the incoming Amazon Cognito user pool app client ID. If this value
|
|
89
|
+
* isn't set, no filtering is applied.</p>
|
|
96
90
|
*/
|
|
97
91
|
appIdClientRegex?: string;
|
|
98
92
|
}
|
|
@@ -101,8 +95,8 @@ export interface CognitoUserPoolConfig {
|
|
|
101
95
|
*/
|
|
102
96
|
export interface AdditionalAuthenticationProvider {
|
|
103
97
|
/**
|
|
104
|
-
* <p>The authentication type: API key, Identity and Access Management (IAM), OpenID
|
|
105
|
-
*
|
|
98
|
+
* <p>The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC),
|
|
99
|
+
* Amazon Cognito user pools, or Lambda.</p>
|
|
106
100
|
*/
|
|
107
101
|
authenticationType?: AuthenticationType | string;
|
|
108
102
|
/**
|
|
@@ -140,18 +134,18 @@ export interface ApiAssociation {
|
|
|
140
134
|
* <ul>
|
|
141
135
|
* <li>
|
|
142
136
|
* <p>
|
|
143
|
-
* <b>PROCESSING</b>: The API association is being
|
|
144
|
-
*
|
|
137
|
+
* <b>PROCESSING</b>: The API association is being created. You cannot
|
|
138
|
+
* modify association requests during processing.</p>
|
|
145
139
|
* </li>
|
|
146
140
|
* <li>
|
|
147
141
|
* <p>
|
|
148
|
-
* <b>SUCCESS</b>: The API association was successful.
|
|
149
|
-
*
|
|
142
|
+
* <b>SUCCESS</b>: The API association was successful. You can modify
|
|
143
|
+
* associations after success.</p>
|
|
150
144
|
* </li>
|
|
151
145
|
* <li>
|
|
152
146
|
* <p>
|
|
153
|
-
* <b>FAILED</b>: The API association has failed. You
|
|
154
|
-
*
|
|
147
|
+
* <b>FAILED</b>: The API association has failed. You can modify
|
|
148
|
+
* associations after failure.</p>
|
|
155
149
|
* </li>
|
|
156
150
|
* </ul>
|
|
157
151
|
*/
|
|
@@ -203,20 +197,18 @@ export interface ApiCache {
|
|
|
203
197
|
* <ul>
|
|
204
198
|
* <li>
|
|
205
199
|
* <p>
|
|
206
|
-
* <b>FULL_REQUEST_CACHING</b>: All requests are fully
|
|
207
|
-
* cached.</p>
|
|
200
|
+
* <b>FULL_REQUEST_CACHING</b>: All requests are fully cached.</p>
|
|
208
201
|
* </li>
|
|
209
202
|
* <li>
|
|
210
203
|
* <p>
|
|
211
|
-
* <b>PER_RESOLVER_CACHING</b>: Individual resolvers
|
|
212
|
-
*
|
|
204
|
+
* <b>PER_RESOLVER_CACHING</b>: Individual resolvers that you specify are
|
|
205
|
+
* cached.</p>
|
|
213
206
|
* </li>
|
|
214
207
|
* </ul>
|
|
215
208
|
*/
|
|
216
209
|
apiCachingBehavior?: ApiCachingBehavior | string;
|
|
217
210
|
/**
|
|
218
|
-
* <p>Transit encryption flag when connecting to cache. You cannot update this setting after
|
|
219
|
-
* creation.</p>
|
|
211
|
+
* <p>Transit encryption flag when connecting to cache. You cannot update this setting after creation.</p>
|
|
220
212
|
*/
|
|
221
213
|
transitEncryptionEnabled?: boolean;
|
|
222
214
|
/**
|
|
@@ -305,28 +297,23 @@ export interface ApiCache {
|
|
|
305
297
|
* <ul>
|
|
306
298
|
* <li>
|
|
307
299
|
* <p>
|
|
308
|
-
* <b>AVAILABLE</b>: The instance is available for
|
|
309
|
-
* use.</p>
|
|
300
|
+
* <b>AVAILABLE</b>: The instance is available for use.</p>
|
|
310
301
|
* </li>
|
|
311
302
|
* <li>
|
|
312
303
|
* <p>
|
|
313
|
-
* <b>CREATING</b>: The instance is currently
|
|
314
|
-
* creating.</p>
|
|
304
|
+
* <b>CREATING</b>: The instance is currently creating.</p>
|
|
315
305
|
* </li>
|
|
316
306
|
* <li>
|
|
317
307
|
* <p>
|
|
318
|
-
* <b>DELETING</b>: The instance is currently
|
|
319
|
-
* deleting.</p>
|
|
308
|
+
* <b>DELETING</b>: The instance is currently deleting.</p>
|
|
320
309
|
* </li>
|
|
321
310
|
* <li>
|
|
322
311
|
* <p>
|
|
323
|
-
* <b>MODIFYING</b>: The instance is currently
|
|
324
|
-
* modifying.</p>
|
|
312
|
+
* <b>MODIFYING</b>: The instance is currently modifying.</p>
|
|
325
313
|
* </li>
|
|
326
314
|
* <li>
|
|
327
315
|
* <p>
|
|
328
|
-
* <b>FAILED</b>: The instance has failed
|
|
329
|
-
* creation.</p>
|
|
316
|
+
* <b>FAILED</b>: The instance has failed creation.</p>
|
|
330
317
|
* </li>
|
|
331
318
|
* </ul>
|
|
332
319
|
*/
|
|
@@ -334,13 +321,12 @@ export interface ApiCache {
|
|
|
334
321
|
}
|
|
335
322
|
/**
|
|
336
323
|
* <p>Describes an API key.</p>
|
|
337
|
-
* <p>Customers invoke AppSync GraphQL API operations with API keys as an
|
|
338
|
-
*
|
|
324
|
+
* <p>Customers invoke AppSync GraphQL API operations with API keys as an identity mechanism.
|
|
325
|
+
* There are two key versions:</p>
|
|
339
326
|
* <p>
|
|
340
|
-
* <b>da1</b>: We introduced this version at launch in November
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
* longer be used.</p>
|
|
327
|
+
* <b>da1</b>: We introduced this version at launch in November 2017. These keys
|
|
328
|
+
* always expire after 7 days. Amazon DynamoDB TTL manages key expiration. These keys ceased to be valid
|
|
329
|
+
* after February 21, 2018, and they should no longer be used.</p>
|
|
344
330
|
* <ul>
|
|
345
331
|
* <li>
|
|
346
332
|
* <p>
|
|
@@ -348,8 +334,7 @@ export interface ApiCache {
|
|
|
348
334
|
* </li>
|
|
349
335
|
* <li>
|
|
350
336
|
* <p>
|
|
351
|
-
* <code>CreateApiKey</code> returns the expiration time in
|
|
352
|
-
* milliseconds.</p>
|
|
337
|
+
* <code>CreateApiKey</code> returns the expiration time in milliseconds.</p>
|
|
353
338
|
* </li>
|
|
354
339
|
* <li>
|
|
355
340
|
* <p>
|
|
@@ -360,45 +345,40 @@ export interface ApiCache {
|
|
|
360
345
|
* <code>DeleteApiKey</code> deletes the item from the table.</p>
|
|
361
346
|
* </li>
|
|
362
347
|
* <li>
|
|
363
|
-
* <p>Expiration is stored in DynamoDB as milliseconds. This results in a
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
* table on February 21, 2018.</p>
|
|
348
|
+
* <p>Expiration is stored in DynamoDB as milliseconds. This results in a bug where keys are
|
|
349
|
+
* not automatically deleted because DynamoDB expects the TTL to be stored in seconds. As a
|
|
350
|
+
* one-time action, we deleted these keys from the table on February 21, 2018.</p>
|
|
367
351
|
* </li>
|
|
368
352
|
* </ul>
|
|
369
353
|
* <p>
|
|
370
|
-
* <b>da2</b>: We introduced this version in February 2018 when
|
|
371
|
-
* AppSync added support to extend key expiration.</p>
|
|
354
|
+
* <b>da2</b>: We introduced this version in February 2018 when AppSync added support to extend key expiration.</p>
|
|
372
355
|
* <ul>
|
|
373
356
|
* <li>
|
|
374
357
|
* <p>
|
|
375
|
-
* <code>ListApiKeys</code> returns the expiration time and deletion time in
|
|
376
|
-
* seconds.</p>
|
|
358
|
+
* <code>ListApiKeys</code> returns the expiration time and deletion time in seconds.</p>
|
|
377
359
|
* </li>
|
|
378
360
|
* <li>
|
|
379
361
|
* <p>
|
|
380
|
-
* <code>CreateApiKey</code> returns the expiration time and deletion time in
|
|
381
|
-
*
|
|
362
|
+
* <code>CreateApiKey</code> returns the expiration time and deletion time in seconds and accepts a
|
|
363
|
+
* user-provided expiration time in seconds.</p>
|
|
382
364
|
* </li>
|
|
383
365
|
* <li>
|
|
384
366
|
* <p>
|
|
385
|
-
* <code>UpdateApiKey</code> returns the expiration time and and deletion time in
|
|
386
|
-
*
|
|
387
|
-
*
|
|
388
|
-
* long as the key isn't deleted.</p>
|
|
367
|
+
* <code>UpdateApiKey</code> returns the expiration time and and deletion time in seconds and accepts
|
|
368
|
+
* a user-provided expiration time in seconds. Expired API keys are kept for 60 days after the expiration
|
|
369
|
+
* time. You can update the key expiration time as long as the key isn't deleted.</p>
|
|
389
370
|
* </li>
|
|
390
371
|
* <li>
|
|
391
372
|
* <p>
|
|
392
373
|
* <code>DeleteApiKey</code> deletes the item from the table.</p>
|
|
393
374
|
* </li>
|
|
394
375
|
* <li>
|
|
395
|
-
* <p>Expiration is stored in DynamoDB as seconds. After the expiration
|
|
396
|
-
*
|
|
397
|
-
* before deletion.</p>
|
|
376
|
+
* <p>Expiration is stored in DynamoDB as seconds. After the expiration time, using the key to
|
|
377
|
+
* authenticate will fail. However, you can reinstate the key before deletion.</p>
|
|
398
378
|
* </li>
|
|
399
379
|
* <li>
|
|
400
|
-
* <p>Deletion is stored in DynamoDB as seconds. The key is deleted after
|
|
401
|
-
*
|
|
380
|
+
* <p>Deletion is stored in DynamoDB as seconds. The key is deleted after deletion
|
|
381
|
+
* time.</p>
|
|
402
382
|
* </li>
|
|
403
383
|
* </ul>
|
|
404
384
|
*/
|
|
@@ -412,13 +392,13 @@ export interface ApiKey {
|
|
|
412
392
|
*/
|
|
413
393
|
description?: string;
|
|
414
394
|
/**
|
|
415
|
-
* <p>The time after which the API key expires. The date is represented as seconds since the
|
|
416
|
-
*
|
|
395
|
+
* <p>The time after which the API key expires. The date is represented as seconds since the epoch, rounded down
|
|
396
|
+
* to the nearest hour.</p>
|
|
417
397
|
*/
|
|
418
398
|
expires?: number;
|
|
419
399
|
/**
|
|
420
|
-
* <p>The time after which the API key is deleted. The date is represented as seconds since
|
|
421
|
-
*
|
|
400
|
+
* <p>The time after which the API key is deleted. The date is represented as seconds since the epoch, rounded
|
|
401
|
+
* down to the nearest hour.</p>
|
|
422
402
|
*/
|
|
423
403
|
deletes?: number;
|
|
424
404
|
}
|
|
@@ -456,6 +436,25 @@ export declare class ApiLimitExceededException extends __BaseException {
|
|
|
456
436
|
*/
|
|
457
437
|
constructor(opts: __ExceptionOptionType<ApiLimitExceededException, __BaseException>);
|
|
458
438
|
}
|
|
439
|
+
export declare enum RuntimeName {
|
|
440
|
+
APPSYNC_JS = "APPSYNC_JS"
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
|
|
444
|
+
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
|
|
445
|
+
*/
|
|
446
|
+
export interface AppSyncRuntime {
|
|
447
|
+
/**
|
|
448
|
+
* <p>The <code>name</code> of the runtime to use. Currently, the only allowed value is
|
|
449
|
+
* <code>APPSYNC_JS</code>.</p>
|
|
450
|
+
*/
|
|
451
|
+
name: RuntimeName | string | undefined;
|
|
452
|
+
/**
|
|
453
|
+
* <p>The <code>version</code> of the runtime to use. Currently, the only allowed version is
|
|
454
|
+
* <code>1.0.0</code>.</p>
|
|
455
|
+
*/
|
|
456
|
+
runtimeVersion: string | undefined;
|
|
457
|
+
}
|
|
459
458
|
export interface AssociateApiRequest {
|
|
460
459
|
/**
|
|
461
460
|
* <p>The domain name.</p>
|
|
@@ -473,12 +472,71 @@ export interface AssociateApiResponse {
|
|
|
473
472
|
apiAssociation?: ApiAssociation;
|
|
474
473
|
}
|
|
475
474
|
/**
|
|
476
|
-
* <p>
|
|
477
|
-
|
|
475
|
+
* <p>Describes the location of the error in a code sample.</p>
|
|
476
|
+
*/
|
|
477
|
+
export interface CodeErrorLocation {
|
|
478
|
+
/**
|
|
479
|
+
* <p>The line number in the code. Defaults to <code>0</code> if unknown.</p>
|
|
480
|
+
*/
|
|
481
|
+
line?: number;
|
|
482
|
+
/**
|
|
483
|
+
* <p>The column number in the code. Defaults to <code>0</code> if unknown.</p>
|
|
484
|
+
*/
|
|
485
|
+
column?: number;
|
|
486
|
+
/**
|
|
487
|
+
* <p>The span/length of the error. Defaults to <code>-1</code> if unknown.</p>
|
|
488
|
+
*/
|
|
489
|
+
span?: number;
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* <p>Describes an AppSync error.</p>
|
|
493
|
+
*/
|
|
494
|
+
export interface CodeError {
|
|
495
|
+
/**
|
|
496
|
+
* <p>The type of code error. </p>
|
|
497
|
+
* <p>Examples include, but aren't limited to: <code>LINT_ERROR</code>, <code>PARSER_ERROR</code>.</p>
|
|
498
|
+
*/
|
|
499
|
+
errorType?: string;
|
|
500
|
+
/**
|
|
501
|
+
* <p>A user presentable error.</p>
|
|
502
|
+
* <p>Examples include, but aren't limited to: <code>Parsing error: Unterminated string literal</code>.</p>
|
|
503
|
+
*/
|
|
504
|
+
value?: string;
|
|
505
|
+
/**
|
|
506
|
+
* <p>The line, column, and span location of the error in the code.</p>
|
|
507
|
+
*/
|
|
508
|
+
location?: CodeErrorLocation;
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* <p>Provides further details for the reason behind the bad request. For reason type <code>CODE_ERROR</code>, the
|
|
512
|
+
* detail will contain a list of code errors.</p>
|
|
513
|
+
*/
|
|
514
|
+
export interface BadRequestDetail {
|
|
515
|
+
/**
|
|
516
|
+
* <p>Contains the list of errors in the request.</p>
|
|
517
|
+
*/
|
|
518
|
+
codeErrors?: CodeError[];
|
|
519
|
+
}
|
|
520
|
+
export declare enum BadRequestReason {
|
|
521
|
+
CODE_ERROR = "CODE_ERROR"
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
|
|
525
|
+
* field values, and then try again.</p>
|
|
478
526
|
*/
|
|
479
527
|
export declare class BadRequestException extends __BaseException {
|
|
480
528
|
readonly name: "BadRequestException";
|
|
481
529
|
readonly $fault: "client";
|
|
530
|
+
/**
|
|
531
|
+
* <p>Provides context for the cause of the bad request. The only supported value is
|
|
532
|
+
* <code>CODE_ERROR</code>.</p>
|
|
533
|
+
*/
|
|
534
|
+
reason?: BadRequestReason | string;
|
|
535
|
+
/**
|
|
536
|
+
* <p>Provides further details for the reason behind the bad request. For reason type <code>CODE_ERROR</code>, the
|
|
537
|
+
* detail will contain a list of code errors.</p>
|
|
538
|
+
*/
|
|
539
|
+
detail?: BadRequestDetail;
|
|
482
540
|
/**
|
|
483
541
|
* @internal
|
|
484
542
|
*/
|
|
@@ -496,8 +554,7 @@ export declare class InternalFailureException extends __BaseException {
|
|
|
496
554
|
constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
|
|
497
555
|
}
|
|
498
556
|
/**
|
|
499
|
-
* <p>The resource specified in the request was not found. Check the resource, and then try
|
|
500
|
-
* again.</p>
|
|
557
|
+
* <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
|
|
501
558
|
*/
|
|
502
559
|
export declare class NotFoundException extends __BaseException {
|
|
503
560
|
readonly name: "NotFoundException";
|
|
@@ -532,8 +589,8 @@ export interface AuthorizationConfig {
|
|
|
532
589
|
* <ul>
|
|
533
590
|
* <li>
|
|
534
591
|
* <p>
|
|
535
|
-
* <b>AWS_IAM</b>: The authorization type is Signature
|
|
536
|
-
*
|
|
592
|
+
* <b>AWS_IAM</b>: The authorization type is Signature Version 4
|
|
593
|
+
* (SigV4).</p>
|
|
537
594
|
* </li>
|
|
538
595
|
* </ul>
|
|
539
596
|
*/
|
|
@@ -544,8 +601,8 @@ export interface AuthorizationConfig {
|
|
|
544
601
|
awsIamConfig?: AwsIamConfig;
|
|
545
602
|
}
|
|
546
603
|
/**
|
|
547
|
-
* <p>Another modification is in progress at this time and it must complete before you can
|
|
548
|
-
*
|
|
604
|
+
* <p>Another modification is in progress at this time and it must complete before you can make your
|
|
605
|
+
* change.</p>
|
|
549
606
|
*/
|
|
550
607
|
export declare class ConcurrentModificationException extends __BaseException {
|
|
551
608
|
readonly name: "ConcurrentModificationException";
|
|
@@ -569,8 +626,7 @@ export interface CreateApiCacheRequest {
|
|
|
569
626
|
*/
|
|
570
627
|
ttl: number | undefined;
|
|
571
628
|
/**
|
|
572
|
-
* <p>Transit encryption flag when connecting to cache. You cannot update this setting after
|
|
573
|
-
* creation.</p>
|
|
629
|
+
* <p>Transit encryption flag when connecting to cache. You cannot update this setting after creation.</p>
|
|
574
630
|
*/
|
|
575
631
|
transitEncryptionEnabled?: boolean;
|
|
576
632
|
/**
|
|
@@ -582,13 +638,12 @@ export interface CreateApiCacheRequest {
|
|
|
582
638
|
* <ul>
|
|
583
639
|
* <li>
|
|
584
640
|
* <p>
|
|
585
|
-
* <b>FULL_REQUEST_CACHING</b>: All requests are fully
|
|
586
|
-
* cached.</p>
|
|
641
|
+
* <b>FULL_REQUEST_CACHING</b>: All requests are fully cached.</p>
|
|
587
642
|
* </li>
|
|
588
643
|
* <li>
|
|
589
644
|
* <p>
|
|
590
|
-
* <b>PER_RESOLVER_CACHING</b>: Individual resolvers
|
|
591
|
-
*
|
|
645
|
+
* <b>PER_RESOLVER_CACHING</b>: Individual resolvers that you specify are
|
|
646
|
+
* cached.</p>
|
|
592
647
|
* </li>
|
|
593
648
|
* </ul>
|
|
594
649
|
*/
|
|
@@ -701,9 +756,9 @@ export interface CreateApiKeyRequest {
|
|
|
701
756
|
*/
|
|
702
757
|
description?: string;
|
|
703
758
|
/**
|
|
704
|
-
* <p>From the creation time, the time after which the API key expires. The date is
|
|
705
|
-
*
|
|
706
|
-
*
|
|
759
|
+
* <p>From the creation time, the time after which the API key expires. The date is represented as seconds since
|
|
760
|
+
* the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time.
|
|
761
|
+
* For more information, see .</p>
|
|
707
762
|
*/
|
|
708
763
|
expires?: number;
|
|
709
764
|
}
|
|
@@ -737,8 +792,7 @@ export interface DeltaSyncConfig {
|
|
|
737
792
|
*/
|
|
738
793
|
deltaSyncTableName?: string;
|
|
739
794
|
/**
|
|
740
|
-
* <p>The number of minutes that a Delta Sync log entry is stored in the Delta Sync
|
|
741
|
-
* table.</p>
|
|
795
|
+
* <p>The number of minutes that a Delta Sync log entry is stored in the Delta Sync table.</p>
|
|
742
796
|
*/
|
|
743
797
|
deltaSyncTableTTL?: number;
|
|
744
798
|
}
|
|
@@ -769,9 +823,8 @@ export interface DynamodbDataSourceConfig {
|
|
|
769
823
|
}
|
|
770
824
|
/**
|
|
771
825
|
* <p>Describes an OpenSearch data source configuration.</p>
|
|
772
|
-
* <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This
|
|
773
|
-
*
|
|
774
|
-
* source.</p>
|
|
826
|
+
* <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is
|
|
827
|
+
* deprecated. For new data sources, use <a>OpenSearchServiceDataSourceConfig</a> to specify an OpenSearch data source.</p>
|
|
775
828
|
*/
|
|
776
829
|
export interface ElasticsearchDataSourceConfig {
|
|
777
830
|
/**
|
|
@@ -788,10 +841,9 @@ export interface ElasticsearchDataSourceConfig {
|
|
|
788
841
|
*/
|
|
789
842
|
export interface HttpDataSourceConfig {
|
|
790
843
|
/**
|
|
791
|
-
* <p>The HTTP URL endpoint. You can specify either the domain name or IP, and port
|
|
792
|
-
*
|
|
793
|
-
*
|
|
794
|
-
* HTTPS endpoints.</p>
|
|
844
|
+
* <p>The HTTP URL endpoint. You can specify either the domain name or IP, and port combination, and the URL
|
|
845
|
+
* scheme must be HTTP or HTTPS. If you don't specify the port, AppSync uses the default port 80
|
|
846
|
+
* for the HTTP endpoint and port 443 for HTTPS endpoints.</p>
|
|
795
847
|
*/
|
|
796
848
|
endpoint?: string;
|
|
797
849
|
/**
|
|
@@ -842,8 +894,7 @@ export interface RdsHttpEndpointConfig {
|
|
|
842
894
|
*/
|
|
843
895
|
schema?: string;
|
|
844
896
|
/**
|
|
845
|
-
* <p>Amazon Web Services secret store Amazon Resource Name (ARN) for database
|
|
846
|
-
* credentials.</p>
|
|
897
|
+
* <p>Amazon Web Services secret store Amazon Resource Name (ARN) for database credentials.</p>
|
|
847
898
|
*/
|
|
848
899
|
awsSecretStoreArn?: string;
|
|
849
900
|
}
|
|
@@ -859,9 +910,8 @@ export interface RelationalDatabaseDataSourceConfig {
|
|
|
859
910
|
* <ul>
|
|
860
911
|
* <li>
|
|
861
912
|
* <p>
|
|
862
|
-
* <b>RDS_HTTP_ENDPOINT</b>: The relational database
|
|
863
|
-
*
|
|
864
|
-
* endpoint.</p>
|
|
913
|
+
* <b>RDS_HTTP_ENDPOINT</b>: The relational database source type is an
|
|
914
|
+
* Amazon Relational Database Service (Amazon RDS) HTTP endpoint.</p>
|
|
865
915
|
* </li>
|
|
866
916
|
* </ul>
|
|
867
917
|
*/
|
|
@@ -898,8 +948,8 @@ export interface CreateDataSourceRequest {
|
|
|
898
948
|
*/
|
|
899
949
|
type: DataSourceType | string | undefined;
|
|
900
950
|
/**
|
|
901
|
-
* <p>The Identity and Access Management (IAM) service role Amazon Resource Name (ARN)
|
|
902
|
-
*
|
|
951
|
+
* <p>The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source.
|
|
952
|
+
* The system assumes this role when accessing the data source.</p>
|
|
903
953
|
*/
|
|
904
954
|
serviceRoleArn?: string;
|
|
905
955
|
/**
|
|
@@ -912,8 +962,9 @@ export interface CreateDataSourceRequest {
|
|
|
912
962
|
lambdaConfig?: LambdaDataSourceConfig;
|
|
913
963
|
/**
|
|
914
964
|
* <p>Amazon OpenSearch Service settings.</p>
|
|
915
|
-
* <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This
|
|
916
|
-
*
|
|
965
|
+
* <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is
|
|
966
|
+
* deprecated. For new data sources, use <a>CreateDataSourceRequest$openSearchServiceConfig</a> to
|
|
967
|
+
* create an OpenSearch data source.</p>
|
|
917
968
|
*/
|
|
918
969
|
elasticsearchConfig?: ElasticsearchDataSourceConfig;
|
|
919
970
|
/**
|
|
@@ -950,45 +1001,44 @@ export interface DataSource {
|
|
|
950
1001
|
* <ul>
|
|
951
1002
|
* <li>
|
|
952
1003
|
* <p>
|
|
953
|
-
* <b>AWS_LAMBDA</b>: The data source is an Lambda
|
|
1004
|
+
* <b>AWS_LAMBDA</b>: The data source is an Lambda
|
|
1005
|
+
* function.</p>
|
|
954
1006
|
* </li>
|
|
955
1007
|
* <li>
|
|
956
1008
|
* <p>
|
|
957
|
-
* <b>AMAZON_DYNAMODB</b>: The data source is an Amazon DynamoDB
|
|
1009
|
+
* <b>AMAZON_DYNAMODB</b>: The data source is an Amazon DynamoDB
|
|
1010
|
+
* table.</p>
|
|
958
1011
|
* </li>
|
|
959
1012
|
* <li>
|
|
960
1013
|
* <p>
|
|
961
|
-
* <b>AMAZON_ELASTICSEARCH</b>: The data source is an
|
|
962
|
-
*
|
|
1014
|
+
* <b>AMAZON_ELASTICSEARCH</b>: The data source is an Amazon OpenSearch Service
|
|
1015
|
+
* domain.</p>
|
|
963
1016
|
* </li>
|
|
964
1017
|
* <li>
|
|
965
1018
|
* <p>
|
|
966
|
-
* <b>AMAZON_OPENSEARCH_SERVICE</b>: The data source is
|
|
967
|
-
* an Amazon OpenSearch Service domain.</p>
|
|
1019
|
+
* <b>AMAZON_OPENSEARCH_SERVICE</b>: The data source is an Amazon OpenSearch Service domain.</p>
|
|
968
1020
|
* </li>
|
|
969
1021
|
* <li>
|
|
970
1022
|
* <p>
|
|
971
|
-
* <b>NONE</b>: There is no data source. Use this type
|
|
972
|
-
*
|
|
973
|
-
*
|
|
974
|
-
* subscription from a mutation.</p>
|
|
1023
|
+
* <b>NONE</b>: There is no data source. Use this type when you want to
|
|
1024
|
+
* invoke a GraphQL operation without connecting to a data source, such as when you're performing data
|
|
1025
|
+
* transformation with resolvers or invoking a subscription from a mutation.</p>
|
|
975
1026
|
* </li>
|
|
976
1027
|
* <li>
|
|
977
1028
|
* <p>
|
|
978
|
-
* <b>HTTP</b>: The data source is an HTTP
|
|
979
|
-
* endpoint.</p>
|
|
1029
|
+
* <b>HTTP</b>: The data source is an HTTP endpoint.</p>
|
|
980
1030
|
* </li>
|
|
981
1031
|
* <li>
|
|
982
1032
|
* <p>
|
|
983
|
-
* <b>RELATIONAL_DATABASE</b>: The data source is a
|
|
984
|
-
*
|
|
1033
|
+
* <b>RELATIONAL_DATABASE</b>: The data source is a relational
|
|
1034
|
+
* database.</p>
|
|
985
1035
|
* </li>
|
|
986
1036
|
* </ul>
|
|
987
1037
|
*/
|
|
988
1038
|
type?: DataSourceType | string;
|
|
989
1039
|
/**
|
|
990
|
-
* <p>The Identity and Access Management (IAM) service role Amazon Resource Name (ARN)
|
|
991
|
-
*
|
|
1040
|
+
* <p>The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source.
|
|
1041
|
+
* The system assumes this role when accessing the data source.</p>
|
|
992
1042
|
*/
|
|
993
1043
|
serviceRoleArn?: string;
|
|
994
1044
|
/**
|
|
@@ -1028,9 +1078,7 @@ export interface CreateDomainNameRequest {
|
|
|
1028
1078
|
*/
|
|
1029
1079
|
domainName: string | undefined;
|
|
1030
1080
|
/**
|
|
1031
|
-
* <p>The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager
|
|
1032
|
-
* (ACM) certificate or an Identity and Access Management (IAM)
|
|
1033
|
-
* server certificate.</p>
|
|
1081
|
+
* <p>The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.</p>
|
|
1034
1082
|
*/
|
|
1035
1083
|
certificateArn: string | undefined;
|
|
1036
1084
|
/**
|
|
@@ -1051,9 +1099,7 @@ export interface DomainNameConfig {
|
|
|
1051
1099
|
*/
|
|
1052
1100
|
description?: string;
|
|
1053
1101
|
/**
|
|
1054
|
-
* <p>The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager
|
|
1055
|
-
* (ACM) certificate or an Identity and Access Management (IAM)
|
|
1056
|
-
* server certificate.</p>
|
|
1102
|
+
* <p>The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.</p>
|
|
1057
1103
|
*/
|
|
1058
1104
|
certificateArn?: string;
|
|
1059
1105
|
/**
|
|
@@ -1082,20 +1128,19 @@ export declare enum ConflictHandlerType {
|
|
|
1082
1128
|
OPTIMISTIC_CONCURRENCY = "OPTIMISTIC_CONCURRENCY"
|
|
1083
1129
|
}
|
|
1084
1130
|
/**
|
|
1085
|
-
* <p>The <code>LambdaConflictHandlerConfig</code> object when configuring <code>LAMBDA</code>
|
|
1086
|
-
*
|
|
1131
|
+
* <p>The <code>LambdaConflictHandlerConfig</code> object when configuring <code>LAMBDA</code> as the Conflict
|
|
1132
|
+
* Handler.</p>
|
|
1087
1133
|
*/
|
|
1088
1134
|
export interface LambdaConflictHandlerConfig {
|
|
1089
1135
|
/**
|
|
1090
|
-
* <p>The Amazon Resource Name (ARN) for the Lambda function to use as the
|
|
1091
|
-
* Conflict Handler.</p>
|
|
1136
|
+
* <p>The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.</p>
|
|
1092
1137
|
*/
|
|
1093
1138
|
lambdaConflictHandlerArn?: string;
|
|
1094
1139
|
}
|
|
1095
1140
|
/**
|
|
1096
1141
|
* <p>Describes a Sync configuration for a resolver.</p>
|
|
1097
|
-
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the
|
|
1098
|
-
*
|
|
1142
|
+
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is
|
|
1143
|
+
* invoked.</p>
|
|
1099
1144
|
*/
|
|
1100
1145
|
export interface SyncConfig {
|
|
1101
1146
|
/**
|
|
@@ -1103,19 +1148,18 @@ export interface SyncConfig {
|
|
|
1103
1148
|
* <ul>
|
|
1104
1149
|
* <li>
|
|
1105
1150
|
* <p>
|
|
1106
|
-
* <b>OPTIMISTIC_CONCURRENCY</b>: Resolve conflicts by
|
|
1107
|
-
*
|
|
1108
|
-
* server.</p>
|
|
1151
|
+
* <b>OPTIMISTIC_CONCURRENCY</b>: Resolve conflicts by rejecting mutations
|
|
1152
|
+
* when versions don't match the latest version at the server.</p>
|
|
1109
1153
|
* </li>
|
|
1110
1154
|
* <li>
|
|
1111
1155
|
* <p>
|
|
1112
|
-
* <b>AUTOMERGE</b>: Resolve conflicts with the
|
|
1113
|
-
*
|
|
1156
|
+
* <b>AUTOMERGE</b>: Resolve conflicts with the Automerge conflict
|
|
1157
|
+
* resolution strategy.</p>
|
|
1114
1158
|
* </li>
|
|
1115
1159
|
* <li>
|
|
1116
1160
|
* <p>
|
|
1117
|
-
* <b>LAMBDA</b>: Resolve conflicts with an Lambda function
|
|
1118
|
-
* <code>LambdaConflictHandlerConfig</code>.</p>
|
|
1161
|
+
* <b>LAMBDA</b>: Resolve conflicts with an Lambda function
|
|
1162
|
+
* supplied in the <code>LambdaConflictHandlerConfig</code>.</p>
|
|
1119
1163
|
* </li>
|
|
1120
1164
|
* </ul>
|
|
1121
1165
|
*/
|
|
@@ -1125,20 +1169,20 @@ export interface SyncConfig {
|
|
|
1125
1169
|
* <ul>
|
|
1126
1170
|
* <li>
|
|
1127
1171
|
* <p>
|
|
1128
|
-
* <b>VERSION</b>: Detect conflicts based on object
|
|
1129
|
-
*
|
|
1172
|
+
* <b>VERSION</b>: Detect conflicts based on object versions for this
|
|
1173
|
+
* resolver.</p>
|
|
1130
1174
|
* </li>
|
|
1131
1175
|
* <li>
|
|
1132
1176
|
* <p>
|
|
1133
|
-
* <b>NONE</b>: Do not detect conflicts when invoking
|
|
1134
|
-
*
|
|
1177
|
+
* <b>NONE</b>: Do not detect conflicts when invoking this
|
|
1178
|
+
* resolver.</p>
|
|
1135
1179
|
* </li>
|
|
1136
1180
|
* </ul>
|
|
1137
1181
|
*/
|
|
1138
1182
|
conflictDetection?: ConflictDetectionType | string;
|
|
1139
1183
|
/**
|
|
1140
|
-
* <p>The <code>LambdaConflictHandlerConfig</code> when configuring <code>LAMBDA</code> as the
|
|
1141
|
-
*
|
|
1184
|
+
* <p>The <code>LambdaConflictHandlerConfig</code> when configuring <code>LAMBDA</code> as the Conflict
|
|
1185
|
+
* Handler.</p>
|
|
1142
1186
|
*/
|
|
1143
1187
|
lambdaConflictHandlerConfig?: LambdaConflictHandlerConfig;
|
|
1144
1188
|
}
|
|
@@ -1161,8 +1205,8 @@ export interface CreateFunctionRequest {
|
|
|
1161
1205
|
*/
|
|
1162
1206
|
dataSourceName: string | undefined;
|
|
1163
1207
|
/**
|
|
1164
|
-
* <p>The <code>Function</code> request mapping template. Functions support only the
|
|
1165
|
-
*
|
|
1208
|
+
* <p>The <code>Function</code> request mapping template. Functions support only the 2018-05-29 version of the
|
|
1209
|
+
* request mapping template.</p>
|
|
1166
1210
|
*/
|
|
1167
1211
|
requestMappingTemplate?: string;
|
|
1168
1212
|
/**
|
|
@@ -1170,24 +1214,33 @@ export interface CreateFunctionRequest {
|
|
|
1170
1214
|
*/
|
|
1171
1215
|
responseMappingTemplate?: string;
|
|
1172
1216
|
/**
|
|
1173
|
-
* <p>The <code>version</code> of the request mapping template. Currently, the supported value
|
|
1174
|
-
* is
|
|
1217
|
+
* <p>The <code>version</code> of the request mapping template. Currently, the supported value is 2018-05-29. Note
|
|
1218
|
+
* that when using VTL and mapping templates, the <code>functionVersion</code> is required.</p>
|
|
1175
1219
|
*/
|
|
1176
|
-
functionVersion
|
|
1220
|
+
functionVersion?: string;
|
|
1177
1221
|
/**
|
|
1178
1222
|
* <p>Describes a Sync configuration for a resolver.</p>
|
|
1179
|
-
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the
|
|
1180
|
-
*
|
|
1223
|
+
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is
|
|
1224
|
+
* invoked.</p>
|
|
1181
1225
|
*/
|
|
1182
1226
|
syncConfig?: SyncConfig;
|
|
1183
1227
|
/**
|
|
1184
1228
|
* <p>The maximum batching size for a resolver.</p>
|
|
1185
1229
|
*/
|
|
1186
1230
|
maxBatchSize?: number;
|
|
1231
|
+
/**
|
|
1232
|
+
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
|
|
1233
|
+
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
|
|
1234
|
+
*/
|
|
1235
|
+
runtime?: AppSyncRuntime;
|
|
1236
|
+
/**
|
|
1237
|
+
* <p>The <code>function</code> code that contains the request and response functions. When code is used, the
|
|
1238
|
+
* <code>runtime</code> is required. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.</p>
|
|
1239
|
+
*/
|
|
1240
|
+
code?: string;
|
|
1187
1241
|
}
|
|
1188
1242
|
/**
|
|
1189
|
-
* <p>A function is a reusable entity. You can use multiple functions to compose the resolver
|
|
1190
|
-
* logic.</p>
|
|
1243
|
+
* <p>A function is a reusable entity. You can use multiple functions to compose the resolver logic.</p>
|
|
1191
1244
|
*/
|
|
1192
1245
|
export interface FunctionConfiguration {
|
|
1193
1246
|
/**
|
|
@@ -1211,8 +1264,8 @@ export interface FunctionConfiguration {
|
|
|
1211
1264
|
*/
|
|
1212
1265
|
dataSourceName?: string;
|
|
1213
1266
|
/**
|
|
1214
|
-
* <p>The <code>Function</code> request mapping template. Functions support only the
|
|
1215
|
-
*
|
|
1267
|
+
* <p>The <code>Function</code> request mapping template. Functions support only the 2018-05-29 version of the
|
|
1268
|
+
* request mapping template.</p>
|
|
1216
1269
|
*/
|
|
1217
1270
|
requestMappingTemplate?: string;
|
|
1218
1271
|
/**
|
|
@@ -1220,20 +1273,30 @@ export interface FunctionConfiguration {
|
|
|
1220
1273
|
*/
|
|
1221
1274
|
responseMappingTemplate?: string;
|
|
1222
1275
|
/**
|
|
1223
|
-
* <p>The version of the request mapping template. Currently, only the 2018-05-29 version of
|
|
1224
|
-
*
|
|
1276
|
+
* <p>The version of the request mapping template. Currently, only the 2018-05-29 version of the template is
|
|
1277
|
+
* supported.</p>
|
|
1225
1278
|
*/
|
|
1226
1279
|
functionVersion?: string;
|
|
1227
1280
|
/**
|
|
1228
1281
|
* <p>Describes a Sync configuration for a resolver.</p>
|
|
1229
|
-
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the
|
|
1230
|
-
*
|
|
1282
|
+
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is
|
|
1283
|
+
* invoked.</p>
|
|
1231
1284
|
*/
|
|
1232
1285
|
syncConfig?: SyncConfig;
|
|
1233
1286
|
/**
|
|
1234
1287
|
* <p>The maximum batching size for a resolver.</p>
|
|
1235
1288
|
*/
|
|
1236
1289
|
maxBatchSize?: number;
|
|
1290
|
+
/**
|
|
1291
|
+
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
|
|
1292
|
+
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
|
|
1293
|
+
*/
|
|
1294
|
+
runtime?: AppSyncRuntime;
|
|
1295
|
+
/**
|
|
1296
|
+
* <p>The <code>function</code> code that contains the request and response functions. When code is used, the
|
|
1297
|
+
* <code>runtime</code> is required. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.</p>
|
|
1298
|
+
*/
|
|
1299
|
+
code?: string;
|
|
1237
1300
|
}
|
|
1238
1301
|
export interface CreateFunctionResponse {
|
|
1239
1302
|
/**
|
|
@@ -1255,13 +1318,12 @@ export interface LogConfig {
|
|
|
1255
1318
|
* <ul>
|
|
1256
1319
|
* <li>
|
|
1257
1320
|
* <p>
|
|
1258
|
-
* <b>NONE</b>: No field-level logs are
|
|
1259
|
-
* captured.</p>
|
|
1321
|
+
* <b>NONE</b>: No field-level logs are captured.</p>
|
|
1260
1322
|
* </li>
|
|
1261
1323
|
* <li>
|
|
1262
1324
|
* <p>
|
|
1263
|
-
* <b>ERROR</b>: Logs the following information only for
|
|
1264
|
-
*
|
|
1325
|
+
* <b>ERROR</b>: Logs the following information only for the fields that are
|
|
1326
|
+
* in error:</p>
|
|
1265
1327
|
* <ul>
|
|
1266
1328
|
* <li>
|
|
1267
1329
|
* <p>The error section in the server response.</p>
|
|
@@ -1270,22 +1332,20 @@ export interface LogConfig {
|
|
|
1270
1332
|
* <p>Field-level errors.</p>
|
|
1271
1333
|
* </li>
|
|
1272
1334
|
* <li>
|
|
1273
|
-
* <p>The generated request/response functions that got resolved for error
|
|
1274
|
-
* fields.</p>
|
|
1335
|
+
* <p>The generated request/response functions that got resolved for error fields.</p>
|
|
1275
1336
|
* </li>
|
|
1276
1337
|
* </ul>
|
|
1277
1338
|
* </li>
|
|
1278
1339
|
* <li>
|
|
1279
1340
|
* <p>
|
|
1280
|
-
* <b>ALL</b>: The following information is logged for
|
|
1281
|
-
*
|
|
1341
|
+
* <b>ALL</b>: The following information is logged for all fields in the
|
|
1342
|
+
* query:</p>
|
|
1282
1343
|
* <ul>
|
|
1283
1344
|
* <li>
|
|
1284
1345
|
* <p>Field-level tracing information.</p>
|
|
1285
1346
|
* </li>
|
|
1286
1347
|
* <li>
|
|
1287
|
-
* <p>The generated request/response functions that got resolved for each
|
|
1288
|
-
* field.</p>
|
|
1348
|
+
* <p>The generated request/response functions that got resolved for each field.</p>
|
|
1289
1349
|
* </li>
|
|
1290
1350
|
* </ul>
|
|
1291
1351
|
* </li>
|
|
@@ -1293,13 +1353,13 @@ export interface LogConfig {
|
|
|
1293
1353
|
*/
|
|
1294
1354
|
fieldLogLevel: FieldLogLevel | string | undefined;
|
|
1295
1355
|
/**
|
|
1296
|
-
* <p>The service role that AppSync assumes to publish to CloudWatch
|
|
1297
|
-
*
|
|
1356
|
+
* <p>The service role that AppSync assumes to publish to CloudWatch logs in your
|
|
1357
|
+
* account.</p>
|
|
1298
1358
|
*/
|
|
1299
1359
|
cloudWatchLogsRoleArn: string | undefined;
|
|
1300
1360
|
/**
|
|
1301
|
-
* <p>Set to TRUE to exclude sections that contain information such as headers, context, and
|
|
1302
|
-
*
|
|
1361
|
+
* <p>Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping
|
|
1362
|
+
* templates, regardless of logging level.</p>
|
|
1303
1363
|
*/
|
|
1304
1364
|
excludeVerboseContent?: boolean;
|
|
1305
1365
|
}
|
|
@@ -1320,13 +1380,13 @@ export interface UserPoolConfig {
|
|
|
1320
1380
|
*/
|
|
1321
1381
|
awsRegion: string | undefined;
|
|
1322
1382
|
/**
|
|
1323
|
-
* <p>The action that you want your GraphQL API to take when a request that uses Amazon Cognito user pool
|
|
1324
|
-
* configuration.</p>
|
|
1383
|
+
* <p>The action that you want your GraphQL API to take when a request that uses Amazon Cognito user pool
|
|
1384
|
+
* authentication doesn't match the Amazon Cognito user pool configuration.</p>
|
|
1325
1385
|
*/
|
|
1326
1386
|
defaultAction: DefaultAction | string | undefined;
|
|
1327
1387
|
/**
|
|
1328
|
-
* <p>A regular expression for validating the incoming Amazon Cognito user pool app client
|
|
1329
|
-
*
|
|
1388
|
+
* <p>A regular expression for validating the incoming Amazon Cognito user pool app client ID. If this value
|
|
1389
|
+
* isn't set, no filtering is applied.</p>
|
|
1330
1390
|
*/
|
|
1331
1391
|
appIdClientRegex?: string;
|
|
1332
1392
|
}
|
|
@@ -1340,8 +1400,8 @@ export interface CreateGraphqlApiRequest {
|
|
|
1340
1400
|
*/
|
|
1341
1401
|
logConfig?: LogConfig;
|
|
1342
1402
|
/**
|
|
1343
|
-
* <p>The authentication type: API key, Identity and Access Management (IAM), OpenID
|
|
1344
|
-
*
|
|
1403
|
+
* <p>The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC),
|
|
1404
|
+
* Amazon Cognito user pools, or Lambda.</p>
|
|
1345
1405
|
*/
|
|
1346
1406
|
authenticationType: AuthenticationType | string | undefined;
|
|
1347
1407
|
/**
|
|
@@ -1357,13 +1417,11 @@ export interface CreateGraphqlApiRequest {
|
|
|
1357
1417
|
*/
|
|
1358
1418
|
tags?: Record<string, string>;
|
|
1359
1419
|
/**
|
|
1360
|
-
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
1361
|
-
* API.</p>
|
|
1420
|
+
* <p>A list of additional authentication providers for the <code>GraphqlApi</code> API.</p>
|
|
1362
1421
|
*/
|
|
1363
1422
|
additionalAuthenticationProviders?: AdditionalAuthenticationProvider[];
|
|
1364
1423
|
/**
|
|
1365
|
-
* <p>A flag indicating whether to use X-Ray tracing for the
|
|
1366
|
-
* <code>GraphqlApi</code>.</p>
|
|
1424
|
+
* <p>A flag indicating whether to use X-Ray tracing for the <code>GraphqlApi</code>.</p>
|
|
1367
1425
|
*/
|
|
1368
1426
|
xrayEnabled?: boolean;
|
|
1369
1427
|
/**
|
|
@@ -1412,18 +1470,16 @@ export interface GraphqlApi {
|
|
|
1412
1470
|
*/
|
|
1413
1471
|
tags?: Record<string, string>;
|
|
1414
1472
|
/**
|
|
1415
|
-
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
1416
|
-
* API.</p>
|
|
1473
|
+
* <p>A list of additional authentication providers for the <code>GraphqlApi</code> API.</p>
|
|
1417
1474
|
*/
|
|
1418
1475
|
additionalAuthenticationProviders?: AdditionalAuthenticationProvider[];
|
|
1419
1476
|
/**
|
|
1420
|
-
* <p>A flag indicating whether to use X-Ray tracing for this
|
|
1421
|
-
* <code>GraphqlApi</code>.</p>
|
|
1477
|
+
* <p>A flag indicating whether to use X-Ray tracing for this <code>GraphqlApi</code>.</p>
|
|
1422
1478
|
*/
|
|
1423
1479
|
xrayEnabled?: boolean;
|
|
1424
1480
|
/**
|
|
1425
1481
|
* <p>The ARN of the WAF access control list (ACL) associated with this
|
|
1426
|
-
*
|
|
1482
|
+
* <code>GraphqlApi</code>, if one exists.</p>
|
|
1427
1483
|
*/
|
|
1428
1484
|
wafWebAclArn?: string;
|
|
1429
1485
|
/**
|
|
@@ -1448,8 +1504,8 @@ export interface CachingConfig {
|
|
|
1448
1504
|
ttl: number | undefined;
|
|
1449
1505
|
/**
|
|
1450
1506
|
* <p>The caching keys for a resolver that has caching activated.</p>
|
|
1451
|
-
* <p>Valid values are entries from the <code>$context.arguments</code>,
|
|
1452
|
-
* <code>$context.
|
|
1507
|
+
* <p>Valid values are entries from the <code>$context.arguments</code>, <code>$context.source</code>, and
|
|
1508
|
+
* <code>$context.identity</code> maps.</p>
|
|
1453
1509
|
*/
|
|
1454
1510
|
cachingKeys?: string[];
|
|
1455
1511
|
}
|
|
@@ -1485,12 +1541,10 @@ export interface CreateResolverRequest {
|
|
|
1485
1541
|
dataSourceName?: string;
|
|
1486
1542
|
/**
|
|
1487
1543
|
* <p>The mapping template to use for requests.</p>
|
|
1488
|
-
* <p>A resolver uses a request mapping template to convert a GraphQL expression into a format
|
|
1489
|
-
*
|
|
1490
|
-
*
|
|
1491
|
-
*
|
|
1492
|
-
* source. For all other data sources, VTL request and response mapping templates are
|
|
1493
|
-
* required.</p>
|
|
1544
|
+
* <p>A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source
|
|
1545
|
+
* can understand. Mapping templates are written in Apache Velocity Template Language (VTL).</p>
|
|
1546
|
+
* <p>VTL request mapping templates are optional when using an Lambda data source. For all other
|
|
1547
|
+
* data sources, VTL request and response mapping templates are required.</p>
|
|
1494
1548
|
*/
|
|
1495
1549
|
requestMappingTemplate?: string;
|
|
1496
1550
|
/**
|
|
@@ -1502,16 +1556,14 @@ export interface CreateResolverRequest {
|
|
|
1502
1556
|
* <ul>
|
|
1503
1557
|
* <li>
|
|
1504
1558
|
* <p>
|
|
1505
|
-
* <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is
|
|
1506
|
-
*
|
|
1507
|
-
* a single data source.</p>
|
|
1559
|
+
* <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is the default
|
|
1560
|
+
* resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.</p>
|
|
1508
1561
|
* </li>
|
|
1509
1562
|
* <li>
|
|
1510
1563
|
* <p>
|
|
1511
|
-
* <b>PIPELINE</b>: A PIPELINE resolver type. You can
|
|
1512
|
-
*
|
|
1513
|
-
*
|
|
1514
|
-
* multiple data sources.</p>
|
|
1564
|
+
* <b>PIPELINE</b>: A PIPELINE resolver type. You can use a PIPELINE
|
|
1565
|
+
* resolver to invoke a series of <code>Function</code> objects in a serial manner. You can use a pipeline
|
|
1566
|
+
* resolver to run a GraphQL query against multiple data sources.</p>
|
|
1515
1567
|
* </li>
|
|
1516
1568
|
* </ul>
|
|
1517
1569
|
*/
|
|
@@ -1532,6 +1584,16 @@ export interface CreateResolverRequest {
|
|
|
1532
1584
|
* <p>The maximum batching size for a resolver.</p>
|
|
1533
1585
|
*/
|
|
1534
1586
|
maxBatchSize?: number;
|
|
1587
|
+
/**
|
|
1588
|
+
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
|
|
1589
|
+
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
|
|
1590
|
+
*/
|
|
1591
|
+
runtime?: AppSyncRuntime;
|
|
1592
|
+
/**
|
|
1593
|
+
* <p>The <code>resolver</code> code that contains the request and response functions. When code is used, the
|
|
1594
|
+
* <code>runtime</code> is required. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.</p>
|
|
1595
|
+
*/
|
|
1596
|
+
code?: string;
|
|
1535
1597
|
}
|
|
1536
1598
|
/**
|
|
1537
1599
|
* <p>Describes a resolver.</p>
|
|
@@ -1566,16 +1628,14 @@ export interface Resolver {
|
|
|
1566
1628
|
* <ul>
|
|
1567
1629
|
* <li>
|
|
1568
1630
|
* <p>
|
|
1569
|
-
* <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is
|
|
1570
|
-
*
|
|
1571
|
-
* a single data source.</p>
|
|
1631
|
+
* <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is the default
|
|
1632
|
+
* resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.</p>
|
|
1572
1633
|
* </li>
|
|
1573
1634
|
* <li>
|
|
1574
1635
|
* <p>
|
|
1575
|
-
* <b>PIPELINE</b>: A PIPELINE resolver type. You can
|
|
1576
|
-
*
|
|
1577
|
-
*
|
|
1578
|
-
* multiple data sources.</p>
|
|
1636
|
+
* <b>PIPELINE</b>: A PIPELINE resolver type. You can use a PIPELINE
|
|
1637
|
+
* resolver to invoke a series of <code>Function</code> objects in a serial manner. You can use a pipeline
|
|
1638
|
+
* resolver to run a GraphQL query against multiple data sources.</p>
|
|
1579
1639
|
* </li>
|
|
1580
1640
|
* </ul>
|
|
1581
1641
|
*/
|
|
@@ -1596,6 +1656,16 @@ export interface Resolver {
|
|
|
1596
1656
|
* <p>The maximum batching size for a resolver.</p>
|
|
1597
1657
|
*/
|
|
1598
1658
|
maxBatchSize?: number;
|
|
1659
|
+
/**
|
|
1660
|
+
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
|
|
1661
|
+
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
|
|
1662
|
+
*/
|
|
1663
|
+
runtime?: AppSyncRuntime;
|
|
1664
|
+
/**
|
|
1665
|
+
* <p>The <code>resolver</code> code that contains the request and response functions. When code is used, the
|
|
1666
|
+
* <code>runtime</code> is required. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.</p>
|
|
1667
|
+
*/
|
|
1668
|
+
code?: string;
|
|
1599
1669
|
}
|
|
1600
1670
|
export interface CreateResolverResponse {
|
|
1601
1671
|
/**
|
|
@@ -1756,21 +1826,71 @@ export interface DisassociateApiRequest {
|
|
|
1756
1826
|
}
|
|
1757
1827
|
export interface DisassociateApiResponse {
|
|
1758
1828
|
}
|
|
1829
|
+
export interface EvaluateCodeRequest {
|
|
1830
|
+
/**
|
|
1831
|
+
* <p>The runtime to be used when evaluating the code. Currently, only the <code>APPSYNC_JS</code> runtime is
|
|
1832
|
+
* supported.</p>
|
|
1833
|
+
*/
|
|
1834
|
+
runtime: AppSyncRuntime | undefined;
|
|
1835
|
+
/**
|
|
1836
|
+
* <p>The code definition to be evaluated. Note that <code>code</code> and <code>runtime</code> are both required
|
|
1837
|
+
* for this action. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.</p>
|
|
1838
|
+
*/
|
|
1839
|
+
code: string | undefined;
|
|
1840
|
+
/**
|
|
1841
|
+
* <p>The map that holds all of the contextual information for your resolver invocation. A <code>context</code> is
|
|
1842
|
+
* required for this action.</p>
|
|
1843
|
+
*/
|
|
1844
|
+
context: string | undefined;
|
|
1845
|
+
/**
|
|
1846
|
+
* <p>The function within the code to be evaluated. If provided, the valid values are <code>request</code> and
|
|
1847
|
+
* <code>response</code>.</p>
|
|
1848
|
+
*/
|
|
1849
|
+
function?: string;
|
|
1850
|
+
}
|
|
1851
|
+
/**
|
|
1852
|
+
* <p>Contains the list of errors from a code evaluation response.</p>
|
|
1853
|
+
*/
|
|
1854
|
+
export interface EvaluateCodeErrorDetail {
|
|
1855
|
+
/**
|
|
1856
|
+
* <p>The error payload.</p>
|
|
1857
|
+
*/
|
|
1858
|
+
message?: string;
|
|
1859
|
+
/**
|
|
1860
|
+
* <p>Contains the list of <code>CodeError</code> objects.</p>
|
|
1861
|
+
*/
|
|
1862
|
+
codeErrors?: CodeError[];
|
|
1863
|
+
}
|
|
1864
|
+
export interface EvaluateCodeResponse {
|
|
1865
|
+
/**
|
|
1866
|
+
* <p>The result of the evaluation operation.</p>
|
|
1867
|
+
*/
|
|
1868
|
+
evaluationResult?: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* <p>Contains the payload of the response error.</p>
|
|
1871
|
+
*/
|
|
1872
|
+
error?: EvaluateCodeErrorDetail;
|
|
1873
|
+
/**
|
|
1874
|
+
* <p>A list of logs that were generated by calls to <code>util.log.info</code> and <code>util.log.error</code> in
|
|
1875
|
+
* the evaluated code.</p>
|
|
1876
|
+
*/
|
|
1877
|
+
logs?: string[];
|
|
1878
|
+
}
|
|
1759
1879
|
export interface EvaluateMappingTemplateRequest {
|
|
1760
1880
|
/**
|
|
1761
|
-
* <p>The mapping template; this can be a request or response template. A
|
|
1762
|
-
*
|
|
1881
|
+
* <p>The mapping template; this can be a request or response template. A <code>template</code> is required for
|
|
1882
|
+
* this action.</p>
|
|
1763
1883
|
*/
|
|
1764
1884
|
template: string | undefined;
|
|
1765
1885
|
/**
|
|
1766
|
-
* <p>The map that holds all of the contextual information for your resolver invocation. A
|
|
1767
|
-
*
|
|
1886
|
+
* <p>The map that holds all of the contextual information for your resolver invocation. A <code>context</code> is
|
|
1887
|
+
* required for this action.</p>
|
|
1768
1888
|
*/
|
|
1769
1889
|
context: string | undefined;
|
|
1770
1890
|
}
|
|
1771
1891
|
/**
|
|
1772
|
-
* <p>Contains the list of errors generated
|
|
1773
|
-
*
|
|
1892
|
+
* <p>Contains the list of errors generated. When using JavaScript, this will apply to the request or response
|
|
1893
|
+
* function evaluation.</p>
|
|
1774
1894
|
*/
|
|
1775
1895
|
export interface ErrorDetail {
|
|
1776
1896
|
/**
|
|
@@ -1787,6 +1907,11 @@ export interface EvaluateMappingTemplateResponse {
|
|
|
1787
1907
|
* <p>The <code>ErrorDetail</code> object.</p>
|
|
1788
1908
|
*/
|
|
1789
1909
|
error?: ErrorDetail;
|
|
1910
|
+
/**
|
|
1911
|
+
* <p>A list of logs that were generated by calls to <code>util.log.info</code> and <code>util.log.error</code> in
|
|
1912
|
+
* the evaluated code.</p>
|
|
1913
|
+
*/
|
|
1914
|
+
logs?: string[];
|
|
1790
1915
|
}
|
|
1791
1916
|
/**
|
|
1792
1917
|
* <p>Represents the input of a <code>FlushApiCache</code> operation.</p>
|
|
@@ -1961,8 +2086,8 @@ export declare enum SchemaStatus {
|
|
|
1961
2086
|
}
|
|
1962
2087
|
export interface GetSchemaCreationStatusResponse {
|
|
1963
2088
|
/**
|
|
1964
|
-
* <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When
|
|
1965
|
-
*
|
|
2089
|
+
* <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the
|
|
2090
|
+
* ACTIVE state, you can add data.</p>
|
|
1966
2091
|
*/
|
|
1967
2092
|
status?: SchemaStatus | string;
|
|
1968
2093
|
/**
|
|
@@ -1996,8 +2121,8 @@ export interface ListApiKeysRequest {
|
|
|
1996
2121
|
*/
|
|
1997
2122
|
apiId: string | undefined;
|
|
1998
2123
|
/**
|
|
1999
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2000
|
-
*
|
|
2124
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can use to return the
|
|
2125
|
+
* next set of items in the list.</p>
|
|
2001
2126
|
*/
|
|
2002
2127
|
nextToken?: string;
|
|
2003
2128
|
/**
|
|
@@ -2011,8 +2136,8 @@ export interface ListApiKeysResponse {
|
|
|
2011
2136
|
*/
|
|
2012
2137
|
apiKeys?: ApiKey[];
|
|
2013
2138
|
/**
|
|
2014
|
-
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2015
|
-
*
|
|
2139
|
+
* <p>An identifier to pass in the next request to this operation to return the next set of items in the
|
|
2140
|
+
* list.</p>
|
|
2016
2141
|
*/
|
|
2017
2142
|
nextToken?: string;
|
|
2018
2143
|
}
|
|
@@ -2022,8 +2147,8 @@ export interface ListDataSourcesRequest {
|
|
|
2022
2147
|
*/
|
|
2023
2148
|
apiId: string | undefined;
|
|
2024
2149
|
/**
|
|
2025
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2026
|
-
*
|
|
2150
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can use to return the
|
|
2151
|
+
* next set of items in the list.</p>
|
|
2027
2152
|
*/
|
|
2028
2153
|
nextToken?: string;
|
|
2029
2154
|
/**
|
|
@@ -2037,8 +2162,8 @@ export interface ListDataSourcesResponse {
|
|
|
2037
2162
|
*/
|
|
2038
2163
|
dataSources?: DataSource[];
|
|
2039
2164
|
/**
|
|
2040
|
-
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2041
|
-
*
|
|
2165
|
+
* <p>An identifier to pass in the next request to this operation to return the next set of items in the
|
|
2166
|
+
* list.</p>
|
|
2042
2167
|
*/
|
|
2043
2168
|
nextToken?: string;
|
|
2044
2169
|
}
|
|
@@ -2068,8 +2193,8 @@ export interface ListFunctionsRequest {
|
|
|
2068
2193
|
*/
|
|
2069
2194
|
apiId: string | undefined;
|
|
2070
2195
|
/**
|
|
2071
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2072
|
-
*
|
|
2196
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can use to return the
|
|
2197
|
+
* next set of items in the list.</p>
|
|
2073
2198
|
*/
|
|
2074
2199
|
nextToken?: string;
|
|
2075
2200
|
/**
|
|
@@ -2083,15 +2208,15 @@ export interface ListFunctionsResponse {
|
|
|
2083
2208
|
*/
|
|
2084
2209
|
functions?: FunctionConfiguration[];
|
|
2085
2210
|
/**
|
|
2086
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2087
|
-
*
|
|
2211
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can use to return the
|
|
2212
|
+
* next set of items in the list.</p>
|
|
2088
2213
|
*/
|
|
2089
2214
|
nextToken?: string;
|
|
2090
2215
|
}
|
|
2091
2216
|
export interface ListGraphqlApisRequest {
|
|
2092
2217
|
/**
|
|
2093
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2094
|
-
*
|
|
2218
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can use to return the
|
|
2219
|
+
* next set of items in the list.</p>
|
|
2095
2220
|
*/
|
|
2096
2221
|
nextToken?: string;
|
|
2097
2222
|
/**
|
|
@@ -2105,8 +2230,8 @@ export interface ListGraphqlApisResponse {
|
|
|
2105
2230
|
*/
|
|
2106
2231
|
graphqlApis?: GraphqlApi[];
|
|
2107
2232
|
/**
|
|
2108
|
-
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2109
|
-
*
|
|
2233
|
+
* <p>An identifier to pass in the next request to this operation to return the next set of items in the
|
|
2234
|
+
* list.</p>
|
|
2110
2235
|
*/
|
|
2111
2236
|
nextToken?: string;
|
|
2112
2237
|
}
|
|
@@ -2120,8 +2245,8 @@ export interface ListResolversRequest {
|
|
|
2120
2245
|
*/
|
|
2121
2246
|
typeName: string | undefined;
|
|
2122
2247
|
/**
|
|
2123
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2124
|
-
*
|
|
2248
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can use to return the
|
|
2249
|
+
* next set of items in the list.</p>
|
|
2125
2250
|
*/
|
|
2126
2251
|
nextToken?: string;
|
|
2127
2252
|
/**
|
|
@@ -2135,8 +2260,8 @@ export interface ListResolversResponse {
|
|
|
2135
2260
|
*/
|
|
2136
2261
|
resolvers?: Resolver[];
|
|
2137
2262
|
/**
|
|
2138
|
-
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2139
|
-
*
|
|
2263
|
+
* <p>An identifier to pass in the next request to this operation to return the next set of items in the
|
|
2264
|
+
* list.</p>
|
|
2140
2265
|
*/
|
|
2141
2266
|
nextToken?: string;
|
|
2142
2267
|
}
|
|
@@ -2150,8 +2275,8 @@ export interface ListResolversByFunctionRequest {
|
|
|
2150
2275
|
*/
|
|
2151
2276
|
functionId: string | undefined;
|
|
2152
2277
|
/**
|
|
2153
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2154
|
-
*
|
|
2278
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can use to return the
|
|
2279
|
+
* next set of items in the list.</p>
|
|
2155
2280
|
*/
|
|
2156
2281
|
nextToken?: string;
|
|
2157
2282
|
/**
|
|
@@ -2191,8 +2316,8 @@ export interface ListTypesRequest {
|
|
|
2191
2316
|
*/
|
|
2192
2317
|
format: TypeDefinitionFormat | string | undefined;
|
|
2193
2318
|
/**
|
|
2194
|
-
* <p>An identifier that was returned from the previous call to this operation, which you can
|
|
2195
|
-
*
|
|
2319
|
+
* <p>An identifier that was returned from the previous call to this operation, which you can use to return the
|
|
2320
|
+
* next set of items in the list.</p>
|
|
2196
2321
|
*/
|
|
2197
2322
|
nextToken?: string;
|
|
2198
2323
|
/**
|
|
@@ -2206,8 +2331,8 @@ export interface ListTypesResponse {
|
|
|
2206
2331
|
*/
|
|
2207
2332
|
types?: Type[];
|
|
2208
2333
|
/**
|
|
2209
|
-
* <p>An identifier to pass in the next request to this operation to return the next set of
|
|
2210
|
-
*
|
|
2334
|
+
* <p>An identifier to pass in the next request to this operation to return the next set of items in the
|
|
2335
|
+
* list.</p>
|
|
2211
2336
|
*/
|
|
2212
2337
|
nextToken?: string;
|
|
2213
2338
|
}
|
|
@@ -2223,8 +2348,8 @@ export interface StartSchemaCreationRequest {
|
|
|
2223
2348
|
}
|
|
2224
2349
|
export interface StartSchemaCreationResponse {
|
|
2225
2350
|
/**
|
|
2226
|
-
* <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When
|
|
2227
|
-
*
|
|
2351
|
+
* <p>The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the
|
|
2352
|
+
* ACTIVE state, you can add data.</p>
|
|
2228
2353
|
*/
|
|
2229
2354
|
status?: SchemaStatus | string;
|
|
2230
2355
|
}
|
|
@@ -2270,13 +2395,12 @@ export interface UpdateApiCacheRequest {
|
|
|
2270
2395
|
* <ul>
|
|
2271
2396
|
* <li>
|
|
2272
2397
|
* <p>
|
|
2273
|
-
* <b>FULL_REQUEST_CACHING</b>: All requests are fully
|
|
2274
|
-
* cached.</p>
|
|
2398
|
+
* <b>FULL_REQUEST_CACHING</b>: All requests are fully cached.</p>
|
|
2275
2399
|
* </li>
|
|
2276
2400
|
* <li>
|
|
2277
2401
|
* <p>
|
|
2278
|
-
* <b>PER_RESOLVER_CACHING</b>: Individual resolvers
|
|
2279
|
-
*
|
|
2402
|
+
* <b>PER_RESOLVER_CACHING</b>: Individual resolvers that you specify are
|
|
2403
|
+
* cached.</p>
|
|
2280
2404
|
* </li>
|
|
2281
2405
|
* </ul>
|
|
2282
2406
|
*/
|
|
@@ -2382,8 +2506,8 @@ export interface UpdateApiKeyRequest {
|
|
|
2382
2506
|
*/
|
|
2383
2507
|
description?: string;
|
|
2384
2508
|
/**
|
|
2385
|
-
* <p>From the update time, the time after which the API key expires. The date is represented
|
|
2386
|
-
*
|
|
2509
|
+
* <p>From the update time, the time after which the API key expires. The date is represented as seconds since the
|
|
2510
|
+
* epoch. For more information, see .</p>
|
|
2387
2511
|
*/
|
|
2388
2512
|
expires?: number;
|
|
2389
2513
|
}
|
|
@@ -2424,8 +2548,8 @@ export interface UpdateDataSourceRequest {
|
|
|
2424
2548
|
lambdaConfig?: LambdaDataSourceConfig;
|
|
2425
2549
|
/**
|
|
2426
2550
|
* <p>The new OpenSearch configuration.</p>
|
|
2427
|
-
* <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This
|
|
2428
|
-
*
|
|
2551
|
+
* <p>As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is
|
|
2552
|
+
* deprecated. Instead, use <a>UpdateDataSourceRequest$openSearchServiceConfig</a> to update an OpenSearch data source.</p>
|
|
2429
2553
|
*/
|
|
2430
2554
|
elasticsearchConfig?: ElasticsearchDataSourceConfig;
|
|
2431
2555
|
/**
|
|
@@ -2486,8 +2610,8 @@ export interface UpdateFunctionRequest {
|
|
|
2486
2610
|
*/
|
|
2487
2611
|
dataSourceName: string | undefined;
|
|
2488
2612
|
/**
|
|
2489
|
-
* <p>The <code>Function</code> request mapping template. Functions support only the
|
|
2490
|
-
*
|
|
2613
|
+
* <p>The <code>Function</code> request mapping template. Functions support only the 2018-05-29 version of the
|
|
2614
|
+
* request mapping template.</p>
|
|
2491
2615
|
*/
|
|
2492
2616
|
requestMappingTemplate?: string;
|
|
2493
2617
|
/**
|
|
@@ -2495,20 +2619,31 @@ export interface UpdateFunctionRequest {
|
|
|
2495
2619
|
*/
|
|
2496
2620
|
responseMappingTemplate?: string;
|
|
2497
2621
|
/**
|
|
2498
|
-
* <p>The <code>version</code> of the request mapping template. Currently, the supported value
|
|
2499
|
-
*
|
|
2622
|
+
* <p>The <code>version</code> of the request mapping template. Currently, the supported value is
|
|
2623
|
+
* 2018-05-29. Note
|
|
2624
|
+
* that when using VTL and mapping templates, the <code>functionVersion</code> is required.</p>
|
|
2500
2625
|
*/
|
|
2501
|
-
functionVersion
|
|
2626
|
+
functionVersion?: string;
|
|
2502
2627
|
/**
|
|
2503
2628
|
* <p>Describes a Sync configuration for a resolver.</p>
|
|
2504
|
-
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the
|
|
2505
|
-
*
|
|
2629
|
+
* <p>Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is
|
|
2630
|
+
* invoked.</p>
|
|
2506
2631
|
*/
|
|
2507
2632
|
syncConfig?: SyncConfig;
|
|
2508
2633
|
/**
|
|
2509
2634
|
* <p>The maximum batching size for a resolver.</p>
|
|
2510
2635
|
*/
|
|
2511
2636
|
maxBatchSize?: number;
|
|
2637
|
+
/**
|
|
2638
|
+
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
|
|
2639
|
+
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
|
|
2640
|
+
*/
|
|
2641
|
+
runtime?: AppSyncRuntime;
|
|
2642
|
+
/**
|
|
2643
|
+
* <p>The <code>function</code> code that contains the request and response functions. When code is used, the
|
|
2644
|
+
* <code>runtime</code> is required. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.</p>
|
|
2645
|
+
*/
|
|
2646
|
+
code?: string;
|
|
2512
2647
|
}
|
|
2513
2648
|
export interface UpdateFunctionResponse {
|
|
2514
2649
|
/**
|
|
@@ -2534,8 +2669,7 @@ export interface UpdateGraphqlApiRequest {
|
|
|
2534
2669
|
*/
|
|
2535
2670
|
authenticationType?: AuthenticationType | string;
|
|
2536
2671
|
/**
|
|
2537
|
-
* <p>The new Amazon Cognito user pool configuration for the <code>~GraphqlApi</code>
|
|
2538
|
-
* object.</p>
|
|
2672
|
+
* <p>The new Amazon Cognito user pool configuration for the <code>~GraphqlApi</code> object.</p>
|
|
2539
2673
|
*/
|
|
2540
2674
|
userPoolConfig?: UserPoolConfig;
|
|
2541
2675
|
/**
|
|
@@ -2543,13 +2677,11 @@ export interface UpdateGraphqlApiRequest {
|
|
|
2543
2677
|
*/
|
|
2544
2678
|
openIDConnectConfig?: OpenIDConnectConfig;
|
|
2545
2679
|
/**
|
|
2546
|
-
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
2547
|
-
* API.</p>
|
|
2680
|
+
* <p>A list of additional authentication providers for the <code>GraphqlApi</code> API.</p>
|
|
2548
2681
|
*/
|
|
2549
2682
|
additionalAuthenticationProviders?: AdditionalAuthenticationProvider[];
|
|
2550
2683
|
/**
|
|
2551
|
-
* <p>A flag indicating whether to use X-Ray tracing for the
|
|
2552
|
-
* <code>GraphqlApi</code>.</p>
|
|
2684
|
+
* <p>A flag indicating whether to use X-Ray tracing for the <code>GraphqlApi</code>.</p>
|
|
2553
2685
|
*/
|
|
2554
2686
|
xrayEnabled?: boolean;
|
|
2555
2687
|
/**
|
|
@@ -2582,12 +2714,10 @@ export interface UpdateResolverRequest {
|
|
|
2582
2714
|
dataSourceName?: string;
|
|
2583
2715
|
/**
|
|
2584
2716
|
* <p>The new request mapping template.</p>
|
|
2585
|
-
* <p>A resolver uses a request mapping template to convert a GraphQL expression into a format
|
|
2586
|
-
*
|
|
2587
|
-
*
|
|
2588
|
-
*
|
|
2589
|
-
* source. For all other data sources, VTL request and response mapping templates are
|
|
2590
|
-
* required.</p>
|
|
2717
|
+
* <p>A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source
|
|
2718
|
+
* can understand. Mapping templates are written in Apache Velocity Template Language (VTL).</p>
|
|
2719
|
+
* <p>VTL request mapping templates are optional when using an Lambda data source. For all other
|
|
2720
|
+
* data sources, VTL request and response mapping templates are required.</p>
|
|
2591
2721
|
*/
|
|
2592
2722
|
requestMappingTemplate?: string;
|
|
2593
2723
|
/**
|
|
@@ -2599,16 +2729,14 @@ export interface UpdateResolverRequest {
|
|
|
2599
2729
|
* <ul>
|
|
2600
2730
|
* <li>
|
|
2601
2731
|
* <p>
|
|
2602
|
-
* <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is
|
|
2603
|
-
*
|
|
2604
|
-
* a single data source.</p>
|
|
2732
|
+
* <b>UNIT</b>: A UNIT resolver type. A UNIT resolver is the default
|
|
2733
|
+
* resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.</p>
|
|
2605
2734
|
* </li>
|
|
2606
2735
|
* <li>
|
|
2607
2736
|
* <p>
|
|
2608
|
-
* <b>PIPELINE</b>: A PIPELINE resolver type. You can
|
|
2609
|
-
*
|
|
2610
|
-
*
|
|
2611
|
-
* multiple data sources.</p>
|
|
2737
|
+
* <b>PIPELINE</b>: A PIPELINE resolver type. You can use a PIPELINE
|
|
2738
|
+
* resolver to invoke a series of <code>Function</code> objects in a serial manner. You can use a pipeline
|
|
2739
|
+
* resolver to run a GraphQL query against multiple data sources.</p>
|
|
2612
2740
|
* </li>
|
|
2613
2741
|
* </ul>
|
|
2614
2742
|
*/
|
|
@@ -2629,6 +2757,16 @@ export interface UpdateResolverRequest {
|
|
|
2629
2757
|
* <p>The maximum batching size for a resolver.</p>
|
|
2630
2758
|
*/
|
|
2631
2759
|
maxBatchSize?: number;
|
|
2760
|
+
/**
|
|
2761
|
+
* <p>Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and
|
|
2762
|
+
* version of the runtime to use. Note that if a runtime is specified, code must also be specified.</p>
|
|
2763
|
+
*/
|
|
2764
|
+
runtime?: AppSyncRuntime;
|
|
2765
|
+
/**
|
|
2766
|
+
* <p>The <code>resolver</code> code that contains the request and response functions. When code is used, the
|
|
2767
|
+
* <code>runtime</code> is required. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.</p>
|
|
2768
|
+
*/
|
|
2769
|
+
code?: string;
|
|
2632
2770
|
}
|
|
2633
2771
|
export interface UpdateResolverResponse {
|
|
2634
2772
|
/**
|
|
@@ -2688,6 +2826,10 @@ export declare const ApiCacheFilterSensitiveLog: (obj: ApiCache) => any;
|
|
|
2688
2826
|
* @internal
|
|
2689
2827
|
*/
|
|
2690
2828
|
export declare const ApiKeyFilterSensitiveLog: (obj: ApiKey) => any;
|
|
2829
|
+
/**
|
|
2830
|
+
* @internal
|
|
2831
|
+
*/
|
|
2832
|
+
export declare const AppSyncRuntimeFilterSensitiveLog: (obj: AppSyncRuntime) => any;
|
|
2691
2833
|
/**
|
|
2692
2834
|
* @internal
|
|
2693
2835
|
*/
|
|
@@ -2696,6 +2838,18 @@ export declare const AssociateApiRequestFilterSensitiveLog: (obj: AssociateApiRe
|
|
|
2696
2838
|
* @internal
|
|
2697
2839
|
*/
|
|
2698
2840
|
export declare const AssociateApiResponseFilterSensitiveLog: (obj: AssociateApiResponse) => any;
|
|
2841
|
+
/**
|
|
2842
|
+
* @internal
|
|
2843
|
+
*/
|
|
2844
|
+
export declare const CodeErrorLocationFilterSensitiveLog: (obj: CodeErrorLocation) => any;
|
|
2845
|
+
/**
|
|
2846
|
+
* @internal
|
|
2847
|
+
*/
|
|
2848
|
+
export declare const CodeErrorFilterSensitiveLog: (obj: CodeError) => any;
|
|
2849
|
+
/**
|
|
2850
|
+
* @internal
|
|
2851
|
+
*/
|
|
2852
|
+
export declare const BadRequestDetailFilterSensitiveLog: (obj: BadRequestDetail) => any;
|
|
2699
2853
|
/**
|
|
2700
2854
|
* @internal
|
|
2701
2855
|
*/
|
|
@@ -2920,6 +3074,18 @@ export declare const DisassociateApiRequestFilterSensitiveLog: (obj: Disassociat
|
|
|
2920
3074
|
* @internal
|
|
2921
3075
|
*/
|
|
2922
3076
|
export declare const DisassociateApiResponseFilterSensitiveLog: (obj: DisassociateApiResponse) => any;
|
|
3077
|
+
/**
|
|
3078
|
+
* @internal
|
|
3079
|
+
*/
|
|
3080
|
+
export declare const EvaluateCodeRequestFilterSensitiveLog: (obj: EvaluateCodeRequest) => any;
|
|
3081
|
+
/**
|
|
3082
|
+
* @internal
|
|
3083
|
+
*/
|
|
3084
|
+
export declare const EvaluateCodeErrorDetailFilterSensitiveLog: (obj: EvaluateCodeErrorDetail) => any;
|
|
3085
|
+
/**
|
|
3086
|
+
* @internal
|
|
3087
|
+
*/
|
|
3088
|
+
export declare const EvaluateCodeResponseFilterSensitiveLog: (obj: EvaluateCodeResponse) => any;
|
|
2923
3089
|
/**
|
|
2924
3090
|
* @internal
|
|
2925
3091
|
*/
|