RDS¶
Installation¶
To install the RDS client:
Client¶
AsyncRDSClient
¶
Bases: AsyncClient[AsyncRDSConfig]
Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizeable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique.
Amazon RDS gives you access to the capabilities of a MySQL, MariaDB, PostgreSQL, Microsoft SQL Server, Oracle, Db2, or Amazon Aurora database server. These capabilities mean that the code, applications, and tools you already use today with your existing databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB instance. Amazon RDS is flexible: you can scale your DB instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.
This interface reference for Amazon RDS contains documentation for a programming or command line interface you can use to manage Amazon RDS. Amazon RDS is asynchronous, which means that some interfaces might require techniques such as polling or callback functions to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the maintenance window. The reference structure is as follows, and we list following some related topics from the user guide.
Amazon RDS API Reference
-
For the alphabetical list of API actions, see API Actions.
-
For the alphabetical list of data types, see Data Types.
-
For a list of common query parameters, see Common Parameters.
-
For descriptions of the error codes, see Common Errors.
Amazon RDS User Guide
-
For a summary of the Amazon RDS interfaces, see Available RDS Interfaces.
-
For more information about how to use the Query API, see Using the Query API.
Operations¶
add_role_to_db_clusteradd_role_to_db_instanceadd_source_identifier_to_subscriptionadd_tags_to_resourceapply_pending_maintenance_actionauthorize_db_security_group_ingressbacktrack_db_clustercancel_db_capacity_reservationcancel_export_taskcopy_db_cluster_parameter_groupcopy_db_cluster_snapshotcopy_db_parameter_groupcopy_db_snapshotcopy_option_groupcreate_blue_green_deploymentcreate_custom_db_engine_versioncreate_db_capacity_reservationcreate_db_clustercreate_db_cluster_endpointcreate_db_cluster_parameter_groupcreate_db_cluster_snapshotcreate_db_instancecreate_db_instance_read_replicacreate_db_parameter_groupcreate_db_proxycreate_db_proxy_endpointcreate_db_security_groupcreate_db_shard_groupcreate_db_snapshotcreate_db_subnet_groupcreate_event_subscriptioncreate_global_clustercreate_integrationcreate_option_groupcreate_tenant_databasedelete_blue_green_deploymentdelete_custom_db_engine_versiondelete_db_clusterdelete_db_cluster_automated_backupdelete_db_cluster_endpointdelete_db_cluster_parameter_groupdelete_db_cluster_snapshotdelete_db_instancedelete_db_instance_automated_backupdelete_db_parameter_groupdelete_db_proxydelete_db_proxy_endpointdelete_db_security_groupdelete_db_shard_groupdelete_db_snapshotdelete_db_subnet_groupdelete_event_subscriptiondelete_global_clusterdelete_integrationdelete_option_groupdelete_tenant_databasederegister_db_proxy_targetsdescribe_account_attributesdescribe_blue_green_deploymentsdescribe_certificatesdescribe_db_capacity_reservationsdescribe_db_cluster_automated_backupsdescribe_db_cluster_backtracksdescribe_db_cluster_endpointsdescribe_db_cluster_parameter_groupsdescribe_db_cluster_parametersdescribe_db_cluster_snapshot_attributesdescribe_db_cluster_snapshotsdescribe_db_clustersdescribe_db_engine_versionsdescribe_db_instance_automated_backupsdescribe_db_instancesdescribe_db_log_filesdescribe_db_major_engine_versionsdescribe_db_parameter_groupsdescribe_db_parametersdescribe_db_proxiesdescribe_db_proxy_endpointsdescribe_db_proxy_target_groupsdescribe_db_proxy_targetsdescribe_db_recommendationsdescribe_db_security_groupsdescribe_db_shard_groupsdescribe_db_snapshot_attributesdescribe_db_snapshot_tenant_databasesdescribe_db_snapshotsdescribe_db_subnet_groupsdescribe_engine_default_cluster_parametersdescribe_engine_default_parametersdescribe_event_categoriesdescribe_event_subscriptionsdescribe_eventsdescribe_export_tasksdescribe_global_clustersdescribe_integrationsdescribe_option_group_optionsdescribe_option_groupsdescribe_orderable_db_instance_optionsdescribe_pending_maintenance_actionsdescribe_reserved_db_instancesdescribe_reserved_db_instances_offeringsdescribe_serverless_v2_platform_versionsdescribe_source_regionsdescribe_tenant_databasesdescribe_valid_db_instance_modificationsdisable_http_endpointdownload_db_log_file_portionenable_http_endpointfailover_db_clusterfailover_global_clusterlist_tags_for_resourcemodify_activity_streammodify_certificatesmodify_current_db_cluster_capacitymodify_custom_db_engine_versionmodify_db_capacity_reservationmodify_db_clustermodify_db_cluster_endpointmodify_db_cluster_parameter_groupmodify_db_cluster_snapshot_attributemodify_db_instancemodify_db_parameter_groupmodify_db_proxymodify_db_proxy_endpointmodify_db_proxy_target_groupmodify_db_recommendationmodify_db_shard_groupmodify_db_snapshotmodify_db_snapshot_attributemodify_db_subnet_groupmodify_event_subscriptionmodify_global_clustermodify_integrationmodify_option_groupmodify_tenant_databasepromote_read_replicapromote_read_replica_db_clusterpurchase_reserved_db_instances_offeringreboot_db_clusterreboot_db_instancereboot_db_shard_groupregister_db_proxy_targetsremove_from_global_clusterremove_role_from_db_clusterremove_role_from_db_instanceremove_source_identifier_from_subscriptionremove_tags_from_resourcereset_db_cluster_parameter_groupreset_db_parameter_grouprestore_db_cluster_from_s3restore_db_cluster_from_snapshotrestore_db_cluster_to_point_in_timerestore_db_instance_from_db_snapshotrestore_db_instance_from_s3restore_db_instance_to_point_in_timerevoke_db_security_group_ingressstart_activity_streamstart_db_clusterstart_db_instancestart_db_instance_automated_backups_replicationstart_export_taskstop_activity_streamstop_db_clusterstop_db_instancestop_db_instance_automated_backups_replicationswitchover_blue_green_deploymentswitchover_global_clusterswitchover_read_replica
Configuration¶
AsyncRDSConfig
dataclass
¶
Bases: AsyncAwsConfig
RDS configuration (async-resolved).
Attributes¶
auth_scheme_resolver
class-attribute
instance-attribute
¶
An auth scheme resolver that determines the auth scheme for each operation.
auth_schemes
class-attribute
instance-attribute
¶
A map of auth scheme ids to auth schemes.
aws_access_key_id
class-attribute
instance-attribute
¶
aws_access_key_id: str | None = None
The identifier for a secret access key.
aws_credentials_identity_resolver
class-attribute
instance-attribute
¶
aws_credentials_identity_resolver: AsyncIdentityResolver[AWSCredentialsIdentity, AWSIdentityProperties] | None = None
Resolves AWS Credentials. Required for operations that use Sigv4 Auth.
aws_secret_access_key
class-attribute
instance-attribute
¶
aws_secret_access_key: str | None = None
A secret access key that can be used to sign requests.
aws_session_token
class-attribute
instance-attribute
¶
aws_session_token: str | None = None
The session token used with temporary AWS credentials.
endpoint_resolver
class-attribute
instance-attribute
¶
The endpoint resolver used to resolve the final endpoint per-operation based on the configuration.
interceptors
class-attribute
instance-attribute
¶
The list of interceptors, which are hooks that are called during the execution of a request.
protocol
class-attribute
instance-attribute
¶
Pass a protocol class reference from smithy_aws_core.aio.protocols to select the protocol, e.g. protocol=AsyncAwsJson10ClientProtocol. For custom protocols a protocol instance may also be passed.
region
class-attribute
instance-attribute
¶
region: str | None = None
The AWS region to connect to. The configured region is used to determine the service endpoint.
sdk_ua_app_id
class-attribute
instance-attribute
¶
sdk_ua_app_id: str | None = None
A unique and opaque application ID that is appended to the User-Agent header.
use_dualstack_endpoint
class-attribute
instance-attribute
¶
use_dualstack_endpoint: bool | None = None
When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
use_fips_endpoint
class-attribute
instance-attribute
¶
use_fips_endpoint: bool | None = None
When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
user_agent_extra
class-attribute
instance-attribute
¶
user_agent_extra: str | None = None
Additional suffix to be added to the User-Agent header.
Methods:¶
resolve
async
classmethod
¶
resolve(*, profile: str | None = None, fs: AsyncFileSystem | None = None, config_file_path: str | None = None, credentials_file_path: str | None = None, **overrides: Unpack[_AsyncRDSConfigOverrides]) -> Self
Resolve config from environment, config files, defaults, and explicit overrides.
Plugin
module-attribute
¶
Plugin: TypeAlias = Callable[[AsyncRDSConfig], None]
A callable that customizes a client configuration. Service-level plugins are applied once to the base configuration inherited by every operation. Operation-level plugins apply only to a single operation invocation.
Structures¶
AccountQuotaAdditionalStorageVolumeAdditionalStorageVolumeOutputAvailabilityZoneAvailableAdditionalStorageVolumesOptionAvailableCapacityPerAvailabilityZoneAvailableProcessorFeatureBlueGreenDeploymentBlueGreenDeploymentTaskCertificateCertificateDetailsCharacterSetCloudwatchLogsExportConfigurationClusterPendingModifiedValuesConnectionPoolConfigurationConnectionPoolConfigurationInfoContextAttributeCustomDBEngineVersionAMIDBCapacityReservationDBCapacityReservationCommitmentInfoDBClusterDBClusterAssociatedRoleDBClusterAutomatedBackupDBClusterBacktrackDBClusterEndpointDBClusterMemberDBClusterOptionGroupStatusDBClusterParameterGroupDBClusterRoleDBClusterSnapshotDBClusterSnapshotAttributeDBClusterSnapshotAttributesResultDBClusterStatusInfoDBEngineVersionDBInstanceDBInstanceAutomatedBackupDBInstanceAutomatedBackupsReplicationDBInstanceRoleDBInstanceStatusInfoDBMajorEngineVersionDBParameterGroupDBParameterGroupStatusDBProxyDBProxyEndpointDBProxyTargetDBProxyTargetGroupDBRecommendationDBSecurityGroupDBSecurityGroupMembershipDBShardGroupDBSnapshotDBSnapshotAttributeDBSnapshotAttributesResultDBSnapshotTenantDatabaseDBSubnetGroupDescribeDBLogFilesDetailsDocLinkDomainMembershipDoubleRangeEC2SecurityGroupEndpointEngineDefaultsEventEventCategoriesMapEventSubscriptionExportTaskFailoverStateFilterGlobalClusterGlobalClusterMemberIPRangeIntegrationIntegrationErrorIssueDetailsLimitlessDatabaseMasterUserSecretMetricMetricQueryMetricReferenceMinimumEngineVersionPerAllowedValueModifyAdditionalStorageVolumeOptionOptionConfigurationOptionGroupOptionGroupMembershipOptionGroupOptionOptionGroupOptionSettingOptionSettingOptionVersionOrderableDBInstanceOptionOutpostParameterPendingCloudwatchLogsExportsPendingMaintenanceActionPendingModifiedValuesPerformanceInsightsMetricDimensionGroupPerformanceInsightsMetricQueryPerformanceIssueDetailsProcessorFeatureRangeRdsCustomClusterConfigurationRecommendedActionRecommendedActionParameterRecommendedActionUpdateRecurringChargeReferenceDetailsReservedDBInstanceReservedDBInstancesOfferingResourcePendingMaintenanceActionsRestoreWindowScalarReferenceDetailsScalingConfigurationScalingConfigurationInfoServerlessV2FeaturesSupportServerlessV2PlatformVersionInfoServerlessV2ScalingConfigurationServerlessV2ScalingConfigurationInfoSourceRegionSubnetSupportedEngineLifecycleSwitchoverDetailTagTagSpecificationTargetHealthTargetResourceConfigurationTenantDatabaseTenantDatabasePendingModifiedValuesTimezoneUpgradeTargetUserAuthConfigUserAuthConfigInfoValidAdditionalStorageOptionsValidDBInstanceModificationsMessageValidStorageOptionsValidVolumeOptionsVpcSecurityGroupMembership
Errors¶
AuthorizationAlreadyExistsFaultAuthorizationNotFoundFaultAuthorizationQuotaExceededFaultBackupPolicyNotFoundFaultBlueGreenDeploymentAlreadyExistsFaultBlueGreenDeploymentNotFoundFaultCertificateNotFoundFaultCreateCustomDBEngineVersionFaultCustomAvailabilityZoneNotFoundFaultCustomDBEngineVersionAlreadyExistsFaultCustomDBEngineVersionNotFoundFaultCustomDBEngineVersionQuotaExceededFaultDBCapacityReservationAlreadyExistsFaultDBCapacityReservationNotFoundFaultDBCapacityReservationUnsupportedFaultDBClusterAlreadyExistsFaultDBClusterAutomatedBackupNotFoundFaultDBClusterAutomatedBackupQuotaExceededFaultDBClusterBacktrackNotFoundFaultDBClusterEndpointAlreadyExistsFaultDBClusterEndpointNotFoundFaultDBClusterEndpointQuotaExceededFaultDBClusterNotFoundFaultDBClusterParameterGroupNotFoundFaultDBClusterQuotaExceededFaultDBClusterRoleAlreadyExistsFaultDBClusterRoleNotFoundFaultDBClusterRoleQuotaExceededFaultDBClusterSnapshotAlreadyExistsFaultDBClusterSnapshotNotFoundFaultDBInstanceAlreadyExistsFaultDBInstanceAutomatedBackupNotFoundFaultDBInstanceAutomatedBackupQuotaExceededFaultDBInstanceNotFoundFaultDBInstanceNotReadyFaultDBInstanceRoleAlreadyExistsFaultDBInstanceRoleNotFoundFaultDBInstanceRoleQuotaExceededFaultDBLogFileNotFoundFaultDBParameterGroupAlreadyExistsFaultDBParameterGroupNotFoundFaultDBParameterGroupQuotaExceededFaultDBProxyAlreadyExistsFaultDBProxyEndpointAlreadyExistsFaultDBProxyEndpointNotFoundFaultDBProxyEndpointQuotaExceededFaultDBProxyNotFoundFaultDBProxyQuotaExceededFaultDBProxyTargetAlreadyRegisteredFaultDBProxyTargetGroupNotFoundFaultDBProxyTargetNotFoundFaultDBSecurityGroupAlreadyExistsFaultDBSecurityGroupNotFoundFaultDBSecurityGroupNotSupportedFaultDBSecurityGroupQuotaExceededFaultDBShardGroupAlreadyExistsFaultDBShardGroupNotFoundFaultDBSnapshotAlreadyExistsFaultDBSnapshotNotFoundFaultDBSnapshotTenantDatabaseNotFoundFaultDBSubnetGroupAlreadyExistsFaultDBSubnetGroupDoesNotCoverEnoughAZsDBSubnetGroupNotAllowedFaultDBSubnetGroupNotFoundFaultDBSubnetGroupQuotaExceededFaultDBSubnetQuotaExceededFaultDBUpgradeDependencyFailureFaultDomainNotFoundFaultEc2ImagePropertiesNotSupportedFaultEventSubscriptionQuotaExceededFaultExportTaskAlreadyExistsFaultExportTaskNotFoundFaultGlobalClusterAlreadyExistsFaultGlobalClusterNotFoundFaultGlobalClusterQuotaExceededFaultIamRoleMissingPermissionsFaultIamRoleNotFoundFaultInstanceQuotaExceededFaultInsufficientAvailableIPsInSubnetFaultInsufficientDBClusterCapacityFaultInsufficientDBInstanceCapacityFaultInsufficientStorageClusterCapacityFaultIntegrationAlreadyExistsFaultIntegrationConflictOperationFaultIntegrationNotFoundFaultIntegrationQuotaExceededFaultInvalidBlueGreenDeploymentStateFaultInvalidCustomDBEngineVersionStateFaultInvalidDBCapacityReservationStateFaultInvalidDBClusterAutomatedBackupStateFaultInvalidDBClusterCapacityFaultInvalidDBClusterEndpointStateFaultInvalidDBClusterSnapshotStateFaultInvalidDBClusterStateFaultInvalidDBInstanceAutomatedBackupStateFaultInvalidDBInstanceStateFaultInvalidDBParameterGroupStateFaultInvalidDBProxyEndpointStateFaultInvalidDBProxyStateFaultInvalidDBSecurityGroupStateFaultInvalidDBShardGroupStateFaultInvalidDBSnapshotStateFaultInvalidDBSubnetGroupFaultInvalidDBSubnetGroupStateFaultInvalidDBSubnetStateFaultInvalidEventSubscriptionStateFaultInvalidExportOnlyFaultInvalidExportSourceStateFaultInvalidExportTaskStateFaultInvalidGlobalClusterStateFaultInvalidIntegrationStateFaultInvalidOptionGroupStateFaultInvalidResourceStateFaultInvalidRestoreFaultInvalidS3BucketFaultInvalidSubnetInvalidVPCNetworkStateFaultKMSKeyNotAccessibleFaultMaxDBShardGroupLimitReachedNetworkTypeNotSupportedOptionGroupAlreadyExistsFaultOptionGroupNotFoundFaultOptionGroupQuotaExceededFaultPointInTimeRestoreNotEnabledFaultProvisionedIopsNotAvailableInAZFaultReservedDBInstanceAlreadyExistsFaultReservedDBInstanceNotFoundFaultReservedDBInstanceQuotaExceededFaultReservedDBInstancesOfferingNotFoundFaultResourceNotFoundFaultSNSInvalidTopicFaultSNSNoAuthorizationFaultSNSTopicArnNotFoundFaultServiceErrorSharedSnapshotQuotaExceededFaultSnapshotQuotaExceededFaultSourceClusterNotSupportedFaultSourceDatabaseNotSupportedFaultSourceNotFoundFaultStorageQuotaExceededFaultStorageTypeNotAvailableFaultStorageTypeNotSupportedFaultSubnetAlreadyInUseSubscriptionAlreadyExistFaultSubscriptionCategoryNotFoundFaultSubscriptionNotFoundFaultTenantDatabaseAlreadyExistsFaultTenantDatabaseNotFoundFaultTenantDatabaseQuotaExceededFaultUnsupportedDBEngineVersionFaultVpcEncryptionControlViolationException
Enums¶
ActivityStreamModeActivityStreamPolicyStatusActivityStreamStatusApplyMethodAuditPolicyStateAuthSchemeAutomationModeClientPasswordAuthTypeClusterScalabilityTypeCustomEngineVersionStatusDBCapacityReservationStateDBProxyEndpointStatusDBProxyEndpointTargetRoleDBProxyStatusDatabaseInsightsModeDefaultAuthSchemeEndDateTypeEndpointNetworkTypeEngineFamilyExportSourceTypeFailoverStatusGlobalClusterMemberSynchronizationStatusIAMAuthModeIntegrationStatusLifecycleSupportNameLimitlessDatabaseStatusLocalWriteForwardingStatusMasterUserAuthenticationTypeReplicaModeSourceTypeStorageEncryptionTypeTargetConnectionNetworkTypeTargetHealthReasonTargetRoleTargetStateTargetTypeUpgradeRolloutOrderWriteForwardingStatus