@aws-sdk/client-appsync 3.301.0 → 3.303.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.
@@ -7,13 +7,15 @@ export declare class AccessDeniedException extends __BaseException {
7
7
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
8
  );
9
9
  }
10
- export declare enum AuthenticationType {
11
- AMAZON_COGNITO_USER_POOLS = "AMAZON_COGNITO_USER_POOLS",
12
- API_KEY = "API_KEY",
13
- AWS_IAM = "AWS_IAM",
14
- AWS_LAMBDA = "AWS_LAMBDA",
15
- OPENID_CONNECT = "OPENID_CONNECT",
16
- }
10
+ export declare const AuthenticationType: {
11
+ readonly AMAZON_COGNITO_USER_POOLS: "AMAZON_COGNITO_USER_POOLS";
12
+ readonly API_KEY: "API_KEY";
13
+ readonly AWS_IAM: "AWS_IAM";
14
+ readonly AWS_LAMBDA: "AWS_LAMBDA";
15
+ readonly OPENID_CONNECT: "OPENID_CONNECT";
16
+ };
17
+ export type AuthenticationType =
18
+ (typeof AuthenticationType)[keyof typeof AuthenticationType];
17
19
  export interface LambdaAuthorizerConfig {
18
20
  authorizerResultTtlInSeconds?: number;
19
21
  authorizerUri: string | undefined;
@@ -36,45 +38,52 @@ export interface AdditionalAuthenticationProvider {
36
38
  userPoolConfig?: CognitoUserPoolConfig;
37
39
  lambdaAuthorizerConfig?: LambdaAuthorizerConfig;
38
40
  }
39
- export declare enum AssociationStatus {
40
- Failed = "FAILED",
41
- Processing = "PROCESSING",
42
- Success = "SUCCESS",
43
- }
41
+ export declare const AssociationStatus: {
42
+ readonly Failed: "FAILED";
43
+ readonly Processing: "PROCESSING";
44
+ readonly Success: "SUCCESS";
45
+ };
46
+ export type AssociationStatus =
47
+ (typeof AssociationStatus)[keyof typeof AssociationStatus];
44
48
  export interface ApiAssociation {
45
49
  domainName?: string;
46
50
  apiId?: string;
47
51
  associationStatus?: AssociationStatus | string;
48
52
  deploymentDetail?: string;
49
53
  }
50
- export declare enum ApiCachingBehavior {
51
- FULL_REQUEST_CACHING = "FULL_REQUEST_CACHING",
52
- PER_RESOLVER_CACHING = "PER_RESOLVER_CACHING",
53
- }
54
- export declare enum ApiCacheStatus {
55
- AVAILABLE = "AVAILABLE",
56
- CREATING = "CREATING",
57
- DELETING = "DELETING",
58
- FAILED = "FAILED",
59
- MODIFYING = "MODIFYING",
60
- }
61
- export declare enum ApiCacheType {
62
- LARGE = "LARGE",
63
- LARGE_12X = "LARGE_12X",
64
- LARGE_2X = "LARGE_2X",
65
- LARGE_4X = "LARGE_4X",
66
- LARGE_8X = "LARGE_8X",
67
- MEDIUM = "MEDIUM",
68
- R4_2XLARGE = "R4_2XLARGE",
69
- R4_4XLARGE = "R4_4XLARGE",
70
- R4_8XLARGE = "R4_8XLARGE",
71
- R4_LARGE = "R4_LARGE",
72
- R4_XLARGE = "R4_XLARGE",
73
- SMALL = "SMALL",
74
- T2_MEDIUM = "T2_MEDIUM",
75
- T2_SMALL = "T2_SMALL",
76
- XLARGE = "XLARGE",
77
- }
54
+ export declare const ApiCachingBehavior: {
55
+ readonly FULL_REQUEST_CACHING: "FULL_REQUEST_CACHING";
56
+ readonly PER_RESOLVER_CACHING: "PER_RESOLVER_CACHING";
57
+ };
58
+ export type ApiCachingBehavior =
59
+ (typeof ApiCachingBehavior)[keyof typeof ApiCachingBehavior];
60
+ export declare const ApiCacheStatus: {
61
+ readonly AVAILABLE: "AVAILABLE";
62
+ readonly CREATING: "CREATING";
63
+ readonly DELETING: "DELETING";
64
+ readonly FAILED: "FAILED";
65
+ readonly MODIFYING: "MODIFYING";
66
+ };
67
+ export type ApiCacheStatus =
68
+ (typeof ApiCacheStatus)[keyof typeof ApiCacheStatus];
69
+ export declare const ApiCacheType: {
70
+ readonly LARGE: "LARGE";
71
+ readonly LARGE_12X: "LARGE_12X";
72
+ readonly LARGE_2X: "LARGE_2X";
73
+ readonly LARGE_4X: "LARGE_4X";
74
+ readonly LARGE_8X: "LARGE_8X";
75
+ readonly MEDIUM: "MEDIUM";
76
+ readonly R4_2XLARGE: "R4_2XLARGE";
77
+ readonly R4_4XLARGE: "R4_4XLARGE";
78
+ readonly R4_8XLARGE: "R4_8XLARGE";
79
+ readonly R4_LARGE: "R4_LARGE";
80
+ readonly R4_XLARGE: "R4_XLARGE";
81
+ readonly SMALL: "SMALL";
82
+ readonly T2_MEDIUM: "T2_MEDIUM";
83
+ readonly T2_SMALL: "T2_SMALL";
84
+ readonly XLARGE: "XLARGE";
85
+ };
86
+ export type ApiCacheType = (typeof ApiCacheType)[keyof typeof ApiCacheType];
78
87
  export interface ApiCache {
79
88
  ttl?: number;
80
89
  apiCachingBehavior?: ApiCachingBehavior | string;
@@ -113,9 +122,10 @@ export declare class ApiLimitExceededException extends __BaseException {
113
122
  opts: __ExceptionOptionType<ApiLimitExceededException, __BaseException>
114
123
  );
115
124
  }
116
- export declare enum RuntimeName {
117
- APPSYNC_JS = "APPSYNC_JS",
118
- }
125
+ export declare const RuntimeName: {
126
+ readonly APPSYNC_JS: "APPSYNC_JS";
127
+ };
128
+ export type RuntimeName = (typeof RuntimeName)[keyof typeof RuntimeName];
119
129
  export interface AppSyncRuntime {
120
130
  name: RuntimeName | string | undefined;
121
131
  runtimeVersion: string | undefined;
@@ -140,9 +150,11 @@ export interface CodeError {
140
150
  export interface BadRequestDetail {
141
151
  codeErrors?: CodeError[];
142
152
  }
143
- export declare enum BadRequestReason {
144
- CODE_ERROR = "CODE_ERROR",
145
- }
153
+ export declare const BadRequestReason: {
154
+ readonly CODE_ERROR: "CODE_ERROR";
155
+ };
156
+ export type BadRequestReason =
157
+ (typeof BadRequestReason)[keyof typeof BadRequestReason];
146
158
  export declare class BadRequestException extends __BaseException {
147
159
  readonly name: "BadRequestException";
148
160
  readonly $fault: "client";
@@ -164,9 +176,11 @@ export declare class NotFoundException extends __BaseException {
164
176
  readonly $fault: "client";
165
177
  constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
166
178
  }
167
- export declare enum AuthorizationType {
168
- AWS_IAM = "AWS_IAM",
169
- }
179
+ export declare const AuthorizationType: {
180
+ readonly AWS_IAM: "AWS_IAM";
181
+ };
182
+ export type AuthorizationType =
183
+ (typeof AuthorizationType)[keyof typeof AuthorizationType];
170
184
  export interface AwsIamConfig {
171
185
  signingRegion?: string;
172
186
  signingServiceName?: string;
@@ -255,23 +269,27 @@ export interface RdsHttpEndpointConfig {
255
269
  schema?: string;
256
270
  awsSecretStoreArn?: string;
257
271
  }
258
- export declare enum RelationalDatabaseSourceType {
259
- RDS_HTTP_ENDPOINT = "RDS_HTTP_ENDPOINT",
260
- }
272
+ export declare const RelationalDatabaseSourceType: {
273
+ readonly RDS_HTTP_ENDPOINT: "RDS_HTTP_ENDPOINT";
274
+ };
275
+ export type RelationalDatabaseSourceType =
276
+ (typeof RelationalDatabaseSourceType)[keyof typeof RelationalDatabaseSourceType];
261
277
  export interface RelationalDatabaseDataSourceConfig {
262
278
  relationalDatabaseSourceType?: RelationalDatabaseSourceType | string;
263
279
  rdsHttpEndpointConfig?: RdsHttpEndpointConfig;
264
280
  }
265
- export declare enum DataSourceType {
266
- AMAZON_DYNAMODB = "AMAZON_DYNAMODB",
267
- AMAZON_ELASTICSEARCH = "AMAZON_ELASTICSEARCH",
268
- AMAZON_EVENTBRIDGE = "AMAZON_EVENTBRIDGE",
269
- AMAZON_OPENSEARCH_SERVICE = "AMAZON_OPENSEARCH_SERVICE",
270
- AWS_LAMBDA = "AWS_LAMBDA",
271
- HTTP = "HTTP",
272
- NONE = "NONE",
273
- RELATIONAL_DATABASE = "RELATIONAL_DATABASE",
274
- }
281
+ export declare const DataSourceType: {
282
+ readonly AMAZON_DYNAMODB: "AMAZON_DYNAMODB";
283
+ readonly AMAZON_ELASTICSEARCH: "AMAZON_ELASTICSEARCH";
284
+ readonly AMAZON_EVENTBRIDGE: "AMAZON_EVENTBRIDGE";
285
+ readonly AMAZON_OPENSEARCH_SERVICE: "AMAZON_OPENSEARCH_SERVICE";
286
+ readonly AWS_LAMBDA: "AWS_LAMBDA";
287
+ readonly HTTP: "HTTP";
288
+ readonly NONE: "NONE";
289
+ readonly RELATIONAL_DATABASE: "RELATIONAL_DATABASE";
290
+ };
291
+ export type DataSourceType =
292
+ (typeof DataSourceType)[keyof typeof DataSourceType];
275
293
  export interface CreateDataSourceRequest {
276
294
  apiId: string | undefined;
277
295
  name: string | undefined;
@@ -318,16 +336,20 @@ export interface DomainNameConfig {
318
336
  export interface CreateDomainNameResponse {
319
337
  domainNameConfig?: DomainNameConfig;
320
338
  }
321
- export declare enum ConflictDetectionType {
322
- NONE = "NONE",
323
- VERSION = "VERSION",
324
- }
325
- export declare enum ConflictHandlerType {
326
- AUTOMERGE = "AUTOMERGE",
327
- LAMBDA = "LAMBDA",
328
- NONE = "NONE",
329
- OPTIMISTIC_CONCURRENCY = "OPTIMISTIC_CONCURRENCY",
330
- }
339
+ export declare const ConflictDetectionType: {
340
+ readonly NONE: "NONE";
341
+ readonly VERSION: "VERSION";
342
+ };
343
+ export type ConflictDetectionType =
344
+ (typeof ConflictDetectionType)[keyof typeof ConflictDetectionType];
345
+ export declare const ConflictHandlerType: {
346
+ readonly AUTOMERGE: "AUTOMERGE";
347
+ readonly LAMBDA: "LAMBDA";
348
+ readonly NONE: "NONE";
349
+ readonly OPTIMISTIC_CONCURRENCY: "OPTIMISTIC_CONCURRENCY";
350
+ };
351
+ export type ConflictHandlerType =
352
+ (typeof ConflictHandlerType)[keyof typeof ConflictHandlerType];
331
353
  export interface LambdaConflictHandlerConfig {
332
354
  lambdaConflictHandlerArn?: string;
333
355
  }
@@ -366,20 +388,22 @@ export interface FunctionConfiguration {
366
388
  export interface CreateFunctionResponse {
367
389
  functionConfiguration?: FunctionConfiguration;
368
390
  }
369
- export declare enum FieldLogLevel {
370
- ALL = "ALL",
371
- ERROR = "ERROR",
372
- NONE = "NONE",
373
- }
391
+ export declare const FieldLogLevel: {
392
+ readonly ALL: "ALL";
393
+ readonly ERROR: "ERROR";
394
+ readonly NONE: "NONE";
395
+ };
396
+ export type FieldLogLevel = (typeof FieldLogLevel)[keyof typeof FieldLogLevel];
374
397
  export interface LogConfig {
375
398
  fieldLogLevel: FieldLogLevel | string | undefined;
376
399
  cloudWatchLogsRoleArn: string | undefined;
377
400
  excludeVerboseContent?: boolean;
378
401
  }
379
- export declare enum DefaultAction {
380
- ALLOW = "ALLOW",
381
- DENY = "DENY",
382
- }
402
+ export declare const DefaultAction: {
403
+ readonly ALLOW: "ALLOW";
404
+ readonly DENY: "DENY";
405
+ };
406
+ export type DefaultAction = (typeof DefaultAction)[keyof typeof DefaultAction];
383
407
  export interface UserPoolConfig {
384
408
  userPoolId: string | undefined;
385
409
  awsRegion: string | undefined;
@@ -419,10 +443,11 @@ export interface CachingConfig {
419
443
  ttl: number | undefined;
420
444
  cachingKeys?: string[];
421
445
  }
422
- export declare enum ResolverKind {
423
- PIPELINE = "PIPELINE",
424
- UNIT = "UNIT",
425
- }
446
+ export declare const ResolverKind: {
447
+ readonly PIPELINE: "PIPELINE";
448
+ readonly UNIT: "UNIT";
449
+ };
450
+ export type ResolverKind = (typeof ResolverKind)[keyof typeof ResolverKind];
426
451
  export interface PipelineConfig {
427
452
  functions?: string[];
428
453
  }
@@ -459,10 +484,12 @@ export interface Resolver {
459
484
  export interface CreateResolverResponse {
460
485
  resolver?: Resolver;
461
486
  }
462
- export declare enum TypeDefinitionFormat {
463
- JSON = "JSON",
464
- SDL = "SDL",
465
- }
487
+ export declare const TypeDefinitionFormat: {
488
+ readonly JSON: "JSON";
489
+ readonly SDL: "SDL";
490
+ };
491
+ export type TypeDefinitionFormat =
492
+ (typeof TypeDefinitionFormat)[keyof typeof TypeDefinitionFormat];
466
493
  export interface CreateTypeRequest {
467
494
  apiId: string | undefined;
468
495
  definition: string | undefined;
@@ -589,10 +616,11 @@ export interface GetGraphqlApiRequest {
589
616
  export interface GetGraphqlApiResponse {
590
617
  graphqlApi?: GraphqlApi;
591
618
  }
592
- export declare enum OutputType {
593
- JSON = "JSON",
594
- SDL = "SDL",
595
- }
619
+ export declare const OutputType: {
620
+ readonly JSON: "JSON";
621
+ readonly SDL: "SDL";
622
+ };
623
+ export type OutputType = (typeof OutputType)[keyof typeof OutputType];
596
624
  export interface GetIntrospectionSchemaRequest {
597
625
  apiId: string | undefined;
598
626
  format: OutputType | string | undefined;
@@ -619,14 +647,15 @@ export interface GetResolverResponse {
619
647
  export interface GetSchemaCreationStatusRequest {
620
648
  apiId: string | undefined;
621
649
  }
622
- export declare enum SchemaStatus {
623
- Active = "ACTIVE",
624
- Deleting = "DELETING",
625
- Failed = "FAILED",
626
- NotApplicable = "NOT_APPLICABLE",
627
- Processing = "PROCESSING",
628
- Success = "SUCCESS",
629
- }
650
+ export declare const SchemaStatus: {
651
+ readonly Active: "ACTIVE";
652
+ readonly Deleting: "DELETING";
653
+ readonly Failed: "FAILED";
654
+ readonly NotApplicable: "NOT_APPLICABLE";
655
+ readonly Processing: "PROCESSING";
656
+ readonly Success: "SUCCESS";
657
+ };
658
+ export type SchemaStatus = (typeof SchemaStatus)[keyof typeof SchemaStatus];
630
659
  export interface GetSchemaCreationStatusResponse {
631
660
  status?: SchemaStatus | string;
632
661
  details?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appsync",
3
3
  "description": "AWS SDK for JavaScript Appsync Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",