Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(codegen): upgrade to Smithy 1.33.0 #4919

Merged
merged 1 commit into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codegen/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
smithyVersion=1.30.0
smithyVersion=1.33.0
smithyGradleVersion=0.6.0
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,13 @@ private static boolean filterProtocolTests(
return true;
}

// TODO: Remove when requestCompression has been implemented.
if (testCase.getId().startsWith("SDKAppliedContentEncoding_")
|| testCase.getId().startsWith("SDKAppendsGzipAndIgnoresHttpProvidedEncoding_")
|| testCase.getId().startsWith("SDKAppendedGzipAfterProvidedEncoding_")) {
return true;
}

// TODO: remove when there's a decision on separator to use
// https://github.com/awslabs/smithy/issues/1014
if (testCase.getId().equals("RestJsonInputAndOutputWithQuotedStringHeaders")) {
Expand Down
56 changes: 56 additions & 0 deletions private/aws-protocoltests-ec2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,14 @@ NoInputAndOutput

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/noinputandoutputcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/noinputandoutputcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/noinputandoutputcommandoutput.html)

</details>
<details>
<summary>
PutWithContentEncoding
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/putwithcontentencodingcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putwithcontentencodingcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putwithcontentencodingcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -506,6 +514,14 @@ PutAndGetInlineDocuments

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/putandgetinlinedocumentscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putandgetinlinedocumentscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putandgetinlinedocumentscommandoutput.html)

</details>
<details>
<summary>
PutWithContentEncoding
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/putwithcontentencodingcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putwithcontentencodingcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putwithcontentencodingcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -578,6 +594,14 @@ NoInputAndOutput

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/noinputandoutputcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/noinputandoutputcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/noinputandoutputcommandoutput.html)

</details>
<details>
<summary>
PutWithContentEncoding
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/putwithcontentencodingcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putwithcontentencodingcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putwithcontentencodingcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -706,6 +730,14 @@ NoInputAndOutput

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/noinputandoutputcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/noinputandoutputcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/noinputandoutputcommandoutput.html)

</details>
<details>
<summary>
PutWithContentEncoding
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/putwithcontentencodingcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putwithcontentencodingcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putwithcontentencodingcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -1466,6 +1498,14 @@ PostUnionWithJsonName

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/postunionwithjsonnamecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/postunionwithjsonnamecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/postunionwithjsonnamecommandoutput.html)

</details>
<details>
<summary>
PutWithContentEncoding
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/putwithcontentencodingcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putwithcontentencodingcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putwithcontentencodingcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -1970,6 +2010,14 @@ OmitsNullSerializesEmptyString

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/omitsnullserializesemptystringcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/omitsnullserializesemptystringcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/omitsnullserializesemptystringcommandoutput.html)

</details>
<details>
<summary>
PutWithContentEncoding
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/putwithcontentencodingcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putwithcontentencodingcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/putwithcontentencodingcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -2178,6 +2226,14 @@ Predict

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/predictcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/predictcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/predictcommandoutput.html)

</details>
<details>
<summary>
DeleteObjectTagging
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/classes/deleteobjecttaggingcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/deleteobjecttaggingcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2-protocol/interfaces/deleteobjecttaggingcommandoutput.html)

