@aws-sdk/client-appflow 3.212.0 → 3.214.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/Appflow.js +15 -0
- package/dist-cjs/commands/UpdateConnectorRegistrationCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +40 -5
- package/dist-cjs/protocols/Aws_restJson1.js +186 -1
- package/dist-es/Appflow.js +15 -0
- package/dist-es/commands/UpdateConnectorRegistrationCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +29 -0
- package/dist-es/protocols/Aws_restJson1.js +183 -0
- package/dist-types/Appflow.d.ts +18 -3
- package/dist-types/AppflowClient.d.ts +3 -2
- package/dist-types/commands/RegisterConnectorCommand.d.ts +2 -2
- package/dist-types/commands/UnregisterConnectorCommand.d.ts +1 -1
- package/dist-types/commands/UpdateConnectorRegistrationCommand.d.ts +45 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +244 -7
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Appflow.d.ts +17 -0
- package/dist-types/ts3.4/AppflowClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/UpdateConnectorRegistrationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +62 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +2 -2
package/dist-cjs/Appflow.js
CHANGED
|
@@ -23,6 +23,7 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
|
23
23
|
const UnregisterConnectorCommand_1 = require("./commands/UnregisterConnectorCommand");
|
|
24
24
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
25
25
|
const UpdateConnectorProfileCommand_1 = require("./commands/UpdateConnectorProfileCommand");
|
|
26
|
+
const UpdateConnectorRegistrationCommand_1 = require("./commands/UpdateConnectorRegistrationCommand");
|
|
26
27
|
const UpdateFlowCommand_1 = require("./commands/UpdateFlowCommand");
|
|
27
28
|
class Appflow extends AppflowClient_1.AppflowClient {
|
|
28
29
|
createConnectorProfile(args, optionsOrCb, cb) {
|
|
@@ -319,6 +320,20 @@ class Appflow extends AppflowClient_1.AppflowClient {
|
|
|
319
320
|
return this.send(command, optionsOrCb);
|
|
320
321
|
}
|
|
321
322
|
}
|
|
323
|
+
updateConnectorRegistration(args, optionsOrCb, cb) {
|
|
324
|
+
const command = new UpdateConnectorRegistrationCommand_1.UpdateConnectorRegistrationCommand(args);
|
|
325
|
+
if (typeof optionsOrCb === "function") {
|
|
326
|
+
this.send(command, optionsOrCb);
|
|
327
|
+
}
|
|
328
|
+
else if (typeof cb === "function") {
|
|
329
|
+
if (typeof optionsOrCb !== "object")
|
|
330
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
331
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
return this.send(command, optionsOrCb);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
322
337
|
updateFlow(args, optionsOrCb, cb) {
|
|
323
338
|
const command = new UpdateFlowCommand_1.UpdateFlowCommand(args);
|
|
324
339
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateConnectorRegistrationCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class UpdateConnectorRegistrationCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateConnectorRegistrationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "AppflowClient";
|
|
28
|
+
const commandName = "UpdateConnectorRegistrationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.UpdateConnectorRegistrationRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.UpdateConnectorRegistrationResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1UpdateConnectorRegistrationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateConnectorRegistrationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UpdateConnectorRegistrationCommand = UpdateConnectorRegistrationCommand;
|
|
@@ -22,4 +22,5 @@ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
|
22
22
|
tslib_1.__exportStar(require("./UnregisterConnectorCommand"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
24
24
|
tslib_1.__exportStar(require("./UpdateConnectorProfileCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./UpdateConnectorRegistrationCommand"), exports);
|
|
25
26
|
tslib_1.__exportStar(require("./UpdateFlowCommand"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.UpdateFlowResponseFilterSensitiveLog = exports.UpdateFlowRequestFilterSensitiveLog = exports.UpdateConnectorProfileResponseFilterSensitiveLog = exports.UpdateConnectorProfileRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.UnregisterConnectorResponseFilterSensitiveLog = exports.UnregisterConnectorRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StopFlowResponseFilterSensitiveLog = exports.StopFlowRequestFilterSensitiveLog = exports.StartFlowResponseFilterSensitiveLog = exports.StartFlowRequestFilterSensitiveLog = exports.RegisterConnectorResponseFilterSensitiveLog = exports.RegisterConnectorRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListFlowsResponseFilterSensitiveLog = exports.ListFlowsRequestFilterSensitiveLog = exports.ListConnectorsResponseFilterSensitiveLog = exports.ListConnectorsRequestFilterSensitiveLog = exports.ListConnectorEntitiesResponseFilterSensitiveLog = exports.ListConnectorEntitiesRequestFilterSensitiveLog = exports.FlowDefinitionFilterSensitiveLog = exports.DescribeFlowExecutionRecordsResponseFilterSensitiveLog = exports.ExecutionRecordFilterSensitiveLog = exports.ExecutionResultFilterSensitiveLog = exports.ErrorInfoFilterSensitiveLog = exports.DescribeFlowExecutionRecordsRequestFilterSensitiveLog = exports.DescribeFlowResponseFilterSensitiveLog = exports.ExecutionDetailsFilterSensitiveLog = void 0;
|
|
3
|
+
exports.ThrottlingException = exports.ExecutionStatus = exports.ResourceNotFoundException = exports.FlowStatus = exports.DataPullMode = exports.TaskType = exports.OperatorPropertiesKeys = exports.S3InputFileType = exports.PrefixType = exports.PrefixFormat = exports.PathPrefix = exports.FileType = exports.ValidationException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConnectorServerException = exports.PrivateConnectionProvisioningStatus = exports.PrivateConnectionProvisioningFailureCause = exports.ZendeskConnectorOperator = exports.VeevaConnectorOperator = exports.TrendmicroConnectorOperator = exports.SlackConnectorOperator = exports.SingularConnectorOperator = exports.ServiceNowConnectorOperator = exports.SAPODataConnectorOperator = exports.SalesforceConnectorOperator = exports.S3ConnectorOperator = exports.MarketoConnectorOperator = exports.InforNexusConnectorOperator = exports.GoogleAnalyticsConnectorOperator = exports.DynatraceConnectorOperator = exports.DatadogConnectorOperator = exports.Operator = exports.WriteOperationType = exports.TriggerType = exports.ScheduleFrequencyType = exports.Operators = exports.ConnectorType = exports.ConnectorProvisioningType = exports.SalesforceDataTransferApi = exports.ConnectorAuthenticationException = exports.ConnectionMode = exports.ConflictException = exports.CatalogType = exports.AuthenticationType = exports.OAuth2GrantType = exports.OAuth2CustomPropType = exports.AmplitudeConnectorOperator = exports.AggregationType = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.CustomConnectorProfilePropertiesFilterSensitiveLog = exports.OAuth2PropertiesFilterSensitiveLog = exports.ConnectorOperatorFilterSensitiveLog = exports.ConnectorOAuthRequestFilterSensitiveLog = exports.ConnectorEntityFieldFilterSensitiveLog = exports.SupportedFieldTypeDetailsFilterSensitiveLog = exports.FieldTypeDetailsFilterSensitiveLog = exports.RangeFilterSensitiveLog = exports.SourceFieldPropertiesFilterSensitiveLog = exports.DestinationFieldPropertiesFilterSensitiveLog = exports.ConnectorEntityFilterSensitiveLog = exports.ConnectorDetailFilterSensitiveLog = exports.ConnectorConfigurationFilterSensitiveLog = exports.ConnectorRuntimeSettingFilterSensitiveLog = exports.ConnectorProvisioningConfigFilterSensitiveLog = exports.LambdaConnectorProvisioningConfigFilterSensitiveLog = exports.ConnectorMetadataFilterSensitiveLog = exports.ZendeskMetadataFilterSensitiveLog = exports.VeevaMetadataFilterSensitiveLog = exports.UpsolverMetadataFilterSensitiveLog = exports.TrendmicroMetadataFilterSensitiveLog = exports.SnowflakeMetadataFilterSensitiveLog = exports.SlackMetadataFilterSensitiveLog = exports.SingularMetadataFilterSensitiveLog = exports.ServiceNowMetadataFilterSensitiveLog = exports.SAPODataMetadataFilterSensitiveLog = exports.SalesforceMetadataFilterSensitiveLog = exports.S3MetadataFilterSensitiveLog = exports.RedshiftMetadataFilterSensitiveLog = exports.MarketoMetadataFilterSensitiveLog = exports.InforNexusMetadataFilterSensitiveLog = exports.HoneycodeMetadataFilterSensitiveLog = exports.GoogleAnalyticsMetadataFilterSensitiveLog = exports.EventBridgeMetadataFilterSensitiveLog = exports.DynatraceMetadataFilterSensitiveLog = exports.DatadogMetadataFilterSensitiveLog = exports.CustomerProfilesMetadataFilterSensitiveLog = exports.BasicAuthCredentialsFilterSensitiveLog = exports.AuthenticationConfigFilterSensitiveLog = exports.OAuth2DefaultsFilterSensitiveLog = exports.OAuth2CustomParameterFilterSensitiveLog = exports.CustomAuthConfigFilterSensitiveLog = exports.AuthParameterFilterSensitiveLog = exports.ApiKeyCredentialsFilterSensitiveLog = exports.AmplitudeSourcePropertiesFilterSensitiveLog = exports.AmplitudeMetadataFilterSensitiveLog = exports.AmplitudeConnectorProfilePropertiesFilterSensitiveLog = exports.AmplitudeConnectorProfileCredentialsFilterSensitiveLog = exports.AggregationConfigFilterSensitiveLog = exports.UnsupportedOperationException = void 0;
|
|
5
|
+
exports.LookoutMetricsDestinationPropertiesFilterSensitiveLog = exports.HoneycodeDestinationPropertiesFilterSensitiveLog = exports.EventBridgeDestinationPropertiesFilterSensitiveLog = exports.CustomerProfilesDestinationPropertiesFilterSensitiveLog = exports.CustomConnectorDestinationPropertiesFilterSensitiveLog = exports.ErrorHandlingConfigFilterSensitiveLog = exports.CreateConnectorProfileResponseFilterSensitiveLog = exports.CreateConnectorProfileRequestFilterSensitiveLog = exports.ConnectorProfileConfigFilterSensitiveLog = exports.ConnectorProfileCredentialsFilterSensitiveLog = exports.ZendeskConnectorProfileCredentialsFilterSensitiveLog = exports.VeevaConnectorProfileCredentialsFilterSensitiveLog = exports.TrendmicroConnectorProfileCredentialsFilterSensitiveLog = exports.SnowflakeConnectorProfileCredentialsFilterSensitiveLog = exports.SlackConnectorProfileCredentialsFilterSensitiveLog = exports.SingularConnectorProfileCredentialsFilterSensitiveLog = exports.ServiceNowConnectorProfileCredentialsFilterSensitiveLog = exports.SAPODataConnectorProfileCredentialsFilterSensitiveLog = exports.OAuthCredentialsFilterSensitiveLog = exports.SalesforceConnectorProfileCredentialsFilterSensitiveLog = exports.RedshiftConnectorProfileCredentialsFilterSensitiveLog = exports.MarketoConnectorProfileCredentialsFilterSensitiveLog = exports.InforNexusConnectorProfileCredentialsFilterSensitiveLog = exports.HoneycodeConnectorProfileCredentialsFilterSensitiveLog = exports.GoogleAnalyticsConnectorProfileCredentialsFilterSensitiveLog = exports.DynatraceConnectorProfileCredentialsFilterSensitiveLog = exports.DatadogConnectorProfileCredentialsFilterSensitiveLog = exports.CustomConnectorProfileCredentialsFilterSensitiveLog = exports.OAuth2CredentialsFilterSensitiveLog = exports.CustomAuthCredentialsFilterSensitiveLog = exports.ConnectorProfileFilterSensitiveLog = exports.PrivateConnectionProvisioningStateFilterSensitiveLog = exports.ConnectorProfilePropertiesFilterSensitiveLog = exports.ZendeskConnectorProfilePropertiesFilterSensitiveLog = exports.VeevaConnectorProfilePropertiesFilterSensitiveLog = exports.TrendmicroConnectorProfilePropertiesFilterSensitiveLog = exports.SnowflakeConnectorProfilePropertiesFilterSensitiveLog = exports.SlackConnectorProfilePropertiesFilterSensitiveLog = exports.SingularConnectorProfilePropertiesFilterSensitiveLog = exports.ServiceNowConnectorProfilePropertiesFilterSensitiveLog = exports.SAPODataConnectorProfilePropertiesFilterSensitiveLog = exports.OAuthPropertiesFilterSensitiveLog = exports.SalesforceConnectorProfilePropertiesFilterSensitiveLog = exports.RedshiftConnectorProfilePropertiesFilterSensitiveLog = exports.MarketoConnectorProfilePropertiesFilterSensitiveLog = exports.InforNexusConnectorProfilePropertiesFilterSensitiveLog = exports.HoneycodeConnectorProfilePropertiesFilterSensitiveLog = exports.GoogleAnalyticsConnectorProfilePropertiesFilterSensitiveLog = exports.DynatraceConnectorProfilePropertiesFilterSensitiveLog = exports.DatadogConnectorProfilePropertiesFilterSensitiveLog = void 0;
|
|
6
|
+
exports.DescribeConnectorProfilesRequestFilterSensitiveLog = exports.DescribeConnectorEntityResponseFilterSensitiveLog = exports.DescribeConnectorEntityRequestFilterSensitiveLog = exports.DescribeConnectorResponseFilterSensitiveLog = exports.DescribeConnectorRequestFilterSensitiveLog = exports.DeleteFlowResponseFilterSensitiveLog = exports.DeleteFlowRequestFilterSensitiveLog = exports.DeleteConnectorProfileResponseFilterSensitiveLog = exports.DeleteConnectorProfileRequestFilterSensitiveLog = exports.CreateFlowResponseFilterSensitiveLog = exports.CreateFlowRequestFilterSensitiveLog = exports.TriggerConfigFilterSensitiveLog = exports.TriggerPropertiesFilterSensitiveLog = exports.ScheduledTriggerPropertiesFilterSensitiveLog = exports.TaskFilterSensitiveLog = exports.SourceFlowConfigFilterSensitiveLog = exports.SourceConnectorPropertiesFilterSensitiveLog = exports.ZendeskSourcePropertiesFilterSensitiveLog = exports.VeevaSourcePropertiesFilterSensitiveLog = exports.TrendmicroSourcePropertiesFilterSensitiveLog = exports.SlackSourcePropertiesFilterSensitiveLog = exports.SingularSourcePropertiesFilterSensitiveLog = exports.ServiceNowSourcePropertiesFilterSensitiveLog = exports.SAPODataSourcePropertiesFilterSensitiveLog = exports.SalesforceSourcePropertiesFilterSensitiveLog = exports.S3SourcePropertiesFilterSensitiveLog = exports.S3InputFormatConfigFilterSensitiveLog = exports.MarketoSourcePropertiesFilterSensitiveLog = exports.InforNexusSourcePropertiesFilterSensitiveLog = exports.GoogleAnalyticsSourcePropertiesFilterSensitiveLog = exports.DynatraceSourcePropertiesFilterSensitiveLog = exports.DatadogSourcePropertiesFilterSensitiveLog = exports.CustomConnectorSourcePropertiesFilterSensitiveLog = exports.IncrementalPullConfigFilterSensitiveLog = exports.MetadataCatalogConfigFilterSensitiveLog = exports.GlueDataCatalogConfigFilterSensitiveLog = exports.DestinationFlowConfigFilterSensitiveLog = exports.DestinationConnectorPropertiesFilterSensitiveLog = exports.ZendeskDestinationPropertiesFilterSensitiveLog = exports.UpsolverDestinationPropertiesFilterSensitiveLog = exports.UpsolverS3OutputFormatConfigFilterSensitiveLog = exports.SnowflakeDestinationPropertiesFilterSensitiveLog = exports.SAPODataDestinationPropertiesFilterSensitiveLog = exports.SuccessResponseHandlingConfigFilterSensitiveLog = exports.SalesforceDestinationPropertiesFilterSensitiveLog = exports.S3DestinationPropertiesFilterSensitiveLog = exports.S3OutputFormatConfigFilterSensitiveLog = exports.PrefixConfigFilterSensitiveLog = exports.RedshiftDestinationPropertiesFilterSensitiveLog = exports.MarketoDestinationPropertiesFilterSensitiveLog = void 0;
|
|
7
|
+
exports.UpdateFlowResponseFilterSensitiveLog = exports.UpdateFlowRequestFilterSensitiveLog = exports.UpdateConnectorRegistrationResponseFilterSensitiveLog = exports.UpdateConnectorRegistrationRequestFilterSensitiveLog = exports.UpdateConnectorProfileResponseFilterSensitiveLog = exports.UpdateConnectorProfileRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.UnregisterConnectorResponseFilterSensitiveLog = exports.UnregisterConnectorRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StopFlowResponseFilterSensitiveLog = exports.StopFlowRequestFilterSensitiveLog = exports.StartFlowResponseFilterSensitiveLog = exports.StartFlowRequestFilterSensitiveLog = exports.RegisterConnectorResponseFilterSensitiveLog = exports.RegisterConnectorRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListFlowsResponseFilterSensitiveLog = exports.ListFlowsRequestFilterSensitiveLog = exports.ListConnectorsResponseFilterSensitiveLog = exports.ListConnectorsRequestFilterSensitiveLog = exports.ListConnectorEntitiesResponseFilterSensitiveLog = exports.ListConnectorEntitiesRequestFilterSensitiveLog = exports.FlowDefinitionFilterSensitiveLog = exports.DescribeFlowExecutionRecordsResponseFilterSensitiveLog = exports.ExecutionRecordFilterSensitiveLog = exports.ExecutionResultFilterSensitiveLog = exports.ErrorInfoFilterSensitiveLog = exports.DescribeFlowExecutionRecordsRequestFilterSensitiveLog = exports.DescribeFlowResponseFilterSensitiveLog = exports.MetadataCatalogDetailFilterSensitiveLog = exports.RegistrationOutputFilterSensitiveLog = exports.ExecutionDetailsFilterSensitiveLog = exports.DescribeFlowRequestFilterSensitiveLog = exports.DescribeConnectorsResponseFilterSensitiveLog = exports.DescribeConnectorsRequestFilterSensitiveLog = exports.DescribeConnectorProfilesResponseFilterSensitiveLog = void 0;
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const AppflowServiceException_1 = require("./AppflowServiceException");
|
|
10
10
|
class AccessDeniedException extends AppflowServiceException_1.AppflowServiceException {
|
|
@@ -46,6 +46,10 @@ var AuthenticationType;
|
|
|
46
46
|
AuthenticationType["CUSTOM"] = "CUSTOM";
|
|
47
47
|
AuthenticationType["OAUTH2"] = "OAUTH2";
|
|
48
48
|
})(AuthenticationType = exports.AuthenticationType || (exports.AuthenticationType = {}));
|
|
49
|
+
var CatalogType;
|
|
50
|
+
(function (CatalogType) {
|
|
51
|
+
CatalogType["GLUE"] = "GLUE";
|
|
52
|
+
})(CatalogType = exports.CatalogType || (exports.CatalogType = {}));
|
|
49
53
|
class ConflictException extends AppflowServiceException_1.AppflowServiceException {
|
|
50
54
|
constructor(opts) {
|
|
51
55
|
super({
|
|
@@ -525,6 +529,11 @@ var FileType;
|
|
|
525
529
|
FileType["JSON"] = "JSON";
|
|
526
530
|
FileType["PARQUET"] = "PARQUET";
|
|
527
531
|
})(FileType = exports.FileType || (exports.FileType = {}));
|
|
532
|
+
var PathPrefix;
|
|
533
|
+
(function (PathPrefix) {
|
|
534
|
+
PathPrefix["EXECUTION_ID"] = "EXECUTION_ID";
|
|
535
|
+
PathPrefix["SCHEMA_VERSION"] = "SCHEMA_VERSION";
|
|
536
|
+
})(PathPrefix = exports.PathPrefix || (exports.PathPrefix = {}));
|
|
528
537
|
var PrefixFormat;
|
|
529
538
|
(function (PrefixFormat) {
|
|
530
539
|
PrefixFormat["DAY"] = "DAY";
|
|
@@ -555,6 +564,7 @@ var OperatorPropertiesKeys;
|
|
|
555
564
|
OperatorPropertiesKeys["MASK_LENGTH"] = "MASK_LENGTH";
|
|
556
565
|
OperatorPropertiesKeys["MASK_VALUE"] = "MASK_VALUE";
|
|
557
566
|
OperatorPropertiesKeys["MATH_OPERATION_FIELDS_ORDER"] = "MATH_OPERATION_FIELDS_ORDER";
|
|
567
|
+
OperatorPropertiesKeys["ORDERED_PARTITION_KEYS_LIST"] = "ORDERED_PARTITION_KEYS_LIST";
|
|
558
568
|
OperatorPropertiesKeys["SOURCE_DATA_TYPE"] = "SOURCE_DATA_TYPE";
|
|
559
569
|
OperatorPropertiesKeys["SUBFIELD_CATEGORY_MAP"] = "SUBFIELD_CATEGORY_MAP";
|
|
560
570
|
OperatorPropertiesKeys["TRUNCATE_LENGTH"] = "TRUNCATE_LENGTH";
|
|
@@ -571,6 +581,7 @@ var TaskType;
|
|
|
571
581
|
TaskType["MAP_ALL"] = "Map_all";
|
|
572
582
|
TaskType["MASK"] = "Mask";
|
|
573
583
|
TaskType["MERGE"] = "Merge";
|
|
584
|
+
TaskType["PARTITION"] = "Partition";
|
|
574
585
|
TaskType["PASSTHROUGH"] = "Passthrough";
|
|
575
586
|
TaskType["TRUNCATE"] = "Truncate";
|
|
576
587
|
TaskType["VALIDATE"] = "Validate";
|
|
@@ -1147,6 +1158,14 @@ const DestinationFlowConfigFilterSensitiveLog = (obj) => ({
|
|
|
1147
1158
|
...obj,
|
|
1148
1159
|
});
|
|
1149
1160
|
exports.DestinationFlowConfigFilterSensitiveLog = DestinationFlowConfigFilterSensitiveLog;
|
|
1161
|
+
const GlueDataCatalogConfigFilterSensitiveLog = (obj) => ({
|
|
1162
|
+
...obj,
|
|
1163
|
+
});
|
|
1164
|
+
exports.GlueDataCatalogConfigFilterSensitiveLog = GlueDataCatalogConfigFilterSensitiveLog;
|
|
1165
|
+
const MetadataCatalogConfigFilterSensitiveLog = (obj) => ({
|
|
1166
|
+
...obj,
|
|
1167
|
+
});
|
|
1168
|
+
exports.MetadataCatalogConfigFilterSensitiveLog = MetadataCatalogConfigFilterSensitiveLog;
|
|
1150
1169
|
const IncrementalPullConfigFilterSensitiveLog = (obj) => ({
|
|
1151
1170
|
...obj,
|
|
1152
1171
|
});
|
|
@@ -1303,6 +1322,14 @@ const ExecutionDetailsFilterSensitiveLog = (obj) => ({
|
|
|
1303
1322
|
...obj,
|
|
1304
1323
|
});
|
|
1305
1324
|
exports.ExecutionDetailsFilterSensitiveLog = ExecutionDetailsFilterSensitiveLog;
|
|
1325
|
+
const RegistrationOutputFilterSensitiveLog = (obj) => ({
|
|
1326
|
+
...obj,
|
|
1327
|
+
});
|
|
1328
|
+
exports.RegistrationOutputFilterSensitiveLog = RegistrationOutputFilterSensitiveLog;
|
|
1329
|
+
const MetadataCatalogDetailFilterSensitiveLog = (obj) => ({
|
|
1330
|
+
...obj,
|
|
1331
|
+
});
|
|
1332
|
+
exports.MetadataCatalogDetailFilterSensitiveLog = MetadataCatalogDetailFilterSensitiveLog;
|
|
1306
1333
|
const DescribeFlowResponseFilterSensitiveLog = (obj) => ({
|
|
1307
1334
|
...obj,
|
|
1308
1335
|
});
|
|
@@ -1419,6 +1446,14 @@ const UpdateConnectorProfileResponseFilterSensitiveLog = (obj) => ({
|
|
|
1419
1446
|
...obj,
|
|
1420
1447
|
});
|
|
1421
1448
|
exports.UpdateConnectorProfileResponseFilterSensitiveLog = UpdateConnectorProfileResponseFilterSensitiveLog;
|
|
1449
|
+
const UpdateConnectorRegistrationRequestFilterSensitiveLog = (obj) => ({
|
|
1450
|
+
...obj,
|
|
1451
|
+
});
|
|
1452
|
+
exports.UpdateConnectorRegistrationRequestFilterSensitiveLog = UpdateConnectorRegistrationRequestFilterSensitiveLog;
|
|
1453
|
+
const UpdateConnectorRegistrationResponseFilterSensitiveLog = (obj) => ({
|
|
1454
|
+
...obj,
|
|
1455
|
+
});
|
|
1456
|
+
exports.UpdateConnectorRegistrationResponseFilterSensitiveLog = UpdateConnectorRegistrationResponseFilterSensitiveLog;
|
|
1422
1457
|
const UpdateFlowRequestFilterSensitiveLog = (obj) => ({
|
|
1423
1458
|
...obj,
|
|
1424
1459
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateFlowCommand = exports.deserializeAws_restJson1UpdateConnectorProfileCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1UnregisterConnectorCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopFlowCommand = exports.deserializeAws_restJson1StartFlowCommand = exports.deserializeAws_restJson1RegisterConnectorCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListFlowsCommand = exports.deserializeAws_restJson1ListConnectorsCommand = exports.deserializeAws_restJson1ListConnectorEntitiesCommand = exports.deserializeAws_restJson1DescribeFlowExecutionRecordsCommand = exports.deserializeAws_restJson1DescribeFlowCommand = exports.deserializeAws_restJson1DescribeConnectorsCommand = exports.deserializeAws_restJson1DescribeConnectorProfilesCommand = exports.deserializeAws_restJson1DescribeConnectorEntityCommand = exports.deserializeAws_restJson1DescribeConnectorCommand = exports.deserializeAws_restJson1DeleteFlowCommand = exports.deserializeAws_restJson1DeleteConnectorProfileCommand = exports.deserializeAws_restJson1CreateFlowCommand = exports.deserializeAws_restJson1CreateConnectorProfileCommand = exports.serializeAws_restJson1UpdateFlowCommand = exports.serializeAws_restJson1UpdateConnectorProfileCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1UnregisterConnectorCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopFlowCommand = exports.serializeAws_restJson1StartFlowCommand = exports.serializeAws_restJson1RegisterConnectorCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListFlowsCommand = exports.serializeAws_restJson1ListConnectorsCommand = exports.serializeAws_restJson1ListConnectorEntitiesCommand = exports.serializeAws_restJson1DescribeFlowExecutionRecordsCommand = exports.serializeAws_restJson1DescribeFlowCommand = exports.serializeAws_restJson1DescribeConnectorsCommand = exports.serializeAws_restJson1DescribeConnectorProfilesCommand = exports.serializeAws_restJson1DescribeConnectorEntityCommand = exports.serializeAws_restJson1DescribeConnectorCommand = exports.serializeAws_restJson1DeleteFlowCommand = exports.serializeAws_restJson1DeleteConnectorProfileCommand = exports.serializeAws_restJson1CreateFlowCommand = exports.serializeAws_restJson1CreateConnectorProfileCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateFlowCommand = exports.deserializeAws_restJson1UpdateConnectorRegistrationCommand = exports.deserializeAws_restJson1UpdateConnectorProfileCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1UnregisterConnectorCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopFlowCommand = exports.deserializeAws_restJson1StartFlowCommand = exports.deserializeAws_restJson1RegisterConnectorCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListFlowsCommand = exports.deserializeAws_restJson1ListConnectorsCommand = exports.deserializeAws_restJson1ListConnectorEntitiesCommand = exports.deserializeAws_restJson1DescribeFlowExecutionRecordsCommand = exports.deserializeAws_restJson1DescribeFlowCommand = exports.deserializeAws_restJson1DescribeConnectorsCommand = exports.deserializeAws_restJson1DescribeConnectorProfilesCommand = exports.deserializeAws_restJson1DescribeConnectorEntityCommand = exports.deserializeAws_restJson1DescribeConnectorCommand = exports.deserializeAws_restJson1DeleteFlowCommand = exports.deserializeAws_restJson1DeleteConnectorProfileCommand = exports.deserializeAws_restJson1CreateFlowCommand = exports.deserializeAws_restJson1CreateConnectorProfileCommand = exports.serializeAws_restJson1UpdateFlowCommand = exports.serializeAws_restJson1UpdateConnectorRegistrationCommand = exports.serializeAws_restJson1UpdateConnectorProfileCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1UnregisterConnectorCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopFlowCommand = exports.serializeAws_restJson1StartFlowCommand = exports.serializeAws_restJson1RegisterConnectorCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListFlowsCommand = exports.serializeAws_restJson1ListConnectorsCommand = exports.serializeAws_restJson1ListConnectorEntitiesCommand = exports.serializeAws_restJson1DescribeFlowExecutionRecordsCommand = exports.serializeAws_restJson1DescribeFlowCommand = exports.serializeAws_restJson1DescribeConnectorsCommand = exports.serializeAws_restJson1DescribeConnectorProfilesCommand = exports.serializeAws_restJson1DescribeConnectorEntityCommand = exports.serializeAws_restJson1DescribeConnectorCommand = exports.serializeAws_restJson1DeleteFlowCommand = exports.serializeAws_restJson1DeleteConnectorProfileCommand = exports.serializeAws_restJson1CreateFlowCommand = exports.serializeAws_restJson1CreateConnectorProfileCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const AppflowServiceException_1 = require("../models/AppflowServiceException");
|
|
@@ -47,6 +47,9 @@ const serializeAws_restJson1CreateFlowCommand = async (input, context) => {
|
|
|
47
47
|
}),
|
|
48
48
|
...(input.flowName != null && { flowName: input.flowName }),
|
|
49
49
|
...(input.kmsArn != null && { kmsArn: input.kmsArn }),
|
|
50
|
+
...(input.metadataCatalogConfig != null && {
|
|
51
|
+
metadataCatalogConfig: serializeAws_restJson1MetadataCatalogConfig(input.metadataCatalogConfig, context),
|
|
52
|
+
}),
|
|
50
53
|
...(input.sourceFlowConfig != null && {
|
|
51
54
|
sourceFlowConfig: serializeAws_restJson1SourceFlowConfig(input.sourceFlowConfig, context),
|
|
52
55
|
}),
|
|
@@ -496,6 +499,31 @@ const serializeAws_restJson1UpdateConnectorProfileCommand = async (input, contex
|
|
|
496
499
|
});
|
|
497
500
|
};
|
|
498
501
|
exports.serializeAws_restJson1UpdateConnectorProfileCommand = serializeAws_restJson1UpdateConnectorProfileCommand;
|
|
502
|
+
const serializeAws_restJson1UpdateConnectorRegistrationCommand = async (input, context) => {
|
|
503
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
504
|
+
const headers = {
|
|
505
|
+
"content-type": "application/json",
|
|
506
|
+
};
|
|
507
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-connector-registration";
|
|
508
|
+
let body;
|
|
509
|
+
body = JSON.stringify({
|
|
510
|
+
...(input.connectorLabel != null && { connectorLabel: input.connectorLabel }),
|
|
511
|
+
...(input.connectorProvisioningConfig != null && {
|
|
512
|
+
connectorProvisioningConfig: serializeAws_restJson1ConnectorProvisioningConfig(input.connectorProvisioningConfig, context),
|
|
513
|
+
}),
|
|
514
|
+
...(input.description != null && { description: input.description }),
|
|
515
|
+
});
|
|
516
|
+
return new protocol_http_1.HttpRequest({
|
|
517
|
+
protocol,
|
|
518
|
+
hostname,
|
|
519
|
+
port,
|
|
520
|
+
method: "POST",
|
|
521
|
+
headers,
|
|
522
|
+
path: resolvedPath,
|
|
523
|
+
body,
|
|
524
|
+
});
|
|
525
|
+
};
|
|
526
|
+
exports.serializeAws_restJson1UpdateConnectorRegistrationCommand = serializeAws_restJson1UpdateConnectorRegistrationCommand;
|
|
499
527
|
const serializeAws_restJson1UpdateFlowCommand = async (input, context) => {
|
|
500
528
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
501
529
|
const headers = {
|
|
@@ -509,6 +537,9 @@ const serializeAws_restJson1UpdateFlowCommand = async (input, context) => {
|
|
|
509
537
|
destinationFlowConfigList: serializeAws_restJson1DestinationFlowConfigList(input.destinationFlowConfigList, context),
|
|
510
538
|
}),
|
|
511
539
|
...(input.flowName != null && { flowName: input.flowName }),
|
|
540
|
+
...(input.metadataCatalogConfig != null && {
|
|
541
|
+
metadataCatalogConfig: serializeAws_restJson1MetadataCatalogConfig(input.metadataCatalogConfig, context),
|
|
542
|
+
}),
|
|
512
543
|
...(input.sourceFlowConfig != null && {
|
|
513
544
|
sourceFlowConfig: serializeAws_restJson1SourceFlowConfig(input.sourceFlowConfig, context),
|
|
514
545
|
}),
|
|
@@ -910,12 +941,21 @@ const deserializeAws_restJson1DescribeFlowCommand = async (output, context) => {
|
|
|
910
941
|
if (data.lastRunExecutionDetails != null) {
|
|
911
942
|
contents.lastRunExecutionDetails = deserializeAws_restJson1ExecutionDetails(data.lastRunExecutionDetails, context);
|
|
912
943
|
}
|
|
944
|
+
if (data.lastRunMetadataCatalogDetails != null) {
|
|
945
|
+
contents.lastRunMetadataCatalogDetails = deserializeAws_restJson1MetadataCatalogDetails(data.lastRunMetadataCatalogDetails, context);
|
|
946
|
+
}
|
|
913
947
|
if (data.lastUpdatedAt != null) {
|
|
914
948
|
contents.lastUpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.lastUpdatedAt)));
|
|
915
949
|
}
|
|
916
950
|
if (data.lastUpdatedBy != null) {
|
|
917
951
|
contents.lastUpdatedBy = (0, smithy_client_1.expectString)(data.lastUpdatedBy);
|
|
918
952
|
}
|
|
953
|
+
if (data.metadataCatalogConfig != null) {
|
|
954
|
+
contents.metadataCatalogConfig = deserializeAws_restJson1MetadataCatalogConfig(data.metadataCatalogConfig, context);
|
|
955
|
+
}
|
|
956
|
+
if (data.schemaVersion != null) {
|
|
957
|
+
contents.schemaVersion = (0, smithy_client_1.expectLong)(data.schemaVersion);
|
|
958
|
+
}
|
|
919
959
|
if (data.sourceFlowConfig != null) {
|
|
920
960
|
contents.sourceFlowConfig = deserializeAws_restJson1SourceFlowConfig(data.sourceFlowConfig, context);
|
|
921
961
|
}
|
|
@@ -1473,6 +1513,64 @@ const deserializeAws_restJson1UpdateConnectorProfileCommandError = async (output
|
|
|
1473
1513
|
});
|
|
1474
1514
|
}
|
|
1475
1515
|
};
|
|
1516
|
+
const deserializeAws_restJson1UpdateConnectorRegistrationCommand = async (output, context) => {
|
|
1517
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1518
|
+
return deserializeAws_restJson1UpdateConnectorRegistrationCommandError(output, context);
|
|
1519
|
+
}
|
|
1520
|
+
const contents = map({
|
|
1521
|
+
$metadata: deserializeMetadata(output),
|
|
1522
|
+
});
|
|
1523
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1524
|
+
if (data.connectorArn != null) {
|
|
1525
|
+
contents.connectorArn = (0, smithy_client_1.expectString)(data.connectorArn);
|
|
1526
|
+
}
|
|
1527
|
+
return contents;
|
|
1528
|
+
};
|
|
1529
|
+
exports.deserializeAws_restJson1UpdateConnectorRegistrationCommand = deserializeAws_restJson1UpdateConnectorRegistrationCommand;
|
|
1530
|
+
const deserializeAws_restJson1UpdateConnectorRegistrationCommandError = async (output, context) => {
|
|
1531
|
+
const parsedOutput = {
|
|
1532
|
+
...output,
|
|
1533
|
+
body: await parseErrorBody(output.body, context),
|
|
1534
|
+
};
|
|
1535
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
|
+
switch (errorCode) {
|
|
1537
|
+
case "AccessDeniedException":
|
|
1538
|
+
case "com.amazonaws.appflow#AccessDeniedException":
|
|
1539
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1540
|
+
case "ConflictException":
|
|
1541
|
+
case "com.amazonaws.appflow#ConflictException":
|
|
1542
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1543
|
+
case "ConnectorAuthenticationException":
|
|
1544
|
+
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
1545
|
+
throw await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context);
|
|
1546
|
+
case "ConnectorServerException":
|
|
1547
|
+
case "com.amazonaws.appflow#ConnectorServerException":
|
|
1548
|
+
throw await deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context);
|
|
1549
|
+
case "InternalServerException":
|
|
1550
|
+
case "com.amazonaws.appflow#InternalServerException":
|
|
1551
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1552
|
+
case "ResourceNotFoundException":
|
|
1553
|
+
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1554
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1555
|
+
case "ServiceQuotaExceededException":
|
|
1556
|
+
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
1557
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1558
|
+
case "ThrottlingException":
|
|
1559
|
+
case "com.amazonaws.appflow#ThrottlingException":
|
|
1560
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1561
|
+
case "ValidationException":
|
|
1562
|
+
case "com.amazonaws.appflow#ValidationException":
|
|
1563
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1564
|
+
default:
|
|
1565
|
+
const parsedBody = parsedOutput.body;
|
|
1566
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1567
|
+
output,
|
|
1568
|
+
parsedBody,
|
|
1569
|
+
exceptionCtor: AppflowServiceException_1.AppflowServiceException,
|
|
1570
|
+
errorCode,
|
|
1571
|
+
});
|
|
1572
|
+
}
|
|
1573
|
+
};
|
|
1476
1574
|
const deserializeAws_restJson1UpdateFlowCommand = async (output, context) => {
|
|
1477
1575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1478
1576
|
return deserializeAws_restJson1UpdateFlowCommandError(output, context);
|
|
@@ -1649,6 +1747,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1649
1747
|
const serializeAws_restJson1AggregationConfig = (input, context) => {
|
|
1650
1748
|
return {
|
|
1651
1749
|
...(input.aggregationType != null && { aggregationType: input.aggregationType }),
|
|
1750
|
+
...(input.targetFileSize != null && { targetFileSize: input.targetFileSize }),
|
|
1652
1751
|
};
|
|
1653
1752
|
};
|
|
1654
1753
|
const serializeAws_restJson1AmplitudeConnectorProfileCredentials = (input, context) => {
|
|
@@ -2022,6 +2121,13 @@ const serializeAws_restJson1EventBridgeDestinationProperties = (input, context)
|
|
|
2022
2121
|
...(input.object != null && { object: input.object }),
|
|
2023
2122
|
};
|
|
2024
2123
|
};
|
|
2124
|
+
const serializeAws_restJson1GlueDataCatalogConfig = (input, context) => {
|
|
2125
|
+
return {
|
|
2126
|
+
...(input.databaseName != null && { databaseName: input.databaseName }),
|
|
2127
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2128
|
+
...(input.tablePrefix != null && { tablePrefix: input.tablePrefix }),
|
|
2129
|
+
};
|
|
2130
|
+
};
|
|
2025
2131
|
const serializeAws_restJson1GoogleAnalyticsConnectorProfileCredentials = (input, context) => {
|
|
2026
2132
|
return {
|
|
2027
2133
|
...(input.accessToken != null && { accessToken: input.accessToken }),
|
|
@@ -2127,6 +2233,13 @@ const serializeAws_restJson1MarketoSourceProperties = (input, context) => {
|
|
|
2127
2233
|
...(input.object != null && { object: input.object }),
|
|
2128
2234
|
};
|
|
2129
2235
|
};
|
|
2236
|
+
const serializeAws_restJson1MetadataCatalogConfig = (input, context) => {
|
|
2237
|
+
return {
|
|
2238
|
+
...(input.glueDataCatalog != null && {
|
|
2239
|
+
glueDataCatalog: serializeAws_restJson1GlueDataCatalogConfig(input.glueDataCatalog, context),
|
|
2240
|
+
}),
|
|
2241
|
+
};
|
|
2242
|
+
};
|
|
2130
2243
|
const serializeAws_restJson1OAuth2Credentials = (input, context) => {
|
|
2131
2244
|
return {
|
|
2132
2245
|
...(input.accessToken != null && { accessToken: input.accessToken }),
|
|
@@ -2172,8 +2285,18 @@ const serializeAws_restJson1OAuthScopeList = (input, context) => {
|
|
|
2172
2285
|
return entry;
|
|
2173
2286
|
});
|
|
2174
2287
|
};
|
|
2288
|
+
const serializeAws_restJson1PathPrefixHierarchy = (input, context) => {
|
|
2289
|
+
return input
|
|
2290
|
+
.filter((e) => e != null)
|
|
2291
|
+
.map((entry) => {
|
|
2292
|
+
return entry;
|
|
2293
|
+
});
|
|
2294
|
+
};
|
|
2175
2295
|
const serializeAws_restJson1PrefixConfig = (input, context) => {
|
|
2176
2296
|
return {
|
|
2297
|
+
...(input.pathPrefixHierarchy != null && {
|
|
2298
|
+
pathPrefixHierarchy: serializeAws_restJson1PathPrefixHierarchy(input.pathPrefixHierarchy, context),
|
|
2299
|
+
}),
|
|
2177
2300
|
...(input.prefixFormat != null && { prefixFormat: input.prefixFormat }),
|
|
2178
2301
|
...(input.prefixType != null && { prefixType: input.prefixType }),
|
|
2179
2302
|
};
|
|
@@ -2636,6 +2759,7 @@ const serializeAws_restJson1ZendeskSourceProperties = (input, context) => {
|
|
|
2636
2759
|
const deserializeAws_restJson1AggregationConfig = (output, context) => {
|
|
2637
2760
|
return {
|
|
2638
2761
|
aggregationType: (0, smithy_client_1.expectString)(output.aggregationType),
|
|
2762
|
+
targetFileSize: (0, smithy_client_1.expectLong)(output.targetFileSize),
|
|
2639
2763
|
};
|
|
2640
2764
|
};
|
|
2641
2765
|
const deserializeAws_restJson1AmplitudeConnectorProfileProperties = (output, context) => {
|
|
@@ -3277,6 +3401,9 @@ const deserializeAws_restJson1ExecutionRecord = (output, context) => {
|
|
|
3277
3401
|
lastUpdatedAt: output.lastUpdatedAt != null
|
|
3278
3402
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
3279
3403
|
: undefined,
|
|
3404
|
+
metadataCatalogDetails: output.metadataCatalogDetails != null
|
|
3405
|
+
? deserializeAws_restJson1MetadataCatalogDetails(output.metadataCatalogDetails, context)
|
|
3406
|
+
: undefined,
|
|
3280
3407
|
startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt))) : undefined,
|
|
3281
3408
|
};
|
|
3282
3409
|
};
|
|
@@ -3359,6 +3486,13 @@ const deserializeAws_restJson1FlowList = (output, context) => {
|
|
|
3359
3486
|
});
|
|
3360
3487
|
return retVal;
|
|
3361
3488
|
};
|
|
3489
|
+
const deserializeAws_restJson1GlueDataCatalogConfig = (output, context) => {
|
|
3490
|
+
return {
|
|
3491
|
+
databaseName: (0, smithy_client_1.expectString)(output.databaseName),
|
|
3492
|
+
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
3493
|
+
tablePrefix: (0, smithy_client_1.expectString)(output.tablePrefix),
|
|
3494
|
+
};
|
|
3495
|
+
};
|
|
3362
3496
|
const deserializeAws_restJson1GoogleAnalyticsConnectorProfileProperties = (output, context) => {
|
|
3363
3497
|
return {};
|
|
3364
3498
|
};
|
|
@@ -3446,6 +3580,36 @@ const deserializeAws_restJson1MarketoSourceProperties = (output, context) => {
|
|
|
3446
3580
|
object: (0, smithy_client_1.expectString)(output.object),
|
|
3447
3581
|
};
|
|
3448
3582
|
};
|
|
3583
|
+
const deserializeAws_restJson1MetadataCatalogConfig = (output, context) => {
|
|
3584
|
+
return {
|
|
3585
|
+
glueDataCatalog: output.glueDataCatalog != null
|
|
3586
|
+
? deserializeAws_restJson1GlueDataCatalogConfig(output.glueDataCatalog, context)
|
|
3587
|
+
: undefined,
|
|
3588
|
+
};
|
|
3589
|
+
};
|
|
3590
|
+
const deserializeAws_restJson1MetadataCatalogDetail = (output, context) => {
|
|
3591
|
+
return {
|
|
3592
|
+
catalogType: (0, smithy_client_1.expectString)(output.catalogType),
|
|
3593
|
+
partitionRegistrationOutput: output.partitionRegistrationOutput != null
|
|
3594
|
+
? deserializeAws_restJson1RegistrationOutput(output.partitionRegistrationOutput, context)
|
|
3595
|
+
: undefined,
|
|
3596
|
+
tableName: (0, smithy_client_1.expectString)(output.tableName),
|
|
3597
|
+
tableRegistrationOutput: output.tableRegistrationOutput != null
|
|
3598
|
+
? deserializeAws_restJson1RegistrationOutput(output.tableRegistrationOutput, context)
|
|
3599
|
+
: undefined,
|
|
3600
|
+
};
|
|
3601
|
+
};
|
|
3602
|
+
const deserializeAws_restJson1MetadataCatalogDetails = (output, context) => {
|
|
3603
|
+
const retVal = (output || [])
|
|
3604
|
+
.filter((e) => e != null)
|
|
3605
|
+
.map((entry) => {
|
|
3606
|
+
if (entry === null) {
|
|
3607
|
+
return null;
|
|
3608
|
+
}
|
|
3609
|
+
return deserializeAws_restJson1MetadataCatalogDetail(entry, context);
|
|
3610
|
+
});
|
|
3611
|
+
return retVal;
|
|
3612
|
+
};
|
|
3449
3613
|
const deserializeAws_restJson1OAuth2CustomParameter = (output, context) => {
|
|
3450
3614
|
return {
|
|
3451
3615
|
connectorSuppliedValues: output.connectorSuppliedValues != null
|
|
@@ -3521,8 +3685,22 @@ const deserializeAws_restJson1OAuthScopeList = (output, context) => {
|
|
|
3521
3685
|
});
|
|
3522
3686
|
return retVal;
|
|
3523
3687
|
};
|
|
3688
|
+
const deserializeAws_restJson1PathPrefixHierarchy = (output, context) => {
|
|
3689
|
+
const retVal = (output || [])
|
|
3690
|
+
.filter((e) => e != null)
|
|
3691
|
+
.map((entry) => {
|
|
3692
|
+
if (entry === null) {
|
|
3693
|
+
return null;
|
|
3694
|
+
}
|
|
3695
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3696
|
+
});
|
|
3697
|
+
return retVal;
|
|
3698
|
+
};
|
|
3524
3699
|
const deserializeAws_restJson1PrefixConfig = (output, context) => {
|
|
3525
3700
|
return {
|
|
3701
|
+
pathPrefixHierarchy: output.pathPrefixHierarchy != null
|
|
3702
|
+
? deserializeAws_restJson1PathPrefixHierarchy(output.pathPrefixHierarchy, context)
|
|
3703
|
+
: undefined,
|
|
3526
3704
|
prefixFormat: (0, smithy_client_1.expectString)(output.prefixFormat),
|
|
3527
3705
|
prefixType: (0, smithy_client_1.expectString)(output.prefixType),
|
|
3528
3706
|
};
|
|
@@ -3581,6 +3759,13 @@ const deserializeAws_restJson1RegionList = (output, context) => {
|
|
|
3581
3759
|
});
|
|
3582
3760
|
return retVal;
|
|
3583
3761
|
};
|
|
3762
|
+
const deserializeAws_restJson1RegistrationOutput = (output, context) => {
|
|
3763
|
+
return {
|
|
3764
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3765
|
+
result: (0, smithy_client_1.expectString)(output.result),
|
|
3766
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3767
|
+
};
|
|
3768
|
+
};
|
|
3584
3769
|
const deserializeAws_restJson1S3DestinationProperties = (output, context) => {
|
|
3585
3770
|
return {
|
|
3586
3771
|
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
package/dist-es/Appflow.js
CHANGED
|
@@ -20,6 +20,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
20
20
|
import { UnregisterConnectorCommand, } from "./commands/UnregisterConnectorCommand";
|
|
21
21
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
22
22
|
import { UpdateConnectorProfileCommand, } from "./commands/UpdateConnectorProfileCommand";
|
|
23
|
+
import { UpdateConnectorRegistrationCommand, } from "./commands/UpdateConnectorRegistrationCommand";
|
|
23
24
|
import { UpdateFlowCommand } from "./commands/UpdateFlowCommand";
|
|
24
25
|
export class Appflow extends AppflowClient {
|
|
25
26
|
createConnectorProfile(args, optionsOrCb, cb) {
|
|
@@ -316,6 +317,20 @@ export class Appflow extends AppflowClient {
|
|
|
316
317
|
return this.send(command, optionsOrCb);
|
|
317
318
|
}
|
|
318
319
|
}
|
|
320
|
+
updateConnectorRegistration(args, optionsOrCb, cb) {
|
|
321
|
+
const command = new UpdateConnectorRegistrationCommand(args);
|
|
322
|
+
if (typeof optionsOrCb === "function") {
|
|
323
|
+
this.send(command, optionsOrCb);
|
|
324
|
+
}
|
|
325
|
+
else if (typeof cb === "function") {
|
|
326
|
+
if (typeof optionsOrCb !== "object")
|
|
327
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
328
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
return this.send(command, optionsOrCb);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
319
334
|
updateFlow(args, optionsOrCb, cb) {
|
|
320
335
|
const command = new UpdateFlowCommand(args);
|
|
321
336
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateConnectorRegistrationRequestFilterSensitiveLog, UpdateConnectorRegistrationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateConnectorRegistrationCommand, serializeAws_restJson1UpdateConnectorRegistrationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class UpdateConnectorRegistrationCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateConnectorRegistrationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "AppflowClient";
|
|
25
|
+
const commandName = "UpdateConnectorRegistrationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: UpdateConnectorRegistrationRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: UpdateConnectorRegistrationResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1UpdateConnectorRegistrationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1UpdateConnectorRegistrationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -19,4 +19,5 @@ export * from "./TagResourceCommand";
|
|
|
19
19
|
export * from "./UnregisterConnectorCommand";
|
|
20
20
|
export * from "./UntagResourceCommand";
|
|
21
21
|
export * from "./UpdateConnectorProfileCommand";
|
|
22
|
+
export * from "./UpdateConnectorRegistrationCommand";
|
|
22
23
|
export * from "./UpdateFlowCommand";
|