Skip to content

Commit 717b06f

Browse files
authored
feat(clients): update clients as of 2022/02/18 (#3335)
1 parent a6d95f3 commit 717b06f

File tree

308 files changed

+12314
-4314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

308 files changed

+12314
-4314
lines changed

Diff for: clients/client-appflow/src/models/models_0.ts

+82
Original file line numberDiff line numberDiff line change
@@ -3778,6 +3778,82 @@ export namespace SalesforceDestinationProperties {
37783778
});
37793779
}
37803780

3781+
/**
3782+
* <p>Determines how Amazon AppFlow handles the success response that it gets
3783+
* from the connector after placing data.</p>
3784+
* <p>For example, this setting would determine
3785+
* where to write the response from the destination connector upon a successful insert
3786+
* operation.</p>
3787+
*/
3788+
export interface SuccessResponseHandlingConfig {
3789+
/**
3790+
* <p>The Amazon S3 bucket prefix.</p>
3791+
*/
3792+
bucketPrefix?: string;
3793+
3794+
/**
3795+
* <p>The name of the Amazon S3 bucket.</p>
3796+
*/
3797+
bucketName?: string;
3798+
}
3799+
3800+
export namespace SuccessResponseHandlingConfig {
3801+
/**
3802+
* @internal
3803+
*/
3804+
export const filterSensitiveLog = (obj: SuccessResponseHandlingConfig): any => ({
3805+
...obj,
3806+
});
3807+
}
3808+
3809+
/**
3810+
* <p>The properties that are applied when using SAPOData as a flow destination</p>
3811+
*/
3812+
export interface SAPODataDestinationProperties {
3813+
/**
3814+
* <p>The object path specified in the SAPOData flow destination.</p>
3815+
*/
3816+
objectPath: string | undefined;
3817+
3818+
/**
3819+
* <p>Determines how Amazon AppFlow handles the success response that it gets
3820+
* from the connector after placing data.</p>
3821+
* <p>For example, this setting would determine where to write the response from a destination
3822+
* connector upon a successful insert operation.</p>
3823+
*/
3824+
successResponseHandlingConfig?: SuccessResponseHandlingConfig;
3825+
3826+
/**
3827+
* <p> A list of field names that can be used as an ID field when performing a write operation.
3828+
* </p>
3829+
*/
3830+
idFieldNames?: string[];
3831+
3832+
/**
3833+
* <p> The settings that determine how Amazon AppFlow handles an error when placing data in the
3834+
* destination. For example, this setting would determine if the flow should fail after one
3835+
* insertion error, or continue and attempt to insert every record regardless of the initial
3836+
* failure. <code>ErrorHandlingConfig</code> is a part of the destination connector details.
3837+
* </p>
3838+
*/
3839+
errorHandlingConfig?: ErrorHandlingConfig;
3840+
3841+
/**
3842+
* <p> The possible write operations in the destination connector. When this value is not
3843+
* provided, this defaults to the <code>INSERT</code> operation. </p>
3844+
*/
3845+
writeOperationType?: WriteOperationType | string;
3846+
}
3847+
3848+
export namespace SAPODataDestinationProperties {
3849+
/**
3850+
* @internal
3851+
*/
3852+
export const filterSensitiveLog = (obj: SAPODataDestinationProperties): any => ({
3853+
...obj,
3854+
});
3855+
}
3856+
37813857
/**
37823858
* <p> The properties that are applied when Snowflake is being used as a destination. </p>
37833859
*/
@@ -3980,6 +4056,11 @@ export interface DestinationConnectorProperties {
39804056
* <p>The properties that are required to query the custom Connector.</p>
39814057
*/
39824058
CustomConnector?: CustomConnectorDestinationProperties;
4059+
4060+
/**
4061+
* <p>The properties required to query SAPOData.</p>
4062+
*/
4063+
SAPOData?: SAPODataDestinationProperties;
39834064
}
39844065

