@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
|
@@ -38,6 +38,10 @@ export var AuthenticationType;
|
|
|
38
38
|
AuthenticationType["CUSTOM"] = "CUSTOM";
|
|
39
39
|
AuthenticationType["OAUTH2"] = "OAUTH2";
|
|
40
40
|
})(AuthenticationType || (AuthenticationType = {}));
|
|
41
|
+
export var CatalogType;
|
|
42
|
+
(function (CatalogType) {
|
|
43
|
+
CatalogType["GLUE"] = "GLUE";
|
|
44
|
+
})(CatalogType || (CatalogType = {}));
|
|
41
45
|
export class ConflictException extends __BaseException {
|
|
42
46
|
constructor(opts) {
|
|
43
47
|
super({
|
|
@@ -511,6 +515,11 @@ export var FileType;
|
|
|
511
515
|
FileType["JSON"] = "JSON";
|
|
512
516
|
FileType["PARQUET"] = "PARQUET";
|
|
513
517
|
})(FileType || (FileType = {}));
|
|
518
|
+
export var PathPrefix;
|
|
519
|
+
(function (PathPrefix) {
|
|
520
|
+
PathPrefix["EXECUTION_ID"] = "EXECUTION_ID";
|
|
521
|
+
PathPrefix["SCHEMA_VERSION"] = "SCHEMA_VERSION";
|
|
522
|
+
})(PathPrefix || (PathPrefix = {}));
|
|
514
523
|
export var PrefixFormat;
|
|
515
524
|
(function (PrefixFormat) {
|
|
516
525
|
PrefixFormat["DAY"] = "DAY";
|
|
@@ -541,6 +550,7 @@ export var OperatorPropertiesKeys;
|
|
|
541
550
|
OperatorPropertiesKeys["MASK_LENGTH"] = "MASK_LENGTH";
|
|
542
551
|
OperatorPropertiesKeys["MASK_VALUE"] = "MASK_VALUE";
|
|
543
552
|
OperatorPropertiesKeys["MATH_OPERATION_FIELDS_ORDER"] = "MATH_OPERATION_FIELDS_ORDER";
|
|
553
|
+
OperatorPropertiesKeys["ORDERED_PARTITION_KEYS_LIST"] = "ORDERED_PARTITION_KEYS_LIST";
|
|
544
554
|
OperatorPropertiesKeys["SOURCE_DATA_TYPE"] = "SOURCE_DATA_TYPE";
|
|
545
555
|
OperatorPropertiesKeys["SUBFIELD_CATEGORY_MAP"] = "SUBFIELD_CATEGORY_MAP";
|
|
546
556
|
OperatorPropertiesKeys["TRUNCATE_LENGTH"] = "TRUNCATE_LENGTH";
|
|
@@ -557,6 +567,7 @@ export var TaskType;
|
|
|
557
567
|
TaskType["MAP_ALL"] = "Map_all";
|
|
558
568
|
TaskType["MASK"] = "Mask";
|
|
559
569
|
TaskType["MERGE"] = "Merge";
|
|
570
|
+
TaskType["PARTITION"] = "Partition";
|
|
560
571
|
TaskType["PASSTHROUGH"] = "Passthrough";
|
|
561
572
|
TaskType["TRUNCATE"] = "Truncate";
|
|
562
573
|
TaskType["VALIDATE"] = "Validate";
|
|
@@ -1017,6 +1028,12 @@ export const DestinationConnectorPropertiesFilterSensitiveLog = (obj) => ({
|
|
|
1017
1028
|
export const DestinationFlowConfigFilterSensitiveLog = (obj) => ({
|
|
1018
1029
|
...obj,
|
|
1019
1030
|
});
|
|
1031
|
+
export const GlueDataCatalogConfigFilterSensitiveLog = (obj) => ({
|
|
1032
|
+
...obj,
|
|
1033
|
+
});
|
|
1034
|
+
export const MetadataCatalogConfigFilterSensitiveLog = (obj) => ({
|
|
1035
|
+
...obj,
|
|
1036
|
+
});
|
|
1020
1037
|
export const IncrementalPullConfigFilterSensitiveLog = (obj) => ({
|
|
1021
1038
|
...obj,
|
|
1022
1039
|
});
|
|
@@ -1134,6 +1151,12 @@ export const DescribeFlowRequestFilterSensitiveLog = (obj) => ({
|
|
|
1134
1151
|
export const ExecutionDetailsFilterSensitiveLog = (obj) => ({
|
|
1135
1152
|
...obj,
|
|
1136
1153
|
});
|
|
1154
|
+
export const RegistrationOutputFilterSensitiveLog = (obj) => ({
|
|
1155
|
+
...obj,
|
|
1156
|
+
});
|
|
1157
|
+
export const MetadataCatalogDetailFilterSensitiveLog = (obj) => ({
|
|
1158
|
+
...obj,
|
|
1159
|
+
});
|
|
1137
1160
|
export const DescribeFlowResponseFilterSensitiveLog = (obj) => ({
|
|
1138
1161
|
...obj,
|
|
1139
1162
|
});
|
|
@@ -1221,6 +1244,12 @@ export const UpdateConnectorProfileRequestFilterSensitiveLog = (obj) => ({
|
|
|
1221
1244
|
export const UpdateConnectorProfileResponseFilterSensitiveLog = (obj) => ({
|
|
1222
1245
|
...obj,
|
|
1223
1246
|
});
|
|
1247
|
+
export const UpdateConnectorRegistrationRequestFilterSensitiveLog = (obj) => ({
|
|
1248
|
+
...obj,
|
|
1249
|
+
});
|
|
1250
|
+
export const UpdateConnectorRegistrationResponseFilterSensitiveLog = (obj) => ({
|
|
1251
|
+
...obj,
|
|
1252
|
+
});
|
|
1224
1253
|
export const UpdateFlowRequestFilterSensitiveLog = (obj) => ({
|
|
1225
1254
|
...obj,
|
|
1226
1255
|
});
|
|
@@ -43,6 +43,9 @@ export const serializeAws_restJson1CreateFlowCommand = async (input, context) =>
|
|
|
43
43
|
}),
|
|
44
44
|
...(input.flowName != null && { flowName: input.flowName }),
|
|
45
45
|
...(input.kmsArn != null && { kmsArn: input.kmsArn }),
|
|
46
|
+
...(input.metadataCatalogConfig != null && {
|
|
47
|
+
metadataCatalogConfig: serializeAws_restJson1MetadataCatalogConfig(input.metadataCatalogConfig, context),
|
|
48
|
+
}),
|
|
46
49
|
...(input.sourceFlowConfig != null && {
|
|
47
50
|
sourceFlowConfig: serializeAws_restJson1SourceFlowConfig(input.sourceFlowConfig, context),
|
|
48
51
|
}),
|
|
@@ -472,6 +475,30 @@ export const serializeAws_restJson1UpdateConnectorProfileCommand = async (input,
|
|
|
472
475
|
body,
|
|
473
476
|
});
|
|
474
477
|
};
|
|
478
|
+
export const serializeAws_restJson1UpdateConnectorRegistrationCommand = async (input, context) => {
|
|
479
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
480
|
+
const headers = {
|
|
481
|
+
"content-type": "application/json",
|
|
482
|
+
};
|
|
483
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-connector-registration";
|
|
484
|
+
let body;
|
|
485
|
+
body = JSON.stringify({
|
|
486
|
+
...(input.connectorLabel != null && { connectorLabel: input.connectorLabel }),
|
|
487
|
+
...(input.connectorProvisioningConfig != null && {
|
|
488
|
+
connectorProvisioningConfig: serializeAws_restJson1ConnectorProvisioningConfig(input.connectorProvisioningConfig, context),
|
|
489
|
+
}),
|
|
490
|
+
...(input.description != null && { description: input.description }),
|
|
491
|
+
});
|
|
492
|
+
return new __HttpRequest({
|
|
493
|
+
protocol,
|
|
494
|
+
hostname,
|
|
495
|
+
port,
|
|
496
|
+
method: "POST",
|
|
497
|
+
headers,
|
|
498
|
+
path: resolvedPath,
|
|
499
|
+
body,
|
|
500
|
+
});
|
|
501
|
+
};
|
|
475
502
|
export const serializeAws_restJson1UpdateFlowCommand = async (input, context) => {
|
|
476
503
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
477
504
|
const headers = {
|
|
@@ -485,6 +512,9 @@ export const serializeAws_restJson1UpdateFlowCommand = async (input, context) =>
|
|
|
485
512
|
destinationFlowConfigList: serializeAws_restJson1DestinationFlowConfigList(input.destinationFlowConfigList, context),
|
|
486
513
|
}),
|
|
487
514
|
...(input.flowName != null && { flowName: input.flowName }),
|
|
515
|
+
...(input.metadataCatalogConfig != null && {
|
|
516
|
+
metadataCatalogConfig: serializeAws_restJson1MetadataCatalogConfig(input.metadataCatalogConfig, context),
|
|
517
|
+
}),
|
|
488
518
|
...(input.sourceFlowConfig != null && {
|
|
489
519
|
sourceFlowConfig: serializeAws_restJson1SourceFlowConfig(input.sourceFlowConfig, context),
|
|
490
520
|
}),
|
|
@@ -877,12 +907,21 @@ export const deserializeAws_restJson1DescribeFlowCommand = async (output, contex
|
|
|
877
907
|
if (data.lastRunExecutionDetails != null) {
|
|
878
908
|
contents.lastRunExecutionDetails = deserializeAws_restJson1ExecutionDetails(data.lastRunExecutionDetails, context);
|
|
879
909
|
}
|
|
910
|
+
if (data.lastRunMetadataCatalogDetails != null) {
|
|
911
|
+
contents.lastRunMetadataCatalogDetails = deserializeAws_restJson1MetadataCatalogDetails(data.lastRunMetadataCatalogDetails, context);
|
|
912
|
+
}
|
|
880
913
|
if (data.lastUpdatedAt != null) {
|
|
881
914
|
contents.lastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdatedAt)));
|
|
882
915
|
}
|
|
883
916
|
if (data.lastUpdatedBy != null) {
|
|
884
917
|
contents.lastUpdatedBy = __expectString(data.lastUpdatedBy);
|
|
885
918
|
}
|
|
919
|
+
if (data.metadataCatalogConfig != null) {
|
|
920
|
+
contents.metadataCatalogConfig = deserializeAws_restJson1MetadataCatalogConfig(data.metadataCatalogConfig, context);
|
|
921
|
+
}
|
|
922
|
+
if (data.schemaVersion != null) {
|
|
923
|
+
contents.schemaVersion = __expectLong(data.schemaVersion);
|
|
924
|
+
}
|
|
886
925
|
if (data.sourceFlowConfig != null) {
|
|
887
926
|
contents.sourceFlowConfig = deserializeAws_restJson1SourceFlowConfig(data.sourceFlowConfig, context);
|
|
888
927
|
}
|
|
@@ -1427,6 +1466,63 @@ const deserializeAws_restJson1UpdateConnectorProfileCommandError = async (output
|
|
|
1427
1466
|
});
|
|
1428
1467
|
}
|
|
1429
1468
|
};
|
|
1469
|
+
export const deserializeAws_restJson1UpdateConnectorRegistrationCommand = async (output, context) => {
|
|
1470
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1471
|
+
return deserializeAws_restJson1UpdateConnectorRegistrationCommandError(output, context);
|
|
1472
|
+
}
|
|
1473
|
+
const contents = map({
|
|
1474
|
+
$metadata: deserializeMetadata(output),
|
|
1475
|
+
});
|
|
1476
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1477
|
+
if (data.connectorArn != null) {
|
|
1478
|
+
contents.connectorArn = __expectString(data.connectorArn);
|
|
1479
|
+
}
|
|
1480
|
+
return contents;
|
|
1481
|
+
};
|
|
1482
|
+
const deserializeAws_restJson1UpdateConnectorRegistrationCommandError = async (output, context) => {
|
|
1483
|
+
const parsedOutput = {
|
|
1484
|
+
...output,
|
|
1485
|
+
body: await parseErrorBody(output.body, context),
|
|
1486
|
+
};
|
|
1487
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
|
+
switch (errorCode) {
|
|
1489
|
+
case "AccessDeniedException":
|
|
1490
|
+
case "com.amazonaws.appflow#AccessDeniedException":
|
|
1491
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1492
|
+
case "ConflictException":
|
|
1493
|
+
case "com.amazonaws.appflow#ConflictException":
|
|
1494
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1495
|
+
case "ConnectorAuthenticationException":
|
|
1496
|
+
case "com.amazonaws.appflow#ConnectorAuthenticationException":
|
|
1497
|
+
throw await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context);
|
|
1498
|
+
case "ConnectorServerException":
|
|
1499
|
+
case "com.amazonaws.appflow#ConnectorServerException":
|
|
1500
|
+
throw await deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context);
|
|
1501
|
+
case "InternalServerException":
|
|
1502
|
+
case "com.amazonaws.appflow#InternalServerException":
|
|
1503
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1504
|
+
case "ResourceNotFoundException":
|
|
1505
|
+
case "com.amazonaws.appflow#ResourceNotFoundException":
|
|
1506
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1507
|
+
case "ServiceQuotaExceededException":
|
|
1508
|
+
case "com.amazonaws.appflow#ServiceQuotaExceededException":
|
|
1509
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1510
|
+
case "ThrottlingException":
|
|
1511
|
+
case "com.amazonaws.appflow#ThrottlingException":
|
|
1512
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1513
|
+
case "ValidationException":
|
|
1514
|
+
case "com.amazonaws.appflow#ValidationException":
|
|
1515
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1516
|
+
default:
|
|
1517
|
+
const parsedBody = parsedOutput.body;
|
|
1518
|
+
throwDefaultError({
|
|
1519
|
+
output,
|
|
1520
|
+
parsedBody,
|
|
1521
|
+
exceptionCtor: __BaseException,
|
|
1522
|
+
errorCode,
|
|
1523
|
+
});
|
|
1524
|
+
}
|
|
1525
|
+
};
|
|
1430
1526
|
export const deserializeAws_restJson1UpdateFlowCommand = async (output, context) => {
|
|
1431
1527
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1432
1528
|
return deserializeAws_restJson1UpdateFlowCommandError(output, context);
|
|
@@ -1602,6 +1698,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1602
1698
|
const serializeAws_restJson1AggregationConfig = (input, context) => {
|
|
1603
1699
|
return {
|
|
1604
1700
|
...(input.aggregationType != null && { aggregationType: input.aggregationType }),
|
|
1701
|
+
...(input.targetFileSize != null && { targetFileSize: input.targetFileSize }),
|
|
1605
1702
|
};
|
|
1606
1703
|
};
|
|
1607
1704
|
const serializeAws_restJson1AmplitudeConnectorProfileCredentials = (input, context) => {
|
|
@@ -1975,6 +2072,13 @@ const serializeAws_restJson1EventBridgeDestinationProperties = (input, context)
|
|
|
1975
2072
|
...(input.object != null && { object: input.object }),
|
|
1976
2073
|
};
|
|
1977
2074
|
};
|
|
2075
|
+
const serializeAws_restJson1GlueDataCatalogConfig = (input, context) => {
|
|
2076
|
+
return {
|
|
2077
|
+
...(input.databaseName != null && { databaseName: input.databaseName }),
|
|
2078
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2079
|
+
...(input.tablePrefix != null && { tablePrefix: input.tablePrefix }),
|
|
2080
|
+
};
|
|
2081
|
+
};
|
|
1978
2082
|
const serializeAws_restJson1GoogleAnalyticsConnectorProfileCredentials = (input, context) => {
|
|
1979
2083
|
return {
|
|
1980
2084
|
...(input.accessToken != null && { accessToken: input.accessToken }),
|
|
@@ -2080,6 +2184,13 @@ const serializeAws_restJson1MarketoSourceProperties = (input, context) => {
|
|
|
2080
2184
|
...(input.object != null && { object: input.object }),
|
|
2081
2185
|
};
|
|
2082
2186
|
};
|
|
2187
|
+
const serializeAws_restJson1MetadataCatalogConfig = (input, context) => {
|
|
2188
|
+
return {
|
|
2189
|
+
...(input.glueDataCatalog != null && {
|
|
2190
|
+
glueDataCatalog: serializeAws_restJson1GlueDataCatalogConfig(input.glueDataCatalog, context),
|
|
2191
|
+
}),
|
|
2192
|
+
};
|
|
2193
|
+
};
|
|
2083
2194
|
const serializeAws_restJson1OAuth2Credentials = (input, context) => {
|
|
2084
2195
|
return {
|
|
2085
2196
|
...(input.accessToken != null && { accessToken: input.accessToken }),
|
|
@@ -2125,8 +2236,18 @@ const serializeAws_restJson1OAuthScopeList = (input, context) => {
|
|
|
2125
2236
|
return entry;
|
|
2126
2237
|
});
|
|
2127
2238
|
};
|
|
2239
|
+
const serializeAws_restJson1PathPrefixHierarchy = (input, context) => {
|
|
2240
|
+
return input
|
|
2241
|
+
.filter((e) => e != null)
|
|
2242
|
+
.map((entry) => {
|
|
2243
|
+
return entry;
|
|
2244
|
+
});
|
|
2245
|
+
};
|
|
2128
2246
|
const serializeAws_restJson1PrefixConfig = (input, context) => {
|
|
2129
2247
|
return {
|
|
2248
|
+
...(input.pathPrefixHierarchy != null && {
|
|
2249
|
+
pathPrefixHierarchy: serializeAws_restJson1PathPrefixHierarchy(input.pathPrefixHierarchy, context),
|
|
2250
|
+
}),
|
|
2130
2251
|
...(input.prefixFormat != null && { prefixFormat: input.prefixFormat }),
|
|
2131
2252
|
...(input.prefixType != null && { prefixType: input.prefixType }),
|
|
2132
2253
|
};
|
|
@@ -2589,6 +2710,7 @@ const serializeAws_restJson1ZendeskSourceProperties = (input, context) => {
|
|
|
2589
2710
|
const deserializeAws_restJson1AggregationConfig = (output, context) => {
|
|
2590
2711
|
return {
|
|
2591
2712
|
aggregationType: __expectString(output.aggregationType),
|
|
2713
|
+
targetFileSize: __expectLong(output.targetFileSize),
|
|
2592
2714
|
};
|
|
2593
2715
|
};
|
|
2594
2716
|
const deserializeAws_restJson1AmplitudeConnectorProfileProperties = (output, context) => {
|
|
@@ -3230,6 +3352,9 @@ const deserializeAws_restJson1ExecutionRecord = (output, context) => {
|
|
|
3230
3352
|
lastUpdatedAt: output.lastUpdatedAt != null
|
|
3231
3353
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
3232
3354
|
: undefined,
|
|
3355
|
+
metadataCatalogDetails: output.metadataCatalogDetails != null
|
|
3356
|
+
? deserializeAws_restJson1MetadataCatalogDetails(output.metadataCatalogDetails, context)
|
|
3357
|
+
: undefined,
|
|
3233
3358
|
startedAt: output.startedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt))) : undefined,
|
|
3234
3359
|
};
|
|
3235
3360
|
};
|
|
@@ -3312,6 +3437,13 @@ const deserializeAws_restJson1FlowList = (output, context) => {
|
|
|
3312
3437
|
});
|
|
3313
3438
|
return retVal;
|
|
3314
3439
|
};
|
|
3440
|
+
const deserializeAws_restJson1GlueDataCatalogConfig = (output, context) => {
|
|
3441
|
+
return {
|
|
3442
|
+
databaseName: __expectString(output.databaseName),
|
|
3443
|
+
roleArn: __expectString(output.roleArn),
|
|
3444
|
+
tablePrefix: __expectString(output.tablePrefix),
|
|
3445
|
+
};
|
|
3446
|
+
};
|
|
3315
3447
|
const deserializeAws_restJson1GoogleAnalyticsConnectorProfileProperties = (output, context) => {
|
|
3316
3448
|
return {};
|
|
3317
3449
|
};
|
|
@@ -3399,6 +3531,36 @@ const deserializeAws_restJson1MarketoSourceProperties = (output, context) => {
|
|
|
3399
3531
|
object: __expectString(output.object),
|
|
3400
3532
|
};
|
|
3401
3533
|
};
|
|
3534
|
+
const deserializeAws_restJson1MetadataCatalogConfig = (output, context) => {
|
|
3535
|
+
return {
|
|
3536
|
+
glueDataCatalog: output.glueDataCatalog != null
|
|
3537
|
+
? deserializeAws_restJson1GlueDataCatalogConfig(output.glueDataCatalog, context)
|
|
3538
|
+
: undefined,
|
|
3539
|
+
};
|
|
3540
|
+
};
|
|
3541
|
+
const deserializeAws_restJson1MetadataCatalogDetail = (output, context) => {
|
|
3542
|
+
return {
|
|
3543
|
+
catalogType: __expectString(output.catalogType),
|
|
3544
|
+
partitionRegistrationOutput: output.partitionRegistrationOutput != null
|
|
3545
|
+
? deserializeAws_restJson1RegistrationOutput(output.partitionRegistrationOutput, context)
|
|
3546
|
+
: undefined,
|
|
3547
|
+
tableName: __expectString(output.tableName),
|
|
3548
|
+
tableRegistrationOutput: output.tableRegistrationOutput != null
|
|
3549
|
+
? deserializeAws_restJson1RegistrationOutput(output.tableRegistrationOutput, context)
|
|
3550
|
+
: undefined,
|
|
3551
|
+
};
|
|
3552
|
+
};
|
|
3553
|
+
const deserializeAws_restJson1MetadataCatalogDetails = (output, context) => {
|
|
3554
|
+
const retVal = (output || [])
|
|
3555
|
+
.filter((e) => e != null)
|
|
3556
|
+
.map((entry) => {
|
|
3557
|
+
if (entry === null) {
|
|
3558
|
+
return null;
|
|
3559
|
+
}
|
|
3560
|
+
return deserializeAws_restJson1MetadataCatalogDetail(entry, context);
|
|
3561
|
+
});
|
|
3562
|
+
return retVal;
|
|
3563
|
+
};
|
|
3402
3564
|
const deserializeAws_restJson1OAuth2CustomParameter = (output, context) => {
|
|
3403
3565
|
return {
|
|
3404
3566
|
connectorSuppliedValues: output.connectorSuppliedValues != null
|
|
@@ -3474,8 +3636,22 @@ const deserializeAws_restJson1OAuthScopeList = (output, context) => {
|
|
|
3474
3636
|
});
|
|
3475
3637
|
return retVal;
|
|
3476
3638
|
};
|
|
3639
|
+
const deserializeAws_restJson1PathPrefixHierarchy = (output, context) => {
|
|
3640
|
+
const retVal = (output || [])
|
|
3641
|
+
.filter((e) => e != null)
|
|
3642
|
+
.map((entry) => {
|
|
3643
|
+
if (entry === null) {
|
|
3644
|
+
return null;
|
|
3645
|
+
}
|
|
3646
|
+
return __expectString(entry);
|
|
3647
|
+
});
|
|
3648
|
+
return retVal;
|
|
3649
|
+
};
|
|
3477
3650
|
const deserializeAws_restJson1PrefixConfig = (output, context) => {
|
|
3478
3651
|
return {
|
|
3652
|
+
pathPrefixHierarchy: output.pathPrefixHierarchy != null
|
|
3653
|
+
? deserializeAws_restJson1PathPrefixHierarchy(output.pathPrefixHierarchy, context)
|
|
3654
|
+
: undefined,
|
|
3479
3655
|
prefixFormat: __expectString(output.prefixFormat),
|
|
3480
3656
|
prefixType: __expectString(output.prefixType),
|
|
3481
3657
|
};
|
|
@@ -3534,6 +3710,13 @@ const deserializeAws_restJson1RegionList = (output, context) => {
|
|
|
3534
3710
|
});
|
|
3535
3711
|
return retVal;
|
|
3536
3712
|
};
|
|
3713
|
+
const deserializeAws_restJson1RegistrationOutput = (output, context) => {
|
|
3714
|
+
return {
|
|
3715
|
+
message: __expectString(output.message),
|
|
3716
|
+
result: __expectString(output.result),
|
|
3717
|
+
status: __expectString(output.status),
|
|
3718
|
+
};
|
|
3719
|
+
};
|
|
3537
3720
|
const deserializeAws_restJson1S3DestinationProperties = (output, context) => {
|
|
3538
3721
|
return {
|
|
3539
3722
|
bucketName: __expectString(output.bucketName),
|
package/dist-types/Appflow.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
21
21
|
import { UnregisterConnectorCommandInput, UnregisterConnectorCommandOutput } from "./commands/UnregisterConnectorCommand";
|
|
22
22
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
23
23
|
import { UpdateConnectorProfileCommandInput, UpdateConnectorProfileCommandOutput } from "./commands/UpdateConnectorProfileCommand";
|
|
24
|
+
import { UpdateConnectorRegistrationCommandInput, UpdateConnectorRegistrationCommandOutput } from "./commands/UpdateConnectorRegistrationCommand";
|
|
24
25
|
import { UpdateFlowCommandInput, UpdateFlowCommandOutput } from "./commands/UpdateFlowCommand";
|
|
25
26
|
/**
|
|
26
27
|
* <p>Welcome to the Amazon AppFlow API reference. This guide is for developers who need
|
|
@@ -168,8 +169,8 @@ export declare class Appflow extends AppflowClient {
|
|
|
168
169
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
169
170
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
170
171
|
/**
|
|
171
|
-
* <p>Registers a new connector with your Amazon Web Services account. Before you can register
|
|
172
|
-
* the connector, you must deploy lambda in your account.</p>
|
|
172
|
+
* <p>Registers a new custom connector with your Amazon Web Services account. Before you can register
|
|
173
|
+
* the connector, you must deploy the associated AWS lambda function in your account.</p>
|
|
173
174
|
*/
|
|
174
175
|
registerConnector(args: RegisterConnectorCommandInput, options?: __HttpHandlerOptions): Promise<RegisterConnectorCommandOutput>;
|
|
175
176
|
registerConnector(args: RegisterConnectorCommandInput, cb: (err: any, data?: RegisterConnectorCommandOutput) => void): void;
|
|
@@ -197,7 +198,7 @@ export declare class Appflow extends AppflowClient {
|
|
|
197
198
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
198
199
|
/**
|
|
199
200
|
* <p>Unregisters the custom connector registered in your account that matches the
|
|
200
|
-
*
|
|
201
|
+
* connector label provided in the request.</p>
|
|
201
202
|
*/
|
|
202
203
|
unregisterConnector(args: UnregisterConnectorCommandInput, options?: __HttpHandlerOptions): Promise<UnregisterConnectorCommandOutput>;
|
|
203
204
|
unregisterConnector(args: UnregisterConnectorCommandInput, cb: (err: any, data?: UnregisterConnectorCommandOutput) => void): void;
|
|
@@ -214,6 +215,20 @@ export declare class Appflow extends AppflowClient {
|
|
|
214
215
|
updateConnectorProfile(args: UpdateConnectorProfileCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConnectorProfileCommandOutput>;
|
|
215
216
|
updateConnectorProfile(args: UpdateConnectorProfileCommandInput, cb: (err: any, data?: UpdateConnectorProfileCommandOutput) => void): void;
|
|
216
217
|
updateConnectorProfile(args: UpdateConnectorProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConnectorProfileCommandOutput) => void): void;
|
|
218
|
+
/**
|
|
219
|
+
* <p>Updates a custom connector that you've previously registered. This operation updates the connector with one of the following:</p>
|
|
220
|
+
* <ul>
|
|
221
|
+
* <li>
|
|
222
|
+
* <p>The latest version of the AWS Lambda function that's assigned to the connector</p>
|
|
223
|
+
* </li>
|
|
224
|
+
* <li>
|
|
225
|
+
* <p>A new AWS Lambda function that you specify</p>
|
|
226
|
+
* </li>
|
|
227
|
+
* </ul>
|
|
228
|
+
*/
|
|
229
|
+
updateConnectorRegistration(args: UpdateConnectorRegistrationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateConnectorRegistrationCommandOutput>;
|
|
230
|
+
updateConnectorRegistration(args: UpdateConnectorRegistrationCommandInput, cb: (err: any, data?: UpdateConnectorRegistrationCommandOutput) => void): void;
|
|
231
|
+
updateConnectorRegistration(args: UpdateConnectorRegistrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateConnectorRegistrationCommandOutput) => void): void;
|
|
217
232
|
/**
|
|
218
233
|
* <p> Updates an existing flow. </p>
|
|
219
234
|
*/
|
|
@@ -28,10 +28,11 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
28
28
|
import { UnregisterConnectorCommandInput, UnregisterConnectorCommandOutput } from "./commands/UnregisterConnectorCommand";
|
|
29
29
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
30
30
|
import { UpdateConnectorProfileCommandInput, UpdateConnectorProfileCommandOutput } from "./commands/UpdateConnectorProfileCommand";
|
|
31
|
+
import { UpdateConnectorRegistrationCommandInput, UpdateConnectorRegistrationCommandOutput } from "./commands/UpdateConnectorRegistrationCommand";
|
|
31
32
|
import { UpdateFlowCommandInput, UpdateFlowCommandOutput } from "./commands/UpdateFlowCommand";
|
|
32
33
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
33
|
-
export declare type ServiceInputTypes = CreateConnectorProfileCommandInput | CreateFlowCommandInput | DeleteConnectorProfileCommandInput | DeleteFlowCommandInput | DescribeConnectorCommandInput | DescribeConnectorEntityCommandInput | DescribeConnectorProfilesCommandInput | DescribeConnectorsCommandInput | DescribeFlowCommandInput | DescribeFlowExecutionRecordsCommandInput | ListConnectorEntitiesCommandInput | ListConnectorsCommandInput | ListFlowsCommandInput | ListTagsForResourceCommandInput | RegisterConnectorCommandInput | StartFlowCommandInput | StopFlowCommandInput | TagResourceCommandInput | UnregisterConnectorCommandInput | UntagResourceCommandInput | UpdateConnectorProfileCommandInput | UpdateFlowCommandInput;
|
|
34
|
-
export declare type ServiceOutputTypes = CreateConnectorProfileCommandOutput | CreateFlowCommandOutput | DeleteConnectorProfileCommandOutput | DeleteFlowCommandOutput | DescribeConnectorCommandOutput | DescribeConnectorEntityCommandOutput | DescribeConnectorProfilesCommandOutput | DescribeConnectorsCommandOutput | DescribeFlowCommandOutput | DescribeFlowExecutionRecordsCommandOutput | ListConnectorEntitiesCommandOutput | ListConnectorsCommandOutput | ListFlowsCommandOutput | ListTagsForResourceCommandOutput | RegisterConnectorCommandOutput | StartFlowCommandOutput | StopFlowCommandOutput | TagResourceCommandOutput | UnregisterConnectorCommandOutput | UntagResourceCommandOutput | UpdateConnectorProfileCommandOutput | UpdateFlowCommandOutput;
|
|
34
|
+
export declare type ServiceInputTypes = CreateConnectorProfileCommandInput | CreateFlowCommandInput | DeleteConnectorProfileCommandInput | DeleteFlowCommandInput | DescribeConnectorCommandInput | DescribeConnectorEntityCommandInput | DescribeConnectorProfilesCommandInput | DescribeConnectorsCommandInput | DescribeFlowCommandInput | DescribeFlowExecutionRecordsCommandInput | ListConnectorEntitiesCommandInput | ListConnectorsCommandInput | ListFlowsCommandInput | ListTagsForResourceCommandInput | RegisterConnectorCommandInput | StartFlowCommandInput | StopFlowCommandInput | TagResourceCommandInput | UnregisterConnectorCommandInput | UntagResourceCommandInput | UpdateConnectorProfileCommandInput | UpdateConnectorRegistrationCommandInput | UpdateFlowCommandInput;
|
|
35
|
+
export declare type ServiceOutputTypes = CreateConnectorProfileCommandOutput | CreateFlowCommandOutput | DeleteConnectorProfileCommandOutput | DeleteFlowCommandOutput | DescribeConnectorCommandOutput | DescribeConnectorEntityCommandOutput | DescribeConnectorProfilesCommandOutput | DescribeConnectorsCommandOutput | DescribeFlowCommandOutput | DescribeFlowExecutionRecordsCommandOutput | ListConnectorEntitiesCommandOutput | ListConnectorsCommandOutput | ListFlowsCommandOutput | ListTagsForResourceCommandOutput | RegisterConnectorCommandOutput | StartFlowCommandOutput | StopFlowCommandOutput | TagResourceCommandOutput | UnregisterConnectorCommandOutput | UntagResourceCommandOutput | UpdateConnectorProfileCommandOutput | UpdateConnectorRegistrationCommandOutput | UpdateFlowCommandOutput;
|
|
35
36
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
36
37
|
/**
|
|
37
38
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -8,8 +8,8 @@ export interface RegisterConnectorCommandInput extends RegisterConnectorRequest
|
|
|
8
8
|
export interface RegisterConnectorCommandOutput extends RegisterConnectorResponse, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Registers a new connector with your Amazon Web Services account. Before you can register
|
|
12
|
-
* the connector, you must deploy lambda in your account.</p>
|
|
11
|
+
* <p>Registers a new custom connector with your Amazon Web Services account. Before you can register
|
|
12
|
+
* the connector, you must deploy the associated AWS lambda function in your account.</p>
|
|
13
13
|
* @example
|
|
14
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
15
|
* ```javascript
|
|
@@ -9,7 +9,7 @@ export interface UnregisterConnectorCommandOutput extends UnregisterConnectorRes
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* <p>Unregisters the custom connector registered in your account that matches the
|
|
12
|
-
*
|
|
12
|
+
* connector label provided in the request.</p>
|
|
13
13
|
* @example
|
|
14
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
15
|
* ```javascript
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { AppflowClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppflowClient";
|
|
5
|
+
import { UpdateConnectorRegistrationRequest, UpdateConnectorRegistrationResponse } from "../models/models_0";
|
|
6
|
+
export interface UpdateConnectorRegistrationCommandInput extends UpdateConnectorRegistrationRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateConnectorRegistrationCommandOutput extends UpdateConnectorRegistrationResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Updates a custom connector that you've previously registered. This operation updates the connector with one of the following:</p>
|
|
12
|
+
* <ul>
|
|
13
|
+
* <li>
|
|
14
|
+
* <p>The latest version of the AWS Lambda function that's assigned to the connector</p>
|
|
15
|
+
* </li>
|
|
16
|
+
* <li>
|
|
17
|
+
* <p>A new AWS Lambda function that you specify</p>
|
|
18
|
+
* </li>
|
|
19
|
+
* </ul>
|
|
20
|
+
* @example
|
|
21
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
22
|
+
* ```javascript
|
|
23
|
+
* import { AppflowClient, UpdateConnectorRegistrationCommand } from "@aws-sdk/client-appflow"; // ES Modules import
|
|
24
|
+
* // const { AppflowClient, UpdateConnectorRegistrationCommand } = require("@aws-sdk/client-appflow"); // CommonJS import
|
|
25
|
+
* const client = new AppflowClient(config);
|
|
26
|
+
* const command = new UpdateConnectorRegistrationCommand(input);
|
|
27
|
+
* const response = await client.send(command);
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @see {@link UpdateConnectorRegistrationCommandInput} for command's `input` shape.
|
|
31
|
+
* @see {@link UpdateConnectorRegistrationCommandOutput} for command's `response` shape.
|
|
32
|
+
* @see {@link AppflowClientResolvedConfig | config} for AppflowClient's `config` shape.
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export declare class UpdateConnectorRegistrationCommand extends $Command<UpdateConnectorRegistrationCommandInput, UpdateConnectorRegistrationCommandOutput, AppflowClientResolvedConfig> {
|
|
36
|
+
readonly input: UpdateConnectorRegistrationCommandInput;
|
|
37
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
38
|
+
constructor(input: UpdateConnectorRegistrationCommandInput);
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AppflowClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateConnectorRegistrationCommandInput, UpdateConnectorRegistrationCommandOutput>;
|
|
43
|
+
private serialize;
|
|
44
|
+
private deserialize;
|
|
45
|
+
}
|
|
@@ -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";
|