Skip to content

Commit

Permalink
feat(clients): bump smithy to 1.16.3 (#3236)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Jan 24, 2022
1 parent f8db067 commit a227791
Show file tree
Hide file tree
Showing 27 changed files with 1,237 additions and 186 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import {
} from "@aws-sdk/types";

import { JSONRPC10ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../JSONRPC10Client";
import { EmptyInputAndEmptyOutputInput } from "../models/models_0";
import { EmptyInputAndEmptyOutputInput, EmptyInputAndEmptyOutputOutput } from "../models/models_0";
import {
deserializeAws_json1_0EmptyInputAndEmptyOutputCommand,
serializeAws_json1_0EmptyInputAndEmptyOutputCommand,
} from "../protocols/Aws_json1_0";

export interface EmptyInputAndEmptyOutputCommandInput extends EmptyInputAndEmptyOutputInput {}
export interface EmptyInputAndEmptyOutputCommandOutput extends EmptyInputAndEmptyOutputInput, __MetadataBearer {}
export interface EmptyInputAndEmptyOutputCommandOutput extends EmptyInputAndEmptyOutputOutput, __MetadataBearer {}

/**
* The example tests how requests and responses are serialized when there's
Expand Down Expand Up @@ -75,7 +75,7 @@ export class EmptyInputAndEmptyOutputCommand extends $Command<
clientName,
commandName,
inputFilterSensitiveLog: EmptyInputAndEmptyOutputInput.filterSensitiveLog,
outputFilterSensitiveLog: EmptyInputAndEmptyOutputInput.filterSensitiveLog,
outputFilterSensitiveLog: EmptyInputAndEmptyOutputOutput.filterSensitiveLog,
};
const { requestHandler } = configuration;
return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import {
} from "@aws-sdk/types";

import { JSONRPC10ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../JSONRPC10Client";
import { HostLabelInput } from "../models/models_0";
import { EndpointWithHostLabelOperationInput } from "../models/models_0";
import {
deserializeAws_json1_0EndpointWithHostLabelOperationCommand,
serializeAws_json1_0EndpointWithHostLabelOperationCommand,
} from "../protocols/Aws_json1_0";

export interface EndpointWithHostLabelOperationCommandInput extends HostLabelInput {}
export interface EndpointWithHostLabelOperationCommandInput extends EndpointWithHostLabelOperationInput {}
export interface EndpointWithHostLabelOperationCommandOutput extends __MetadataBearer {}

export class EndpointWithHostLabelOperationCommand extends $Command<
Expand Down Expand Up @@ -54,7 +54,7 @@ export class EndpointWithHostLabelOperationCommand extends $Command<
logger,
clientName,
commandName,
inputFilterSensitiveLog: HostLabelInput.filterSensitiveLog,
inputFilterSensitiveLog: EndpointWithHostLabelOperationInput.filterSensitiveLog,
outputFilterSensitiveLog: (output: any) => output,
};
const { requestHandler } = configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import {
} from "@aws-sdk/types";

import { JSONRPC10ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../JSONRPC10Client";
import { GreetingWithErrorsOutput } from "../models/models_0";
import { GreetingWithErrorsInput, GreetingWithErrorsOutput } from "../models/models_0";
import {
deserializeAws_json1_0GreetingWithErrorsCommand,
serializeAws_json1_0GreetingWithErrorsCommand,
} from "../protocols/Aws_json1_0";

export interface GreetingWithErrorsCommandInput {}
export interface GreetingWithErrorsCommandInput extends GreetingWithErrorsInput {}
export interface GreetingWithErrorsCommandOutput extends GreetingWithErrorsOutput, __MetadataBearer {}

/**
Expand Down Expand Up @@ -78,7 +78,7 @@ export class GreetingWithErrorsCommand extends $Command<
logger,
clientName,
commandName,
inputFilterSensitiveLog: (input: any) => input,
inputFilterSensitiveLog: GreetingWithErrorsInput.filterSensitiveLog,
outputFilterSensitiveLog: GreetingWithErrorsOutput.filterSensitiveLog,
};
const { requestHandler } = configuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import {
} from "@aws-sdk/types";

import { JSONRPC10ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../JSONRPC10Client";
import { UnionInputOutput } from "../models/models_0";
import { JsonUnionsInput, JsonUnionsOutput } from "../models/models_0";
import {
deserializeAws_json1_0JsonUnionsCommand,
serializeAws_json1_0JsonUnionsCommand,
} from "../protocols/Aws_json1_0";

export interface JsonUnionsCommandInput extends UnionInputOutput {}
export interface JsonUnionsCommandOutput extends UnionInputOutput, __MetadataBearer {}
export interface JsonUnionsCommandInput extends JsonUnionsInput {}
export interface JsonUnionsCommandOutput extends JsonUnionsOutput, __MetadataBearer {}

/**
* This operation uses unions for inputs and outputs.
Expand Down Expand Up @@ -71,8 +71,8 @@ export class JsonUnionsCommand extends $Command<
logger,
clientName,
commandName,
inputFilterSensitiveLog: UnionInputOutput.filterSensitiveLog,
outputFilterSensitiveLog: UnionInputOutput.filterSensitiveLog,
inputFilterSensitiveLog: JsonUnionsInput.filterSensitiveLog,
outputFilterSensitiveLog: JsonUnionsOutput.filterSensitiveLog,
};
const { requestHandler } = configuration;
return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import {
} from "@aws-sdk/types";

import { JSONRPC10ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../JSONRPC10Client";
import { SimpleScalarPropertiesInputOutput } from "../models/models_0";
import { SimpleScalarPropertiesInput, SimpleScalarPropertiesOutput } from "../models/models_0";
import {
deserializeAws_json1_0SimpleScalarPropertiesCommand,
serializeAws_json1_0SimpleScalarPropertiesCommand,
} from "../protocols/Aws_json1_0";

export interface SimpleScalarPropertiesCommandInput extends SimpleScalarPropertiesInputOutput {}
export interface SimpleScalarPropertiesCommandOutput extends SimpleScalarPropertiesInputOutput, __MetadataBearer {}
export interface SimpleScalarPropertiesCommandInput extends SimpleScalarPropertiesInput {}
export interface SimpleScalarPropertiesCommandOutput extends SimpleScalarPropertiesOutput, __MetadataBearer {}

export class SimpleScalarPropertiesCommand extends $Command<
SimpleScalarPropertiesCommandInput,
Expand Down Expand Up @@ -54,8 +54,8 @@ export class SimpleScalarPropertiesCommand extends $Command<
logger,
clientName,
commandName,
inputFilterSensitiveLog: SimpleScalarPropertiesInputOutput.filterSensitiveLog,
outputFilterSensitiveLog: SimpleScalarPropertiesInputOutput.filterSensitiveLog,
inputFilterSensitiveLog: SimpleScalarPropertiesInput.filterSensitiveLog,
outputFilterSensitiveLog: SimpleScalarPropertiesOutput.filterSensitiveLog,
};
const { requestHandler } = configuration;
return stack.resolve(
Expand Down
76 changes: 64 additions & 12 deletions private/aws-protocoltests-json-10/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,26 @@ export namespace EmptyInputAndEmptyOutputInput {
});
}

export interface HostLabelInput {
export interface EmptyInputAndEmptyOutputOutput {}

export namespace EmptyInputAndEmptyOutputOutput {
/**
* @internal
*/
export const filterSensitiveLog = (obj: EmptyInputAndEmptyOutputOutput): any => ({
...obj,
});
}

export interface EndpointWithHostLabelOperationInput {
label: string | undefined;
}

export namespace HostLabelInput {
export namespace EndpointWithHostLabelOperationInput {
/**
* @internal
*/
export const filterSensitiveLog = (obj: HostLabelInput): any => ({
export const filterSensitiveLog = (obj: EndpointWithHostLabelOperationInput): any => ({
...obj,
});
}
Expand All @@ -56,6 +67,19 @@ export interface FooError extends __SmithyException, $MetadataBearer {
$fault: "server";
}

export interface GreetingWithErrorsInput {
greeting?: string;
}

export namespace GreetingWithErrorsInput {
/**
* @internal
*/
export const filterSensitiveLog = (obj: GreetingWithErrorsInput): any => ({
...obj,
});
}

export interface GreetingWithErrorsOutput {
greeting?: string;
}
Expand Down Expand Up @@ -289,21 +313,35 @@ export namespace MyUnion {
};
}

/**
* A shared structure that contains a single union member.
*/
export interface UnionInputOutput {
export interface JsonUnionsInput {
/**
* A union with a representative set of types for members.
*/
contents?: MyUnion;
}

export namespace UnionInputOutput {
export namespace JsonUnionsInput {
/**
* @internal
*/
export const filterSensitiveLog = (obj: UnionInputOutput): any => ({
export const filterSensitiveLog = (obj: JsonUnionsInput): any => ({
...obj,
...(obj.contents && { contents: MyUnion.filterSensitiveLog(obj.contents) }),
});
}

export interface JsonUnionsOutput {
/**
* A union with a representative set of types for members.
*/
contents?: MyUnion;
}

export namespace JsonUnionsOutput {
/**
* @internal
*/
export const filterSensitiveLog = (obj: JsonUnionsOutput): any => ({
...obj,
...(obj.contents && { contents: MyUnion.filterSensitiveLog(obj.contents) }),
});
Expand All @@ -320,16 +358,30 @@ export namespace NoInputAndOutputOutput {
});
}

export interface SimpleScalarPropertiesInputOutput {
export interface SimpleScalarPropertiesInput {
floatValue?: number;
doubleValue?: number;
}

export namespace SimpleScalarPropertiesInput {
/**
* @internal
*/
export const filterSensitiveLog = (obj: SimpleScalarPropertiesInput): any => ({
...obj,
});
}

export interface SimpleScalarPropertiesOutput {
floatValue?: number;
doubleValue?: number;
}

export namespace SimpleScalarPropertiesInputOutput {
export namespace SimpleScalarPropertiesOutput {
/**
* @internal
*/
export const filterSensitiveLog = (obj: SimpleScalarPropertiesInputOutput): any => ({
export const filterSensitiveLog = (obj: SimpleScalarPropertiesOutput): any => ({
...obj,
});
}
Loading

0 comments on commit a227791

Please sign in to comment.