@aws-sdk/client-appsync 3.325.0 → 3.327.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 +7 -7
package/README.md
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
AWS SDK for JavaScript AppSync Client for Node.js, Browser and React Native.
|
|
11
11
|
|
|
12
|
-
<p>AppSync provides API actions for creating and interacting with data
|
|
13
|
-
from your application.</p>
|
|
12
|
+
<p>AppSync provides API actions for creating and interacting with data
|
|
13
|
+
sources using GraphQL from your application.</p>
|
|
14
14
|
|
|
15
15
|
## Installing
|
|
16
16
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const q = "
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://appsync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://appsync-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://appsync.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://appsync.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SchemaStatus = exports.GraphQLSchemaException = exports.OutputType = exports.TypeDefinitionFormat = exports.ResolverKind = exports.DefaultAction = exports.FieldLogLevel = exports.ConflictHandlerType = exports.ConflictDetectionType = exports.DataSourceType = exports.RelationalDatabaseSourceType = exports.LimitExceededException = exports.UnauthorizedException = exports.ConcurrentModificationException = exports.AuthorizationType = exports.NotFoundException = exports.InternalFailureException = exports.BadRequestException = exports.BadRequestReason = exports.RuntimeName = exports.ApiLimitExceededException = exports.ApiKeyValidityOutOfBoundsException = exports.ApiKeyLimitExceededException = exports.ApiCacheType = exports.ApiCacheStatus = exports.ApiCachingBehavior = exports.AssociationStatus = exports.AuthenticationType = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.SchemaStatus = exports.GraphQLSchemaException = exports.OutputType = exports.TypeDefinitionFormat = exports.ResolverKind = exports.GraphQLApiVisibility = exports.DefaultAction = exports.FieldLogLevel = exports.ConflictHandlerType = exports.ConflictDetectionType = exports.DataSourceType = exports.RelationalDatabaseSourceType = exports.LimitExceededException = exports.UnauthorizedException = exports.ConcurrentModificationException = exports.AuthorizationType = exports.NotFoundException = exports.InternalFailureException = exports.BadRequestException = exports.BadRequestReason = exports.RuntimeName = exports.ApiLimitExceededException = exports.ApiKeyValidityOutOfBoundsException = exports.ApiKeyLimitExceededException = exports.ApiCacheType = exports.ApiCacheStatus = exports.ApiCachingBehavior = exports.AssociationStatus = exports.AuthenticationType = exports.AccessDeniedException = void 0;
|
|
4
4
|
const AppSyncServiceException_1 = require("./AppSyncServiceException");
|
|
5
5
|
class AccessDeniedException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -215,6 +215,10 @@ exports.DefaultAction = {
|
|
|
215
215
|
ALLOW: "ALLOW",
|
|
216
216
|
DENY: "DENY",
|
|
217
217
|
};
|
|
218
|
+
exports.GraphQLApiVisibility = {
|
|
219
|
+
GLOBAL: "GLOBAL",
|
|
220
|
+
PRIVATE: "PRIVATE",
|
|
221
|
+
};
|
|
218
222
|
exports.ResolverKind = {
|
|
219
223
|
PIPELINE: "PIPELINE",
|
|
220
224
|
UNIT: "UNIT",
|
|
@@ -181,6 +181,7 @@ const se_CreateGraphqlApiCommand = async (input, context) => {
|
|
|
181
181
|
openIDConnectConfig: (_) => (0, smithy_client_1._json)(_),
|
|
182
182
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
183
183
|
userPoolConfig: (_) => (0, smithy_client_1._json)(_),
|
|
184
|
+
visibility: [],
|
|
184
185
|
xrayEnabled: [],
|
|
185
186
|
}));
|
|
186
187
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://appsync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://appsync-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://appsync.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://appsync.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -202,6 +202,10 @@ export const DefaultAction = {
|
|
|
202
202
|
ALLOW: "ALLOW",
|
|
203
203
|
DENY: "DENY",
|
|
204
204
|
};
|
|
205
|
+
export const GraphQLApiVisibility = {
|
|
206
|
+
GLOBAL: "GLOBAL",
|
|
207
|
+
PRIVATE: "PRIVATE",
|
|
208
|
+
};
|
|
205
209
|
export const ResolverKind = {
|
|
206
210
|
PIPELINE: "PIPELINE",
|
|
207
211
|
UNIT: "UNIT",
|
|
@@ -170,6 +170,7 @@ export const se_CreateGraphqlApiCommand = async (input, context) => {
|
|
|
170
170
|
openIDConnectConfig: (_) => _json(_),
|
|
171
171
|
tags: (_) => _json(_),
|
|
172
172
|
userPoolConfig: (_) => _json(_),
|
|
173
|
+
visibility: [],
|
|
173
174
|
xrayEnabled: [],
|
|
174
175
|
}));
|
|
175
176
|
return new __HttpRequest({
|
package/dist-types/AppSync.d.ts
CHANGED
|
@@ -361,8 +361,8 @@ export interface AppSync {
|
|
|
361
361
|
}
|
|
362
362
|
/**
|
|
363
363
|
* @public
|
|
364
|
-
* <p>AppSync provides API actions for creating and interacting with data
|
|
365
|
-
* from your application.</p>
|
|
364
|
+
* <p>AppSync provides API actions for creating and interacting with data
|
|
365
|
+
* sources using GraphQL from your application.</p>
|
|
366
366
|
*/
|
|
367
367
|
export declare class AppSync extends AppSyncClient implements AppSync {
|
|
368
368
|
}
|
|
@@ -194,8 +194,8 @@ export interface AppSyncClientResolvedConfig extends AppSyncClientResolvedConfig
|
|
|
194
194
|
}
|
|
195
195
|
/**
|
|
196
196
|
* @public
|
|
197
|
-
* <p>AppSync provides API actions for creating and interacting with data
|
|
198
|
-
* from your application.</p>
|
|
197
|
+
* <p>AppSync provides API actions for creating and interacting with data
|
|
198
|
+
* sources using GraphQL from your application.</p>
|
|
199
199
|
*/
|
|
200
200
|
export declare class AppSyncClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, AppSyncClientResolvedConfig> {
|
|
201
201
|
/**
|
|
@@ -32,6 +32,15 @@ export interface AssociateApiCommandOutput extends AssociateApiResponse, __Metad
|
|
|
32
32
|
* };
|
|
33
33
|
* const command = new AssociateApiCommand(input);
|
|
34
34
|
* const response = await client.send(command);
|
|
35
|
+
* // { // AssociateApiResponse
|
|
36
|
+
* // apiAssociation: { // ApiAssociation
|
|
37
|
+
* // domainName: "STRING_VALUE",
|
|
38
|
+
* // apiId: "STRING_VALUE",
|
|
39
|
+
* // associationStatus: "PROCESSING" || "FAILED" || "SUCCESS",
|
|
40
|
+
* // deploymentDetail: "STRING_VALUE",
|
|
41
|
+
* // },
|
|
42
|
+
* // };
|
|
43
|
+
*
|
|
35
44
|
* ```
|
|
36
45
|
*
|
|
37
46
|
* @param AssociateApiCommandInput - {@link AssociateApiCommandInput}
|
|
@@ -44,15 +53,18 @@ export interface AssociateApiCommandOutput extends AssociateApiResponse, __Metad
|
|
|
44
53
|
* <p>You don't have access to perform this operation on this resource.</p>
|
|
45
54
|
*
|
|
46
55
|
* @throws {@link BadRequestException} (client fault)
|
|
47
|
-
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
48
|
-
* field values, and then try again.</p>
|
|
56
|
+
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
57
|
+
* missing. Check the field values, and then try again.</p>
|
|
49
58
|
*
|
|
50
59
|
* @throws {@link InternalFailureException} (server fault)
|
|
51
60
|
* <p>An internal AppSync error occurred. Try your request again.</p>
|
|
52
61
|
*
|
|
53
62
|
* @throws {@link NotFoundException} (client fault)
|
|
54
|
-
* <p>The resource specified in the request was not found. Check the resource, and then try
|
|
63
|
+
* <p>The resource specified in the request was not found. Check the resource, and then try
|
|
64
|
+
* again.</p>
|
|
55
65
|
*
|
|
66
|
+
* @throws {@link AppSyncServiceException}
|
|
67
|
+
* <p>Base exception class for all service exceptions from AppSync service.</p>
|
|
56
68
|
*
|
|
57
69
|
*/
|
|
58
70
|
export declare class AssociateApiCommand extends $Command<AssociateApiCommandInput, AssociateApiCommandOutput, AppSyncClientResolvedConfig> {
|
|
@@ -36,6 +36,17 @@ export interface CreateApiCacheCommandOutput extends CreateApiCacheResponse, __M
|
|
|
36
36
|
* };
|
|
37
37
|
* const command = new CreateApiCacheCommand(input);
|
|
38
38
|
* const response = await client.send(command);
|
|
39
|
+
* // { // CreateApiCacheResponse
|
|
40
|
+
* // apiCache: { // ApiCache
|
|
41
|
+
* // ttl: Number("long"),
|
|
42
|
+
* // apiCachingBehavior: "FULL_REQUEST_CACHING" || "PER_RESOLVER_CACHING",
|
|
43
|
+
* // transitEncryptionEnabled: true || false,
|
|
44
|
+
* // atRestEncryptionEnabled: true || false,
|
|
45
|
+
* // type: "T2_SMALL" || "T2_MEDIUM" || "R4_LARGE" || "R4_XLARGE" || "R4_2XLARGE" || "R4_4XLARGE" || "R4_8XLARGE" || "SMALL" || "MEDIUM" || "LARGE" || "XLARGE" || "LARGE_2X" || "LARGE_4X" || "LARGE_8X" || "LARGE_12X",
|
|
46
|
+
* // status: "AVAILABLE" || "CREATING" || "DELETING" || "MODIFYING" || "FAILED",
|
|
47
|
+
* // },
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
39
50
|
* ```
|
|
40
51
|
*
|
|
41
52
|
* @param CreateApiCacheCommandInput - {@link CreateApiCacheCommandInput}
|
|
@@ -45,22 +56,25 @@ export interface CreateApiCacheCommandOutput extends CreateApiCacheResponse, __M
|
|
|
45
56
|
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
|
|
46
57
|
*
|
|
47
58
|
* @throws {@link BadRequestException} (client fault)
|
|
48
|
-
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
49
|
-
* field values, and then try again.</p>
|
|
59
|
+
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
60
|
+
* missing. Check the field values, and then try again.</p>
|
|
50
61
|
*
|
|
51
62
|
* @throws {@link ConcurrentModificationException} (client fault)
|
|
52
|
-
* <p>Another modification is in progress at this time and it must complete before you can
|
|
53
|
-
* change.</p>
|
|
63
|
+
* <p>Another modification is in progress at this time and it must complete before you can
|
|
64
|
+
* make your change.</p>
|
|
54
65
|
*
|
|
55
66
|
* @throws {@link InternalFailureException} (server fault)
|
|
56
67
|
* <p>An internal AppSync error occurred. Try your request again.</p>
|
|
57
68
|
*
|
|
58
69
|
* @throws {@link NotFoundException} (client fault)
|
|
59
|
-
* <p>The resource specified in the request was not found. Check the resource, and then try
|
|
70
|
+
* <p>The resource specified in the request was not found. Check the resource, and then try
|
|
71
|
+
* again.</p>
|
|
60
72
|
*
|
|
61
73
|
* @throws {@link UnauthorizedException} (client fault)
|
|
62
74
|
* <p>You aren't authorized to perform this operation.</p>
|
|
63
75
|
*
|
|
76
|
+
* @throws {@link AppSyncServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from AppSync service.</p>
|
|
64
78
|
*
|
|
65
79
|
*/
|
|
66
80
|
export declare class CreateApiCacheCommand extends $Command<CreateApiCacheCommandInput, CreateApiCacheCommandOutput, AppSyncClientResolvedConfig> {
|
|
@@ -33,6 +33,15 @@ export interface CreateApiKeyCommandOutput extends CreateApiKeyResponse, __Metad
|
|
|
33
33
|
* };
|
|
34
34
|
* const command = new CreateApiKeyCommand(input);
|
|
35
35
|
* const response = await client.send(command);
|
|
36
|
+
* // { // CreateApiKeyResponse
|
|
37
|
+
* // apiKey: { // ApiKey
|
|
38
|
+
* // id: "STRING_VALUE",
|
|
39
|
+
* // description: "STRING_VALUE",
|
|
40
|
+
* // expires: Number("long"),
|
|
41
|
+
* // deletes: Number("long"),
|
|
42
|
+
* // },
|
|
43
|
+
* // };
|
|
44
|
+
*
|
|
36
45
|
* ```
|
|
37
46
|
*
|
|
38
47
|
* @param CreateApiKeyCommandInput - {@link CreateApiKeyCommandInput}
|
|
@@ -49,8 +58,8 @@ export interface CreateApiKeyCommandOutput extends CreateApiKeyResponse, __Metad
|
|
|
49
58
|
* <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>).</p>
|
|
50
59
|
*
|
|
51
60
|
* @throws {@link BadRequestException} (client fault)
|
|
52
|
-
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
53
|
-
* field values, and then try again.</p>
|
|
61
|
+
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
62
|
+
* missing. Check the field values, and then try again.</p>
|
|
54
63
|
*
|
|
55
64
|
* @throws {@link InternalFailureException} (server fault)
|
|
56
65
|
* <p>An internal AppSync error occurred. Try your request again.</p>
|
|
@@ -59,11 +68,14 @@ export interface CreateApiKeyCommandOutput extends CreateApiKeyResponse, __Metad
|
|
|
59
68
|
* <p>The request exceeded a limit. Try your request again.</p>
|
|
60
69
|
*
|
|
61
70
|
* @throws {@link NotFoundException} (client fault)
|
|
62
|
-
* <p>The resource specified in the request was not found. Check the resource, and then try
|
|
71
|
+
* <p>The resource specified in the request was not found. Check the resource, and then try
|
|
72
|
+
* again.</p>
|
|
63
73
|
*
|
|
64
74
|
* @throws {@link UnauthorizedException} (client fault)
|
|
65
75
|
* <p>You aren't authorized to perform this operation.</p>
|
|
66
76
|
*
|
|
77
|
+
* @throws {@link AppSyncServiceException}
|
|
78
|
+
* <p>Base exception class for all service exceptions from AppSync service.</p>
|
|
67
79
|
*
|
|
68
80
|
*/
|
|
69
81
|
export declare class CreateApiKeyCommand extends $Command<CreateApiKeyCommandInput, CreateApiKeyCommandOutput, AppSyncClientResolvedConfig> {
|
|
@@ -80,6 +80,61 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
|
|
|
80
80
|
* };
|
|
81
81
|
* const command = new CreateDataSourceCommand(input);
|
|
82
82
|
* const response = await client.send(command);
|
|
83
|
+
* // { // CreateDataSourceResponse
|
|
84
|
+
* // dataSource: { // DataSource
|
|
85
|
+
* // dataSourceArn: "STRING_VALUE",
|
|
86
|
+
* // name: "STRING_VALUE",
|
|
87
|
+
* // description: "STRING_VALUE",
|
|
88
|
+
* // type: "AWS_LAMBDA" || "AMAZON_DYNAMODB" || "AMAZON_ELASTICSEARCH" || "NONE" || "HTTP" || "RELATIONAL_DATABASE" || "AMAZON_OPENSEARCH_SERVICE" || "AMAZON_EVENTBRIDGE",
|
|
89
|
+
* // serviceRoleArn: "STRING_VALUE",
|
|
90
|
+
* // dynamodbConfig: { // DynamodbDataSourceConfig
|
|
91
|
+
* // tableName: "STRING_VALUE", // required
|
|
92
|
+
* // awsRegion: "STRING_VALUE", // required
|
|
93
|
+
* // useCallerCredentials: true || false,
|
|
94
|
+
* // deltaSyncConfig: { // DeltaSyncConfig
|
|
95
|
+
* // baseTableTTL: Number("long"),
|
|
96
|
+
* // deltaSyncTableName: "STRING_VALUE",
|
|
97
|
+
* // deltaSyncTableTTL: Number("long"),
|
|
98
|
+
* // },
|
|
99
|
+
* // versioned: true || false,
|
|
100
|
+
* // },
|
|
101
|
+
* // lambdaConfig: { // LambdaDataSourceConfig
|
|
102
|
+
* // lambdaFunctionArn: "STRING_VALUE", // required
|
|
103
|
+
* // },
|
|
104
|
+
* // elasticsearchConfig: { // ElasticsearchDataSourceConfig
|
|
105
|
+
* // endpoint: "STRING_VALUE", // required
|
|
106
|
+
* // awsRegion: "STRING_VALUE", // required
|
|
107
|
+
* // },
|
|
108
|
+
* // openSearchServiceConfig: { // OpenSearchServiceDataSourceConfig
|
|
109
|
+
* // endpoint: "STRING_VALUE", // required
|
|
110
|
+
* // awsRegion: "STRING_VALUE", // required
|
|
111
|
+
* // },
|
|
112
|
+
* // httpConfig: { // HttpDataSourceConfig
|
|
113
|
+
* // endpoint: "STRING_VALUE",
|
|
114
|
+
* // authorizationConfig: { // AuthorizationConfig
|
|
115
|
+
* // authorizationType: "AWS_IAM", // required
|
|
116
|
+
* // awsIamConfig: { // AwsIamConfig
|
|
117
|
+
* // signingRegion: "STRING_VALUE",
|
|
118
|
+
* // signingServiceName: "STRING_VALUE",
|
|
119
|
+
* // },
|
|
120
|
+
* // },
|
|
121
|
+
* // },
|
|
122
|
+
* // relationalDatabaseConfig: { // RelationalDatabaseDataSourceConfig
|
|
123
|
+
* // relationalDatabaseSourceType: "RDS_HTTP_ENDPOINT",
|
|
124
|
+
* // rdsHttpEndpointConfig: { // RdsHttpEndpointConfig
|
|
125
|
+
* // awsRegion: "STRING_VALUE",
|
|
126
|
+
* // dbClusterIdentifier: "STRING_VALUE",
|
|
127
|
+
* // databaseName: "STRING_VALUE",
|
|
128
|
+
* // schema: "STRING_VALUE",
|
|
129
|
+
* // awsSecretStoreArn: "STRING_VALUE",
|
|
130
|
+
* // },
|
|
131
|
+
* // },
|
|
132
|
+
* // eventBridgeConfig: { // EventBridgeDataSourceConfig
|
|
133
|
+
* // eventBusArn: "STRING_VALUE", // required
|
|
134
|
+
* // },
|
|
135
|
+
* // },
|
|
136
|
+
* // };
|
|
137
|
+
*
|
|
83
138
|
* ```
|
|
84
139
|
*
|
|
85
140
|
* @param CreateDataSourceCommandInput - {@link CreateDataSourceCommandInput}
|
|
@@ -89,22 +144,25 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
|
|
|
89
144
|
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
|
|
90
145
|
*
|
|
91
146
|
* @throws {@link BadRequestException} (client fault)
|
|
92
|
-
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
93
|
-
* field values, and then try again.</p>
|
|
147
|
+
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
148
|
+
* missing. Check the field values, and then try again.</p>
|
|
94
149
|
*
|
|
95
150
|
* @throws {@link ConcurrentModificationException} (client fault)
|
|
96
|
-
* <p>Another modification is in progress at this time and it must complete before you can
|
|
97
|
-
* change.</p>
|
|
151
|
+
* <p>Another modification is in progress at this time and it must complete before you can
|
|
152
|
+
* make your change.</p>
|
|
98
153
|
*
|
|
99
154
|
* @throws {@link InternalFailureException} (server fault)
|
|
100
155
|
* <p>An internal AppSync error occurred. Try your request again.</p>
|
|
101
156
|
*
|
|
102
157
|
* @throws {@link NotFoundException} (client fault)
|
|
103
|
-
* <p>The resource specified in the request was not found. Check the resource, and then try
|
|
158
|
+
* <p>The resource specified in the request was not found. Check the resource, and then try
|
|
159
|
+
* again.</p>
|
|
104
160
|
*
|
|
105
161
|
* @throws {@link UnauthorizedException} (client fault)
|
|
106
162
|
* <p>You aren't authorized to perform this operation.</p>
|
|
107
163
|
*
|
|
164
|
+
* @throws {@link AppSyncServiceException}
|
|
165
|
+
* <p>Base exception class for all service exceptions from AppSync service.</p>
|
|
108
166
|
*
|
|
109
167
|
*/
|
|
110
168
|
export declare class CreateDataSourceCommand extends $Command<CreateDataSourceCommandInput, CreateDataSourceCommandOutput, AppSyncClientResolvedConfig> {
|
|
@@ -33,6 +33,16 @@ export interface CreateDomainNameCommandOutput extends CreateDomainNameResponse,
|
|
|
33
33
|
* };
|
|
34
34
|
* const command = new CreateDomainNameCommand(input);
|
|
35
35
|
* const response = await client.send(command);
|
|
36
|
+
* // { // CreateDomainNameResponse
|
|
37
|
+
* // domainNameConfig: { // DomainNameConfig
|
|
38
|
+
* // domainName: "STRING_VALUE",
|
|
39
|
+
* // description: "STRING_VALUE",
|
|
40
|
+
* // certificateArn: "STRING_VALUE",
|
|
41
|
+
* // appsyncDomainName: "STRING_VALUE",
|
|
42
|
+
* // hostedZoneId: "STRING_VALUE",
|
|
43
|
+
* // },
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
36
46
|
* ```
|
|
37
47
|
*
|
|
38
48
|
* @param CreateDomainNameCommandInput - {@link CreateDomainNameCommandInput}
|
|
@@ -45,12 +55,14 @@ export interface CreateDomainNameCommandOutput extends CreateDomainNameResponse,
|
|
|
45
55
|
* <p>You don't have access to perform this operation on this resource.</p>
|
|
46
56
|
*
|
|
47
57
|
* @throws {@link BadRequestException} (client fault)
|
|
48
|
-
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
49
|
-
* field values, and then try again.</p>
|
|
58
|
+
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
59
|
+
* missing. Check the field values, and then try again.</p>
|
|
50
60
|
*
|
|
51
61
|
* @throws {@link InternalFailureException} (server fault)
|
|
52
62
|
* <p>An internal AppSync error occurred. Try your request again.</p>
|
|
53
63
|
*
|
|
64
|
+
* @throws {@link AppSyncServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from AppSync service.</p>
|
|
54
66
|
*
|
|
55
67
|
*/
|
|
56
68
|
export declare class CreateDomainNameCommand extends $Command<CreateDomainNameCommandInput, CreateDomainNameCommandOutput, AppSyncClientResolvedConfig> {
|
|
@@ -20,7 +20,8 @@ export interface CreateFunctionCommandOutput extends CreateFunctionResponse, __M
|
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
22
|
* <p>Creates a <code>Function</code> object.</p>
|
|
23
|
-
* <p>A function is a reusable entity. You can use multiple functions to compose the resolver
|
|
23
|
+
* <p>A function is a reusable entity. You can use multiple functions to compose the resolver
|
|
24
|
+
* logic.</p>
|
|
24
25
|
* @example
|
|
25
26
|
* Use a bare-bones client and the command you need to make an API call.
|
|
26
27
|
* ```javascript
|
|
@@ -51,6 +52,32 @@ export interface CreateFunctionCommandOutput extends CreateFunctionResponse, __M
|
|
|
51
52
|
* };
|
|
52
53
|
* const command = new CreateFunctionCommand(input);
|
|
53
54
|
* const response = await client.send(command);
|
|
55
|
+
* // { // CreateFunctionResponse
|
|
56
|
+
* // functionConfiguration: { // FunctionConfiguration
|
|
57
|
+
* // functionId: "STRING_VALUE",
|
|
58
|
+
* // functionArn: "STRING_VALUE",
|
|
59
|
+
* // name: "STRING_VALUE",
|
|
60
|
+
* // description: "STRING_VALUE",
|
|
61
|
+
* // dataSourceName: "STRING_VALUE",
|
|
62
|
+
* // requestMappingTemplate: "STRING_VALUE",
|
|
63
|
+
* // responseMappingTemplate: "STRING_VALUE",
|
|
64
|
+
* // functionVersion: "STRING_VALUE",
|
|
65
|
+
* // syncConfig: { // SyncConfig
|
|
66
|
+
* // conflictHandler: "OPTIMISTIC_CONCURRENCY" || "LAMBDA" || "AUTOMERGE" || "NONE",
|
|
67
|
+
* // conflictDetection: "VERSION" || "NONE",
|
|
68
|
+
* // lambdaConflictHandlerConfig: { // LambdaConflictHandlerConfig
|
|
69
|
+
* // lambdaConflictHandlerArn: "STRING_VALUE",
|
|
70
|
+
* // },
|
|
71
|
+
* // },
|
|
72
|
+
* // maxBatchSize: Number("int"),
|
|
73
|
+
* // runtime: { // AppSyncRuntime
|
|
74
|
+
* // name: "APPSYNC_JS", // required
|
|
75
|
+
* // runtimeVersion: "STRING_VALUE", // required
|
|
76
|
+
* // },
|
|
77
|
+
* // code: "STRING_VALUE",
|
|
78
|
+
* // },
|
|
79
|
+
* // };
|
|
80
|
+
*
|
|
54
81
|
* ```
|
|
55
82
|
*
|
|
56
83
|
* @param CreateFunctionCommandInput - {@link CreateFunctionCommandInput}
|
|
@@ -60,18 +87,21 @@ export interface CreateFunctionCommandOutput extends CreateFunctionResponse, __M
|
|
|
60
87
|
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
|
|
61
88
|
*
|
|
62
89
|
* @throws {@link ConcurrentModificationException} (client fault)
|
|
63
|
-
* <p>Another modification is in progress at this time and it must complete before you can
|
|
64
|
-
* change.</p>
|
|
90
|
+
* <p>Another modification is in progress at this time and it must complete before you can
|
|
91
|
+
* make your change.</p>
|
|
65
92
|
*
|
|
66
93
|
* @throws {@link InternalFailureException} (server fault)
|
|
67
94
|
* <p>An internal AppSync error occurred. Try your request again.</p>
|
|
68
95
|
*
|
|
69
96
|
* @throws {@link NotFoundException} (client fault)
|
|
70
|
-
* <p>The resource specified in the request was not found. Check the resource, and then try
|
|
97
|
+
* <p>The resource specified in the request was not found. Check the resource, and then try
|
|
98
|
+
* again.</p>
|
|
71
99
|
*
|
|
72
100
|
* @throws {@link UnauthorizedException} (client fault)
|
|
73
101
|
* <p>You aren't authorized to perform this operation.</p>
|
|
74
102
|
*
|
|
103
|
+
* @throws {@link AppSyncServiceException}
|
|
104
|
+
* <p>Base exception class for all service exceptions from AppSync service.</p>
|
|
75
105
|
*
|
|
76
106
|
*/
|
|
77
107
|
export declare class CreateFunctionCommand extends $Command<CreateFunctionCommandInput, CreateFunctionCommandOutput, AppSyncClientResolvedConfig> {
|
|
@@ -76,9 +76,74 @@ export interface CreateGraphqlApiCommandOutput extends CreateGraphqlApiResponse,
|
|
|
76
76
|
* authorizerUri: "STRING_VALUE", // required
|
|
77
77
|
* identityValidationExpression: "STRING_VALUE",
|
|
78
78
|
* },
|
|
79
|
+
* visibility: "GLOBAL" || "PRIVATE",
|
|
79
80
|
* };
|
|
80
81
|
* const command = new CreateGraphqlApiCommand(input);
|
|
81
82
|
* const response = await client.send(command);
|
|
83
|
+
* // { // CreateGraphqlApiResponse
|
|
84
|
+
* // graphqlApi: { // GraphqlApi
|
|
85
|
+
* // name: "STRING_VALUE",
|
|
86
|
+
* // apiId: "STRING_VALUE",
|
|
87
|
+
* // authenticationType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA",
|
|
88
|
+
* // logConfig: { // LogConfig
|
|
89
|
+
* // fieldLogLevel: "NONE" || "ERROR" || "ALL", // required
|
|
90
|
+
* // cloudWatchLogsRoleArn: "STRING_VALUE", // required
|
|
91
|
+
* // excludeVerboseContent: true || false,
|
|
92
|
+
* // },
|
|
93
|
+
* // userPoolConfig: { // UserPoolConfig
|
|
94
|
+
* // userPoolId: "STRING_VALUE", // required
|
|
95
|
+
* // awsRegion: "STRING_VALUE", // required
|
|
96
|
+
* // defaultAction: "ALLOW" || "DENY", // required
|
|
97
|
+
* // appIdClientRegex: "STRING_VALUE",
|
|
98
|
+
* // },
|
|
99
|
+
* // openIDConnectConfig: { // OpenIDConnectConfig
|
|
100
|
+
* // issuer: "STRING_VALUE", // required
|
|
101
|
+
* // clientId: "STRING_VALUE",
|
|
102
|
+
* // iatTTL: Number("long"),
|
|
103
|
+
* // authTTL: Number("long"),
|
|
104
|
+
* // },
|
|
105
|
+
* // arn: "STRING_VALUE",
|
|
106
|
+
* // uris: { // MapOfStringToString
|
|
107
|
+
* // "<keys>": "STRING_VALUE",
|
|
108
|
+
* // },
|
|
109
|
+
* // tags: { // TagMap
|
|
110
|
+
* // "<keys>": "STRING_VALUE",
|
|
111
|
+
* // },
|
|
112
|
+
* // additionalAuthenticationProviders: [ // AdditionalAuthenticationProviders
|
|
113
|
+
* // { // AdditionalAuthenticationProvider
|
|
114
|
+
* // authenticationType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA",
|
|
115
|
+
* // openIDConnectConfig: {
|
|
116
|
+
* // issuer: "STRING_VALUE", // required
|
|
117
|
+
* // clientId: "STRING_VALUE",
|
|
118
|
+
* // iatTTL: Number("long"),
|
|
119
|
+
* // authTTL: Number("long"),
|
|
120
|
+
* // },
|
|
121
|
+
* // userPoolConfig: { // CognitoUserPoolConfig
|
|
122
|
+
* // userPoolId: "STRING_VALUE", // required
|
|
123
|
+
* // awsRegion: "STRING_VALUE", // required
|
|
124
|
+
* // appIdClientRegex: "STRING_VALUE",
|
|
125
|
+
* // },
|
|
126
|
+
* // lambdaAuthorizerConfig: { // LambdaAuthorizerConfig
|
|
127
|
+
* // authorizerResultTtlInSeconds: Number("int"),
|
|
128
|
+
* // authorizerUri: "STRING_VALUE", // required
|
|
129
|
+
* // identityValidationExpression: "STRING_VALUE",
|
|
130
|
+
* // },
|
|
131
|
+
* // },
|
|
132
|
+
* // ],
|
|
133
|
+
* // xrayEnabled: true || false,
|
|
134
|
+
* // wafWebAclArn: "STRING_VALUE",
|
|
135
|
+
* // lambdaAuthorizerConfig: {
|
|
136
|
+
* // authorizerResultTtlInSeconds: Number("int"),
|
|
137
|
+
* // authorizerUri: "STRING_VALUE", // required
|
|
138
|
+
* // identityValidationExpression: "STRING_VALUE",
|
|
139
|
+
* // },
|
|
140
|
+
* // dns: {
|
|
141
|
+
* // "<keys>": "STRING_VALUE",
|
|
142
|
+
* // },
|
|
143
|
+
* // visibility: "GLOBAL" || "PRIVATE",
|
|
144
|
+
* // },
|
|
145
|
+
* // };
|
|
146
|
+
*
|
|
82
147
|
* ```
|
|
83
148
|
*
|
|
84
149
|
* @param CreateGraphqlApiCommandInput - {@link CreateGraphqlApiCommandInput}
|
|
@@ -91,12 +156,12 @@ export interface CreateGraphqlApiCommandOutput extends CreateGraphqlApiResponse,
|
|
|
91
156
|
* <p>The GraphQL API exceeded a limit. Try your request again.</p>
|
|
92
157
|
*
|
|
93
158
|
* @throws {@link BadRequestException} (client fault)
|
|
94
|
-
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
95
|
-
* field values, and then try again.</p>
|
|
159
|
+
* <p>The request is not well formed. For example, a value is invalid or a required field is
|
|
160
|
+
* missing. Check the field values, and then try again.</p>
|
|
96
161
|
*
|
|
97
162
|
* @throws {@link ConcurrentModificationException} (client fault)
|
|
98
|
-
* <p>Another modification is in progress at this time and it must complete before you can
|
|
99
|
-
* change.</p>
|
|
163
|
+
* <p>Another modification is in progress at this time and it must complete before you can
|
|
164
|
+
* make your change.</p>
|
|
100
165
|
*
|
|
101
166
|
* @throws {@link InternalFailureException} (server fault)
|
|
102
167
|
* <p>An internal AppSync error occurred. Try your request again.</p>
|
|
@@ -107,6 +172,8 @@ export interface CreateGraphqlApiCommandOutput extends CreateGraphqlApiResponse,
|
|
|
107
172
|
* @throws {@link UnauthorizedException} (client fault)
|
|
108
173
|
* <p>You aren't authorized to perform this operation.</p>
|
|
109
174
|
*
|
|
175
|
+
* @throws {@link AppSyncServiceException}
|
|
176
|
+
* <p>Base exception class for all service exceptions from AppSync service.</p>
|
|
110
177
|
*
|
|
111
178
|
*/
|
|
112
179
|
export declare class CreateGraphqlApiCommand extends $Command<CreateGraphqlApiCommandInput, CreateGraphqlApiCommandOutput, AppSyncClientResolvedConfig> {
|