@aws-sdk/client-appflow 3.211.0 → 3.213.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/models/models_0.js +32 -5
- package/dist-cjs/protocols/Aws_restJson1.js +128 -52
- package/dist-es/models/models_0.js +23 -0
- package/dist-es/protocols/Aws_restJson1.js +128 -52
- package/dist-types/models/models_0.d.ts +214 -6
- package/dist-types/ts3.4/models/models_0.d.ts +48 -0
- package/package.json +28 -28
|
@@ -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
|
}),
|
|
@@ -485,6 +488,9 @@ export const serializeAws_restJson1UpdateFlowCommand = async (input, context) =>
|
|
|
485
488
|
destinationFlowConfigList: serializeAws_restJson1DestinationFlowConfigList(input.destinationFlowConfigList, context),
|
|
486
489
|
}),
|
|
487
490
|
...(input.flowName != null && { flowName: input.flowName }),
|
|
491
|
+
...(input.metadataCatalogConfig != null && {
|
|
492
|
+
metadataCatalogConfig: serializeAws_restJson1MetadataCatalogConfig(input.metadataCatalogConfig, context),
|
|
493
|
+
}),
|
|
488
494
|
...(input.sourceFlowConfig != null && {
|
|
489
495
|
sourceFlowConfig: serializeAws_restJson1SourceFlowConfig(input.sourceFlowConfig, context),
|
|
490
496
|
}),
|
|
@@ -877,12 +883,21 @@ export const deserializeAws_restJson1DescribeFlowCommand = async (output, contex
|
|
|
877
883
|
if (data.lastRunExecutionDetails != null) {
|
|
878
884
|
contents.lastRunExecutionDetails = deserializeAws_restJson1ExecutionDetails(data.lastRunExecutionDetails, context);
|
|
879
885
|
}
|
|
886
|
+
if (data.lastRunMetadataCatalogDetails != null) {
|
|
887
|
+
contents.lastRunMetadataCatalogDetails = deserializeAws_restJson1MetadataCatalogDetails(data.lastRunMetadataCatalogDetails, context);
|
|
888
|
+
}
|
|
880
889
|
if (data.lastUpdatedAt != null) {
|
|
881
890
|
contents.lastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdatedAt)));
|
|
882
891
|
}
|
|
883
892
|
if (data.lastUpdatedBy != null) {
|
|
884
893
|
contents.lastUpdatedBy = __expectString(data.lastUpdatedBy);
|
|
885
894
|
}
|
|
895
|
+
if (data.metadataCatalogConfig != null) {
|
|
896
|
+
contents.metadataCatalogConfig = deserializeAws_restJson1MetadataCatalogConfig(data.metadataCatalogConfig, context);
|
|
897
|
+
}
|
|
898
|
+
if (data.schemaVersion != null) {
|
|
899
|
+
contents.schemaVersion = __expectLong(data.schemaVersion);
|
|
900
|
+
}
|
|
886
901
|
if (data.sourceFlowConfig != null) {
|
|
887
902
|
contents.sourceFlowConfig = deserializeAws_restJson1SourceFlowConfig(data.sourceFlowConfig, context);
|
|
888
903
|
}
|
|
@@ -1602,6 +1617,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1602
1617
|
const serializeAws_restJson1AggregationConfig = (input, context) => {
|
|
1603
1618
|
return {
|
|
1604
1619
|
...(input.aggregationType != null && { aggregationType: input.aggregationType }),
|
|
1620
|
+
...(input.targetFileSize != null && { targetFileSize: input.targetFileSize }),
|
|
1605
1621
|
};
|
|
1606
1622
|
};
|
|
1607
1623
|
const serializeAws_restJson1AmplitudeConnectorProfileCredentials = (input, context) => {
|
|
@@ -1800,10 +1816,8 @@ const serializeAws_restJson1CredentialsMap = (input, context) => {
|
|
|
1800
1816
|
if (value === null) {
|
|
1801
1817
|
return acc;
|
|
1802
1818
|
}
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
[key]: value,
|
|
1806
|
-
};
|
|
1819
|
+
acc[key] = value;
|
|
1820
|
+
return acc;
|
|
1807
1821
|
}, {});
|
|
1808
1822
|
};
|
|
1809
1823
|
const serializeAws_restJson1CustomAuthCredentials = (input, context) => {
|
|
@@ -1867,10 +1881,8 @@ const serializeAws_restJson1CustomProperties = (input, context) => {
|
|
|
1867
1881
|
if (value === null) {
|
|
1868
1882
|
return acc;
|
|
1869
1883
|
}
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
[key]: value,
|
|
1873
|
-
};
|
|
1884
|
+
acc[key] = value;
|
|
1885
|
+
return acc;
|
|
1874
1886
|
}, {});
|
|
1875
1887
|
};
|
|
1876
1888
|
const serializeAws_restJson1DatadogConnectorProfileCredentials = (input, context) => {
|
|
@@ -1979,6 +1991,13 @@ const serializeAws_restJson1EventBridgeDestinationProperties = (input, context)
|
|
|
1979
1991
|
...(input.object != null && { object: input.object }),
|
|
1980
1992
|
};
|
|
1981
1993
|
};
|
|
1994
|
+
const serializeAws_restJson1GlueDataCatalogConfig = (input, context) => {
|
|
1995
|
+
return {
|
|
1996
|
+
...(input.databaseName != null && { databaseName: input.databaseName }),
|
|
1997
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
1998
|
+
...(input.tablePrefix != null && { tablePrefix: input.tablePrefix }),
|
|
1999
|
+
};
|
|
2000
|
+
};
|
|
1982
2001
|
const serializeAws_restJson1GoogleAnalyticsConnectorProfileCredentials = (input, context) => {
|
|
1983
2002
|
return {
|
|
1984
2003
|
...(input.accessToken != null && { accessToken: input.accessToken }),
|
|
@@ -2084,6 +2103,13 @@ const serializeAws_restJson1MarketoSourceProperties = (input, context) => {
|
|
|
2084
2103
|
...(input.object != null && { object: input.object }),
|
|
2085
2104
|
};
|
|
2086
2105
|
};
|
|
2106
|
+
const serializeAws_restJson1MetadataCatalogConfig = (input, context) => {
|
|
2107
|
+
return {
|
|
2108
|
+
...(input.glueDataCatalog != null && {
|
|
2109
|
+
glueDataCatalog: serializeAws_restJson1GlueDataCatalogConfig(input.glueDataCatalog, context),
|
|
2110
|
+
}),
|
|
2111
|
+
};
|
|
2112
|
+
};
|
|
2087
2113
|
const serializeAws_restJson1OAuth2Credentials = (input, context) => {
|
|
2088
2114
|
return {
|
|
2089
2115
|
...(input.accessToken != null && { accessToken: input.accessToken }),
|
|
@@ -2129,8 +2155,18 @@ const serializeAws_restJson1OAuthScopeList = (input, context) => {
|
|
|
2129
2155
|
return entry;
|
|
2130
2156
|
});
|
|
2131
2157
|
};
|
|
2158
|
+
const serializeAws_restJson1PathPrefixHierarchy = (input, context) => {
|
|
2159
|
+
return input
|
|
2160
|
+
.filter((e) => e != null)
|
|
2161
|
+
.map((entry) => {
|
|
2162
|
+
return entry;
|
|
2163
|
+
});
|
|
2164
|
+
};
|
|
2132
2165
|
const serializeAws_restJson1PrefixConfig = (input, context) => {
|
|
2133
2166
|
return {
|
|
2167
|
+
...(input.pathPrefixHierarchy != null && {
|
|
2168
|
+
pathPrefixHierarchy: serializeAws_restJson1PathPrefixHierarchy(input.pathPrefixHierarchy, context),
|
|
2169
|
+
}),
|
|
2134
2170
|
...(input.prefixFormat != null && { prefixFormat: input.prefixFormat }),
|
|
2135
2171
|
...(input.prefixType != null && { prefixType: input.prefixType }),
|
|
2136
2172
|
};
|
|
@@ -2140,10 +2176,8 @@ const serializeAws_restJson1ProfilePropertiesMap = (input, context) => {
|
|
|
2140
2176
|
if (value === null) {
|
|
2141
2177
|
return acc;
|
|
2142
2178
|
}
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
[key]: value,
|
|
2146
|
-
};
|
|
2179
|
+
acc[key] = value;
|
|
2180
|
+
return acc;
|
|
2147
2181
|
}, {});
|
|
2148
2182
|
};
|
|
2149
2183
|
const serializeAws_restJson1RedshiftConnectorProfileCredentials = (input, context) => {
|
|
@@ -2448,10 +2482,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2448
2482
|
if (value === null) {
|
|
2449
2483
|
return acc;
|
|
2450
2484
|
}
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
[key]: value,
|
|
2454
|
-
};
|
|
2485
|
+
acc[key] = value;
|
|
2486
|
+
return acc;
|
|
2455
2487
|
}, {});
|
|
2456
2488
|
};
|
|
2457
2489
|
const serializeAws_restJson1Task = (input, context) => {
|
|
@@ -2474,10 +2506,8 @@ const serializeAws_restJson1TaskPropertiesMap = (input, context) => {
|
|
|
2474
2506
|
if (value === null) {
|
|
2475
2507
|
return acc;
|
|
2476
2508
|
}
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
[key]: value,
|
|
2480
|
-
};
|
|
2509
|
+
acc[key] = value;
|
|
2510
|
+
return acc;
|
|
2481
2511
|
}, {});
|
|
2482
2512
|
};
|
|
2483
2513
|
const serializeAws_restJson1Tasks = (input, context) => {
|
|
@@ -2492,10 +2522,8 @@ const serializeAws_restJson1TokenUrlCustomProperties = (input, context) => {
|
|
|
2492
2522
|
if (value === null) {
|
|
2493
2523
|
return acc;
|
|
2494
2524
|
}
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
[key]: value,
|
|
2498
|
-
};
|
|
2525
|
+
acc[key] = value;
|
|
2526
|
+
return acc;
|
|
2499
2527
|
}, {});
|
|
2500
2528
|
};
|
|
2501
2529
|
const serializeAws_restJson1TrendmicroConnectorProfileCredentials = (input, context) => {
|
|
@@ -2601,6 +2629,7 @@ const serializeAws_restJson1ZendeskSourceProperties = (input, context) => {
|
|
|
2601
2629
|
const deserializeAws_restJson1AggregationConfig = (output, context) => {
|
|
2602
2630
|
return {
|
|
2603
2631
|
aggregationType: __expectString(output.aggregationType),
|
|
2632
|
+
targetFileSize: __expectLong(output.targetFileSize),
|
|
2604
2633
|
};
|
|
2605
2634
|
};
|
|
2606
2635
|
const deserializeAws_restJson1AmplitudeConnectorProfileProperties = (output, context) => {
|
|
@@ -2721,10 +2750,8 @@ const deserializeAws_restJson1ConnectorConfigurationsMap = (output, context) =>
|
|
|
2721
2750
|
if (value === null) {
|
|
2722
2751
|
return acc;
|
|
2723
2752
|
}
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
[key]: deserializeAws_restJson1ConnectorConfiguration(value, context),
|
|
2727
|
-
};
|
|
2753
|
+
acc[key] = deserializeAws_restJson1ConnectorConfiguration(value, context);
|
|
2754
|
+
return acc;
|
|
2728
2755
|
}, {});
|
|
2729
2756
|
};
|
|
2730
2757
|
const deserializeAws_restJson1ConnectorDetail = (output, context) => {
|
|
@@ -2803,10 +2830,8 @@ const deserializeAws_restJson1ConnectorEntityMap = (output, context) => {
|
|
|
2803
2830
|
if (value === null) {
|
|
2804
2831
|
return acc;
|
|
2805
2832
|
}
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
[key]: deserializeAws_restJson1ConnectorEntityList(value, context),
|
|
2809
|
-
};
|
|
2833
|
+
acc[key] = deserializeAws_restJson1ConnectorEntityList(value, context);
|
|
2834
|
+
return acc;
|
|
2810
2835
|
}, {});
|
|
2811
2836
|
};
|
|
2812
2837
|
const deserializeAws_restJson1ConnectorList = (output, context) => {
|
|
@@ -3093,10 +3118,8 @@ const deserializeAws_restJson1CustomProperties = (output, context) => {
|
|
|
3093
3118
|
if (value === null) {
|
|
3094
3119
|
return acc;
|
|
3095
3120
|
}
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
[key]: __expectString(value),
|
|
3099
|
-
};
|
|
3121
|
+
acc[key] = __expectString(value);
|
|
3122
|
+
return acc;
|
|
3100
3123
|
}, {});
|
|
3101
3124
|
};
|
|
3102
3125
|
const deserializeAws_restJson1DatadogConnectorProfileProperties = (output, context) => {
|
|
@@ -3248,6 +3271,9 @@ const deserializeAws_restJson1ExecutionRecord = (output, context) => {
|
|
|
3248
3271
|
lastUpdatedAt: output.lastUpdatedAt != null
|
|
3249
3272
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
3250
3273
|
: undefined,
|
|
3274
|
+
metadataCatalogDetails: output.metadataCatalogDetails != null
|
|
3275
|
+
? deserializeAws_restJson1MetadataCatalogDetails(output.metadataCatalogDetails, context)
|
|
3276
|
+
: undefined,
|
|
3251
3277
|
startedAt: output.startedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt))) : undefined,
|
|
3252
3278
|
};
|
|
3253
3279
|
};
|
|
@@ -3330,6 +3356,13 @@ const deserializeAws_restJson1FlowList = (output, context) => {
|
|
|
3330
3356
|
});
|
|
3331
3357
|
return retVal;
|
|
3332
3358
|
};
|
|
3359
|
+
const deserializeAws_restJson1GlueDataCatalogConfig = (output, context) => {
|
|
3360
|
+
return {
|
|
3361
|
+
databaseName: __expectString(output.databaseName),
|
|
3362
|
+
roleArn: __expectString(output.roleArn),
|
|
3363
|
+
tablePrefix: __expectString(output.tablePrefix),
|
|
3364
|
+
};
|
|
3365
|
+
};
|
|
3333
3366
|
const deserializeAws_restJson1GoogleAnalyticsConnectorProfileProperties = (output, context) => {
|
|
3334
3367
|
return {};
|
|
3335
3368
|
};
|
|
@@ -3417,6 +3450,36 @@ const deserializeAws_restJson1MarketoSourceProperties = (output, context) => {
|
|
|
3417
3450
|
object: __expectString(output.object),
|
|
3418
3451
|
};
|
|
3419
3452
|
};
|
|
3453
|
+
const deserializeAws_restJson1MetadataCatalogConfig = (output, context) => {
|
|
3454
|
+
return {
|
|
3455
|
+
glueDataCatalog: output.glueDataCatalog != null
|
|
3456
|
+
? deserializeAws_restJson1GlueDataCatalogConfig(output.glueDataCatalog, context)
|
|
3457
|
+
: undefined,
|
|
3458
|
+
};
|
|
3459
|
+
};
|
|
3460
|
+
const deserializeAws_restJson1MetadataCatalogDetail = (output, context) => {
|
|
3461
|
+
return {
|
|
3462
|
+
catalogType: __expectString(output.catalogType),
|
|
3463
|
+
partitionRegistrationOutput: output.partitionRegistrationOutput != null
|
|
3464
|
+
? deserializeAws_restJson1RegistrationOutput(output.partitionRegistrationOutput, context)
|
|
3465
|
+
: undefined,
|
|
3466
|
+
tableName: __expectString(output.tableName),
|
|
3467
|
+
tableRegistrationOutput: output.tableRegistrationOutput != null
|
|
3468
|
+
? deserializeAws_restJson1RegistrationOutput(output.tableRegistrationOutput, context)
|
|
3469
|
+
: undefined,
|
|
3470
|
+
};
|
|
3471
|
+
};
|
|
3472
|
+
const deserializeAws_restJson1MetadataCatalogDetails = (output, context) => {
|
|
3473
|
+
const retVal = (output || [])
|
|
3474
|
+
.filter((e) => e != null)
|
|
3475
|
+
.map((entry) => {
|
|
3476
|
+
if (entry === null) {
|
|
3477
|
+
return null;
|
|
3478
|
+
}
|
|
3479
|
+
return deserializeAws_restJson1MetadataCatalogDetail(entry, context);
|
|
3480
|
+
});
|
|
3481
|
+
return retVal;
|
|
3482
|
+
};
|
|
3420
3483
|
const deserializeAws_restJson1OAuth2CustomParameter = (output, context) => {
|
|
3421
3484
|
return {
|
|
3422
3485
|
connectorSuppliedValues: output.connectorSuppliedValues != null
|
|
@@ -3492,8 +3555,22 @@ const deserializeAws_restJson1OAuthScopeList = (output, context) => {
|
|
|
3492
3555
|
});
|
|
3493
3556
|
return retVal;
|
|
3494
3557
|
};
|
|
3558
|
+
const deserializeAws_restJson1PathPrefixHierarchy = (output, context) => {
|
|
3559
|
+
const retVal = (output || [])
|
|
3560
|
+
.filter((e) => e != null)
|
|
3561
|
+
.map((entry) => {
|
|
3562
|
+
if (entry === null) {
|
|
3563
|
+
return null;
|
|
3564
|
+
}
|
|
3565
|
+
return __expectString(entry);
|
|
3566
|
+
});
|
|
3567
|
+
return retVal;
|
|
3568
|
+
};
|
|
3495
3569
|
const deserializeAws_restJson1PrefixConfig = (output, context) => {
|
|
3496
3570
|
return {
|
|
3571
|
+
pathPrefixHierarchy: output.pathPrefixHierarchy != null
|
|
3572
|
+
? deserializeAws_restJson1PathPrefixHierarchy(output.pathPrefixHierarchy, context)
|
|
3573
|
+
: undefined,
|
|
3497
3574
|
prefixFormat: __expectString(output.prefixFormat),
|
|
3498
3575
|
prefixType: __expectString(output.prefixType),
|
|
3499
3576
|
};
|
|
@@ -3510,10 +3587,8 @@ const deserializeAws_restJson1ProfilePropertiesMap = (output, context) => {
|
|
|
3510
3587
|
if (value === null) {
|
|
3511
3588
|
return acc;
|
|
3512
3589
|
}
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
[key]: __expectString(value),
|
|
3516
|
-
};
|
|
3590
|
+
acc[key] = __expectString(value);
|
|
3591
|
+
return acc;
|
|
3517
3592
|
}, {});
|
|
3518
3593
|
};
|
|
3519
3594
|
const deserializeAws_restJson1Range = (output, context) => {
|
|
@@ -3554,6 +3629,13 @@ const deserializeAws_restJson1RegionList = (output, context) => {
|
|
|
3554
3629
|
});
|
|
3555
3630
|
return retVal;
|
|
3556
3631
|
};
|
|
3632
|
+
const deserializeAws_restJson1RegistrationOutput = (output, context) => {
|
|
3633
|
+
return {
|
|
3634
|
+
message: __expectString(output.message),
|
|
3635
|
+
result: __expectString(output.result),
|
|
3636
|
+
status: __expectString(output.status),
|
|
3637
|
+
};
|
|
3638
|
+
};
|
|
3557
3639
|
const deserializeAws_restJson1S3DestinationProperties = (output, context) => {
|
|
3558
3640
|
return {
|
|
3559
3641
|
bucketName: __expectString(output.bucketName),
|
|
@@ -3891,10 +3973,8 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3891
3973
|
if (value === null) {
|
|
3892
3974
|
return acc;
|
|
3893
3975
|
}
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
[key]: __expectString(value),
|
|
3897
|
-
};
|
|
3976
|
+
acc[key] = __expectString(value);
|
|
3977
|
+
return acc;
|
|
3898
3978
|
}, {});
|
|
3899
3979
|
};
|
|
3900
3980
|
const deserializeAws_restJson1Task = (output, context) => {
|
|
@@ -3915,10 +3995,8 @@ const deserializeAws_restJson1TaskPropertiesMap = (output, context) => {
|
|
|
3915
3995
|
if (value === null) {
|
|
3916
3996
|
return acc;
|
|
3917
3997
|
}
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
[key]: __expectString(value),
|
|
3921
|
-
};
|
|
3998
|
+
acc[key] = __expectString(value);
|
|
3999
|
+
return acc;
|
|
3922
4000
|
}, {});
|
|
3923
4001
|
};
|
|
3924
4002
|
const deserializeAws_restJson1Tasks = (output, context) => {
|
|
@@ -3937,10 +4015,8 @@ const deserializeAws_restJson1TokenUrlCustomProperties = (output, context) => {
|
|
|
3937
4015
|
if (value === null) {
|
|
3938
4016
|
return acc;
|
|
3939
4017
|
}
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
[key]: __expectString(value),
|
|
3943
|
-
};
|
|
4018
|
+
acc[key] = __expectString(value);
|
|
4019
|
+
return acc;
|
|
3944
4020
|
}, {});
|
|
3945
4021
|
};
|
|
3946
4022
|
const deserializeAws_restJson1TokenUrlList = (output, context) => {
|