Module Smaws_Client_RDS.RestoreDBInstanceToPointInTime

Restores a DB instance to an arbitrary point in time. You can restore to any point in time before the time identified by the LatestRestorableTime property. You can restore to a point up to the number of days specified by the BackupRetentionPeriod property.

The target database is created with most of the original configuration, but in a system-selected Availability Zone, with the default security group, the default subnet group, and the default DB parameter group. By default, the new DB instance is created as a single-AZ deployment except when the instance is a SQL Server instance that has an option group that is associated with mirroring; in this case, the instance becomes a mirrored deployment and not a single-AZ deployment.

This operation doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora, use RestoreDBClusterToPointInTime.

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 | `DBInstanceAlreadyExistsFault of Types.db_instance_already_exists_fault | `DBInstanceAutomatedBackupNotFoundFault of Types.db_instance_automated_backup_not_found_fault | `DBInstanceNotFoundFault of Types.db_instance_not_found_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 | `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault | `InvalidRestoreFault of Types.invalid_restore_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 | `PointInTimeRestoreNotEnabledFault of Types.point_in_time_restore_not_enabled_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 ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.restore_db_instance_to_point_in_time_message -> (Types.restore_db_instance_to_point_in_time_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 | `DBInstanceAlreadyExistsFault of Types.db_instance_already_exists_fault | `DBInstanceAutomatedBackupNotFoundFault of Types.db_instance_automated_backup_not_found_fault | `DBInstanceNotFoundFault of Types.db_instance_not_found_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 | `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault | `InvalidRestoreFault of Types.invalid_restore_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 | `PointInTimeRestoreNotEnabledFault of Types.point_in_time_restore_not_enabled_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.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.restore_db_instance_to_point_in_time_message -> (Types.restore_db_instance_to_point_in_time_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 | `DBInstanceAlreadyExistsFault of Types.db_instance_already_exists_fault | `DBInstanceAutomatedBackupNotFoundFault of Types.db_instance_automated_backup_not_found_fault | `DBInstanceNotFoundFault of Types.db_instance_not_found_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 | `InvalidDBInstanceStateFault of Types.invalid_db_instance_state_fault | `InvalidRestoreFault of Types.invalid_restore_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 | `PointInTimeRestoreNotEnabledFault of Types.point_in_time_restore_not_enabled_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