@aws-sdk/client-dynamodb
Version:
AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native
165 lines (164 loc) • 8.2 kB
TypeScript
import { Command as $Command } from "@smithy/smithy-client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DynamoDBClient";
import type { DescribeTableReplicaAutoScalingInput, DescribeTableReplicaAutoScalingOutput } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link DescribeTableReplicaAutoScalingCommand}.
*/
export interface DescribeTableReplicaAutoScalingCommandInput extends DescribeTableReplicaAutoScalingInput {
}
/**
* @public
*
* The output of {@link DescribeTableReplicaAutoScalingCommand}.
*/
export interface DescribeTableReplicaAutoScalingCommandOutput extends DescribeTableReplicaAutoScalingOutput, __MetadataBearer {
}
declare const DescribeTableReplicaAutoScalingCommand_base: {
new (input: DescribeTableReplicaAutoScalingCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeTableReplicaAutoScalingCommandInput, DescribeTableReplicaAutoScalingCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: DescribeTableReplicaAutoScalingCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeTableReplicaAutoScalingCommandInput, DescribeTableReplicaAutoScalingCommandOutput, DynamoDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <p>Describes auto scaling settings across replicas of the global table at once.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { DynamoDBClient, DescribeTableReplicaAutoScalingCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
* // const { DynamoDBClient, DescribeTableReplicaAutoScalingCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
* // import type { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb";
* const config = {}; // type is DynamoDBClientConfig
* const client = new DynamoDBClient(config);
* const input = { // DescribeTableReplicaAutoScalingInput
* TableName: "STRING_VALUE", // required
* };
* const command = new DescribeTableReplicaAutoScalingCommand(input);
* const response = await client.send(command);
* // { // DescribeTableReplicaAutoScalingOutput
* // TableAutoScalingDescription: { // TableAutoScalingDescription
* // TableName: "STRING_VALUE",
* // TableStatus: "CREATING" || "UPDATING" || "DELETING" || "ACTIVE" || "INACCESSIBLE_ENCRYPTION_CREDENTIALS" || "ARCHIVING" || "ARCHIVED" || "REPLICATION_NOT_AUTHORIZED",
* // Replicas: [ // ReplicaAutoScalingDescriptionList
* // { // ReplicaAutoScalingDescription
* // RegionName: "STRING_VALUE",
* // GlobalSecondaryIndexes: [ // ReplicaGlobalSecondaryIndexAutoScalingDescriptionList
* // { // ReplicaGlobalSecondaryIndexAutoScalingDescription
* // IndexName: "STRING_VALUE",
* // IndexStatus: "CREATING" || "UPDATING" || "DELETING" || "ACTIVE",
* // ProvisionedReadCapacityAutoScalingSettings: { // AutoScalingSettingsDescription
* // MinimumUnits: Number("long"),
* // MaximumUnits: Number("long"),
* // AutoScalingDisabled: true || false,
* // AutoScalingRoleArn: "STRING_VALUE",
* // ScalingPolicies: [ // AutoScalingPolicyDescriptionList
* // { // AutoScalingPolicyDescription
* // PolicyName: "STRING_VALUE",
* // TargetTrackingScalingPolicyConfiguration: { // AutoScalingTargetTrackingScalingPolicyConfigurationDescription
* // DisableScaleIn: true || false,
* // ScaleInCooldown: Number("int"),
* // ScaleOutCooldown: Number("int"),
* // TargetValue: Number("double"), // required
* // },
* // },
* // ],
* // },
* // ProvisionedWriteCapacityAutoScalingSettings: {
* // MinimumUnits: Number("long"),
* // MaximumUnits: Number("long"),
* // AutoScalingDisabled: true || false,
* // AutoScalingRoleArn: "STRING_VALUE",
* // ScalingPolicies: [
* // {
* // PolicyName: "STRING_VALUE",
* // TargetTrackingScalingPolicyConfiguration: {
* // DisableScaleIn: true || false,
* // ScaleInCooldown: Number("int"),
* // ScaleOutCooldown: Number("int"),
* // TargetValue: Number("double"), // required
* // },
* // },
* // ],
* // },
* // },
* // ],
* // ReplicaProvisionedReadCapacityAutoScalingSettings: {
* // MinimumUnits: Number("long"),
* // MaximumUnits: Number("long"),
* // AutoScalingDisabled: true || false,
* // AutoScalingRoleArn: "STRING_VALUE",
* // ScalingPolicies: [
* // {
* // PolicyName: "STRING_VALUE",
* // TargetTrackingScalingPolicyConfiguration: {
* // DisableScaleIn: true || false,
* // ScaleInCooldown: Number("int"),
* // ScaleOutCooldown: Number("int"),
* // TargetValue: Number("double"), // required
* // },
* // },
* // ],
* // },
* // ReplicaProvisionedWriteCapacityAutoScalingSettings: {
* // MinimumUnits: Number("long"),
* // MaximumUnits: Number("long"),
* // AutoScalingDisabled: true || false,
* // AutoScalingRoleArn: "STRING_VALUE",
* // ScalingPolicies: [
* // {
* // PolicyName: "STRING_VALUE",
* // TargetTrackingScalingPolicyConfiguration: {
* // DisableScaleIn: true || false,
* // ScaleInCooldown: Number("int"),
* // ScaleOutCooldown: Number("int"),
* // TargetValue: Number("double"), // required
* // },
* // },
* // ],
* // },
* // ReplicaStatus: "CREATING" || "CREATION_FAILED" || "UPDATING" || "DELETING" || "ACTIVE" || "REGION_DISABLED" || "INACCESSIBLE_ENCRYPTION_CREDENTIALS" || "ARCHIVING" || "ARCHIVED" || "REPLICATION_NOT_AUTHORIZED",
* // },
* // ],
* // },
* // };
*
* ```
*
* @param DescribeTableReplicaAutoScalingCommandInput - {@link DescribeTableReplicaAutoScalingCommandInput}
* @returns {@link DescribeTableReplicaAutoScalingCommandOutput}
* @see {@link DescribeTableReplicaAutoScalingCommandInput} for command's `input` shape.
* @see {@link DescribeTableReplicaAutoScalingCommandOutput} for command's `response` shape.
* @see {@link DynamoDBClientResolvedConfig | config} for DynamoDBClient's `config` shape.
*
* @throws {@link InternalServerError} (server fault)
* <p>An error occurred on the server side.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The operation tried to access a nonexistent table or index. The resource might not
* be specified correctly, or its status might not be <code>ACTIVE</code>.</p>
*
* @throws {@link DynamoDBServiceException}
* <p>Base exception class for all service exceptions from DynamoDB service.</p>
*
*
* @public
*/
export declare class DescribeTableReplicaAutoScalingCommand extends DescribeTableReplicaAutoScalingCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: DescribeTableReplicaAutoScalingInput;
output: DescribeTableReplicaAutoScalingOutput;
};
sdk: {
input: DescribeTableReplicaAutoScalingCommandInput;
output: DescribeTableReplicaAutoScalingCommandOutput;
};
};
}