Module Smaws_Client_RDS.CreateDBCluster

Creates a new Amazon Aurora DB cluster or Multi-AZ DB cluster.

If you create an Aurora DB cluster, the request creates an empty cluster. You must explicitly create the writer instance for your DB cluster using the CreateDBInstance operation. If you create a Multi-AZ DB cluster, the request creates a writer and two reader DB instances for you, each in a different Availability Zone.

You can use the ReplicationSourceIdentifier parameter to create an Amazon Aurora DB cluster as a read replica of another DB cluster or Amazon RDS for MySQL or PostgreSQL DB instance. For more information about Amazon Aurora, see What is Amazon Aurora? in the Amazon Aurora User Guide.

You can also use the ReplicationSourceIdentifier parameter to create a Multi-AZ DB cluster read replica with an RDS for MySQL or PostgreSQL DB instance as the source. For more information about Multi-AZ DB clusters, see Multi-AZ DB cluster deployments in the Amazon RDS User Guide.

You can use the WithExpressConfiguration parameter to create an Aurora DB Cluster with express configuration and create cluster in seconds. Express configuration provides a cluster with a writer instance and feature specific values set to all other input parameters of this API.

val error_to_string : [ Smaws_Lib.Protocols.AwsQuery.error | `DBClusterAlreadyExistsFault of Types.db_cluster_already_exists_fault | `DBClusterNotFoundFault of Types.db_cluster_not_found_fault | `DBClusterParameterGroupNotFoundFault of Types.db_cluster_parameter_group_not_found_fault | `DBClusterQuotaExceededFault of Types.db_cluster_quota_exceeded_fault | `DBInstanceNotFoundFault of Types.db_instance_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 | `GlobalClusterNotFoundFault of Types.global_cluster_not_found_fault | `InsufficientDBInstanceCapacityFault of Types.insufficient_db_instance_capacity_fault | `InsufficientStorageClusterCapacityFault of Types.insufficient_storage_cluster_capacity_fault | `InvalidDBClusterStateFault of Types.invalid_db_cluster_state_fault | `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault | `InvalidDBSubnetGroupFault of Types.invalid_db_subnet_group_fault | `InvalidDBSubnetGroupStateFault of Types.invalid_db_subnet_group_state_fault | `InvalidGlobalClusterStateFault of Types.invalid_global_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 | `StorageQuotaExceededFault of Types.storage_quota_exceeded_fault | `StorageTypeNotSupportedFault of Types.storage_type_not_supported_fault | `VpcEncryptionControlViolationException of Types.vpc_encryption_control_violation_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.create_db_cluster_message -> (Types.create_db_cluster_result, [> Smaws_Lib.Protocols.AwsQuery.error | `DBClusterAlreadyExistsFault of Types.db_cluster_already_exists_fault | `DBClusterNotFoundFault of Types.db_cluster_not_found_fault | `DBClusterParameterGroupNotFoundFault of Types.db_cluster_parameter_group_not_found_fault | `DBClusterQuotaExceededFault of Types.db_cluster_quota_exceeded_fault | `DBInstanceNotFoundFault of Types.db_instance_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 | `GlobalClusterNotFoundFault of Types.global_cluster_not_found_fault | `InsufficientDBInstanceCapacityFault of Types.insufficient_db_instance_capacity_fault | `InsufficientStorageClusterCapacityFault of Types.insufficient_storage_cluster_capacity_fault | `InvalidDBClusterStateFault of Types.invalid_db_cluster_state_fault | `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault | `InvalidDBSubnetGroupFault of Types.invalid_db_subnet_group_fault | `InvalidDBSubnetGroupStateFault of Types.invalid_db_subnet_group_state_fault | `InvalidGlobalClusterStateFault of Types.invalid_global_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 | `StorageQuotaExceededFault of Types.storage_quota_exceeded_fault | `StorageTypeNotSupportedFault of Types.storage_type_not_supported_fault | `VpcEncryptionControlViolationException of Types.vpc_encryption_control_violation_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.create_db_cluster_message -> (Types.create_db_cluster_result Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsQuery.error | `DBClusterAlreadyExistsFault of Types.db_cluster_already_exists_fault | `DBClusterNotFoundFault of Types.db_cluster_not_found_fault | `DBClusterParameterGroupNotFoundFault of Types.db_cluster_parameter_group_not_found_fault | `DBClusterQuotaExceededFault of Types.db_cluster_quota_exceeded_fault | `DBInstanceNotFoundFault of Types.db_instance_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 | `GlobalClusterNotFoundFault of Types.global_cluster_not_found_fault | `InsufficientDBInstanceCapacityFault of Types.insufficient_db_instance_capacity_fault | `InsufficientStorageClusterCapacityFault of Types.insufficient_storage_cluster_capacity_fault | `InvalidDBClusterStateFault of Types.invalid_db_cluster_state_fault | `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault | `InvalidDBSubnetGroupFault of Types.invalid_db_subnet_group_fault | `InvalidDBSubnetGroupStateFault of Types.invalid_db_subnet_group_state_fault | `InvalidGlobalClusterStateFault of Types.invalid_global_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 | `StorageQuotaExceededFault of Types.storage_quota_exceeded_fault | `StorageTypeNotSupportedFault of Types.storage_type_not_supported_fault | `VpcEncryptionControlViolationException of Types.vpc_encryption_control_violation_exception ] * Smaws_Lib.Response.metadata) Stdlib.result