import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { ModifyTransitGatewayRequest, ModifyTransitGatewayResult } from "../models/models_7"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ModifyTransitGatewayCommand}. */ export interface ModifyTransitGatewayCommandInput extends ModifyTransitGatewayRequest { } /** * @public * * The output of {@link ModifyTransitGatewayCommand}. */ export interface ModifyTransitGatewayCommandOutput extends ModifyTransitGatewayResult, __MetadataBearer { } declare const ModifyTransitGatewayCommand_base: { new (input: ModifyTransitGatewayCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ModifyTransitGatewayCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Modifies the specified transit gateway. When you modify a transit gateway, the modified options are applied to new transit gateway attachments only. Your existing transit gateway attachments are not modified.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, ModifyTransitGatewayCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, ModifyTransitGatewayCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // ModifyTransitGatewayRequest * TransitGatewayId: "STRING_VALUE", // required * Description: "STRING_VALUE", * Options: { // ModifyTransitGatewayOptions * AddTransitGatewayCidrBlocks: [ // TransitGatewayCidrBlockStringList * "STRING_VALUE", * ], * RemoveTransitGatewayCidrBlocks: [ * "STRING_VALUE", * ], * VpnEcmpSupport: "enable" || "disable", * DnsSupport: "enable" || "disable", * SecurityGroupReferencingSupport: "enable" || "disable", * AutoAcceptSharedAttachments: "enable" || "disable", * DefaultRouteTableAssociation: "enable" || "disable", * AssociationDefaultRouteTableId: "STRING_VALUE", * DefaultRouteTablePropagation: "enable" || "disable", * PropagationDefaultRouteTableId: "STRING_VALUE", * AmazonSideAsn: Number("long"), * EncryptionSupport: "enable" || "disable", * }, * DryRun: true || false, * }; * const command = new ModifyTransitGatewayCommand(input); * const response = await client.send(command); * // { // ModifyTransitGatewayResult * // TransitGateway: { // TransitGateway * // TransitGatewayId: "STRING_VALUE", * // TransitGatewayArn: "STRING_VALUE", * // State: "pending" || "available" || "modifying" || "deleting" || "deleted", * // OwnerId: "STRING_VALUE", * // Description: "STRING_VALUE", * // CreationTime: new Date("TIMESTAMP"), * // Options: { // TransitGatewayOptions * // AmazonSideAsn: Number("long"), * // TransitGatewayCidrBlocks: [ // ValueStringList * // "STRING_VALUE", * // ], * // AutoAcceptSharedAttachments: "enable" || "disable", * // DefaultRouteTableAssociation: "enable" || "disable", * // AssociationDefaultRouteTableId: "STRING_VALUE", * // DefaultRouteTablePropagation: "enable" || "disable", * // PropagationDefaultRouteTableId: "STRING_VALUE", * // VpnEcmpSupport: "enable" || "disable", * // DnsSupport: "enable" || "disable", * // SecurityGroupReferencingSupport: "enable" || "disable", * // MulticastSupport: "enable" || "disable", * // EncryptionSupport: { // EncryptionSupport * // EncryptionState: "enabling" || "enabled" || "disabling" || "disabled", * // StateMessage: "STRING_VALUE", * // }, * // }, * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // }, * // }; * * ``` * * @param ModifyTransitGatewayCommandInput - {@link ModifyTransitGatewayCommandInput} * @returns {@link ModifyTransitGatewayCommandOutput} * @see {@link ModifyTransitGatewayCommandInput} for command's `input` shape. * @see {@link ModifyTransitGatewayCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @public */ export declare class ModifyTransitGatewayCommand extends ModifyTransitGatewayCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyTransitGatewayRequest; output: ModifyTransitGatewayResult; }; sdk: { input: ModifyTransitGatewayCommandInput; output: ModifyTransitGatewayCommandOutput; }; }; }