@aws-sdk/client-appsync 3.261.0 → 3.264.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/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +8 -3
- package/dist-cjs/protocols/Aws_restJson1.js +19 -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 +19 -0
- package/dist-types/models/models_0.d.ts +31 -0
- package/dist-types/ts3.4/models/models_0.d.ts +10 -0
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [
|
|
4
|
+
const q = "fn", r = "argv", s = "ref";
|
|
5
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://appsync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://appsync-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://appsync.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://appsync.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DynamodbDataSourceConfigFilterSensitiveLog = exports.DeltaSyncConfigFilterSensitiveLog = exports.CreateApiKeyResponseFilterSensitiveLog = exports.CreateApiKeyRequestFilterSensitiveLog = exports.CreateApiCacheResponseFilterSensitiveLog = exports.CreateApiCacheRequestFilterSensitiveLog = exports.AuthorizationConfigFilterSensitiveLog = exports.AwsIamConfigFilterSensitiveLog = exports.BadRequestDetailFilterSensitiveLog = exports.CodeErrorFilterSensitiveLog = exports.CodeErrorLocationFilterSensitiveLog = exports.AssociateApiResponseFilterSensitiveLog = exports.AssociateApiRequestFilterSensitiveLog = exports.AppSyncRuntimeFilterSensitiveLog = exports.ApiKeyFilterSensitiveLog = exports.ApiCacheFilterSensitiveLog = exports.ApiAssociationFilterSensitiveLog = exports.AdditionalAuthenticationProviderFilterSensitiveLog = exports.CognitoUserPoolConfigFilterSensitiveLog = exports.OpenIDConnectConfigFilterSensitiveLog = exports.LambdaAuthorizerConfigFilterSensitiveLog = 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;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.UpdateTypeResponseFilterSensitiveLog = exports.UpdateTypeRequestFilterSensitiveLog = exports.UpdateResolverResponseFilterSensitiveLog = exports.UpdateResolverRequestFilterSensitiveLog = exports.UpdateGraphqlApiResponseFilterSensitiveLog = exports.UpdateGraphqlApiRequestFilterSensitiveLog = exports.UpdateFunctionResponseFilterSensitiveLog = exports.UpdateFunctionRequestFilterSensitiveLog = exports.UpdateDomainNameResponseFilterSensitiveLog = exports.UpdateDomainNameRequestFilterSensitiveLog = exports.UpdateDataSourceResponseFilterSensitiveLog = exports.UpdateDataSourceRequestFilterSensitiveLog = exports.UpdateApiKeyResponseFilterSensitiveLog = exports.UpdateApiKeyRequestFilterSensitiveLog = exports.UpdateApiCacheResponseFilterSensitiveLog = exports.UpdateApiCacheRequestFilterSensitiveLog = void 0;
|
|
4
|
+
exports.EvaluateCodeRequestFilterSensitiveLog = exports.DisassociateApiResponseFilterSensitiveLog = exports.DisassociateApiRequestFilterSensitiveLog = exports.DeleteTypeResponseFilterSensitiveLog = exports.DeleteTypeRequestFilterSensitiveLog = exports.DeleteResolverResponseFilterSensitiveLog = exports.DeleteResolverRequestFilterSensitiveLog = exports.DeleteGraphqlApiResponseFilterSensitiveLog = exports.DeleteGraphqlApiRequestFilterSensitiveLog = exports.DeleteFunctionResponseFilterSensitiveLog = exports.DeleteFunctionRequestFilterSensitiveLog = exports.DeleteDomainNameResponseFilterSensitiveLog = exports.DeleteDomainNameRequestFilterSensitiveLog = exports.DeleteDataSourceResponseFilterSensitiveLog = exports.DeleteDataSourceRequestFilterSensitiveLog = exports.DeleteApiKeyResponseFilterSensitiveLog = exports.DeleteApiKeyRequestFilterSensitiveLog = exports.DeleteApiCacheResponseFilterSensitiveLog = exports.DeleteApiCacheRequestFilterSensitiveLog = exports.CreateTypeResponseFilterSensitiveLog = exports.TypeFilterSensitiveLog = exports.CreateTypeRequestFilterSensitiveLog = exports.CreateResolverResponseFilterSensitiveLog = exports.ResolverFilterSensitiveLog = exports.CreateResolverRequestFilterSensitiveLog = exports.PipelineConfigFilterSensitiveLog = exports.CachingConfigFilterSensitiveLog = exports.CreateGraphqlApiResponseFilterSensitiveLog = exports.GraphqlApiFilterSensitiveLog = exports.CreateGraphqlApiRequestFilterSensitiveLog = exports.UserPoolConfigFilterSensitiveLog = exports.LogConfigFilterSensitiveLog = exports.CreateFunctionResponseFilterSensitiveLog = exports.FunctionConfigurationFilterSensitiveLog = exports.CreateFunctionRequestFilterSensitiveLog = exports.SyncConfigFilterSensitiveLog = exports.LambdaConflictHandlerConfigFilterSensitiveLog = exports.CreateDomainNameResponseFilterSensitiveLog = exports.DomainNameConfigFilterSensitiveLog = exports.CreateDomainNameRequestFilterSensitiveLog = exports.CreateDataSourceResponseFilterSensitiveLog = exports.DataSourceFilterSensitiveLog = exports.CreateDataSourceRequestFilterSensitiveLog = exports.RelationalDatabaseDataSourceConfigFilterSensitiveLog = exports.RdsHttpEndpointConfigFilterSensitiveLog = exports.OpenSearchServiceDataSourceConfigFilterSensitiveLog = exports.LambdaDataSourceConfigFilterSensitiveLog = exports.HttpDataSourceConfigFilterSensitiveLog = exports.EventBridgeDataSourceConfigFilterSensitiveLog = exports.ElasticsearchDataSourceConfigFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StartSchemaCreationResponseFilterSensitiveLog = exports.StartSchemaCreationRequestFilterSensitiveLog = exports.ListTypesResponseFilterSensitiveLog = exports.ListTypesRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListResolversByFunctionResponseFilterSensitiveLog = exports.ListResolversByFunctionRequestFilterSensitiveLog = exports.ListResolversResponseFilterSensitiveLog = exports.ListResolversRequestFilterSensitiveLog = exports.ListGraphqlApisResponseFilterSensitiveLog = exports.ListGraphqlApisRequestFilterSensitiveLog = exports.ListFunctionsResponseFilterSensitiveLog = exports.ListFunctionsRequestFilterSensitiveLog = exports.ListDomainNamesResponseFilterSensitiveLog = exports.ListDomainNamesRequestFilterSensitiveLog = exports.ListDataSourcesResponseFilterSensitiveLog = exports.ListDataSourcesRequestFilterSensitiveLog = exports.ListApiKeysResponseFilterSensitiveLog = exports.ListApiKeysRequestFilterSensitiveLog = exports.GetTypeResponseFilterSensitiveLog = exports.GetTypeRequestFilterSensitiveLog = exports.GetSchemaCreationStatusResponseFilterSensitiveLog = exports.GetSchemaCreationStatusRequestFilterSensitiveLog = exports.GetResolverResponseFilterSensitiveLog = exports.GetResolverRequestFilterSensitiveLog = exports.GetIntrospectionSchemaResponseFilterSensitiveLog = exports.GetIntrospectionSchemaRequestFilterSensitiveLog = exports.GetGraphqlApiResponseFilterSensitiveLog = exports.GetGraphqlApiRequestFilterSensitiveLog = exports.GetFunctionResponseFilterSensitiveLog = exports.GetFunctionRequestFilterSensitiveLog = exports.GetDomainNameResponseFilterSensitiveLog = exports.GetDomainNameRequestFilterSensitiveLog = exports.GetDataSourceResponseFilterSensitiveLog = exports.GetDataSourceRequestFilterSensitiveLog = exports.GetApiCacheResponseFilterSensitiveLog = exports.GetApiCacheRequestFilterSensitiveLog = exports.GetApiAssociationResponseFilterSensitiveLog = exports.GetApiAssociationRequestFilterSensitiveLog = exports.FlushApiCacheResponseFilterSensitiveLog = exports.FlushApiCacheRequestFilterSensitiveLog = exports.EvaluateMappingTemplateResponseFilterSensitiveLog = exports.ErrorDetailFilterSensitiveLog = exports.EvaluateMappingTemplateRequestFilterSensitiveLog = exports.EvaluateCodeResponseFilterSensitiveLog = exports.EvaluateCodeErrorDetailFilterSensitiveLog = void 0;
|
|
6
|
+
exports.UpdateTypeResponseFilterSensitiveLog = exports.UpdateTypeRequestFilterSensitiveLog = exports.UpdateResolverResponseFilterSensitiveLog = exports.UpdateResolverRequestFilterSensitiveLog = exports.UpdateGraphqlApiResponseFilterSensitiveLog = exports.UpdateGraphqlApiRequestFilterSensitiveLog = exports.UpdateFunctionResponseFilterSensitiveLog = exports.UpdateFunctionRequestFilterSensitiveLog = exports.UpdateDomainNameResponseFilterSensitiveLog = exports.UpdateDomainNameRequestFilterSensitiveLog = exports.UpdateDataSourceResponseFilterSensitiveLog = exports.UpdateDataSourceRequestFilterSensitiveLog = exports.UpdateApiKeyResponseFilterSensitiveLog = exports.UpdateApiKeyRequestFilterSensitiveLog = exports.UpdateApiCacheResponseFilterSensitiveLog = exports.UpdateApiCacheRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = void 0;
|
|
7
7
|
const AppSyncServiceException_1 = require("./AppSyncServiceException");
|
|
8
8
|
class AccessDeniedException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
9
9
|
constructor(opts) {
|
|
@@ -202,6 +202,7 @@ var DataSourceType;
|
|
|
202
202
|
(function (DataSourceType) {
|
|
203
203
|
DataSourceType["AMAZON_DYNAMODB"] = "AMAZON_DYNAMODB";
|
|
204
204
|
DataSourceType["AMAZON_ELASTICSEARCH"] = "AMAZON_ELASTICSEARCH";
|
|
205
|
+
DataSourceType["AMAZON_EVENTBRIDGE"] = "AMAZON_EVENTBRIDGE";
|
|
205
206
|
DataSourceType["AMAZON_OPENSEARCH_SERVICE"] = "AMAZON_OPENSEARCH_SERVICE";
|
|
206
207
|
DataSourceType["AWS_LAMBDA"] = "AWS_LAMBDA";
|
|
207
208
|
DataSourceType["HTTP"] = "HTTP";
|
|
@@ -356,6 +357,10 @@ const ElasticsearchDataSourceConfigFilterSensitiveLog = (obj) => ({
|
|
|
356
357
|
...obj,
|
|
357
358
|
});
|
|
358
359
|
exports.ElasticsearchDataSourceConfigFilterSensitiveLog = ElasticsearchDataSourceConfigFilterSensitiveLog;
|
|
360
|
+
const EventBridgeDataSourceConfigFilterSensitiveLog = (obj) => ({
|
|
361
|
+
...obj,
|
|
362
|
+
});
|
|
363
|
+
exports.EventBridgeDataSourceConfigFilterSensitiveLog = EventBridgeDataSourceConfigFilterSensitiveLog;
|
|
359
364
|
const HttpDataSourceConfigFilterSensitiveLog = (obj) => ({
|
|
360
365
|
...obj,
|
|
361
366
|
});
|
|
@@ -95,6 +95,9 @@ const serializeAws_restJson1CreateDataSourceCommand = async (input, context) =>
|
|
|
95
95
|
...(input.elasticsearchConfig != null && {
|
|
96
96
|
elasticsearchConfig: serializeAws_restJson1ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
|
|
97
97
|
}),
|
|
98
|
+
...(input.eventBridgeConfig != null && {
|
|
99
|
+
eventBridgeConfig: serializeAws_restJson1EventBridgeDataSourceConfig(input.eventBridgeConfig, context),
|
|
100
|
+
}),
|
|
98
101
|
...(input.httpConfig != null && {
|
|
99
102
|
httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
|
|
100
103
|
}),
|
|
@@ -1013,6 +1016,9 @@ const serializeAws_restJson1UpdateDataSourceCommand = async (input, context) =>
|
|
|
1013
1016
|
...(input.elasticsearchConfig != null && {
|
|
1014
1017
|
elasticsearchConfig: serializeAws_restJson1ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
|
|
1015
1018
|
}),
|
|
1019
|
+
...(input.eventBridgeConfig != null && {
|
|
1020
|
+
eventBridgeConfig: serializeAws_restJson1EventBridgeDataSourceConfig(input.eventBridgeConfig, context),
|
|
1021
|
+
}),
|
|
1016
1022
|
...(input.httpConfig != null && {
|
|
1017
1023
|
httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
|
|
1018
1024
|
}),
|
|
@@ -3706,6 +3712,11 @@ const serializeAws_restJson1ElasticsearchDataSourceConfig = (input, context) =>
|
|
|
3706
3712
|
...(input.endpoint != null && { endpoint: input.endpoint }),
|
|
3707
3713
|
};
|
|
3708
3714
|
};
|
|
3715
|
+
const serializeAws_restJson1EventBridgeDataSourceConfig = (input, context) => {
|
|
3716
|
+
return {
|
|
3717
|
+
...(input.eventBusArn != null && { eventBusArn: input.eventBusArn }),
|
|
3718
|
+
};
|
|
3719
|
+
};
|
|
3709
3720
|
const serializeAws_restJson1FunctionsIds = (input, context) => {
|
|
3710
3721
|
return input
|
|
3711
3722
|
.filter((e) => e != null)
|
|
@@ -3957,6 +3968,9 @@ const deserializeAws_restJson1DataSource = (output, context) => {
|
|
|
3957
3968
|
elasticsearchConfig: output.elasticsearchConfig != null
|
|
3958
3969
|
? deserializeAws_restJson1ElasticsearchDataSourceConfig(output.elasticsearchConfig, context)
|
|
3959
3970
|
: undefined,
|
|
3971
|
+
eventBridgeConfig: output.eventBridgeConfig != null
|
|
3972
|
+
? deserializeAws_restJson1EventBridgeDataSourceConfig(output.eventBridgeConfig, context)
|
|
3973
|
+
: undefined,
|
|
3960
3974
|
httpConfig: output.httpConfig != null ? deserializeAws_restJson1HttpDataSourceConfig(output.httpConfig, context) : undefined,
|
|
3961
3975
|
lambdaConfig: output.lambdaConfig != null
|
|
3962
3976
|
? deserializeAws_restJson1LambdaDataSourceConfig(output.lambdaConfig, context)
|
|
@@ -4038,6 +4052,11 @@ const deserializeAws_restJson1EvaluateCodeErrorDetail = (output, context) => {
|
|
|
4038
4052
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
4039
4053
|
};
|
|
4040
4054
|
};
|
|
4055
|
+
const deserializeAws_restJson1EventBridgeDataSourceConfig = (output, context) => {
|
|
4056
|
+
return {
|
|
4057
|
+
eventBusArn: (0, smithy_client_1.expectString)(output.eventBusArn),
|
|
4058
|
+
};
|
|
4059
|
+
};
|
|
4041
4060
|
const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
4042
4061
|
return {
|
|
4043
4062
|
code: (0, smithy_client_1.expectString)(output.code),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [
|
|
1
|
+
const q = "fn", r = "argv", s = "ref";
|
|
2
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://appsync-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://appsync-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://appsync.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://appsync.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -186,6 +186,7 @@ export var DataSourceType;
|
|
|
186
186
|
(function (DataSourceType) {
|
|
187
187
|
DataSourceType["AMAZON_DYNAMODB"] = "AMAZON_DYNAMODB";
|
|
188
188
|
DataSourceType["AMAZON_ELASTICSEARCH"] = "AMAZON_ELASTICSEARCH";
|
|
189
|
+
DataSourceType["AMAZON_EVENTBRIDGE"] = "AMAZON_EVENTBRIDGE";
|
|
189
190
|
DataSourceType["AMAZON_OPENSEARCH_SERVICE"] = "AMAZON_OPENSEARCH_SERVICE";
|
|
190
191
|
DataSourceType["AWS_LAMBDA"] = "AWS_LAMBDA";
|
|
191
192
|
DataSourceType["HTTP"] = "HTTP";
|
|
@@ -317,6 +318,9 @@ export const DynamodbDataSourceConfigFilterSensitiveLog = (obj) => ({
|
|
|
317
318
|
export const ElasticsearchDataSourceConfigFilterSensitiveLog = (obj) => ({
|
|
318
319
|
...obj,
|
|
319
320
|
});
|
|
321
|
+
export const EventBridgeDataSourceConfigFilterSensitiveLog = (obj) => ({
|
|
322
|
+
...obj,
|
|
323
|
+
});
|
|
320
324
|
export const HttpDataSourceConfigFilterSensitiveLog = (obj) => ({
|
|
321
325
|
...obj,
|
|
322
326
|
});
|
|
@@ -87,6 +87,9 @@ export const serializeAws_restJson1CreateDataSourceCommand = async (input, conte
|
|
|
87
87
|
...(input.elasticsearchConfig != null && {
|
|
88
88
|
elasticsearchConfig: serializeAws_restJson1ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
|
|
89
89
|
}),
|
|
90
|
+
...(input.eventBridgeConfig != null && {
|
|
91
|
+
eventBridgeConfig: serializeAws_restJson1EventBridgeDataSourceConfig(input.eventBridgeConfig, context),
|
|
92
|
+
}),
|
|
90
93
|
...(input.httpConfig != null && {
|
|
91
94
|
httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
|
|
92
95
|
}),
|
|
@@ -963,6 +966,9 @@ export const serializeAws_restJson1UpdateDataSourceCommand = async (input, conte
|
|
|
963
966
|
...(input.elasticsearchConfig != null && {
|
|
964
967
|
elasticsearchConfig: serializeAws_restJson1ElasticsearchDataSourceConfig(input.elasticsearchConfig, context),
|
|
965
968
|
}),
|
|
969
|
+
...(input.eventBridgeConfig != null && {
|
|
970
|
+
eventBridgeConfig: serializeAws_restJson1EventBridgeDataSourceConfig(input.eventBridgeConfig, context),
|
|
971
|
+
}),
|
|
966
972
|
...(input.httpConfig != null && {
|
|
967
973
|
httpConfig: serializeAws_restJson1HttpDataSourceConfig(input.httpConfig, context),
|
|
968
974
|
}),
|
|
@@ -3599,6 +3605,11 @@ const serializeAws_restJson1ElasticsearchDataSourceConfig = (input, context) =>
|
|
|
3599
3605
|
...(input.endpoint != null && { endpoint: input.endpoint }),
|
|
3600
3606
|
};
|
|
3601
3607
|
};
|
|
3608
|
+
const serializeAws_restJson1EventBridgeDataSourceConfig = (input, context) => {
|
|
3609
|
+
return {
|
|
3610
|
+
...(input.eventBusArn != null && { eventBusArn: input.eventBusArn }),
|
|
3611
|
+
};
|
|
3612
|
+
};
|
|
3602
3613
|
const serializeAws_restJson1FunctionsIds = (input, context) => {
|
|
3603
3614
|
return input
|
|
3604
3615
|
.filter((e) => e != null)
|
|
@@ -3850,6 +3861,9 @@ const deserializeAws_restJson1DataSource = (output, context) => {
|
|
|
3850
3861
|
elasticsearchConfig: output.elasticsearchConfig != null
|
|
3851
3862
|
? deserializeAws_restJson1ElasticsearchDataSourceConfig(output.elasticsearchConfig, context)
|
|
3852
3863
|
: undefined,
|
|
3864
|
+
eventBridgeConfig: output.eventBridgeConfig != null
|
|
3865
|
+
? deserializeAws_restJson1EventBridgeDataSourceConfig(output.eventBridgeConfig, context)
|
|
3866
|
+
: undefined,
|
|
3853
3867
|
httpConfig: output.httpConfig != null ? deserializeAws_restJson1HttpDataSourceConfig(output.httpConfig, context) : undefined,
|
|
3854
3868
|
lambdaConfig: output.lambdaConfig != null
|
|
3855
3869
|
? deserializeAws_restJson1LambdaDataSourceConfig(output.lambdaConfig, context)
|
|
@@ -3931,6 +3945,11 @@ const deserializeAws_restJson1EvaluateCodeErrorDetail = (output, context) => {
|
|
|
3931
3945
|
message: __expectString(output.message),
|
|
3932
3946
|
};
|
|
3933
3947
|
};
|
|
3948
|
+
const deserializeAws_restJson1EventBridgeDataSourceConfig = (output, context) => {
|
|
3949
|
+
return {
|
|
3950
|
+
eventBusArn: __expectString(output.eventBusArn),
|
|
3951
|
+
};
|
|
3952
|
+
};
|
|
3934
3953
|
const deserializeAws_restJson1FunctionConfiguration = (output, context) => {
|
|
3935
3954
|
return {
|
|
3936
3955
|
code: __expectString(output.code),
|
|
@@ -836,6 +836,16 @@ export interface ElasticsearchDataSourceConfig {
|
|
|
836
836
|
*/
|
|
837
837
|
awsRegion: string | undefined;
|
|
838
838
|
}
|
|
839
|
+
/**
|
|
840
|
+
* <p>Describes an Amazon EventBridge bus data source configuration.</p>
|
|
841
|
+
*/
|
|
842
|
+
export interface EventBridgeDataSourceConfig {
|
|
843
|
+
/**
|
|
844
|
+
* <p>The ARN of the event bus. For more information about event buses, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus.html">Amazon EventBridge event
|
|
845
|
+
* buses</a>.</p>
|
|
846
|
+
*/
|
|
847
|
+
eventBusArn: string | undefined;
|
|
848
|
+
}
|
|
839
849
|
/**
|
|
840
850
|
* <p>Describes an HTTP data source configuration.</p>
|
|
841
851
|
*/
|
|
@@ -924,6 +934,7 @@ export interface RelationalDatabaseDataSourceConfig {
|
|
|
924
934
|
export declare enum DataSourceType {
|
|
925
935
|
AMAZON_DYNAMODB = "AMAZON_DYNAMODB",
|
|
926
936
|
AMAZON_ELASTICSEARCH = "AMAZON_ELASTICSEARCH",
|
|
937
|
+
AMAZON_EVENTBRIDGE = "AMAZON_EVENTBRIDGE",
|
|
927
938
|
AMAZON_OPENSEARCH_SERVICE = "AMAZON_OPENSEARCH_SERVICE",
|
|
928
939
|
AWS_LAMBDA = "AWS_LAMBDA",
|
|
929
940
|
HTTP = "HTTP",
|
|
@@ -979,6 +990,10 @@ export interface CreateDataSourceRequest {
|
|
|
979
990
|
* <p>Relational database settings.</p>
|
|
980
991
|
*/
|
|
981
992
|
relationalDatabaseConfig?: RelationalDatabaseDataSourceConfig;
|
|
993
|
+
/**
|
|
994
|
+
* <p>Amazon EventBridge settings.</p>
|
|
995
|
+
*/
|
|
996
|
+
eventBridgeConfig?: EventBridgeDataSourceConfig;
|
|
982
997
|
}
|
|
983
998
|
/**
|
|
984
999
|
* <p>Describes a data source.</p>
|
|
@@ -1020,6 +1035,10 @@ export interface DataSource {
|
|
|
1020
1035
|
* </li>
|
|
1021
1036
|
* <li>
|
|
1022
1037
|
* <p>
|
|
1038
|
+
* <b>AMAZON_EVENTBRIDGE</b>: The data source is an Amazon EventBridge configuration.</p>
|
|
1039
|
+
* </li>
|
|
1040
|
+
* <li>
|
|
1041
|
+
* <p>
|
|
1023
1042
|
* <b>NONE</b>: There is no data source. Use this type when you want to
|
|
1024
1043
|
* invoke a GraphQL operation without connecting to a data source, such as when you're performing data
|
|
1025
1044
|
* transformation with resolvers or invoking a subscription from a mutation.</p>
|
|
@@ -1065,6 +1084,10 @@ export interface DataSource {
|
|
|
1065
1084
|
* <p>Relational database settings.</p>
|
|
1066
1085
|
*/
|
|
1067
1086
|
relationalDatabaseConfig?: RelationalDatabaseDataSourceConfig;
|
|
1087
|
+
/**
|
|
1088
|
+
* <p>Amazon EventBridge settings.</p>
|
|
1089
|
+
*/
|
|
1090
|
+
eventBridgeConfig?: EventBridgeDataSourceConfig;
|
|
1068
1091
|
}
|
|
1069
1092
|
export interface CreateDataSourceResponse {
|
|
1070
1093
|
/**
|
|
@@ -2564,6 +2587,10 @@ export interface UpdateDataSourceRequest {
|
|
|
2564
2587
|
* <p>The new relational database configuration.</p>
|
|
2565
2588
|
*/
|
|
2566
2589
|
relationalDatabaseConfig?: RelationalDatabaseDataSourceConfig;
|
|
2590
|
+
/**
|
|
2591
|
+
* <p>The new Amazon EventBridge settings.</p>
|
|
2592
|
+
*/
|
|
2593
|
+
eventBridgeConfig?: EventBridgeDataSourceConfig;
|
|
2567
2594
|
}
|
|
2568
2595
|
export interface UpdateDataSourceResponse {
|
|
2569
2596
|
/**
|
|
@@ -2886,6 +2913,10 @@ export declare const DynamodbDataSourceConfigFilterSensitiveLog: (obj: DynamodbD
|
|
|
2886
2913
|
* @internal
|
|
2887
2914
|
*/
|
|
2888
2915
|
export declare const ElasticsearchDataSourceConfigFilterSensitiveLog: (obj: ElasticsearchDataSourceConfig) => any;
|
|
2916
|
+
/**
|
|
2917
|
+
* @internal
|
|
2918
|
+
*/
|
|
2919
|
+
export declare const EventBridgeDataSourceConfigFilterSensitiveLog: (obj: EventBridgeDataSourceConfig) => any;
|
|
2889
2920
|
/**
|
|
2890
2921
|
* @internal
|
|
2891
2922
|
*/
|
|
@@ -234,6 +234,9 @@ export interface ElasticsearchDataSourceConfig {
|
|
|
234
234
|
endpoint: string | undefined;
|
|
235
235
|
awsRegion: string | undefined;
|
|
236
236
|
}
|
|
237
|
+
export interface EventBridgeDataSourceConfig {
|
|
238
|
+
eventBusArn: string | undefined;
|
|
239
|
+
}
|
|
237
240
|
export interface HttpDataSourceConfig {
|
|
238
241
|
endpoint?: string;
|
|
239
242
|
authorizationConfig?: AuthorizationConfig;
|
|
@@ -262,6 +265,7 @@ export interface RelationalDatabaseDataSourceConfig {
|
|
|
262
265
|
export declare enum DataSourceType {
|
|
263
266
|
AMAZON_DYNAMODB = "AMAZON_DYNAMODB",
|
|
264
267
|
AMAZON_ELASTICSEARCH = "AMAZON_ELASTICSEARCH",
|
|
268
|
+
AMAZON_EVENTBRIDGE = "AMAZON_EVENTBRIDGE",
|
|
265
269
|
AMAZON_OPENSEARCH_SERVICE = "AMAZON_OPENSEARCH_SERVICE",
|
|
266
270
|
AWS_LAMBDA = "AWS_LAMBDA",
|
|
267
271
|
HTTP = "HTTP",
|
|
@@ -280,6 +284,7 @@ export interface CreateDataSourceRequest {
|
|
|
280
284
|
openSearchServiceConfig?: OpenSearchServiceDataSourceConfig;
|
|
281
285
|
httpConfig?: HttpDataSourceConfig;
|
|
282
286
|
relationalDatabaseConfig?: RelationalDatabaseDataSourceConfig;
|
|
287
|
+
eventBridgeConfig?: EventBridgeDataSourceConfig;
|
|
283
288
|
}
|
|
284
289
|
export interface DataSource {
|
|
285
290
|
dataSourceArn?: string;
|
|
@@ -293,6 +298,7 @@ export interface DataSource {
|
|
|
293
298
|
openSearchServiceConfig?: OpenSearchServiceDataSourceConfig;
|
|
294
299
|
httpConfig?: HttpDataSourceConfig;
|
|
295
300
|
relationalDatabaseConfig?: RelationalDatabaseDataSourceConfig;
|
|
301
|
+
eventBridgeConfig?: EventBridgeDataSourceConfig;
|
|
296
302
|
}
|
|
297
303
|
export interface CreateDataSourceResponse {
|
|
298
304
|
dataSource?: DataSource;
|
|
@@ -759,6 +765,7 @@ export interface UpdateDataSourceRequest {
|
|
|
759
765
|
openSearchServiceConfig?: OpenSearchServiceDataSourceConfig;
|
|
760
766
|
httpConfig?: HttpDataSourceConfig;
|
|
761
767
|
relationalDatabaseConfig?: RelationalDatabaseDataSourceConfig;
|
|
768
|
+
eventBridgeConfig?: EventBridgeDataSourceConfig;
|
|
762
769
|
}
|
|
763
770
|
export interface UpdateDataSourceResponse {
|
|
764
771
|
dataSource?: DataSource;
|
|
@@ -886,6 +893,9 @@ export declare const DynamodbDataSourceConfigFilterSensitiveLog: (
|
|
|
886
893
|
export declare const ElasticsearchDataSourceConfigFilterSensitiveLog: (
|
|
887
894
|
obj: ElasticsearchDataSourceConfig
|
|
888
895
|
) => any;
|
|
896
|
+
export declare const EventBridgeDataSourceConfigFilterSensitiveLog: (
|
|
897
|
+
obj: EventBridgeDataSourceConfig
|
|
898
|
+
) => any;
|
|
889
899
|
export declare const HttpDataSourceConfigFilterSensitiveLog: (
|
|
890
900
|
obj: HttpDataSourceConfig
|
|
891
901
|
) => any;
|
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.
|
|
4
|
+
"version": "3.264.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",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.264.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.259.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.264.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.257.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.257.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.257.0",
|
|
29
29
|
"@aws-sdk/middleware-content-length": "3.257.0",
|
|
30
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
+
"@aws-sdk/middleware-endpoint": "3.264.0",
|
|
31
31
|
"@aws-sdk/middleware-host-header": "3.257.0",
|
|
32
32
|
"@aws-sdk/middleware-logger": "3.257.0",
|
|
33
33
|
"@aws-sdk/middleware-recursion-detection": "3.257.0",
|