-
Notifications
You must be signed in to change notification settings - Fork 584
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(clients): regenerate for smithy 1.23.0
- Loading branch information
Showing
10 changed files
with
595 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 0 additions & 79 deletions
79
private/aws-protocoltests-restjson/src/commands/MalformedSetCommand.ts
This file was deleted.
Oops, something went wrong.
101 changes: 101 additions & 0 deletions
101
private/aws-protocoltests-restjson/src/commands/PostUnionWithJsonNameCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
// smithy-typescript generated code | ||
import { getSerdePlugin } from "@aws-sdk/middleware-serde"; | ||
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; | ||
import { Command as $Command } from "@aws-sdk/smithy-client"; | ||
import { | ||
FinalizeHandlerArguments, | ||
Handler, | ||
HandlerExecutionContext, | ||
HttpHandlerOptions as __HttpHandlerOptions, | ||
MetadataBearer as __MetadataBearer, | ||
MiddlewareStack, | ||
SerdeContext as __SerdeContext, | ||
} from "@aws-sdk/types"; | ||
|
||
import { | ||
PostUnionWithJsonNameInput, | ||
PostUnionWithJsonNameInputFilterSensitiveLog, | ||
PostUnionWithJsonNameOutput, | ||
PostUnionWithJsonNameOutputFilterSensitiveLog, | ||
} from "../models/models_0"; | ||
import { | ||
deserializeAws_restJson1PostUnionWithJsonNameCommand, | ||
serializeAws_restJson1PostUnionWithJsonNameCommand, | ||
} from "../protocols/Aws_restJson1"; | ||
import { RestJsonProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RestJsonProtocolClient"; | ||
|
||
export interface PostUnionWithJsonNameCommandInput extends PostUnionWithJsonNameInput {} | ||
export interface PostUnionWithJsonNameCommandOutput extends PostUnionWithJsonNameOutput, __MetadataBearer {} | ||
|
||
/** | ||
* This operation defines a union that uses jsonName on some members. | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { RestJsonProtocolClient, PostUnionWithJsonNameCommand } from "@aws-sdk/aws-protocoltests-restjson"; // ES Modules import | ||
* // const { RestJsonProtocolClient, PostUnionWithJsonNameCommand } = require("@aws-sdk/aws-protocoltests-restjson"); // CommonJS import | ||
* const client = new RestJsonProtocolClient(config); | ||
* const command = new PostUnionWithJsonNameCommand(input); | ||
* const response = await client.send(command); | ||
* ``` | ||
* | ||
* @see {@link PostUnionWithJsonNameCommandInput} for command's `input` shape. | ||
* @see {@link PostUnionWithJsonNameCommandOutput} for command's `response` shape. | ||
* @see {@link RestJsonProtocolClientResolvedConfig | config} for RestJsonProtocolClient's `config` shape. | ||
* | ||
*/ | ||
export class PostUnionWithJsonNameCommand extends $Command< | ||
PostUnionWithJsonNameCommandInput, | ||
PostUnionWithJsonNameCommandOutput, | ||
RestJsonProtocolClientResolvedConfig | ||
> { | ||
// Start section: command_properties | ||
// End section: command_properties | ||
|
||
constructor(readonly input: PostUnionWithJsonNameCommandInput) { | ||
// Start section: command_constructor | ||
super(); | ||
// End section: command_constructor | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
resolveMiddleware( | ||
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, | ||
configuration: RestJsonProtocolClientResolvedConfig, | ||
options?: __HttpHandlerOptions | ||
): Handler<PostUnionWithJsonNameCommandInput, PostUnionWithJsonNameCommandOutput> { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
|
||
const stack = clientStack.concat(this.middlewareStack); | ||
|
||
const { logger } = configuration; | ||
const clientName = "RestJsonProtocolClient"; | ||
const commandName = "PostUnionWithJsonNameCommand"; | ||
const handlerExecutionContext: HandlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: PostUnionWithJsonNameInputFilterSensitiveLog, | ||
outputFilterSensitiveLog: PostUnionWithJsonNameOutputFilterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve( | ||
(request: FinalizeHandlerArguments<any>) => | ||
requestHandler.handle(request.request as __HttpRequest, options || {}), | ||
handlerExecutionContext | ||
); | ||
} | ||
|
||
private serialize(input: PostUnionWithJsonNameCommandInput, context: __SerdeContext): Promise<__HttpRequest> { | ||
return serializeAws_restJson1PostUnionWithJsonNameCommand(input, context); | ||
} | ||
|
||
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PostUnionWithJsonNameCommandOutput> { | ||
return deserializeAws_restJson1PostUnionWithJsonNameCommand(output, context); | ||
} | ||
|
||
// Start section: command_body_extra | ||
// End section: command_body_extra | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.