</details>
<details>
<summary>
Expand Down
23 changes: 23 additions & 0 deletions private/aws-protocoltests-ec2/src/EC2Protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ import {
NoInputAndOutputCommandInput,
NoInputAndOutputCommandOutput,
} from "./commands/NoInputAndOutputCommand";
import {
PutWithContentEncodingCommand,
PutWithContentEncodingCommandInput,
PutWithContentEncodingCommandOutput,
} from "./commands/PutWithContentEncodingCommand";
import {
QueryIdempotencyTokenAutoFillCommand,
QueryIdempotencyTokenAutoFillCommandInput,
Expand Down Expand Up @@ -115,6 +120,7 @@ const commands = {
IgnoresWrappingXmlNameCommand,
NestedStructuresCommand,
NoInputAndOutputCommand,
PutWithContentEncodingCommand,
QueryIdempotencyTokenAutoFillCommand,
QueryListsCommand,
QueryTimestampsCommand,
Expand Down Expand Up @@ -299,6 +305,23 @@ export interface EC2Protocol {
cb: (err: any, data?: NoInputAndOutputCommandOutput) => void
): void;

/**
* @see {@link PutWithContentEncodingCommand}
*/
putWithContentEncoding(
args: PutWithContentEncodingCommandInput,
options?: __HttpHandlerOptions
): Promise<PutWithContentEncodingCommandOutput>;
putWithContentEncoding(
args: PutWithContentEncodingCommandInput,
cb: (err: any, data?: PutWithContentEncodingCommandOutput) => void
): void;
putWithContentEncoding(
args: PutWithContentEncodingCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: PutWithContentEncodingCommandOutput) => void
): void;

/**
* @see {@link QueryIdempotencyTokenAutoFillCommand}
*/
Expand Down
6 changes: 6 additions & 0 deletions private/aws-protocoltests-ec2/src/EC2ProtocolClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ import {
} from "./commands/IgnoresWrappingXmlNameCommand";
import { NestedStructuresCommandInput, NestedStructuresCommandOutput } from "./commands/NestedStructuresCommand";
import { NoInputAndOutputCommandInput, NoInputAndOutputCommandOutput } from "./commands/NoInputAndOutputCommand";
import {
PutWithContentEncodingCommandInput,
PutWithContentEncodingCommandOutput,
} from "./commands/PutWithContentEncodingCommand";
import {
QueryIdempotencyTokenAutoFillCommandInput,
QueryIdempotencyTokenAutoFillCommandOutput,
Expand Down Expand Up @@ -108,6 +112,7 @@ export type ServiceInputTypes =
| IgnoresWrappingXmlNameCommandInput
| NestedStructuresCommandInput
| NoInputAndOutputCommandInput
| PutWithContentEncodingCommandInput
| QueryIdempotencyTokenAutoFillCommandInput
| QueryListsCommandInput
| QueryTimestampsCommandInput
Expand Down Expand Up @@ -137,6 +142,7 @@ export type ServiceOutputTypes =
| IgnoresWrappingXmlNameCommandOutput
| NestedStructuresCommandOutput
| NoInputAndOutputCommandOutput
| PutWithContentEncodingCommandOutput
| QueryIdempotencyTokenAutoFillCommandOutput
| QueryListsCommandOutput
| QueryTimestampsCommandOutput
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
// smithy-typescript generated code
import { getSerdePlugin } from "@smithy/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import { Command as $Command } from "@smithy/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
MiddlewareStack,
SerdeContext as __SerdeContext,
} from "@smithy/types";

import { EC2ProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2ProtocolClient";
import { PutWithContentEncodingInput } from "../models/models_0";
import { de_PutWithContentEncodingCommand, se_PutWithContentEncodingCommand } from "../protocols/Aws_ec2";

/**
* @public
*/
export { __MetadataBearer, $Command };
/**
* @public
*
* The input for {@link PutWithContentEncodingCommand}.
*/
export interface PutWithContentEncodingCommandInput extends PutWithContentEncodingInput {}
/**
* @public
*
* The output of {@link PutWithContentEncodingCommand}.
*/
export interface PutWithContentEncodingCommandOutput extends __MetadataBearer {}

export class PutWithContentEncodingCommand extends $Command<
PutWithContentEncodingCommandInput,
PutWithContentEncodingCommandOutput,
EC2ProtocolClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

/**
* @public
*/
constructor(readonly input: PutWithContentEncodingCommandInput) {
// Start section: command_constructor
super();
// End section: command_constructor
}

/**
* @internal
*/
resolveMiddleware(
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: EC2ProtocolClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<PutWithContentEncodingCommandInput, PutWithContentEncodingCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));

const stack = clientStack.concat(this.middlewareStack);

const { logger } = configuration;
const clientName = "EC2ProtocolClient";
const commandName = "PutWithContentEncodingCommand";
const handlerExecutionContext: HandlerExecutionContext = {
logger,
clientName,
commandName,
inputFilterSensitiveLog: (_: any) => _,
outputFilterSensitiveLog: (_: any) => _,
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
requestHandler.handle(request.request as __HttpRequest, options || {}),
handlerExecutionContext
);
}

/**
* @internal
*/
private serialize(input: PutWithContentEncodingCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
return se_PutWithContentEncodingCommand(input, context);
}

/**
* @internal
*/
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutWithContentEncodingCommandOutput> {
return de_PutWithContentEncodingCommand(output, context);
}

// Start section: command_body_extra
// End section: command_body_extra
}
1 change: 1 addition & 0 deletions private/aws-protocoltests-ec2/src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export * from "./HostWithPathOperationCommand";
export * from "./IgnoresWrappingXmlNameCommand";
export * from "./NestedStructuresCommand";
export * from "./NoInputAndOutputCommand";
export * from "./PutWithContentEncodingCommand";
export * from "./QueryIdempotencyTokenAutoFillCommand";
export * from "./QueryListsCommand";
export * from "./QueryTimestampsCommand";
Expand Down
8 changes: 8 additions & 0 deletions private/aws-protocoltests-ec2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ export interface IgnoresWrappingXmlNameOutput {
*/
export interface NoInputAndOutputOutput {}

/**
* @public
*/
export interface PutWithContentEncodingInput {
encoding?: string;
data?: string;
}

/**
* @public
*/
Expand Down
Loading