39854066
export namespace DestinationConnectorProperties {
@@ -4568,6 +4649,7 @@ export enum TaskType {
45684649
MAP_ALL = "Map_all",
45694650
MASK = "Mask",
45704651
MERGE = "Merge",
4652+
PASSTHROUGH = "Passthrough",
45714653
TRUNCATE = "Truncate",
45724654
VALIDATE = "Validate",
45734655
}

Diff for: clients/client-appflow/src/protocols/Aws_restJson1.ts

+78
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ import {
173173
SalesforceSourceProperties,
174174
SAPODataConnectorProfileCredentials,
175175
SAPODataConnectorProfileProperties,
176+
SAPODataDestinationProperties,
176177
SAPODataMetadata,
177178
SAPODataSourceProperties,
178179
ScheduledTriggerProperties,
@@ -197,6 +198,7 @@ import {
197198
SourceConnectorProperties,
198199
SourceFieldProperties,
199200
SourceFlowConfig,
201+
SuccessResponseHandlingConfig,
200202
SupportedFieldTypeDetails,
201203
Task,
202204
ThrottlingException,
@@ -3323,6 +3325,10 @@ const serializeAws_restJson1DestinationConnectorProperties = (
33233325
}),
33243326
...(input.S3 !== undefined &&
33253327
input.S3 !== null && { S3: serializeAws_restJson1S3DestinationProperties(input.S3, context) }),
3328+
...(input.SAPOData !== undefined &&
3329+
input.SAPOData !== null && {
3330+
SAPOData: serializeAws_restJson1SAPODataDestinationProperties(input.SAPOData, context),
3331+
}),
33263332
...(input.Salesforce !== undefined &&
33273333
input.Salesforce !== null && {
33283334
Salesforce: serializeAws_restJson1SalesforceDestinationProperties(input.Salesforce, context),
@@ -3836,6 +3842,32 @@ const serializeAws_restJson1SAPODataConnectorProfileProperties = (
38363842
};
38373843
};
38383844

3845+
const serializeAws_restJson1SAPODataDestinationProperties = (
3846+
input: SAPODataDestinationProperties,
3847+
context: __SerdeContext
3848+
): any => {
3849+
return {
3850+
...(input.errorHandlingConfig !== undefined &&
3851+
input.errorHandlingConfig !== null && {
3852+
errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
3853+
}),
3854+
...(input.idFieldNames !== undefined &&
3855+
input.idFieldNames !== null && {
3856+
idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
3857+
}),
3858+
...(input.objectPath !== undefined && input.objectPath !== null && { objectPath: input.objectPath }),
3859+
...(input.successResponseHandlingConfig !== undefined &&
3860+
input.successResponseHandlingConfig !== null && {
3861+
successResponseHandlingConfig: serializeAws_restJson1SuccessResponseHandlingConfig(
3862+
input.successResponseHandlingConfig,
3863+
context
3864+
),
3865+
}),
3866+
...(input.writeOperationType !== undefined &&
3867+
input.writeOperationType !== null && { writeOperationType: input.writeOperationType }),
3868+
};
3869+
};
3870+
38393871
const serializeAws_restJson1SAPODataSourceProperties = (
38403872
input: SAPODataSourceProperties,
38413873
context: __SerdeContext
@@ -4079,6 +4111,16 @@ const serializeAws_restJson1SourceFlowConfig = (input: SourceFlowConfig, context
40794111
};
40804112
};
40814113

4114+
const serializeAws_restJson1SuccessResponseHandlingConfig = (
4115+
input: SuccessResponseHandlingConfig,
4116+
context: __SerdeContext
4117+
): any => {
4118+
return {
4119+
...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
4120+
...(input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }),
4121+
};
4122+
};
4123+
40824124
const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => {
40834125
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
40844126
if (value === null) {
@@ -5046,6 +5088,10 @@ const deserializeAws_restJson1DestinationConnectorProperties = (
50465088
output.S3 !== undefined && output.S3 !== null
50475089
? deserializeAws_restJson1S3DestinationProperties(output.S3, context)
50485090
: undefined,
5091+
SAPOData:
5092+
output.SAPOData !== undefined && output.SAPOData !== null
5093+
? deserializeAws_restJson1SAPODataDestinationProperties(output.SAPOData, context)
5094+
: undefined,
50495095
Salesforce:
50505096
output.Salesforce !== undefined && output.Salesforce !== null
50515097
? deserializeAws_restJson1SalesforceDestinationProperties(output.Salesforce, context)
@@ -5696,6 +5742,28 @@ const deserializeAws_restJson1SAPODataConnectorProfileProperties = (
56965742
} as any;
56975743
};
56985744

5745+
const deserializeAws_restJson1SAPODataDestinationProperties = (
5746+
output: any,
5747+
context: __SerdeContext
5748+
): SAPODataDestinationProperties => {
5749+
return {
5750+
errorHandlingConfig:
5751+
output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
5752+
? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
5753+
: undefined,
5754+
idFieldNames:
5755+
output.idFieldNames !== undefined && output.idFieldNames !== null
5756+
? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
5757+
: undefined,
5758+
objectPath: __expectString(output.objectPath),
5759+
successResponseHandlingConfig:
5760+
output.successResponseHandlingConfig !== undefined && output.successResponseHandlingConfig !== null
5761+
? deserializeAws_restJson1SuccessResponseHandlingConfig(output.successResponseHandlingConfig, context)
5762+
: undefined,
5763+
writeOperationType: __expectString(output.writeOperationType),
5764+
} as any;
5765+
};
5766+
56995767
const deserializeAws_restJson1SAPODataMetadata = (output: any, context: __SerdeContext): SAPODataMetadata => {
57005768
return {} as any;
57015769
};
@@ -5959,6 +6027,16 @@ const deserializeAws_restJson1SourceFlowConfig = (output: any, context: __SerdeC
59596027
} as any;
59606028
};
59616029

6030+
const deserializeAws_restJson1SuccessResponseHandlingConfig = (
6031+
output: any,
6032+
context: __SerdeContext
6033+
): SuccessResponseHandlingConfig => {
6034+
return {
6035+
bucketName: __expectString(output.bucketName),
6036+
bucketPrefix: __expectString(output.bucketPrefix),
6037+
} as any;
6038+
};
6039+
59626040
const deserializeAws_restJson1SupportedApiVersionList = (output: any, context: __SerdeContext): string[] => {
59636041
return (output || [])
59646042
.filter((e: any) => e != null)

0 commit comments

Comments
 (0)