import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateDBInstanceMessage, CreateDBInstanceResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateDBInstanceCommand}. */ export interface CreateDBInstanceCommandInput extends CreateDBInstanceMessage { } /** * @public * * The output of {@link CreateDBInstanceCommand}. */ export interface CreateDBInstanceCommandOutput extends CreateDBInstanceResult, __MetadataBearer { } declare const CreateDBInstanceCommand_base: { new (input: CreateDBInstanceCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateDBInstanceCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a new instance.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DocDBClient, CreateDBInstanceCommand } from "@aws-sdk/client-docdb"; // ES Modules import * // const { DocDBClient, CreateDBInstanceCommand } = 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 = { // CreateDBInstanceMessage * DBInstanceIdentifier: "STRING_VALUE", // required * DBInstanceClass: "STRING_VALUE", // required * Engine: "STRING_VALUE", // required * AvailabilityZone: "STRING_VALUE", * PreferredMaintenanceWindow: "STRING_VALUE", * AutoMinorVersionUpgrade: true || false, * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * DBClusterIdentifier: "STRING_VALUE", // required * CopyTagsToSnapshot: true || false, * PromotionTier: Number("int"), * EnablePerformanceInsights: true || false, * PerformanceInsightsKMSKeyId: "STRING_VALUE", * CACertificateIdentifier: "STRING_VALUE", * }; * const command = new CreateDBInstanceCommand(input); * const response = await client.send(command); * // { // CreateDBInstanceResult * // 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 CreateDBInstanceCommandInput - {@link CreateDBInstanceCommandInput} * @returns {@link CreateDBInstanceCommandOutput} * @see {@link CreateDBInstanceCommandInput} for command's `input` shape. * @see {@link CreateDBInstanceCommandOutput} 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 DBClusterNotFoundFault} (client fault) *

* DBClusterIdentifier doesn't refer to an existing cluster.

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

You already have a instance with the given identifier.

* * @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 DBSubnetGroupDoesNotCoverEnoughAZs} (client fault) *

Subnets in the subnet group should cover at least two Availability Zones unless there is only one Availability Zone.

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

* DBSubnetGroupName doesn't refer to an existing subnet group.

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

The request would cause you to exceed the allowed number of instances.

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

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

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

The cluster isn't in a valid state.

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

The requested subnet is not valid, or multiple subnets were requested that are not all * in a common virtual private cloud (VPC).

* * @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 KMSKeyNotAccessibleFault} (client fault) *

An error occurred when accessing an KMS key.

* * @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 CreateDBInstanceCommand extends CreateDBInstanceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateDBInstanceMessage; output: CreateDBInstanceResult; }; sdk: { input: CreateDBInstanceCommandInput; output: CreateDBInstanceCommandOutput; }; }; }