import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ModifyDBInstanceMessage, ModifyDBInstanceResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ModifyDBInstanceCommand}. */ export interface ModifyDBInstanceCommandInput extends ModifyDBInstanceMessage { } /** * @public * * The output of {@link ModifyDBInstanceCommand}. */ export interface ModifyDBInstanceCommandOutput extends ModifyDBInstanceResult, __MetadataBearer { } declare const ModifyDBInstanceCommand_base: { new (input: ModifyDBInstanceCommandInput): import("@smithy/core/client").CommandImpl; new (input: ModifyDBInstanceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Modifies settings for an instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DocDBClient, ModifyDBInstanceCommand } from "@aws-sdk/client-docdb"; // ES Modules import * // const { DocDBClient, ModifyDBInstanceCommand } = require("@aws-sdk/client-docdb"); // CommonJS import * // import type { DocDBClientConfig } from "@aws-sdk/client-docdb"; * const config = {}; // type is DocDBClientConfig * const client = new DocDBClient(config); * const input = { // ModifyDBInstanceMessage * DBInstanceIdentifier: "STRING_VALUE", // required * DBInstanceClass: "STRING_VALUE", * ApplyImmediately: true || false, * PreferredMaintenanceWindow: "STRING_VALUE", * AutoMinorVersionUpgrade: true || false, * NewDBInstanceIdentifier: "STRING_VALUE", * CACertificateIdentifier: "STRING_VALUE", * CopyTagsToSnapshot: true || false, * PromotionTier: Number("int"), * EnablePerformanceInsights: true || false, * PerformanceInsightsKMSKeyId: "STRING_VALUE", * CertificateRotationRestart: true || false, * }; * const command = new ModifyDBInstanceCommand(input); * const response = await client.send(command); * // { // ModifyDBInstanceResult * // DBInstance: { // DBInstance * // DBInstanceIdentifier: "STRING_VALUE", * // DBInstanceClass: "STRING_VALUE", * // Engine: "STRING_VALUE", * // DBInstanceStatus: "STRING_VALUE", * // Endpoint: { // Endpoint * // Address: "STRING_VALUE", * // Port: Number("int"), * // HostedZoneId: "STRING_VALUE", * // }, * // InstanceCreateTime: new Date("TIMESTAMP"), * // PreferredBackupWindow: "STRING_VALUE", * // BackupRetentionPeriod: Number("int"), * // VpcSecurityGroups: [ // VpcSecurityGroupMembershipList * // { // VpcSecurityGroupMembership * // VpcSecurityGroupId: "STRING_VALUE", * // Status: "STRING_VALUE", * // }, * // ], * // AvailabilityZone: "STRING_VALUE", * // DBSubnetGroup: { // DBSubnetGroup * // DBSubnetGroupName: "STRING_VALUE", * // DBSubnetGroupDescription: "STRING_VALUE", * // VpcId: "STRING_VALUE", * // SubnetGroupStatus: "STRING_VALUE", * // Subnets: [ // SubnetList * // { // Subnet * // SubnetIdentifier: "STRING_VALUE", * // SubnetAvailabilityZone: { // AvailabilityZone * // Name: "STRING_VALUE", * // }, * // SubnetStatus: "STRING_VALUE", * // }, * // ], * // DBSubnetGroupArn: "STRING_VALUE", * // SupportedNetworkTypes: [ // NetworkTypeList * // "STRING_VALUE", * // ], * // }, * // PreferredMaintenanceWindow: "STRING_VALUE", * // PendingModifiedValues: { // PendingModifiedValues * // DBInstanceClass: "STRING_VALUE", * // AllocatedStorage: Number("int"), * // MasterUserPassword: "STRING_VALUE", * // Port: Number("int"), * // BackupRetentionPeriod: Number("int"), * // MultiAZ: true || false, * // EngineVersion: "STRING_VALUE", * // LicenseModel: "STRING_VALUE", * // Iops: Number("int"), * // DBInstanceIdentifier: "STRING_VALUE", * // StorageType: "STRING_VALUE", * // CACertificateIdentifier: "STRING_VALUE", * // DBSubnetGroupName: "STRING_VALUE", * // PendingCloudwatchLogsExports: { // PendingCloudwatchLogsExports * // LogTypesToEnable: [ // LogTypeList * // "STRING_VALUE", * // ], * // LogTypesToDisable: [ * // "STRING_VALUE", * // ], * // }, * // }, * // LatestRestorableTime: new Date("TIMESTAMP"), * // EngineVersion: "STRING_VALUE", * // AutoMinorVersionUpgrade: true || false, * // PubliclyAccessible: true || false, * // StatusInfos: [ // DBInstanceStatusInfoList * // { // DBInstanceStatusInfo * // StatusType: "STRING_VALUE", * // Normal: true || false, * // Status: "STRING_VALUE", * // Message: "STRING_VALUE", * // }, * // ], * // DBClusterIdentifier: "STRING_VALUE", * // StorageEncrypted: true || false, * // KmsKeyId: "STRING_VALUE", * // DbiResourceId: "STRING_VALUE", * // CACertificateIdentifier: "STRING_VALUE", * // CopyTagsToSnapshot: true || false, * // PromotionTier: Number("int"), * // DBInstanceArn: "STRING_VALUE", * // EnabledCloudwatchLogsExports: [ * // "STRING_VALUE", * // ], * // CertificateDetails: { // CertificateDetails * // CAIdentifier: "STRING_VALUE", * // ValidTill: new Date("TIMESTAMP"), * // }, * // PerformanceInsightsEnabled: true || false, * // PerformanceInsightsKMSKeyId: "STRING_VALUE", * // }, * // }; * * ``` * * @param ModifyDBInstanceCommandInput - {@link ModifyDBInstanceCommandInput} * @returns {@link ModifyDBInstanceCommandOutput} * @see {@link ModifyDBInstanceCommandInput} for command's `input` shape. * @see {@link ModifyDBInstanceCommandOutput} for command's `response` shape. * @see {@link DocDBClientResolvedConfig | config} for DocDBClient's `config` shape. * * @throws {@link AuthorizationNotFoundFault} (client fault) *

The specified CIDR IP or Amazon EC2 security group isn't authorized for the specified security group.

*

Amazon DocumentDB also might not be authorized to perform necessary actions on your behalf using IAM.

* * @throws {@link CertificateNotFoundFault} (client fault) *

* CertificateIdentifier doesn't refer to an existing certificate.

* * @throws {@link DBInstanceAlreadyExistsFault} (client fault) *

You already have a instance with the given identifier.

* * @throws {@link DBInstanceNotFoundFault} (client fault) *

* DBInstanceIdentifier doesn't refer to an existing instance.

* * @throws {@link DBParameterGroupNotFoundFault} (client fault) *

* DBParameterGroupName doesn't refer to an existing parameter group.

* * @throws {@link DBSecurityGroupNotFoundFault} (client fault) *

* DBSecurityGroupName doesn't refer to an existing security group.

* * @throws {@link DBUpgradeDependencyFailureFault} (client fault) *

The upgrade failed because a resource that the depends on can't be * modified.

* * @throws {@link InsufficientDBInstanceCapacityFault} (client fault) *

The specified instance class isn't available in the specified Availability Zone.

* * @throws {@link InvalidDBInstanceStateFault} (client fault) *

The specified instance isn't in the available state. *

* * @throws {@link InvalidDBSecurityGroupStateFault} (client fault) *

The state of the security group doesn't allow deletion.

* * @throws {@link InvalidVPCNetworkStateFault} (client fault) *

The subnet group doesn't cover all Availability Zones after it is created * because of changes that were made.

* * @throws {@link StorageQuotaExceededFault} (client fault) *

The request would cause you to exceed the allowed amount of storage available across * all instances.

* * @throws {@link StorageTypeNotSupportedFault} (client fault) *

Storage of the specified StorageType can't be associated with the DB * instance.

* * @throws {@link DocDBServiceException} *

Base exception class for all service exceptions from DocDB service.

* * * @public */ export declare class ModifyDBInstanceCommand extends ModifyDBInstanceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyDBInstanceMessage; output: ModifyDBInstanceResult; }; sdk: { input: ModifyDBInstanceCommandInput; output: ModifyDBInstanceCommandOutput; }; }; }