Smaws_Client_RDS.CreateDBInstanceCreates a new DB instance.
The new DB instance can be an RDS DB instance, or it can be a DB instance in an Aurora DB cluster. For an Aurora DB cluster, you can call this operation multiple times to add more than one DB instance to the cluster.
For more information about creating an RDS DB instance, see Creating an Amazon RDS DB instance in the Amazon RDS User Guide.
For more information about creating a DB instance in an Aurora DB cluster, see Creating an Amazon Aurora DB cluster in the Amazon Aurora User Guide.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `AuthorizationNotFoundFault of Types.authorization_not_found_fault
| `BackupPolicyNotFoundFault of Types.backup_policy_not_found_fault
| `CertificateNotFoundFault of Types.certificate_not_found_fault
| `DBClusterNotFoundFault of Types.db_cluster_not_found_fault
| `DBInstanceAlreadyExistsFault of Types.db_instance_already_exists_fault
| `DBParameterGroupNotFoundFault of Types.db_parameter_group_not_found_fault
| `DBSecurityGroupNotFoundFault of Types.db_security_group_not_found_fault
| `DBSubnetGroupDoesNotCoverEnoughAZs of
Types.db_subnet_group_does_not_cover_enough_a_zs
| `DBSubnetGroupNotFoundFault of Types.db_subnet_group_not_found_fault
| `DomainNotFoundFault of Types.domain_not_found_fault
| `InstanceQuotaExceededFault of Types.instance_quota_exceeded_fault
| `InsufficientDBInstanceCapacityFault of
Types.insufficient_db_instance_capacity_fault
| `InvalidDBClusterStateFault of Types.invalid_db_cluster_state_fault
| `InvalidSubnet of Types.invalid_subnet
| `InvalidVPCNetworkStateFault of Types.invalid_vpc_network_state_fault
| `KMSKeyNotAccessibleFault of Types.kms_key_not_accessible_fault
| `NetworkTypeNotSupported of Types.network_type_not_supported
| `OptionGroupNotFoundFault of Types.option_group_not_found_fault
| `ProvisionedIopsNotAvailableInAZFault of
Types.provisioned_iops_not_available_in_az_fault
| `StorageQuotaExceededFault of Types.storage_quota_exceeded_fault
| `StorageTypeNotSupportedFault of Types.storage_type_not_supported_fault
| `TenantDatabaseQuotaExceededFault of
Types.tenant_database_quota_exceeded_fault
| `VpcEncryptionControlViolationException of
Types.vpc_encryption_control_violation_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_db_instance_message ->
(Types.create_db_instance_result,
[> Smaws_Lib.Protocols.AwsQuery.error
| `AuthorizationNotFoundFault of Types.authorization_not_found_fault
| `BackupPolicyNotFoundFault of Types.backup_policy_not_found_fault
| `CertificateNotFoundFault of Types.certificate_not_found_fault
| `DBClusterNotFoundFault of Types.db_cluster_not_found_fault
| `DBInstanceAlreadyExistsFault of Types.db_instance_already_exists_fault
| `DBParameterGroupNotFoundFault of
Types.db_parameter_group_not_found_fault
| `DBSecurityGroupNotFoundFault of Types.db_security_group_not_found_fault
| `DBSubnetGroupDoesNotCoverEnoughAZs of
Types.db_subnet_group_does_not_cover_enough_a_zs
| `DBSubnetGroupNotFoundFault of Types.db_subnet_group_not_found_fault
| `DomainNotFoundFault of Types.domain_not_found_fault
| `InstanceQuotaExceededFault of Types.instance_quota_exceeded_fault
| `InsufficientDBInstanceCapacityFault of
Types.insufficient_db_instance_capacity_fault
| `InvalidDBClusterStateFault of Types.invalid_db_cluster_state_fault
| `InvalidSubnet of Types.invalid_subnet
| `InvalidVPCNetworkStateFault of Types.invalid_vpc_network_state_fault
| `KMSKeyNotAccessibleFault of Types.kms_key_not_accessible_fault
| `NetworkTypeNotSupported of Types.network_type_not_supported
| `OptionGroupNotFoundFault of Types.option_group_not_found_fault
| `ProvisionedIopsNotAvailableInAZFault of
Types.provisioned_iops_not_available_in_az_fault
| `StorageQuotaExceededFault of Types.storage_quota_exceeded_fault
| `StorageTypeNotSupportedFault of Types.storage_type_not_supported_fault
| `TenantDatabaseQuotaExceededFault of
Types.tenant_database_quota_exceeded_fault
| `VpcEncryptionControlViolationException of
Types.vpc_encryption_control_violation_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_db_instance_message ->
(Types.create_db_instance_result Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `AuthorizationNotFoundFault of Types.authorization_not_found_fault
| `BackupPolicyNotFoundFault of Types.backup_policy_not_found_fault
| `CertificateNotFoundFault of Types.certificate_not_found_fault
| `DBClusterNotFoundFault of Types.db_cluster_not_found_fault
| `DBInstanceAlreadyExistsFault of Types.db_instance_already_exists_fault
| `DBParameterGroupNotFoundFault of
Types.db_parameter_group_not_found_fault
| `DBSecurityGroupNotFoundFault of Types.db_security_group_not_found_fault
| `DBSubnetGroupDoesNotCoverEnoughAZs of
Types.db_subnet_group_does_not_cover_enough_a_zs
| `DBSubnetGroupNotFoundFault of Types.db_subnet_group_not_found_fault
| `DomainNotFoundFault of Types.domain_not_found_fault
| `InstanceQuotaExceededFault of Types.instance_quota_exceeded_fault
| `InsufficientDBInstanceCapacityFault of
Types.insufficient_db_instance_capacity_fault
| `InvalidDBClusterStateFault of Types.invalid_db_cluster_state_fault
| `InvalidSubnet of Types.invalid_subnet
| `InvalidVPCNetworkStateFault of Types.invalid_vpc_network_state_fault
| `KMSKeyNotAccessibleFault of Types.kms_key_not_accessible_fault
| `NetworkTypeNotSupported of Types.network_type_not_supported
| `OptionGroupNotFoundFault of Types.option_group_not_found_fault
| `ProvisionedIopsNotAvailableInAZFault of
Types.provisioned_iops_not_available_in_az_fault
| `StorageQuotaExceededFault of Types.storage_quota_exceeded_fault
| `StorageTypeNotSupportedFault of Types.storage_type_not_supported_fault
| `TenantDatabaseQuotaExceededFault of
Types.tenant_database_quota_exceeded_fault
| `VpcEncryptionControlViolationException of
Types.vpc_encryption_control_violation_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result