-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(clients): update clients as of 09/10/2021 (#2776)
* chore: update endpoints as of 09/10/2021 * chore(models): update api models as of 09/10/2021 * feat(clients): update clients as of 09/10/2021
- Loading branch information
1 parent
3fe226b
commit 3f49ae7
Showing
245 changed files
with
35,516 additions
and
2,258 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient"; | ||
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0"; | ||
import { | ||
deserializeAws_restJson1ListTagsForResourceCommand, | ||
serializeAws_restJson1ListTagsForResourceCommand, | ||
} from "../protocols/Aws_restJson1"; | ||
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, | ||
MiddlewareStack, | ||
HttpHandlerOptions as __HttpHandlerOptions, | ||
MetadataBearer as __MetadataBearer, | ||
SerdeContext as __SerdeContext, | ||
} from "@aws-sdk/types"; | ||
|
||
export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {} | ||
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {} | ||
|
||
/** | ||
* Lists the tags you have assigned to the resource. | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { AmpClient, ListTagsForResourceCommand } from "@aws-sdk/client-amp"; // ES Modules import | ||
* // const { AmpClient, ListTagsForResourceCommand } = require("@aws-sdk/client-amp"); // CommonJS import | ||
* const client = new AmpClient(config); | ||
* const command = new ListTagsForResourceCommand(input); | ||
* const response = await client.send(command); | ||
* ``` | ||
* | ||
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape. | ||
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape. | ||
* @see {@link AmpClientResolvedConfig | config} for command's `input` shape. | ||
* | ||
*/ | ||
export class ListTagsForResourceCommand extends $Command< | ||
ListTagsForResourceCommandInput, | ||
ListTagsForResourceCommandOutput, | ||
AmpClientResolvedConfig | ||
> { | ||
// Start section: command_properties | ||
// End section: command_properties | ||
|
||
constructor(readonly input: ListTagsForResourceCommandInput) { | ||
// Start section: command_constructor | ||
super(); | ||
// End section: command_constructor | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
resolveMiddleware( | ||
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, | ||
configuration: AmpClientResolvedConfig, | ||
options?: __HttpHandlerOptions | ||
): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
|
||
const stack = clientStack.concat(this.middlewareStack); | ||
|
||
const { logger } = configuration; | ||
const clientName = "AmpClient"; | ||
const commandName = "ListTagsForResourceCommand"; | ||
const handlerExecutionContext: HandlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog, | ||
outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve( | ||
(request: FinalizeHandlerArguments<any>) => | ||
requestHandler.handle(request.request as __HttpRequest, options || {}), | ||
handlerExecutionContext | ||
); | ||
} | ||
|
||
private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> { | ||
return serializeAws_restJson1ListTagsForResourceCommand(input, context); | ||
} | ||
|
||
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> { | ||
return deserializeAws_restJson1ListTagsForResourceCommand(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient"; | ||
import { TagResourceRequest, TagResourceResponse } from "../models/models_0"; | ||
import { | ||
deserializeAws_restJson1TagResourceCommand, | ||
serializeAws_restJson1TagResourceCommand, | ||
} from "../protocols/Aws_restJson1"; | ||
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, | ||
MiddlewareStack, | ||
HttpHandlerOptions as __HttpHandlerOptions, | ||
MetadataBearer as __MetadataBearer, | ||
SerdeContext as __SerdeContext, | ||
} from "@aws-sdk/types"; | ||
|
||
export interface TagResourceCommandInput extends TagResourceRequest {} | ||
export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {} | ||
|
||
/** | ||
* Creates tags for the specified resource. | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { AmpClient, TagResourceCommand } from "@aws-sdk/client-amp"; // ES Modules import | ||
* // const { AmpClient, TagResourceCommand } = require("@aws-sdk/client-amp"); // CommonJS import | ||
* const client = new AmpClient(config); | ||
* const command = new TagResourceCommand(input); | ||
* const response = await client.send(command); | ||
* ``` | ||
* | ||
* @see {@link TagResourceCommandInput} for command's `input` shape. | ||
* @see {@link TagResourceCommandOutput} for command's `response` shape. | ||
* @see {@link AmpClientResolvedConfig | config} for command's `input` shape. | ||
* | ||
*/ | ||
export class TagResourceCommand extends $Command< | ||
TagResourceCommandInput, | ||
TagResourceCommandOutput, | ||
AmpClientResolvedConfig | ||
> { | ||
// Start section: command_properties | ||
// End section: command_properties | ||
|
||
constructor(readonly input: TagResourceCommandInput) { | ||
// Start section: command_constructor | ||
super(); | ||
// End section: command_constructor | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
resolveMiddleware( | ||
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, | ||
configuration: AmpClientResolvedConfig, | ||
options?: __HttpHandlerOptions | ||
): Handler<TagResourceCommandInput, TagResourceCommandOutput> { | ||
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); | ||
|
||
const stack = clientStack.concat(this.middlewareStack); | ||
|
||
const { logger } = configuration; | ||
const clientName = "AmpClient"; | ||
const commandName = "TagResourceCommand"; | ||
const handlerExecutionContext: HandlerExecutionContext = { | ||
logger, | ||
clientName, | ||
commandName, | ||
inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog, | ||
outputFilterSensitiveLog: TagResourceResponse.filterSensitiveLog, | ||
}; | ||
const { requestHandler } = configuration; | ||
return stack.resolve( | ||
(request: FinalizeHandlerArguments<any>) => | ||
requestHandler.handle(request.request as __HttpRequest, options || {}), | ||
handlerExecutionContext | ||
); | ||
} | ||
|
||
private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> { | ||
return serializeAws_restJson1TagResourceCommand(input, context); | ||
} | ||
|
||
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> { | ||
return deserializeAws_restJson1TagResourceCommand(output, context); | ||
} | ||
|
||
// Start section: command_body_extra | ||
// End section: command_body_extra | ||
} |
Oops, something went wrong.