-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-timestream-query): This change allows users to update and…
… describe account settings associated with their accounts.
- Loading branch information
awstools
committed
Apr 29, 2024
1 parent
671315c
commit 4f7a643
Showing
19 changed files
with
618 additions
and
13 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
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
97 changes: 97 additions & 0 deletions
97
clients/client-timestream-query/src/commands/DescribeAccountSettingsCommand.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,97 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointDiscoveryPlugin } from "@aws-sdk/middleware-endpoint-discovery"; | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { DescribeAccountSettingsRequest, DescribeAccountSettingsResponse } from "../models/models_0"; | ||
import { de_DescribeAccountSettingsCommand, se_DescribeAccountSettingsCommand } from "../protocols/Aws_json1_0"; | ||
import { ServiceInputTypes, ServiceOutputTypes, TimestreamQueryClientResolvedConfig } from "../TimestreamQueryClient"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export { __MetadataBearer, $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link DescribeAccountSettingsCommand}. | ||
*/ | ||
export interface DescribeAccountSettingsCommandInput extends DescribeAccountSettingsRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link DescribeAccountSettingsCommand}. | ||
*/ | ||
export interface DescribeAccountSettingsCommandOutput extends DescribeAccountSettingsResponse, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Describes the settings for your account that include the query pricing model and the configured maximum TCUs the service can use for your query workload.</p> | ||
* <p>You're charged only for the duration of compute units used for your workloads.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { TimestreamQueryClient, DescribeAccountSettingsCommand } from "@aws-sdk/client-timestream-query"; // ES Modules import | ||
* // const { TimestreamQueryClient, DescribeAccountSettingsCommand } = require("@aws-sdk/client-timestream-query"); // CommonJS import | ||
* const client = new TimestreamQueryClient(config); | ||
* const input = {}; | ||
* const command = new DescribeAccountSettingsCommand(input); | ||
* const response = await client.send(command); | ||
* // { // DescribeAccountSettingsResponse | ||
* // MaxQueryTCU: Number("int"), | ||
* // QueryPricingModel: "BYTES_SCANNED" || "COMPUTE_UNITS", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param DescribeAccountSettingsCommandInput - {@link DescribeAccountSettingsCommandInput} | ||
* @returns {@link DescribeAccountSettingsCommandOutput} | ||
* @see {@link DescribeAccountSettingsCommandInput} for command's `input` shape. | ||
* @see {@link DescribeAccountSettingsCommandOutput} for command's `response` shape. | ||
* @see {@link TimestreamQueryClientResolvedConfig | config} for TimestreamQueryClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p> You are not authorized to perform this action. </p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p> | ||
* The service was unable to fully process this request because of an internal | ||
* server error. </p> | ||
* | ||
* @throws {@link InvalidEndpointException} (client fault) | ||
* <p>The requested endpoint was not valid.</p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p>The request was denied due to request throttling.</p> | ||
* | ||
* @throws {@link TimestreamQueryServiceException} | ||
* <p>Base exception class for all service exceptions from TimestreamQuery service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class DescribeAccountSettingsCommand extends $Command | ||
.classBuilder< | ||
DescribeAccountSettingsCommandInput, | ||
DescribeAccountSettingsCommandOutput, | ||
TimestreamQueryClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: TimestreamQueryClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
getEndpointDiscoveryPlugin(config, { clientStack: cs, isDiscoveredEndpointRequired: true, options: o }), | ||
]; | ||
}) | ||
.s("Timestream_20181101", "DescribeAccountSettings", {}) | ||
.n("TimestreamQueryClient", "DescribeAccountSettingsCommand") | ||
.f(void 0, void 0) | ||
.ser(se_DescribeAccountSettingsCommand) | ||
.de(de_DescribeAccountSettingsCommand) | ||
.build() {} |
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
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
Oops, something went wrong.