@aws-sdk/client-account
Version:
AWS SDK for JavaScript Account Client for Node.js, Browser and React Native
91 lines (90 loc) • 3.9 kB
TypeScript
import { Command as $Command } from "@smithy/core/client";
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccountClient";
import type { EnableRegionRequest } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link EnableRegionCommand}.
*/
export interface EnableRegionCommandInput extends EnableRegionRequest {
}
/**
* @public
*
* The output of {@link EnableRegionCommand}.
*/
export interface EnableRegionCommandOutput extends __MetadataBearer {
}
declare const EnableRegionCommand_base: {
new (input: EnableRegionCommandInput): import("@smithy/core/client").CommandImpl<EnableRegionCommandInput, EnableRegionCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (input: EnableRegionCommandInput): import("@smithy/core/client").CommandImpl<EnableRegionCommandInput, EnableRegionCommandOutput, AccountClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): {
[x: string]: unknown;
};
};
/**
* <p>Enables (opts-in) a particular Region for an account.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { AccountClient, EnableRegionCommand } from "@aws-sdk/client-account"; // ES Modules import
* // const { AccountClient, EnableRegionCommand } = require("@aws-sdk/client-account"); // CommonJS import
* // import type { AccountClientConfig } from "@aws-sdk/client-account";
* const config = {}; // type is AccountClientConfig
* const client = new AccountClient(config);
* const input = { // EnableRegionRequest
* AccountId: "STRING_VALUE",
* RegionName: "STRING_VALUE", // required
* };
* const command = new EnableRegionCommand(input);
* const response = await client.send(command);
* // {};
*
* ```
*
* @param EnableRegionCommandInput - {@link EnableRegionCommandInput}
* @returns {@link EnableRegionCommandOutput}
* @see {@link EnableRegionCommandInput} for command's `input` shape.
* @see {@link EnableRegionCommandOutput} for command's `response` shape.
* @see {@link AccountClientResolvedConfig | config} for AccountClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* <p>The operation failed because the calling identity doesn't have the minimum required permissions.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>The request could not be processed because of a conflict in the current status of the resource. For example, this happens if you try to enable a Region that is currently being disabled (in a status of DISABLING) or if you try to change an account’s root user email to an email address which is already in use.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>The operation failed because of an error internal to Amazon Web Services. Try your operation again later.</p>
*
* @throws {@link TooManyRequestsException} (client fault)
* <p>The operation failed because it was called too frequently and exceeded a throttle limit.</p>
*
* @throws {@link ValidationException} (client fault)
* <p>The operation failed because one of the input parameters was invalid.</p>
*
* @throws {@link AccountServiceException}
* <p>Base exception class for all service exceptions from Account service.</p>
*
*
* @public
*/
export declare class EnableRegionCommand extends EnableRegionCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: EnableRegionRequest;
output: {};
};
sdk: {
input: EnableRegionCommandInput;
output: EnableRegionCommandOutput;
};
};
}