Struct Client

Source
pub struct Client { /* private fields */ }
Expand description

Client for Amazon Relational Database Service

Client for invoking operations on Amazon Relational Database Service. Each operation on Amazon Relational Database Service is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

§Constructing a Client

A Config is required to construct a client. For most use cases, the aws-config crate should be used to automatically resolve this config using aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared across multiple different AWS SDK clients. This config resolution process can be customized by calling aws_config::from_env() instead, which returns a ConfigLoader that uses the builder pattern to customize the default config.

In the simplest case, creating a client looks as follows:

let config = aws_config::load_from_env().await;
let client = aws_sdk_rds::Client::new(&config);

Occasionally, SDKs may have additional service-specific values that can be set on the Config that is absent from SdkConfig, or slightly different settings for a specific client may be desired. The Builder struct implements From<&SdkConfig>, so setting these specific settings can be done as follows:

let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_rds::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();

See the aws-config docs and Config for more information on customizing configuration.

Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.

§Using the Client

A client has a function for every operation that can be performed by the service. For example, the AddRoleToDBCluster operation has a Client::add_role_to_db_cluster, function which returns a builder for that operation. The fluent builder ultimately has a send() function that returns an async future that returns a result, as illustrated below:

let result = client.add_role_to_db_cluster()
    .db_cluster_identifier("example")
    .send()
    .await;

The underlying HTTP requests that get made by this can be modified with the customize_operation function on the fluent builder. See the customize module for more information.

§Waiters

This client provides wait_until methods behind the Waiters trait. To use them, simply import the trait, and then call one of the wait_until methods. This will return a waiter fluent builder that takes various parameters, which are documented on the builder type. Once parameters have been provided, the wait method can be called to initiate waiting.

For example, if there was a wait_until_thing method, it could look like:

let result = client.wait_until_thing()
    .thing_id("someId")
    .wait(Duration::from_secs(120))
    .await;

Implementations§

Source§

impl Client

Source

pub fn add_role_to_db_cluster(&self) -> AddRoleToDBClusterFluentBuilder

Constructs a fluent builder for the AddRoleToDBCluster operation.

Source§

impl Client

Source

pub fn add_role_to_db_instance(&self) -> AddRoleToDBInstanceFluentBuilder

Constructs a fluent builder for the AddRoleToDBInstance operation.

Source§

impl Client

Source

pub fn add_source_identifier_to_subscription( &self, ) -> AddSourceIdentifierToSubscriptionFluentBuilder

Constructs a fluent builder for the AddSourceIdentifierToSubscription operation.

Source§

impl Client

Source

pub fn add_tags_to_resource(&self) -> AddTagsToResourceFluentBuilder

Constructs a fluent builder for the AddTagsToResource operation.

Source§

impl Client

Source

pub fn apply_pending_maintenance_action( &self, ) -> ApplyPendingMaintenanceActionFluentBuilder

Constructs a fluent builder for the ApplyPendingMaintenanceAction operation.

Source§

impl Client

Source

pub fn authorize_db_security_group_ingress( &self, ) -> AuthorizeDBSecurityGroupIngressFluentBuilder

Constructs a fluent builder for the AuthorizeDBSecurityGroupIngress operation.

Source§

impl Client

Source

pub fn backtrack_db_cluster(&self) -> BacktrackDBClusterFluentBuilder

Constructs a fluent builder for the BacktrackDBCluster operation.

Source§

impl Client

Source

pub fn cancel_export_task(&self) -> CancelExportTaskFluentBuilder

Constructs a fluent builder for the CancelExportTask operation.

Source§

impl Client

Source

pub fn copy_db_cluster_parameter_group( &self, ) -> CopyDBClusterParameterGroupFluentBuilder

Constructs a fluent builder for the CopyDBClusterParameterGroup operation.

Source§

impl Client

Source

pub fn copy_db_cluster_snapshot(&self) -> CopyDBClusterSnapshotFluentBuilder

Constructs a fluent builder for the CopyDBClusterSnapshot operation.

  • The fluent builder is configurable:
    • source_db_cluster_snapshot_identifier(impl Into<String>) / set_source_db_cluster_snapshot_identifier(Option<String>):
      required: true

      The identifier of the DB cluster snapshot to copy. This parameter isn’t case-sensitive.

      You can’t copy an encrypted, shared DB cluster snapshot from one Amazon Web Services Region to another.

      Constraints:

      • Must specify a valid system snapshot in the “available” state.

      • If the source snapshot is in the same Amazon Web Services Region as the copy, specify a valid DB snapshot identifier.

      • If the source snapshot is in a different Amazon Web Services Region than the copy, specify a valid DB cluster snapshot ARN. For more information, go to Copying Snapshots Across Amazon Web Services Regions in the Amazon Aurora User Guide.

      Example: my-cluster-snapshot1


    • target_db_cluster_snapshot_identifier(impl Into<String>) / set_target_db_cluster_snapshot_identifier(Option<String>):
      required: true

      The identifier of the new DB cluster snapshot to create from the source DB cluster snapshot. This parameter isn’t case-sensitive.

      Constraints:

      • Must contain from 1 to 63 letters, numbers, or hyphens.

      • First character must be a letter.

      • Can’t end with a hyphen or contain two consecutive hyphens.

      Example: my-cluster-snapshot2


    • kms_key_id(impl Into<String>) / set_kms_key_id(Option<String>):
      required: false

      The Amazon Web Services KMS key identifier for an encrypted DB cluster snapshot. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the Amazon Web Services KMS key.

      If you copy an encrypted DB cluster snapshot from your Amazon Web Services account, you can specify a value for KmsKeyId to encrypt the copy with a new KMS key. If you don’t specify a value for KmsKeyId, then the copy of the DB cluster snapshot is encrypted with the same KMS key as the source DB cluster snapshot.

      If you copy an encrypted DB cluster snapshot that is shared from another Amazon Web Services account, then you must specify a value for KmsKeyId.

      To copy an encrypted DB cluster snapshot to another Amazon Web Services Region, you must set KmsKeyId to the Amazon Web Services KMS key identifier you want to use to encrypt the copy of the DB cluster snapshot in the destination Amazon Web Services Region. KMS keys are specific to the Amazon Web Services Region that they are created in, and you can’t use KMS keys from one Amazon Web Services Region in another Amazon Web Services Region.

      If you copy an unencrypted DB cluster snapshot and specify a value for the KmsKeyId parameter, an error is returned.


    • pre_signed_url(impl Into<String>) / set_pre_signed_url(Option<String>):
      required: false

      When you are copying a DB cluster snapshot from one Amazon Web Services GovCloud (US) Region to another, the URL that contains a Signature Version 4 signed request for the CopyDBClusterSnapshot API operation in the Amazon Web Services Region that contains the source DB cluster snapshot to copy. Use the PreSignedUrl parameter when copying an encrypted DB cluster snapshot from another Amazon Web Services Region. Don’t specify PreSignedUrl when copying an encrypted DB cluster snapshot in the same Amazon Web Services Region.

      This setting applies only to Amazon Web Services GovCloud (US) Regions. It’s ignored in other Amazon Web Services Regions.

      The presigned URL must be a valid request for the CopyDBClusterSnapshot API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster snapshot to copy. The presigned URL request must contain the following parameter values:

      • KmsKeyId - The KMS key identifier for the KMS key to use to encrypt the copy of the DB cluster snapshot in the destination Amazon Web Services Region. This is the same identifier for both the CopyDBClusterSnapshot operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.

      • DestinationRegion - The name of the Amazon Web Services Region that the DB cluster snapshot is to be created in.

      • SourceDBClusterSnapshotIdentifier - The DB cluster snapshot identifier for the encrypted DB cluster snapshot to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB cluster snapshot from the us-west-2 Amazon Web Services Region, then your SourceDBClusterSnapshotIdentifier looks like the following example: arn:aws:rds:us-west-2:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20161115.

      To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing Process.

      If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion (or –source-region for the CLI) instead of specifying PreSignedUrl manually. Specifying SourceRegion autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.


    • copy_tags(bool) / set_copy_tags(Option<bool>):
      required: false

      Specifies whether to copy all tags from the source DB cluster snapshot to the target DB cluster snapshot. By default, tags are not copied.


    • tags(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      A list of tags.

      For more information, see Tagging Amazon RDS resources in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide.


  • On success, responds with CopyDbClusterSnapshotOutput with field(s):
  • On failure, responds with SdkError<CopyDBClusterSnapshotError>
Source§

impl Client

Source

pub fn copy_db_parameter_group(&self) -> CopyDBParameterGroupFluentBuilder

Constructs a fluent builder for the CopyDBParameterGroup operation.

Source§

impl Client

Source

pub fn copy_db_snapshot(&self) -> CopyDBSnapshotFluentBuilder

Constructs a fluent builder for the CopyDBSnapshot operation.

  • The fluent builder is configurable:
    • source_db_snapshot_identifier(impl Into<String>) / set_source_db_snapshot_identifier(Option<String>):
      required: true

      The identifier for the source DB snapshot.

      If the source snapshot is in the same Amazon Web Services Region as the copy, specify a valid DB snapshot identifier. For example, you might specify rds:mysql-instance1-snapshot-20130805.

      If the source snapshot is in a different Amazon Web Services Region than the copy, specify a valid DB snapshot ARN. For example, you might specify arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20130805.

      If you are copying from a shared manual DB snapshot, this parameter must be the Amazon Resource Name (ARN) of the shared DB snapshot.

      If you are copying an encrypted snapshot this parameter must be in the ARN format for the source Amazon Web Services Region.

      Constraints:

      • Must specify a valid system snapshot in the “available” state.

      Example: rds:mydb-2012-04-02-00-01

      Example: arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20130805


    • target_db_snapshot_identifier(impl Into<String>) / set_target_db_snapshot_identifier(Option<String>):
      required: true

      The identifier for the copy of the snapshot.

      Constraints:

      • Can’t be null, empty, or blank

      • Must contain from 1 to 255 letters, numbers, or hyphens

      • First character must be a letter

      • Can’t end with a hyphen or contain two consecutive hyphens

      Example: my-db-snapshot


    • kms_key_id(impl Into<String>) / set_kms_key_id(Option<String>):
      required: false

      The Amazon Web Services KMS key identifier for an encrypted DB snapshot. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.

      If you copy an encrypted DB snapshot from your Amazon Web Services account, you can specify a value for this parameter to encrypt the copy with a new KMS key. If you don’t specify a value for this parameter, then the copy of the DB snapshot is encrypted with the same Amazon Web Services KMS key as the source DB snapshot.

      If you copy an encrypted DB snapshot that is shared from another Amazon Web Services account, then you must specify a value for this parameter.

      If you specify this parameter when you copy an unencrypted snapshot, the copy is encrypted.

      If you copy an encrypted snapshot to a different Amazon Web Services Region, then you must specify an Amazon Web Services KMS key identifier for the destination Amazon Web Services Region. KMS keys are specific to the Amazon Web Services Region that they are created in, and you can’t use KMS keys from one Amazon Web Services Region in another Amazon Web Services Region.


    • tags(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      A list of tags.

      For more information, see Tagging Amazon RDS resources in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide.


    • copy_tags(bool) / set_copy_tags(Option<bool>):
      required: false

      Specifies whether to copy all tags from the source DB snapshot to the target DB snapshot. By default, tags aren’t copied.


    • pre_signed_url(impl Into<String>) / set_pre_signed_url(Option<String>):
      required: false

      When you are copying a snapshot from one Amazon Web Services GovCloud (US) Region to another, the URL that contains a Signature Version 4 signed request for the CopyDBSnapshot API operation in the source Amazon Web Services Region that contains the source DB snapshot to copy.

      This setting applies only to Amazon Web Services GovCloud (US) Regions. It’s ignored in other Amazon Web Services Regions.

      You must specify this parameter when you copy an encrypted DB snapshot from another Amazon Web Services Region by using the Amazon RDS API. Don’t specify PreSignedUrl when you are copying an encrypted DB snapshot in the same Amazon Web Services Region.

      The presigned URL must be a valid request for the CopyDBClusterSnapshot API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster snapshot to copy. The presigned URL request must contain the following parameter values:

      • DestinationRegion - The Amazon Web Services Region that the encrypted DB snapshot is copied to. This Amazon Web Services Region is the same one where the CopyDBSnapshot operation is called that contains this presigned URL.

        For example, if you copy an encrypted DB snapshot from the us-west-2 Amazon Web Services Region to the us-east-1 Amazon Web Services Region, then you call the CopyDBSnapshot operation in the us-east-1 Amazon Web Services Region and provide a presigned URL that contains a call to the CopyDBSnapshot operation in the us-west-2 Amazon Web Services Region. For this example, the DestinationRegion in the presigned URL must be set to the us-east-1 Amazon Web Services Region.

      • KmsKeyId - The KMS key identifier for the KMS key to use to encrypt the copy of the DB snapshot in the destination Amazon Web Services Region. This is the same identifier for both the CopyDBSnapshot operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.

      • SourceDBSnapshotIdentifier - The DB snapshot identifier for the encrypted snapshot to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB snapshot from the us-west-2 Amazon Web Services Region, then your SourceDBSnapshotIdentifier looks like the following example: arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20161115.

      To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing Process.

      If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion (or –source-region for the CLI) instead of specifying PreSignedUrl manually. Specifying SourceRegion autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.


    • option_group_name(impl Into<String>) / set_option_group_name(Option<String>):
      required: false

      The name of an option group to associate with the copy of the snapshot.

      Specify this option if you are copying a snapshot from one Amazon Web Services Region to another, and your DB instance uses a nondefault option group. If your source DB instance uses Transparent Data Encryption for Oracle or Microsoft SQL Server, you must specify this option when copying across Amazon Web Services Regions. For more information, see Option group considerations in the Amazon RDS User Guide.


    • target_custom_availability_zone(impl Into<String>) / set_target_custom_availability_zone(Option<String>):
      required: false

      The external custom Availability Zone (CAZ) identifier for the target CAZ.

      Example: rds-caz-aiqhTgQv.


    • copy_option_group(bool) / set_copy_option_group(Option<bool>):
      required: false

      Specifies whether to copy the DB option group associated with the source DB snapshot to the target Amazon Web Services account and associate with the target DB snapshot. The associated option group can be copied only with cross-account snapshot copy calls.


  • On success, responds with CopyDbSnapshotOutput with field(s):
    • db_snapshot(Option<DbSnapshot>):

      Contains the details of an Amazon RDS DB snapshot.

      This data type is used as a response element in the DescribeDBSnapshots action.

  • On failure, responds with SdkError<CopyDBSnapshotError>
Source§

impl Client

Source

pub fn copy_option_group(&self) -> CopyOptionGroupFluentBuilder

Constructs a fluent builder for the CopyOptionGroup operation.

Source§

impl Client

Source

pub fn create_blue_green_deployment( &self, ) -> CreateBlueGreenDeploymentFluentBuilder

Constructs a fluent builder for the CreateBlueGreenDeployment operation.

Source§

impl Client

Source

pub fn create_custom_db_engine_version( &self, ) -> CreateCustomDBEngineVersionFluentBuilder

Constructs a fluent builder for the CreateCustomDBEngineVersion operation.

Source§

impl Client

Source

pub fn create_db_cluster(&self) -> CreateDBClusterFluentBuilder

Constructs a fluent builder for the CreateDBCluster operation.

  • The fluent builder is configurable:
    • availability_zones(impl Into<String>) / set_availability_zones(Option<Vec::<String>>):
      required: false

      A list of Availability Zones (AZs) where you specifically want to create DB instances in the DB cluster.

      For information on AZs, see Availability Zones in the Amazon Aurora User Guide.

      Valid for Cluster Type: Aurora DB clusters only

      Constraints:

      • Can’t specify more than three AZs.


    • backup_retention_period(i32) / set_backup_retention_period(Option<i32>):
      required: false

      The number of days for which automated backups are retained.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Default: 1

      Constraints:

      • Must be a value from 1 to 35.


    • character_set_name(impl Into<String>) / set_character_set_name(Option<String>):
      required: false

      The name of the character set (CharacterSet) to associate the DB cluster with.

      Valid for Cluster Type: Aurora DB clusters only


    • database_name(impl Into<String>) / set_database_name(Option<String>):
      required: false

      The name for your database of up to 64 alphanumeric characters. A database named postgres is always created. If this parameter is specified, an additional database with this name is created.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • db_cluster_identifier(impl Into<String>) / set_db_cluster_identifier(Option<String>):
      required: true

      The identifier for this DB cluster. This parameter is stored as a lowercase string.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Constraints:

      • Must contain from 1 to 63 (for Aurora DB clusters) or 1 to 52 (for Multi-AZ DB clusters) letters, numbers, or hyphens.

      • First character must be a letter.

      • Can’t end with a hyphen or contain two consecutive hyphens.

      Example: my-cluster1


    • db_cluster_parameter_group_name(impl Into<String>) / set_db_cluster_parameter_group_name(Option<String>):
      required: false

      The name of the DB cluster parameter group to associate with this DB cluster. If you don’t specify a value, then the default DB cluster parameter group for the specified DB engine and version is used.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Constraints:

      • If supplied, must match the name of an existing DB cluster parameter group.


    • vpc_security_group_ids(impl Into<String>) / set_vpc_security_group_ids(Option<Vec::<String>>):
      required: false

      A list of EC2 VPC security groups to associate with this DB cluster.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • db_subnet_group_name(impl Into<String>) / set_db_subnet_group_name(Option<String>):
      required: false

      A DB subnet group to associate with this DB cluster.

      This setting is required to create a Multi-AZ DB cluster.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Constraints:

      • Must match the name of an existing DB subnet group.

      Example: mydbsubnetgroup


    • engine(impl Into<String>) / set_engine(Option<String>):
      required: true

      The database engine to use for this DB cluster.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values:

      • aurora-mysql

      • aurora-postgresql

      • mysql

      • postgres

      • neptune - For information about using Amazon Neptune, see the Amazon Neptune User Guide .


    • engine_version(impl Into<String>) / set_engine_version(Option<String>):
      required: false

      The version number of the database engine to use.

      To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the following command:

      aws rds describe-db-engine-versions –engine aurora-mysql –query “DBEngineVersions[].EngineVersion”

      You can supply either 5.7 or 8.0 to use the default engine version for Aurora MySQL version 2 or version 3, respectively.

      To list all of the available engine versions for Aurora PostgreSQL, use the following command:

      aws rds describe-db-engine-versions –engine aurora-postgresql –query “DBEngineVersions[].EngineVersion”

      To list all of the available engine versions for RDS for MySQL, use the following command:

      aws rds describe-db-engine-versions –engine mysql –query “DBEngineVersions[].EngineVersion”

      To list all of the available engine versions for RDS for PostgreSQL, use the following command:

      aws rds describe-db-engine-versions –engine postgres –query “DBEngineVersions[].EngineVersion”

      For information about a specific engine, see the following topics:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • port(i32) / set_port(Option<i32>):
      required: false

      The port number on which the instances in the DB cluster accept connections.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: 1150-65535

      Default:

      • RDS for MySQL and Aurora MySQL - 3306

      • RDS for PostgreSQL and Aurora PostgreSQL - 5432


    • master_username(impl Into<String>) / set_master_username(Option<String>):
      required: false

      The name of the master user for the DB cluster.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Constraints:

      • Must be 1 to 16 letters or numbers.

      • First character must be a letter.

      • Can’t be a reserved word for the chosen database engine.


    • master_user_password(impl Into<String>) / set_master_user_password(Option<String>):
      required: false

      The password for the master database user.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Constraints:

      • Must contain from 8 to 41 characters.

      • Can contain any printable ASCII character except “/”, “”“, or “@”.

      • Can’t be specified if ManageMasterUserPassword is turned on.


    • option_group_name(impl Into<String>) / set_option_group_name(Option<String>):
      required: false

      The option group to associate the DB cluster with.

      DB clusters are associated with a default option group that can’t be modified.


    • preferred_backup_window(impl Into<String>) / set_preferred_backup_window(Option<String>):
      required: false

      The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see Backup window in the Amazon Aurora User Guide.

      Constraints:

      • Must be in the format hh24:mi-hh24:mi.

      • Must be in Universal Coordinated Time (UTC).

      • Must not conflict with the preferred maintenance window.

      • Must be at least 30 minutes.


    • preferred_maintenance_window(impl Into<String>) / set_preferred_maintenance_window(Option<String>):
      required: false

      The weekly time range during which system maintenance can occur.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see Adjusting the Preferred DB Cluster Maintenance Window in the Amazon Aurora User Guide.

      Constraints:

      • Must be in the format ddd:hh24:mi-ddd:hh24:mi.

      • Days must be one of Mon | Tue | Wed | Thu | Fri | Sat | Sun.

      • Must be in Universal Coordinated Time (UTC).

      • Must be at least 30 minutes.


    • replication_source_identifier(impl Into<String>) / set_replication_source_identifier(Option<String>):
      required: false

      The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • tags(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      Tags to assign to the DB cluster.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • storage_encrypted(bool) / set_storage_encrypted(Option<bool>):
      required: false

      Specifies whether the DB cluster is encrypted.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • kms_key_id(impl Into<String>) / set_kms_key_id(Option<String>):
      required: false

      The Amazon Web Services KMS key identifier for an encrypted DB cluster.

      The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.

      When a KMS key isn’t specified in KmsKeyId:

      • If ReplicationSourceIdentifier identifies an encrypted source, then Amazon RDS uses the KMS key used to encrypt the source. Otherwise, Amazon RDS uses your default KMS key.

      • If the StorageEncrypted parameter is enabled and ReplicationSourceIdentifier isn’t specified, then Amazon RDS uses your default KMS key.

      There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.

      If you create a read replica of an encrypted DB cluster in another Amazon Web Services Region, make sure to set KmsKeyId to a KMS key identifier that is valid in the destination Amazon Web Services Region. This KMS key is used to encrypt the read replica in that Amazon Web Services Region.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • pre_signed_url(impl Into<String>) / set_pre_signed_url(Option<String>):
      required: false

      When you are replicating a DB cluster from one Amazon Web Services GovCloud (US) Region to another, an URL that contains a Signature Version 4 signed request for the CreateDBCluster operation to be called in the source Amazon Web Services Region where the DB cluster is replicated from. Specify PreSignedUrl only when you are performing cross-Region replication from an encrypted DB cluster.

      The presigned URL must be a valid request for the CreateDBCluster API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster to copy.

      The presigned URL request must contain the following parameter values:

      • KmsKeyId - The KMS key identifier for the KMS key to use to encrypt the copy of the DB cluster in the destination Amazon Web Services Region. This should refer to the same KMS key for both the CreateDBCluster operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.

      • DestinationRegion - The name of the Amazon Web Services Region that Aurora read replica will be created in.

      • ReplicationSourceIdentifier - The DB cluster identifier for the encrypted DB cluster to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB cluster from the us-west-2 Amazon Web Services Region, then your ReplicationSourceIdentifier would look like Example: arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1.

      To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing Process.

      If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion (or –source-region for the CLI) instead of specifying PreSignedUrl manually. Specifying SourceRegion autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.

      Valid for Cluster Type: Aurora DB clusters only


    • enable_iam_database_authentication(bool) / set_enable_iam_database_authentication(Option<bool>):
      required: false

      Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn’t enabled.

      For more information, see IAM Database Authentication in the Amazon Aurora User Guide or IAM database authentication for MariaDB, MySQL, and PostgreSQL in the Amazon RDS User Guide.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • backtrack_window(i64) / set_backtrack_window(Option<i64>):
      required: false

      The target backtrack window, in seconds. To disable backtracking, set this value to 0.

      Valid for Cluster Type: Aurora MySQL DB clusters only

      Default: 0

      Constraints:

      • If specified, this value must be set to a number from 0 to 259,200 (72 hours).


    • enable_cloudwatch_logs_exports(impl Into<String>) / set_enable_cloudwatch_logs_exports(Option<Vec::<String>>):
      required: false

      The list of log types that need to be enabled for exporting to CloudWatch Logs.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      The following values are valid for each DB engine:

      • Aurora MySQL - audit | error | general | instance | slowquery

      • Aurora PostgreSQL - instance | postgresql

      • RDS for MySQL - error | general | slowquery

      • RDS for PostgreSQL - postgresql | upgrade

      For more information about exporting CloudWatch Logs for Amazon RDS, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon RDS User Guide.

      For more information about exporting CloudWatch Logs for Amazon Aurora, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.


    • engine_mode(impl Into<String>) / set_engine_mode(Option<String>):
      required: false

      The DB engine mode of the DB cluster, either provisioned or serverless.

      The serverless engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the provisioned engine mode.

      For information about limitations and requirements for Serverless DB clusters, see the following sections in the Amazon Aurora User Guide:

      Valid for Cluster Type: Aurora DB clusters only


    • scaling_configuration(ScalingConfiguration) / set_scaling_configuration(Option<ScalingConfiguration>):
      required: false

      For DB clusters in serverless DB engine mode, the scaling properties of the DB cluster.

      Valid for Cluster Type: Aurora DB clusters only


    • rds_custom_cluster_configuration(RdsCustomClusterConfiguration) / set_rds_custom_cluster_configuration(Option<RdsCustomClusterConfiguration>):
      required: false

      Reserved for future use.


    • deletion_protection(bool) / set_deletion_protection(Option<bool>):
      required: false

      Specifies whether the DB cluster has deletion protection enabled. The database can’t be deleted when deletion protection is enabled. By default, deletion protection isn’t enabled.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • global_cluster_identifier(impl Into<String>) / set_global_cluster_identifier(Option<String>):
      required: false

      The global cluster ID of an Aurora cluster that becomes the primary cluster in the new global database cluster.

      Valid for Cluster Type: Aurora DB clusters only


    • enable_http_endpoint(bool) / set_enable_http_endpoint(Option<bool>):
      required: false

      Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn’t enabled.

      When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor.

      For more information, see Using RDS Data API in the Amazon Aurora User Guide.

      Valid for Cluster Type: Aurora DB clusters only


    • copy_tags_to_snapshot(bool) / set_copy_tags_to_snapshot(Option<bool>):
      required: false

      Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • domain(impl Into<String>) / set_domain(Option<String>):
      required: false

      The Active Directory directory ID to create the DB cluster in.

      For Amazon Aurora DB clusters, Amazon RDS can use Kerberos authentication to authenticate users that connect to the DB cluster.

      For more information, see Kerberos authentication in the Amazon Aurora User Guide.

      Valid for Cluster Type: Aurora DB clusters only


    • domain_iam_role_name(impl Into<String>) / set_domain_iam_role_name(Option<String>):
      required: false

      The name of the IAM role to use when making API calls to the Directory Service.

      Valid for Cluster Type: Aurora DB clusters only


    • enable_global_write_forwarding(bool) / set_enable_global_write_forwarding(Option<bool>):
      required: false

      Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.

      You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.

      Valid for Cluster Type: Aurora DB clusters only


    • db_cluster_instance_class(impl Into<String>) / set_db_cluster_instance_class(Option<String>):
      required: false

      The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example db.m6gd.xlarge. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.

      For the full list of DB instance classes and availability for your engine, see DB instance class in the Amazon RDS User Guide.

      This setting is required to create a Multi-AZ DB cluster.

      Valid for Cluster Type: Multi-AZ DB clusters only


    • allocated_storage(i32) / set_allocated_storage(Option<i32>):
      required: false

      The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.

      Valid for Cluster Type: Multi-AZ DB clusters only

      This setting is required to create a Multi-AZ DB cluster.


    • storage_type(impl Into<String>) / set_storage_type(Option<String>):
      required: false

      The storage type to associate with the DB cluster.

      For information on storage types for Aurora DB clusters, see Storage configurations for Amazon Aurora DB clusters. For information on storage types for Multi-AZ DB clusters, see Settings for creating Multi-AZ DB clusters.

      This setting is required to create a Multi-AZ DB cluster.

      When specified for a Multi-AZ DB cluster, a value for the Iops parameter is required.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values:

      • Aurora DB clusters - aurora | aurora-iopt1

      • Multi-AZ DB clusters - io1 | io2 | gp3

      Default:

      • Aurora DB clusters - aurora

      • Multi-AZ DB clusters - io1

      When you create an Aurora DB cluster with the storage type set to aurora-iopt1, the storage type is returned in the response. The storage type isn’t returned when you set it to aurora.


    • iops(i32) / set_iops(Option<i32>):
      required: false

      The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.

      For information about valid IOPS values, see Provisioned IOPS storage in the Amazon RDS User Guide.

      This setting is required to create a Multi-AZ DB cluster.

      Valid for Cluster Type: Multi-AZ DB clusters only

      Constraints:

      • Must be a multiple between .5 and 50 of the storage amount for the DB cluster.


    • publicly_accessible(bool) / set_publicly_accessible(Option<bool>):
      required: false

      Specifies whether the DB cluster is publicly accessible.

      When the DB cluster is publicly accessible and you connect from outside of the DB cluster’s virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to the private IP address. Access to the DB cluster is ultimately controlled by the security group it uses. That public access isn’t permitted if the security group assigned to the DB cluster doesn’t permit it.

      When the DB cluster isn’t publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.

      Valid for Cluster Type: Multi-AZ DB clusters only

      Default: The default behavior varies depending on whether DBSubnetGroupName is specified.

      If DBSubnetGroupName isn’t specified, and PubliclyAccessible isn’t specified, the following applies:

      • If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB cluster is private.

      • If the default VPC in the target Region has an internet gateway attached to it, the DB cluster is public.

      If DBSubnetGroupName is specified, and PubliclyAccessible isn’t specified, the following applies:

      • If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB cluster is private.

      • If the subnets are part of a VPC that has an internet gateway attached to it, the DB cluster is public.


    • auto_minor_version_upgrade(bool) / set_auto_minor_version_upgrade(Option<bool>):
      required: false

      Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB cluster


    • monitoring_interval(i32) / set_monitoring_interval(Option<i32>):
      required: false

      The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify 0.

      If MonitoringRoleArn is specified, also set MonitoringInterval to a value other than 0.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: 0 | 1 | 5 | 10 | 15 | 30 | 60

      Default: 0


    • monitoring_role_arn(impl Into<String>) / set_monitoring_role_arn(Option<String>):
      required: false

      The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is arn:aws:iam:123456789012:role/emaccess. For information on creating a monitoring role, see Setting up and enabling Enhanced Monitoring in the Amazon RDS User Guide.

      If MonitoringInterval is set to a value other than 0, supply a MonitoringRoleArn value.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • database_insights_mode(DatabaseInsightsMode) / set_database_insights_mode(Option<DatabaseInsightsMode>):
      required: false

      The mode of Database Insights to enable for the DB cluster.

      If you set this value to advanced, you must also set the PerformanceInsightsEnabled parameter to true and the PerformanceInsightsRetentionPeriod parameter to 465.

      Valid for Cluster Type: Aurora DB clusters only


    • enable_performance_insights(bool) / set_enable_performance_insights(Option<bool>):
      required: false

      Specifies whether to turn on Performance Insights for the DB cluster.

      For more information, see Using Amazon Performance Insights in the Amazon RDS User Guide.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • performance_insights_kms_key_id(impl Into<String>) / set_performance_insights_kms_key_id(Option<String>):
      required: false

      The Amazon Web Services KMS key identifier for encryption of Performance Insights data.

      The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.

      If you don’t specify a value for PerformanceInsightsKMSKeyId, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • performance_insights_retention_period(i32) / set_performance_insights_retention_period(Option<i32>):
      required: false

      The number of days to retain Performance Insights data.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values:

      • 7

      • month * 31, where month is a number of months from 1-23. Examples: 93 (3 months * 31), 341 (11 months * 31), 589 (19 months * 31)

      • 731

      Default: 7 days

      If you specify a retention period that isn’t valid, such as 94, Amazon RDS issues an error.


    • enable_limitless_database(bool) / set_enable_limitless_database(Option<bool>):
      required: false

      Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.

      Valid for: Aurora DB clusters only

      This setting is no longer used. Instead use the ClusterScalabilityType setting.


    • serverless_v2_scaling_configuration(ServerlessV2ScalingConfiguration) / set_serverless_v2_scaling_configuration(Option<ServerlessV2ScalingConfiguration>):
      required: false

      Contains the scaling configuration of an Aurora Serverless v2 DB cluster.

      For more information, see Using Amazon Aurora Serverless v2 in the Amazon Aurora User Guide.


    • network_type(impl Into<String>) / set_network_type(Option<String>):
      required: false

      The network type of the DB cluster.

      The network type is determined by the DBSubnetGroup specified for the DB cluster. A DBSubnetGroup can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL).

      For more information, see Working with a DB instance in a VPC in the Amazon Aurora User Guide.

      Valid for Cluster Type: Aurora DB clusters only

      Valid Values: IPV4 | DUAL


    • cluster_scalability_type(ClusterScalabilityType) / set_cluster_scalability_type(Option<ClusterScalabilityType>):
      required: false

      Specifies the scalability mode of the Aurora DB cluster. When set to limitless, the cluster operates as an Aurora Limitless Database. When set to standard (the default), the cluster uses normal DB instance creation.

      Valid for: Aurora DB clusters only

      You can’t modify this setting after you create the DB cluster.


    • db_system_id(impl Into<String>) / set_db_system_id(Option<String>):
      required: false

      Reserved for future use.


    • manage_master_user_password(bool) / set_manage_master_user_password(Option<bool>):
      required: false

      Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.

      For more information, see Password management with Amazon Web Services Secrets Manager in the Amazon RDS User Guide and Password management with Amazon Web Services Secrets Manager in the Amazon Aurora User Guide.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Constraints:

      • Can’t manage the master user password with Amazon Web Services Secrets Manager if MasterUserPassword is specified.


    • master_user_secret_kms_key_id(impl Into<String>) / set_master_user_secret_kms_key_id(Option<String>):
      required: false

      The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.

      This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster.

      The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.

      If you don’t specify MasterUserSecretKmsKeyId, then the aws/secretsmanager KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can’t use the aws/secretsmanager KMS key to encrypt the secret, and you must use a customer managed KMS key.

      There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters


    • enable_local_write_forwarding(bool) / set_enable_local_write_forwarding(Option<bool>):
      required: false

      Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren’t allowed on reader DB instances.

      Valid for: Aurora DB clusters only


    • ca_certificate_identifier(impl Into<String>) / set_ca_certificate_identifier(Option<String>):
      required: false

      The CA certificate identifier to use for the DB cluster’s server certificate.

      For more information, see Using SSL/TLS to encrypt a connection to a DB instance in the Amazon RDS User Guide.

      Valid for Cluster Type: Multi-AZ DB clusters


    • engine_lifecycle_support(impl Into<String>) / set_engine_lifecycle_support(Option<String>):
      required: false

      The life cycle type for this DB cluster.

      By default, this value is set to open-source-rds-extended-support, which enrolls your DB cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, creating the DB cluster will fail if the DB major version is past its end of standard support date.

      You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:

      Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

      Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled

      Default: open-source-rds-extended-support


  • On success, responds with CreateDbClusterOutput with field(s):
    • db_cluster(Option<DbCluster>):

      Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB cluster.

      For an Amazon Aurora DB cluster, this data type is used as a response element in the operations CreateDBCluster, DeleteDBCluster, DescribeDBClusters, FailoverDBCluster, ModifyDBCluster, PromoteReadReplicaDBCluster, RestoreDBClusterFromS3, RestoreDBClusterFromSnapshot, RestoreDBClusterToPointInTime, StartDBCluster, and StopDBCluster.

      For a Multi-AZ DB cluster, this data type is used as a response element in the operations CreateDBCluster, DeleteDBCluster, DescribeDBClusters, FailoverDBCluster, ModifyDBCluster, RebootDBCluster, RestoreDBClusterFromSnapshot, and RestoreDBClusterToPointInTime.

      For more information on Amazon Aurora DB clusters, see What is Amazon Aurora? in the Amazon Aurora User Guide.

      For more information on Multi-AZ DB clusters, see Multi-AZ deployments with two readable standby DB instances in the Amazon RDS User Guide.

  • On failure, responds with SdkError<CreateDBClusterError>
Source§

impl Client

Source

pub fn create_db_cluster_endpoint(&self) -> CreateDBClusterEndpointFluentBuilder

Constructs a fluent builder for the CreateDBClusterEndpoint operation.

Source§

impl Client

Source

pub fn create_db_cluster_parameter_group( &self, ) -> CreateDBClusterParameterGroupFluentBuilder

Constructs a fluent builder for the CreateDBClusterParameterGroup operation.

Source§

impl Client

Source

pub fn create_db_cluster_snapshot(&self) -> CreateDBClusterSnapshotFluentBuilder

Constructs a fluent builder for the CreateDBClusterSnapshot operation.

Source§

impl Client

Source

pub fn create_db_instance(&self) -> CreateDBInstanceFluentBuilder

Constructs a fluent builder for the CreateDBInstance operation.

  • The fluent builder is configurable:
    • db_name(impl Into<String>) / set_db_name(Option<String>):
      required: false

      The meaning of this parameter differs according to the database engine you use.

      Amazon Aurora MySQL

      The name of the database to create when the primary DB instance of the Aurora MySQL DB cluster is created. If this parameter isn’t specified for an Aurora MySQL DB cluster, no database is created in the DB cluster.

      Constraints:

      • Must contain 1 to 64 alphanumeric characters.

      • Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).

      • Can’t be a word reserved by the database engine.

      Amazon Aurora PostgreSQL

      The name of the database to create when the primary DB instance of the Aurora PostgreSQL DB cluster is created. A database named postgres is always created. If this parameter is specified, an additional database with this name is created.

      Constraints:

      • It must contain 1 to 63 alphanumeric characters.

      • Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0 to 9).

      • Can’t be a word reserved by the database engine.

      Amazon RDS Custom for Oracle

      The Oracle System ID (SID) of the created RDS Custom DB instance. If you don’t specify a value, the default value is ORCL for non-CDBs and RDSCDB for CDBs.

      Default: ORCL

      Constraints:

      • Must contain 1 to 8 alphanumeric characters.

      • Must contain a letter.

      • Can’t be a word reserved by the database engine.

      Amazon RDS Custom for SQL Server

      Not applicable. Must be null.

      RDS for Db2

      The name of the database to create when the DB instance is created. If this parameter isn’t specified, no database is created in the DB instance. In some cases, we recommend that you don’t add a database name. For more information, see Additional considerations in the Amazon RDS User Guide.

      Constraints:

      • Must contain 1 to 64 letters or numbers.

      • Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).

      • Can’t be a word reserved by the specified database engine.

      RDS for MariaDB

      The name of the database to create when the DB instance is created. If this parameter isn’t specified, no database is created in the DB instance.

      Constraints:

      • Must contain 1 to 64 letters or numbers.

      • Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).

      • Can’t be a word reserved by the specified database engine.

      RDS for MySQL

      The name of the database to create when the DB instance is created. If this parameter isn’t specified, no database is created in the DB instance.

      Constraints:

      • Must contain 1 to 64 letters or numbers.

      • Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).

      • Can’t be a word reserved by the specified database engine.

      RDS for Oracle

      The Oracle System ID (SID) of the created DB instance. If you don’t specify a value, the default value is ORCL. You can’t specify the string null, or any other reserved word, for DBName.

      Default: ORCL

      Constraints:

      • Can’t be longer than 8 characters.

      RDS for PostgreSQL

      The name of the database to create when the DB instance is created. A database named postgres is always created. If this parameter is specified, an additional database with this name is created.

      Constraints:

      • Must contain 1 to 63 letters, numbers, or underscores.

      • Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0-9).

      • Can’t be a word reserved by the specified database engine.

      RDS for SQL Server

      Not applicable. Must be null.


    • db_instance_identifier(impl Into<String>) / set_db_instance_identifier(Option<String>):
      required: true

      The identifier for this DB instance. This parameter is stored as a lowercase string.

      Constraints:

      • Must contain from 1 to 63 letters, numbers, or hyphens.

      • First character must be a letter.

      • Can’t end with a hyphen or contain two consecutive hyphens.

      Example: mydbinstance


    • allocated_storage(i32) / set_allocated_storage(Option<i32>):
      required: false

      The amount of storage in gibibytes (GiB) to allocate for the DB instance.

      This setting doesn’t apply to Amazon Aurora DB instances. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume.

      Amazon RDS Custom

      Constraints to the amount of storage for each storage type are the following:

      • General Purpose (SSD) storage (gp2, gp3): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.

      • Provisioned IOPS storage (io1, io2): Must be an integer from 40 to 65536 for RDS Custom for Oracle, 16384 for RDS Custom for SQL Server.

      RDS for Db2

      Constraints to the amount of storage for each storage type are the following:

      • General Purpose (SSD) storage (gp3): Must be an integer from 20 to 65536.

      • Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.

      RDS for MariaDB

      Constraints to the amount of storage for each storage type are the following:

      • General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.

      • Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.

      • Magnetic storage (standard): Must be an integer from 5 to 3072.

      RDS for MySQL

      Constraints to the amount of storage for each storage type are the following:

      • General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.

      • Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.

      • Magnetic storage (standard): Must be an integer from 5 to 3072.

      RDS for Oracle

      Constraints to the amount of storage for each storage type are the following:

      • General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.

      • Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.

      • Magnetic storage (standard): Must be an integer from 10 to 3072.

      RDS for PostgreSQL

      Constraints to the amount of storage for each storage type are the following:

      • General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.

      • Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.

      • Magnetic storage (standard): Must be an integer from 5 to 3072.

      RDS for SQL Server

      Constraints to the amount of storage for each storage type are the following:

      • General Purpose (SSD) storage (gp2, gp3):

        • Enterprise and Standard editions: Must be an integer from 20 to 16384.

        • Web and Express editions: Must be an integer from 20 to 16384.

      • Provisioned IOPS storage (io1, io2):

        • Enterprise and Standard editions: Must be an integer from 100 to 16384.

        • Web and Express editions: Must be an integer from 100 to 16384.

      • Magnetic storage (standard):

        • Enterprise and Standard editions: Must be an integer from 20 to 1024.

        • Web and Express editions: Must be an integer from 20 to 1024.


    • db_instance_class(impl Into<String>) / set_db_instance_class(Option<String>):
      required: true

      The compute and memory capacity of the DB instance, for example db.m5.large. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see DB instance classes in the Amazon RDS User Guide or Aurora DB instance classes in the Amazon Aurora User Guide.


    • engine(impl Into<String>) / set_engine(Option<String>):
      required: true

      The database engine to use for this DB instance.

      Not every database engine is available in every Amazon Web Services Region.

      Valid Values:

      • aurora-mysql (for Aurora MySQL DB instances)

      • aurora-postgresql (for Aurora PostgreSQL DB instances)

      • custom-oracle-ee (for RDS Custom for Oracle DB instances)

      • custom-oracle-ee-cdb (for RDS Custom for Oracle DB instances)

      • custom-oracle-se2 (for RDS Custom for Oracle DB instances)

      • custom-oracle-se2-cdb (for RDS Custom for Oracle DB instances)

      • custom-sqlserver-ee (for RDS Custom for SQL Server DB instances)

      • custom-sqlserver-se (for RDS Custom for SQL Server DB instances)

      • custom-sqlserver-web (for RDS Custom for SQL Server DB instances)

      • custom-sqlserver-dev (for RDS Custom for SQL Server DB instances)

      • db2-ae

      • db2-se

      • mariadb

      • mysql

      • oracle-ee

      • oracle-ee-cdb

      • oracle-se2

      • oracle-se2-cdb

      • postgres

      • sqlserver-ee

      • sqlserver-se

      • sqlserver-ex

      • sqlserver-web


    • master_username(impl Into<String>) / set_master_username(Option<String>):
      required: false

      The name for the master user.

      This setting doesn’t apply to Amazon Aurora DB instances. The name for the master user is managed by the DB cluster.

      This setting is required for RDS DB instances.

      Constraints:

      • Must be 1 to 16 letters, numbers, or underscores.

      • First character must be a letter.

      • Can’t be a reserved word for the chosen database engine.


    • master_user_password(impl Into<String>) / set_master_user_password(Option<String>):
      required: false

      The password for the master user.

      This setting doesn’t apply to Amazon Aurora DB instances. The password for the master user is managed by the DB cluster.

      Constraints:

      • Can’t be specified if ManageMasterUserPassword is turned on.

      • Can include any printable ASCII character except “/”, “”“, or “@”. For RDS for Oracle, can’t include the “&” (ampersand) or the “’” (single quotes) character.

      Length Constraints:

      • RDS for Db2 - Must contain from 8 to 255 characters.

      • RDS for MariaDB - Must contain from 8 to 41 characters.

      • RDS for Microsoft SQL Server - Must contain from 8 to 128 characters.

      • RDS for MySQL - Must contain from 8 to 41 characters.

      • RDS for Oracle - Must contain from 8 to 30 characters.

      • RDS for PostgreSQL - Must contain from 8 to 128 characters.


    • db_security_groups(impl Into<String>) / set_db_security_groups(Option<Vec::<String>>):
      required: false

      A list of DB security groups to associate with this DB instance.

      This setting applies to the legacy EC2-Classic platform, which is no longer used to create new DB instances. Use the VpcSecurityGroupIds setting instead.


    • vpc_security_group_ids(impl Into<String>) / set_vpc_security_group_ids(Option<Vec::<String>>):
      required: false

      A list of Amazon EC2 VPC security groups to associate with this DB instance.

      This setting doesn’t apply to Amazon Aurora DB instances. The associated list of EC2 VPC security groups is managed by the DB cluster.

      Default: The default EC2 VPC security group for the DB subnet group’s VPC.


    • availability_zone(impl Into<String>) / set_availability_zone(Option<String>):
      required: false

      The Availability Zone (AZ) where the database will be created. For information on Amazon Web Services Regions and Availability Zones, see Regions and Availability Zones.

      For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don’t specify one.

      Default: A random, system-chosen Availability Zone in the endpoint’s Amazon Web Services Region.

      Constraints:

      • The AvailabilityZone parameter can’t be specified if the DB instance is a Multi-AZ deployment.

      • The specified Availability Zone must be in the same Amazon Web Services Region as the current endpoint.

      Example: us-east-1d


    • db_subnet_group_name(impl Into<String>) / set_db_subnet_group_name(Option<String>):
      required: false

      A DB subnet group to associate with this DB instance.

      Constraints:

      • Must match the name of an existing DB subnet group.

      Example: mydbsubnetgroup


    • preferred_maintenance_window(impl Into<String>) / set_preferred_maintenance_window(Option<String>):
      required: false

      The time range each week during which system maintenance can occur. For more information, see Amazon RDS Maintenance Window in the Amazon RDS User Guide.

      The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.

      Constraints:

      • Must be in the format ddd:hh24:mi-ddd:hh24:mi.

      • The day values must be mon | tue | wed | thu | fri | sat | sun.

      • Must be in Universal Coordinated Time (UTC).

      • Must not conflict with the preferred backup window.

      • Must be at least 30 minutes.


    • db_parameter_group_name(impl Into<String>) / set_db_parameter_group_name(Option<String>):
      required: false

      The name of the DB parameter group to associate with this DB instance. If you don’t specify a value, then Amazon RDS uses the default DB parameter group for the specified DB engine and version.

      This setting doesn’t apply to RDS Custom DB instances.

      Constraints:

      • Must be 1 to 255 letters, numbers, or hyphens.

      • The first character must be a letter.

      • Can’t end with a hyphen or contain two consecutive hyphens.


    • backup_retention_period(i32) / set_backup_retention_period(Option<i32>):
      required: false

      The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups.

      This setting doesn’t apply to Amazon Aurora DB instances. The retention period for automated backups is managed by the DB cluster.

      Default: 1

      Constraints:

      • Must be a value from 0 to 35.

      • Can’t be set to 0 if the DB instance is a source to read replicas.

      • Can’t be set to 0 for an RDS Custom for Oracle DB instance.


    • preferred_backup_window(impl Into<String>) / set_preferred_backup_window(Option<String>):
      required: false

      The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter. The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. For more information, see Backup window in the Amazon RDS User Guide.

      This setting doesn’t apply to Amazon Aurora DB instances. The daily time range for creating automated backups is managed by the DB cluster.

      Constraints:

      • Must be in the format hh24:mi-hh24:mi.

      • Must be in Universal Coordinated Time (UTC).

      • Must not conflict with the preferred maintenance window.

      • Must be at least 30 minutes.


    • port(i32) / set_port(Option<i32>):
      required: false

      The port number on which the database accepts connections.

      This setting doesn’t apply to Aurora DB instances. The port number is managed by the cluster.

      Valid Values: 1150-65535

      Default:

      • RDS for Db2 - 50000

      • RDS for MariaDB - 3306

      • RDS for Microsoft SQL Server - 1433

      • RDS for MySQL - 3306

      • RDS for Oracle - 1521

      • RDS for PostgreSQL - 5432

      Constraints:

      • For RDS for Microsoft SQL Server, the value can’t be 1234, 1434, 3260, 3343, 3389, 47001, or 49152-49156.


    • multi_az(bool) / set_multi_az(Option<bool>):
      required: false

      Specifies whether the DB instance is a Multi-AZ deployment. You can’t set the AvailabilityZone parameter if the DB instance is a Multi-AZ deployment.

      This setting doesn’t apply to the following DB instances:

      • Amazon Aurora (DB instance Availability Zones (AZs) are managed by the DB cluster.)

      • RDS Custom


    • engine_version(impl Into<String>) / set_engine_version(Option<String>):
      required: false

      The version number of the database engine to use.

      This setting doesn’t apply to Amazon Aurora DB instances. The version number of the database engine the DB instance uses is managed by the DB cluster.

      For a list of valid engine versions, use the DescribeDBEngineVersions operation.

      The following are the database engines and links to information about the major and minor versions that are available with Amazon RDS. Not every database engine is available for every Amazon Web Services Region.

      Amazon RDS Custom for Oracle

      A custom engine version (CEV) that you have previously created. This setting is required for RDS Custom for Oracle. The CEV name has the following format: 19.customized_string. A valid CEV name is 19.my_cev1. For more information, see Creating an RDS Custom for Oracle DB instance in the Amazon RDS User Guide.

      Amazon RDS Custom for SQL Server

      See RDS Custom for SQL Server general requirements in the Amazon RDS User Guide.

      RDS for Db2

      For information, see Db2 on Amazon RDS versions in the Amazon RDS User Guide.

      RDS for MariaDB

      For information, see MariaDB on Amazon RDS versions in the Amazon RDS User Guide.

      RDS for Microsoft SQL Server

      For information, see Microsoft SQL Server versions on Amazon RDS in the Amazon RDS User Guide.

      RDS for MySQL

      For information, see MySQL on Amazon RDS versions in the Amazon RDS User Guide.

      RDS for Oracle

      For information, see Oracle Database Engine release notes in the Amazon RDS User Guide.

      RDS for PostgreSQL

      For information, see Amazon RDS for PostgreSQL versions and extensions in the Amazon RDS User Guide.


    • auto_minor_version_upgrade(bool) / set_auto_minor_version_upgrade(Option<bool>):
      required: false

      Specifies whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.

      If you create an RDS Custom DB instance, you must set AutoMinorVersionUpgrade to false.


    • license_model(impl Into<String>) / set_license_model(Option<String>):
      required: false

      The license model information for this DB instance.

      License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group and an Amazon Web Services License Manager self-managed license. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see Amazon RDS for Db2 licensing options in the Amazon RDS User Guide.

      The default for RDS for Db2 is bring-your-own-license.

      This setting doesn’t apply to Amazon Aurora or RDS Custom DB instances.

      Valid Values:

      • RDS for Db2 - bring-your-own-license | marketplace-license

      • RDS for MariaDB - general-public-license

      • RDS for Microsoft SQL Server - license-included

      • RDS for MySQL - general-public-license

      • RDS for Oracle - bring-your-own-license | license-included

      • RDS for PostgreSQL - postgresql-license


    • iops(i32) / set_iops(Option<i32>):
      required: false

      The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance. For information about valid IOPS values, see Amazon RDS DB instance storage in the Amazon RDS User Guide.

      This setting doesn’t apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.

      Constraints:

      • For RDS for Db2, MariaDB, MySQL, Oracle, and PostgreSQL - Must be a multiple between .5 and 50 of the storage amount for the DB instance.

      • For RDS for SQL Server - Must be a multiple between 1 and 50 of the storage amount for the DB instance.


    • option_group_name(impl Into<String>) / set_option_group_name(Option<String>):
      required: false

      The option group to associate the DB instance with.

      Permanent options, such as the TDE option for Oracle Advanced Security TDE, can’t be removed from an option group. Also, that option group can’t be removed from a DB instance after it is associated with a DB instance.

      This setting doesn’t apply to Amazon Aurora or RDS Custom DB instances.


    • character_set_name(impl Into<String>) / set_character_set_name(Option<String>):
      required: false

      For supported engines, the character set (CharacterSet) to associate the DB instance with.

      This setting doesn’t apply to the following DB instances:

      • Amazon Aurora - The character set is managed by the DB cluster. For more information, see CreateDBCluster.

      • RDS Custom - However, if you need to change the character set, you can change it on the database itself.


    • nchar_character_set_name(impl Into<String>) / set_nchar_character_set_name(Option<String>):
      required: false

      The name of the NCHAR character set for the Oracle DB instance.

      This setting doesn’t apply to RDS Custom DB instances.


    • publicly_accessible(bool) / set_publicly_accessible(Option<bool>):
      required: false

      Specifies whether the DB instance is publicly accessible.

      When the DB instance is publicly accessible and you connect from outside of the DB instance’s virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB instance, the endpoint resolves to the private IP address. Access to the DB instance is ultimately controlled by the security group it uses. That public access is not permitted if the security group assigned to the DB instance doesn’t permit it.

      When the DB instance isn’t publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.

      Default: The default behavior varies depending on whether DBSubnetGroupName is specified.

      If DBSubnetGroupName isn’t specified, and PubliclyAccessible isn’t specified, the following applies:

      • If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB instance is private.

      • If the default VPC in the target Region has an internet gateway attached to it, the DB instance is public.

      If DBSubnetGroupName is specified, and PubliclyAccessible isn’t specified, the following applies:

      • If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB instance is private.

      • If the subnets are part of a VPC that has an internet gateway attached to it, the DB instance is public.


    • tags(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      Tags to assign to the DB instance.


    • db_cluster_identifier(impl Into<String>) / set_db_cluster_identifier(Option<String>):
      required: false

      The identifier of the DB cluster that this DB instance will belong to.

      This setting doesn’t apply to RDS Custom DB instances.


    • storage_type(impl Into<String>) / set_storage_type(Option<String>):
      required: false

      The storage type to associate with the DB instance.

      If you specify io1, io2, or gp3, you must also include a value for the Iops parameter.

      This setting doesn’t apply to Amazon Aurora DB instances. Storage is managed by the DB cluster.

      Valid Values: gp2 | gp3 | io1 | io2 | standard

      Default: io1, if the Iops parameter is specified. Otherwise, gp2.


    • tde_credential_arn(impl Into<String>) / set_tde_credential_arn(Option<String>):
      required: false

      The ARN from the key store with which to associate the instance for TDE encryption.

      This setting doesn’t apply to Amazon Aurora or RDS Custom DB instances.


    • tde_credential_password(impl Into<String>) / set_tde_credential_password(Option<String>):
      required: false

      The password for the given ARN from the key store in order to access the device.

      This setting doesn’t apply to RDS Custom DB instances.


    • storage_encrypted(bool) / set_storage_encrypted(Option<bool>):
      required: false

      Specifes whether the DB instance is encrypted. By default, it isn’t encrypted.

      For RDS Custom DB instances, either enable this setting or leave it unset. Otherwise, Amazon RDS reports an error.

      This setting doesn’t apply to Amazon Aurora DB instances. The encryption for DB instances is managed by the DB cluster.


    • kms_key_id(impl Into<String>) / set_kms_key_id(Option<String>):
      required: false

      The Amazon Web Services KMS key identifier for an encrypted DB instance.

      The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.

      This setting doesn’t apply to Amazon Aurora DB instances. The Amazon Web Services KMS key identifier is managed by the DB cluster. For more information, see CreateDBCluster.

      If StorageEncrypted is enabled, and you do not specify a value for the KmsKeyId parameter, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.

      For Amazon RDS Custom, a KMS key is required for DB instances. For most RDS engines, if you leave this parameter empty while enabling StorageEncrypted, the engine uses the default KMS key. However, RDS Custom doesn’t use the default key when this parameter is empty. You must explicitly specify a key.


    • domain(impl Into<String>) / set_domain(Option<String>):
      required: false

      The Active Directory directory ID to create the DB instance in. Currently, you can create only Db2, MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances in an Active Directory Domain.

      For more information, see Kerberos Authentication in the Amazon RDS User Guide.

      This setting doesn’t apply to the following DB instances:

      • Amazon Aurora (The domain is managed by the DB cluster.)

      • RDS Custom


    • domain_fqdn(impl Into<String>) / set_domain_fqdn(Option<String>):
      required: false

      The fully qualified domain name (FQDN) of an Active Directory domain.

      Constraints:

      • Can’t be longer than 64 characters.

      Example: mymanagedADtest.mymanagedAD.mydomain


    • domain_ou(impl Into<String>) / set_domain_ou(Option<String>):
      required: false

      The Active Directory organizational unit for your DB instance to join.

      Constraints:

      • Must be in the distinguished name format.

      • Can’t be longer than 64 characters.

      Example: OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain


    • domain_auth_secret_arn(impl Into<String>) / set_domain_auth_secret_arn(Option<String>):
      required: false

      The ARN for the Secrets Manager secret with the credentials for the user joining the domain.

      Example: arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456


    • domain_dns_ips(impl Into<String>) / set_domain_dns_ips(Option<Vec::<String>>):
      required: false

      The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.

      Constraints:

      • Two IP addresses must be provided. If there isn’t a secondary domain controller, use the IP address of the primary domain controller for both entries in the list.

      Example: 123.124.125.126,234.235.236.237


    • copy_tags_to_snapshot(bool) / set_copy_tags_to_snapshot(Option<bool>):
      required: false

      Specifies whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.

      This setting doesn’t apply to Amazon Aurora DB instances. Copying tags to snapshots is managed by the DB cluster. Setting this value for an Aurora DB instance has no effect on the DB cluster setting.


    • monitoring_interval(i32) / set_monitoring_interval(Option<i32>):
      required: false

      The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collection of Enhanced Monitoring metrics, specify 0.

      If MonitoringRoleArn is specified, then you must set MonitoringInterval to a value other than 0.

      This setting doesn’t apply to RDS Custom DB instances.

      Valid Values: 0 | 1 | 5 | 10 | 15 | 30 | 60

      Default: 0


    • monitoring_role_arn(impl Into<String>) / set_monitoring_role_arn(Option<String>):
      required: false

      The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess. For information on creating a monitoring role, see Setting Up and Enabling Enhanced Monitoring in the Amazon RDS User Guide.

      If MonitoringInterval is set to a value other than 0, then you must supply a MonitoringRoleArn value.

      This setting doesn’t apply to RDS Custom DB instances.


    • domain_iam_role_name(impl Into<String>) / set_domain_iam_role_name(Option<String>):
      required: false

      The name of the IAM role to use when making API calls to the Directory Service.

      This setting doesn’t apply to the following DB instances:

      • Amazon Aurora (The domain is managed by the DB cluster.)

      • RDS Custom


    • promotion_tier(i32) / set_promotion_tier(Option<i32>):
      required: false

      The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see Fault Tolerance for an Aurora DB Cluster in the Amazon Aurora User Guide.

      This setting doesn’t apply to RDS Custom DB instances.

      Default: 1

      Valid Values: 0 - 15


    • timezone(impl Into<String>) / set_timezone(Option<String>):
      required: false

      The time zone of the DB instance. The time zone parameter is currently supported only by RDS for Db2 and RDS for SQL Server.


    • enable_iam_database_authentication(bool) / set_enable_iam_database_authentication(Option<bool>):
      required: false

      Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn’t enabled.

      For more information, see IAM Database Authentication for MySQL and PostgreSQL in the Amazon RDS User Guide.

      This setting doesn’t apply to the following DB instances:

      • Amazon Aurora (Mapping Amazon Web Services IAM accounts to database accounts is managed by the DB cluster.)

      • RDS Custom


    • database_insights_mode(DatabaseInsightsMode) / set_database_insights_mode(Option<DatabaseInsightsMode>):
      required: false

      The mode of Database Insights to enable for the DB instance.

      This setting only applies to Amazon Aurora DB instances.

      Currently, this value is inherited from the DB cluster and can’t be changed.


    • enable_performance_insights(bool) / set_enable_performance_insights(Option<bool>):
      required: false

      Specifies whether to enable Performance Insights for the DB instance. For more information, see Using Amazon Performance Insights in the Amazon RDS User Guide.

      This setting doesn’t apply to RDS Custom DB instances.


    • performance_insights_kms_key_id(impl Into<String>) / set_performance_insights_kms_key_id(Option<String>):
      required: false

      The Amazon Web Services KMS key identifier for encryption of Performance Insights data.

      The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.

      If you don’t specify a value for PerformanceInsightsKMSKeyId, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.

      This setting doesn’t apply to RDS Custom DB instances.


    • performance_insights_retention_period(i32) / set_performance_insights_retention_period(Option<i32>):
      required: false

      The number of days to retain Performance Insights data.

      This setting doesn’t apply to RDS Custom DB instances.

      Valid Values:

      • 7

      • month * 31, where month is a number of months from 1-23. Examples: 93 (3 months * 31), 341 (11 months * 31), 589 (19 months * 31)

      • 731

      Default: 7 days

      If you specify a retention period that isn’t valid, such as 94, Amazon RDS returns an error.


    • enable_cloudwatch_logs_exports(impl Into<String>) / set_enable_cloudwatch_logs_exports(Option<Vec::<String>>):
      required: false

      The list of log types to enable for exporting to CloudWatch Logs. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon RDS User Guide.

      This setting doesn’t apply to the following DB instances:

      • Amazon Aurora (CloudWatch Logs exports are managed by the DB cluster.)

      • RDS Custom

      The following values are valid for each DB engine:

      • RDS for Db2 - diag.log | notify.log

      • RDS for MariaDB - audit | error | general | slowquery

      • RDS for Microsoft SQL Server - agent | error

      • RDS for MySQL - audit | error | general | slowquery

      • RDS for Oracle - alert | audit | listener | trace | oemagent

      • RDS for PostgreSQL - postgresql | upgrade


    • processor_features(ProcessorFeature) / set_processor_features(Option<Vec::<ProcessorFeature>>):
      required: false

      The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.

      This setting doesn’t apply to Amazon Aurora or RDS Custom DB instances.


    • deletion_protection(bool) / set_deletion_protection(Option<bool>):
      required: false

      Specifies whether the DB instance has deletion protection enabled. The database can’t be deleted when deletion protection is enabled. By default, deletion protection isn’t enabled. For more information, see Deleting a DB Instance.

      This setting doesn’t apply to Amazon Aurora DB instances. You can enable or disable deletion protection for the DB cluster. For more information, see CreateDBCluster. DB instances in a DB cluster can be deleted even when deletion protection is enabled for the DB cluster.


    • max_allocated_storage(i32) / set_max_allocated_storage(Option<i32>):
      required: false

      The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.

      For more information about this setting, including limitations that apply to it, see Managing capacity automatically with Amazon RDS storage autoscaling in the Amazon RDS User Guide.

      This setting doesn’t apply to the following DB instances:

      • Amazon Aurora (Storage is managed by the DB cluster.)

      • RDS Custom


    • enable_customer_owned_ip(bool) / set_enable_customer_owned_ip(Option<bool>):
      required: false

      Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance.

      A CoIP provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the DB instance from outside of its virtual private cloud (VPC) on your local network.

      For more information about RDS on Outposts, see Working with Amazon RDS on Amazon Web Services Outposts in the Amazon RDS User Guide.

      For more information about CoIPs, see Customer-owned IP addresses in the Amazon Web Services Outposts User Guide.


    • custom_iam_instance_profile(impl Into<String>) / set_custom_iam_instance_profile(Option<String>):
      required: false

      The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.

      This setting is required for RDS Custom.

      Constraints:

      • The profile must exist in your account.

      • The profile must have an IAM role that Amazon EC2 has permissions to assume.

      • The instance profile name and the associated IAM role name must start with the prefix AWSRDSCustom.

      For the list of permissions required for the IAM role, see Configure IAM and your VPC in the Amazon RDS User Guide.


    • backup_target(impl Into<String>) / set_backup_target(Option<String>):
      required: false

      The location for storing automated backups and manual snapshots.

      Valid Values:

      • outposts (Amazon Web Services Outposts)

      • region (Amazon Web Services Region)

      Default: region

      For more information, see Working with Amazon RDS on Amazon Web Services Outposts in the Amazon RDS User Guide.


    • network_type(impl Into<String>) / set_network_type(Option<String>):
      required: false

      The network type of the DB instance.

      The network type is determined by the DBSubnetGroup specified for the DB instance. A DBSubnetGroup can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL).

      For more information, see Working with a DB instance in a VPC in the Amazon RDS User Guide.

      Valid Values: IPV4 | DUAL


    • storage_throughput(i32) / set_storage_throughput(Option<i32>):
      required: false

      The storage throughput value, in mebibyte per second (MiBps), for the DB instance.

      This setting applies only to the gp3 storage type.

      This setting doesn’t apply to Amazon Aurora or RDS Custom DB instances.


    • manage_master_user_password(bool) / set_manage_master_user_password(Option<bool>):
      required: false

      Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.

      For more information, see Password management with Amazon Web Services Secrets Manager in the Amazon RDS User Guide.

      Constraints:

      • Can’t manage the master user password with Amazon Web Services Secrets Manager if MasterUserPassword is specified.


    • master_user_secret_kms_key_id(impl Into<String>) / set_master_user_secret_kms_key_id(Option<String>):
      required: false

      The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.

      This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB instance.

      The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.

      If you don’t specify MasterUserSecretKmsKeyId, then the aws/secretsmanager KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can’t use the aws/secretsmanager KMS key to encrypt the secret, and you must use a customer managed KMS key.

      There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.


    • ca_certificate_identifier(impl Into<String>) / set_ca_certificate_identifier(Option<String>):
      required: false

      The CA certificate identifier to use for the DB instance’s server certificate.

      This setting doesn’t apply to RDS Custom DB instances.

      For more information, see Using SSL/TLS to encrypt a connection to a DB instance in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora User Guide.


    • db_system_id(impl Into<String>) / set_db_system_id(Option<String>):
      required: false

      The Oracle system identifier (SID), which is the name of the Oracle database instance that manages your database files. In this context, the term “Oracle database instance” refers exclusively to the system global area (SGA) and Oracle background processes. If you don’t specify a SID, the value defaults to RDSCDB. The Oracle SID is also the name of your CDB.


    • dedicated_log_volume(bool) / set_dedicated_log_volume(Option<bool>):
      required: false

      Indicates whether the DB instance has a dedicated log volume (DLV) enabled.


    • multi_tenant(bool) / set_multi_tenant(Option<bool>):
      required: false

      Specifies whether to use the multi-tenant configuration or the single-tenant configuration (default). This parameter only applies to RDS for Oracle container database (CDB) engines.

      Note the following restrictions:

      • The DB engine that you specify in the request must support the multi-tenant configuration. If you attempt to enable the multi-tenant configuration on a DB engine that doesn’t support it, the request fails.

      • If you specify the multi-tenant configuration when you create your DB instance, you can’t later modify this DB instance to use the single-tenant configuration.


    • engine_lifecycle_support(impl Into<String>) / set_engine_lifecycle_support(Option<String>):
      required: false

      The life cycle type for this DB instance.

      By default, this value is set to open-source-rds-extended-support, which enrolls your DB instance into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled. In this case, creating the DB instance will fail if the DB major version is past its end of standard support date.

      This setting applies only to RDS for MySQL and RDS for PostgreSQL. For Amazon Aurora DB instances, the life cycle type is managed by the DB cluster.

      You can use this setting to enroll your DB instance into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB instance past the end of standard support for that engine version. For more information, see Using Amazon RDS Extended Support in the Amazon RDS User Guide.

      Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled

      Default: open-source-rds-extended-support


  • On success, responds with CreateDbInstanceOutput with field(s):
    • db_instance(Option<DbInstance>):

      Contains the details of an Amazon RDS DB instance.

      This data type is used as a response element in the operations CreateDBInstance, CreateDBInstanceReadReplica, DeleteDBInstance, DescribeDBInstances, ModifyDBInstance, PromoteReadReplica, RebootDBInstance, RestoreDBInstanceFromDBSnapshot, RestoreDBInstanceFromS3, RestoreDBInstanceToPointInTime, StartDBInstance, and StopDBInstance.

  • On failure, responds with SdkError<CreateDBInstanceError>
Source§

impl Client

Source

pub fn create_db_instance_read_replica( &self, ) -> CreateDBInstanceReadReplicaFluentBuilder

Constructs a fluent builder for the CreateDBInstanceReadReplica operation.

  • The fluent builder is configurable:
    • db_instance_identifier(impl Into<String>) / set_db_instance_identifier(Option<String>):
      required: true

      The DB instance identifier of the read replica. This identifier is the unique key that identifies a DB instance. This parameter is stored as a lowercase string.


    • source_db_instance_identifier(impl Into<String>) / set_source_db_instance_identifier(Option<String>):
      required: false

      The identifier of the DB instance that will act as the source for the read replica. Each DB instance can have up to 15 read replicas, with the exception of Oracle and SQL Server, which can have up to five.

      Constraints:

      • Must be the identifier of an existing Db2, MariaDB, MySQL, Oracle, PostgreSQL, or SQL Server DB instance.

      • Can’t be specified if the SourceDBClusterIdentifier parameter is also specified.

      • For the limitations of Oracle read replicas, see Version and licensing considerations for RDS for Oracle replicas in the Amazon RDS User Guide.

      • For the limitations of SQL Server read replicas, see Read replica limitations with SQL Server in the Amazon RDS User Guide.

      • The specified DB instance must have automatic backups enabled, that is, its backup retention period must be greater than 0.

      • If the source DB instance is in the same Amazon Web Services Region as the read replica, specify a valid DB instance identifier.

      • If the source DB instance is in a different Amazon Web Services Region from the read replica, specify a valid DB instance ARN. For more information, see Constructing an ARN for Amazon RDS in the Amazon RDS User Guide. This doesn’t apply to SQL Server or RDS Custom, which don’t support cross-Region replicas.


    • db_instance_class(impl Into<String>) / set_db_instance_class(Option<String>):
      required: false

      The compute and memory capacity of the read replica, for example db.m4.large. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see DB Instance Class in the Amazon RDS User Guide.

      Default: Inherits the value from the source DB instance.


    • availability_zone(impl Into<String>) / set_availability_zone(Option<String>):
      required: false

      The Availability Zone (AZ) where the read replica will be created.

      Default: A random, system-chosen Availability Zone in the endpoint’s Amazon Web Services Region.

      Example: us-east-1d


    • port(i32) / set_port(Option<i32>):
      required: false

      The port number that the DB instance uses for connections.

      Valid Values: 1150-65535

      Default: Inherits the value from the source DB instance.


    • multi_az(bool) / set_multi_az(Option<bool>):
      required: false

      Specifies whether the read replica is in a Multi-AZ deployment.

      You can create a read replica as a Multi-AZ DB instance. RDS creates a standby of your replica in another Availability Zone for failover support for the replica. Creating your read replica as a Multi-AZ DB instance is independent of whether the source is a Multi-AZ DB instance or a Multi-AZ DB cluster.

      This setting doesn’t apply to RDS Custom DB instances.


    • auto_minor_version_upgrade(bool) / set_auto_minor_version_upgrade(Option<bool>):
      required: false

      Specifies whether to automatically apply minor engine upgrades to the read replica during the maintenance window.

      This setting doesn’t apply to RDS Custom DB instances.

      Default: Inherits the value from the source DB instance.


    • iops(i32) / set_iops(Option<i32>):
      required: false

      The amount of Provisioned IOPS (input/output operations per second) to initially allocate for the DB instance.


    • option_group_name(impl Into<String>) / set_option_group_name(Option<String>):
      required: false

      The option group to associate the DB instance with. If not specified, RDS uses the option group associated with the source DB instance or cluster.

      For SQL Server, you must use the option group associated with the source.

      This setting doesn’t apply to RDS Custom DB instances.


    • db_parameter_group_name(impl Into<String>) / set_db_parameter_group_name(Option<String>):
      required: false

      The name of the DB parameter group to associate with this read replica DB instance.

      For Single-AZ or Multi-AZ DB instance read replica instances, if you don’t specify a value for DBParameterGroupName, then Amazon RDS uses the DBParameterGroup of the source DB instance for a same Region read replica, or the default DBParameterGroup for the specified DB engine for a cross-Region read replica.

      For Multi-AZ DB cluster same Region read replica instances, if you don’t specify a value for DBParameterGroupName, then Amazon RDS uses the default DBParameterGroup.

      Specifying a parameter group for this operation is only supported for MySQL DB instances for cross-Region read replicas, for Multi-AZ DB cluster read replica instances, and for Oracle DB instances. It isn’t supported for MySQL DB instances for same Region read replicas or for RDS Custom.

      Constraints:

      • Must be 1 to 255 letters, numbers, or hyphens.

      • First character must be a letter.

      • Can’t end with a hyphen or contain two consecutive hyphens.


    • publicly_accessible(bool) / set_publicly_accessible(Option<bool>):
      required: false

      Specifies whether the DB instance is publicly accessible.

      When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB cluster’s virtual private cloud (VPC). It resolves to the public IP address from outside of the DB cluster’s VPC. Access to the DB cluster is ultimately controlled by the security group it uses. That public access isn’t permitted if the security group assigned to the DB cluster doesn’t permit it.

      When the DB instance isn’t publicly accessible, it is an internal DB instance with a DNS name that resolves to a private IP address.

      For more information, see CreateDBInstance.


    • tags(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      A list of tags.

      For more information, see Tagging Amazon RDS resources in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide.


    • db_subnet_group_name(impl Into<String>) / set_db_subnet_group_name(Option<String>):
      required: false

      A DB subnet group for the DB instance. The new DB instance is created in the VPC associated with the DB subnet group. If no DB subnet group is specified, then the new DB instance isn’t created in a VPC.

      Constraints:

      • If supplied, must match the name of an existing DB subnet group.

      • The specified DB subnet group must be in the same Amazon Web Services Region in which the operation is running.

      • All read replicas in one Amazon Web Services Region that are created from the same source DB instance must either:

        • Specify DB subnet groups from the same VPC. All these read replicas are created in the same VPC.

        • Not specify a DB subnet group. All these read replicas are created outside of any VPC.

      Example: mydbsubnetgroup


    • vpc_security_group_ids(impl Into<String>) / set_vpc_security_group_ids(Option<Vec::<String>>):
      required: false

      A list of Amazon EC2 VPC security groups to associate with the read replica.

      This setting doesn’t apply to RDS Custom DB instances.

      Default: The default EC2 VPC security group for the DB subnet group’s VPC.


    • storage_type(impl Into<String>) / set_storage_type(Option<String>):
      required: false

      The storage type to associate with the read replica.

      If you specify io1, io2, or gp3, you must also include a value for the Iops parameter.

      Valid Values: gp2 | gp3 | io1 | io2 | standard

      Default: io1 if the Iops parameter is specified. Otherwise, gp2.


    • copy_tags_to_snapshot(bool) / set_copy_tags_to_snapshot(Option<bool>):
      required: false

      Specifies whether to copy all tags from the read replica to snapshots of the read replica. By default, tags aren’t copied.


    • monitoring_interval(i32) / set_monitoring_interval(Option<i32>):
      required: false

      The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the read replica. To disable collection of Enhanced Monitoring metrics, specify 0. The default is 0.

      If MonitoringRoleArn is specified, then you must set MonitoringInterval to a value other than 0.

      This setting doesn’t apply to RDS Custom DB instances.

      Valid Values: 0, 1, 5, 10, 15, 30, 60

      Default: 0


    • monitoring_role_arn(impl Into<String>) / set_monitoring_role_arn(Option<String>):
      required: false

      The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to Amazon CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess. For information on creating a monitoring role, go to To create an IAM role for Amazon RDS Enhanced Monitoring in the Amazon RDS User Guide.

      If MonitoringInterval is set to a value other than 0, then you must supply a MonitoringRoleArn value.

      This setting doesn’t apply to RDS Custom DB instances.


    • kms_key_id(impl Into<String>) / set_kms_key_id(Option<String>):
      required: false

      The Amazon Web Services KMS key identifier for an encrypted read replica.

      The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.

      If you create an encrypted read replica in the same Amazon Web Services Region as the source DB instance or Multi-AZ DB cluster, don’t specify a value for this parameter. A read replica in the same Amazon Web Services Region is always encrypted with the same KMS key as the source DB instance or cluster.

      If you create an encrypted read replica in a different Amazon Web Services Region, then you must specify a KMS key identifier for the destination Amazon Web Services Region. KMS keys are specific to the Amazon Web Services Region that they are created in, and you can’t use KMS keys from one Amazon Web Services Region in another Amazon Web Services Region.

      You can’t create an encrypted read replica from an unencrypted DB instance or Multi-AZ DB cluster.

      This setting doesn’t apply to RDS Custom, which uses the same KMS key as the primary replica.


    • pre_signed_url(impl Into<String>) / set_pre_signed_url(Option<String>):
      required: false

      When you are creating a read replica from one Amazon Web Services GovCloud (US) Region to another or from one China Amazon Web Services Region to another, the URL that contains a Signature Version 4 signed request for the CreateDBInstanceReadReplica API operation in the source Amazon Web Services Region that contains the source DB instance.

      This setting applies only to Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions. It’s ignored in other Amazon Web Services Regions.

      This setting applies only when replicating from a source DB instance. Source DB clusters aren’t supported in Amazon Web Services GovCloud (US) Regions and China Amazon Web Services Regions.

      You must specify this parameter when you create an encrypted read replica from another Amazon Web Services Region by using the Amazon RDS API. Don’t specify PreSignedUrl when you are creating an encrypted read replica in the same Amazon Web Services Region.

      The presigned URL must be a valid request for the CreateDBInstanceReadReplica API operation that can run in the source Amazon Web Services Region that contains the encrypted source DB instance. The presigned URL request must contain the following parameter values:

      • DestinationRegion - The Amazon Web Services Region that the encrypted read replica is created in. This Amazon Web Services Region is the same one where the CreateDBInstanceReadReplica operation is called that contains this presigned URL.

        For example, if you create an encrypted DB instance in the us-west-1 Amazon Web Services Region, from a source DB instance in the us-east-2 Amazon Web Services Region, then you call the CreateDBInstanceReadReplica operation in the us-east-1 Amazon Web Services Region and provide a presigned URL that contains a call to the CreateDBInstanceReadReplica operation in the us-west-2 Amazon Web Services Region. For this example, the DestinationRegion in the presigned URL must be set to the us-east-1 Amazon Web Services Region.

      • KmsKeyId - The KMS key identifier for the key to use to encrypt the read replica in the destination Amazon Web Services Region. This is the same identifier for both the CreateDBInstanceReadReplica operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.

      • SourceDBInstanceIdentifier - The DB instance identifier for the encrypted DB instance to be replicated. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are creating an encrypted read replica from a DB instance in the us-west-2 Amazon Web Services Region, then your SourceDBInstanceIdentifier looks like the following example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115.

      To learn how to generate a Signature Version 4 signed request, see Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing Process.

      If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion (or –source-region for the CLI) instead of specifying PreSignedUrl manually. Specifying SourceRegion autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.

      This setting doesn’t apply to RDS Custom DB instances.


    • enable_iam_database_authentication(bool) / set_enable_iam_database_authentication(Option<bool>):
      required: false

      Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn’t enabled.

      For more information about IAM database authentication, see IAM Database Authentication for MySQL and PostgreSQL in the Amazon RDS User Guide.

      This setting doesn’t apply to RDS Custom DB instances.


    • database_insights_mode(DatabaseInsightsMode) / set_database_insights_mode(Option<DatabaseInsightsMode>):
      required: false

      The mode of Database Insights to enable for the read replica.

      Currently, this setting is not supported.


    • enable_performance_insights(bool) / set_enable_performance_insights(Option<bool>):
      required: false

      Specifies whether to enable Performance Insights for the read replica.

      For more information, see Using Amazon Performance Insights in the Amazon RDS User Guide.

      This setting doesn’t apply to RDS Custom DB instances.


    • performance_insights_kms_key_id(impl Into<String>) / set_performance_insights_kms_key_id(Option<String>):
      required: false

      The Amazon Web Services KMS key identifier for encryption of Performance Insights data.

      The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.

      If you do not specify a value for PerformanceInsightsKMSKeyId, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.

      This setting doesn’t apply to RDS Custom DB instances.


    • performance_insights_retention_period(i32) / set_performance_insights_retention_period(Option<i32>):
      required: false

      The number of days to retain Performance Insights data.

      This setting doesn’t apply to RDS Custom DB instances.

      Valid Values:

      • 7

      • month * 31, where month is a number of months from 1-23. Examples: 93 (3 months * 31), 341 (11 months * 31), 589 (19 months * 31)

      • 731

      Default: 7 days

      If you specify a retention period that isn’t valid, such as 94, Amazon RDS returns an error.


    • enable_cloudwatch_logs_exports(impl Into<String>) / set_enable_cloudwatch_logs_exports(Option<Vec::<String>>):
      required: false

      The list of logs that the new DB instance is to export to CloudWatch Logs. The values in the list depend on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon RDS User Guide.

      This setting doesn’t apply to RDS Custom DB instances.


    • processor_features(ProcessorFeature) / set_processor_features(Option<Vec::<ProcessorFeature>>):
      required: false

      The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.

      This setting doesn’t apply to RDS Custom DB instances.


    • use_default_processor_features(bool) / set_use_default_processor_features(Option<bool>):
      required: false

      Specifies whether the DB instance class of the DB instance uses its default processor features.

      This setting doesn’t apply to RDS Custom DB instances.


    • deletion_protection(bool) / set_deletion_protection(Option<bool>):
      required: false

      Specifies whether to enable deletion protection for the DB instance. The database can’t be deleted when deletion protection is enabled. By default, deletion protection isn’t enabled. For more information, see Deleting a DB Instance.


    • domain(impl Into<String>) / set_domain(Option<String>):
      required: false

      The Active Directory directory ID to create the DB instance in. Currently, only MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be created in an Active Directory Domain.

      For more information, see Kerberos Authentication in the Amazon RDS User Guide.

      This setting doesn’t apply to RDS Custom DB instances.


    • domain_iam_role_name(impl Into<String>) / set_domain_iam_role_name(Option<String>):
      required: false

      The name of the IAM role to use when making API calls to the Directory Service.

      This setting doesn’t apply to RDS Custom DB instances.


    • domain_fqdn(impl Into<String>) / set_domain_fqdn(Option<String>):
      required: false

      The fully qualified domain name (FQDN) of an Active Directory domain.

      Constraints:

      • Can’t be longer than 64 characters.

      Example: mymanagedADtest.mymanagedAD.mydomain


    • domain_ou(impl Into<String>) / set_domain_ou(Option<String>):
      required: false

      The Active Directory organizational unit for your DB instance to join.

      Constraints:

      • Must be in the distinguished name format.

      • Can’t be longer than 64 characters.

      Example: OU=mymanagedADtestOU,DC=mymanagedADtest,DC=mymanagedAD,DC=mydomain


    • domain_auth_secret_arn(impl Into<String>) / set_domain_auth_secret_arn(Option<String>):
      required: false

      The ARN for the Secrets Manager secret with the credentials for the user joining the domain.

      Example: arn:aws:secretsmanager:region:account-number:secret:myselfmanagedADtestsecret-123456


    • domain_dns_ips(impl Into<String>) / set_domain_dns_ips(Option<Vec::<String>>):
      required: false

      The IPv4 DNS IP addresses of your primary and secondary Active Directory domain controllers.

      Constraints:

      • Two IP addresses must be provided. If there isn’t a secondary domain controller, use the IP address of the primary domain controller for both entries in the list.

      Example: 123.124.125.126,234.235.236.237


    • replica_mode(ReplicaMode) / set_replica_mode(Option<ReplicaMode>):
      required: false

      The open mode of the replica database: mounted or read-only.

      This parameter is only supported for Oracle DB instances.

      Mounted DB replicas are included in Oracle Database Enterprise Edition. The main use case for mounted replicas is cross-Region disaster recovery. The primary database doesn’t use Active Data Guard to transmit information to the mounted replica. Because it doesn’t accept user connections, a mounted replica can’t serve a read-only workload.

      You can create a combination of mounted and read-only DB replicas for the same primary DB instance. For more information, see Working with Oracle Read Replicas for Amazon RDS in the Amazon RDS User Guide.

      For RDS Custom, you must specify this parameter and set it to mounted. The value won’t be set by default. After replica creation, you can manage the open mode manually.


    • max_allocated_storage(i32) / set_max_allocated_storage(Option<i32>):
      required: false

      The upper limit in gibibytes (GiB) to which Amazon RDS can automatically scale the storage of the DB instance.

      For more information about this setting, including limitations that apply to it, see Managing capacity automatically with Amazon RDS storage autoscaling in the Amazon RDS User Guide.


    • custom_iam_instance_profile(impl Into<String>) / set_custom_iam_instance_profile(Option<String>):
      required: false

      The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance. The instance profile must meet the following requirements:

      • The profile must exist in your account.

      • The profile must have an IAM role that Amazon EC2 has permissions to assume.

      • The instance profile name and the associated IAM role name must start with the prefix AWSRDSCustom.

      For the list of permissions required for the IAM role, see Configure IAM and your VPC in the Amazon RDS User Guide.

      This setting is required for RDS Custom DB instances.


    • network_type(impl Into<String>) / set_network_type(Option<String>):
      required: false

      The network type of the DB instance.

      Valid Values:

      • IPV4

      • DUAL

      The network type is determined by the DBSubnetGroup specified for read replica. A DBSubnetGroup can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL).

      For more information, see Working with a DB instance in a VPC in the Amazon RDS User Guide.


    • storage_throughput(i32) / set_storage_throughput(Option<i32>):
      required: false

      Specifies the storage throughput value for the read replica.

      This setting doesn’t apply to RDS Custom or Amazon Aurora DB instances.


    • enable_customer_owned_ip(bool) / set_enable_customer_owned_ip(Option<bool>):
      required: false

      Specifies whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts read replica.

      A CoIP provides local or external connectivity to resources in your Outpost subnets through your on-premises network. For some use cases, a CoIP can provide lower latency for connections to the read replica from outside of its virtual private cloud (VPC) on your local network.

      For more information about RDS on Outposts, see Working with Amazon RDS on Amazon Web Services Outposts in the Amazon RDS User Guide.

      For more information about CoIPs, see Customer-owned IP addresses in the Amazon Web Services Outposts User Guide.


    • allocated_storage(i32) / set_allocated_storage(Option<i32>):
      required: false

      The amount of storage (in gibibytes) to allocate initially for the read replica. Follow the allocation rules specified in CreateDBInstance.

      This setting isn’t valid for RDS for SQL Server.

      Be sure to allocate enough storage for your read replica so that the create operation can succeed. You can also allocate additional storage for future growth.


    • source_db_cluster_identifier(impl Into<String>) / set_source_db_cluster_identifier(Option<String>):
      required: false

      The identifier of the Multi-AZ DB cluster that will act as the source for the read replica. Each DB cluster can have up to 15 read replicas.

      Constraints:

      • Must be the identifier of an existing Multi-AZ DB cluster.

      • Can’t be specified if the SourceDBInstanceIdentifier parameter is also specified.

      • The specified DB cluster must have automatic backups enabled, that is, its backup retention period must be greater than 0.

      • The source DB cluster must be in the same Amazon Web Services Region as the read replica. Cross-Region replication isn’t supported.


    • dedicated_log_volume(bool) / set_dedicated_log_volume(Option<bool>):
      required: false

      Indicates whether the DB instance has a dedicated log volume (DLV) enabled.


    • upgrade_storage_config(bool) / set_upgrade_storage_config(Option<bool>):
      required: false

      Whether to upgrade the storage file system configuration on the read replica. This option migrates the read replica from the old storage file system layout to the preferred layout.


    • ca_certificate_identifier(impl Into<String>) / set_ca_certificate_identifier(Option<String>):
      required: false

      The CA certificate identifier to use for the read replica’s server certificate.

      This setting doesn’t apply to RDS Custom DB instances.

      For more information, see Using SSL/TLS to encrypt a connection to a DB instance in the Amazon RDS User Guide and Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora User Guide.


  • On success, responds with CreateDbInstanceReadReplicaOutput with field(s):
    • db_instance(Option<DbInstance>):

      Contains the details of an Amazon RDS DB instance.

      This data type is used as a response element in the operations CreateDBInstance, CreateDBInstanceReadReplica, DeleteDBInstance, DescribeDBInstances, ModifyDBInstance, PromoteReadReplica, RebootDBInstance, RestoreDBInstanceFromDBSnapshot, RestoreDBInstanceFromS3, RestoreDBInstanceToPointInTime, StartDBInstance, and StopDBInstance.

  • On failure, responds with SdkError<CreateDBInstanceReadReplicaError>
Source§

impl Client

Source

pub fn create_db_parameter_group(&self) -> CreateDBParameterGroupFluentBuilder

Constructs a fluent builder for the CreateDBParameterGroup operation.

  • The fluent builder is configurable:
    • db_parameter_group_name(impl Into<String>) / set_db_parameter_group_name(Option<String>):
      required: true

      The name of the DB parameter group.

      Constraints:

      • Must be 1 to 255 letters, numbers, or hyphens.

      • First character must be a letter

      • Can’t end with a hyphen or contain two consecutive hyphens

      This value is stored as a lowercase string.


    • db_parameter_group_family(impl Into<String>) / set_db_parameter_group_family(Option<String>):
      required: true

      The DB parameter group family name. A DB parameter group can be associated with one and only one DB parameter group family, and can be applied only to a DB instance running a database engine and engine version compatible with that DB parameter group family.

      To list all of the available parameter group families for a DB engine, use the following command:

      aws rds describe-db-engine-versions –query “DBEngineVersions[].DBParameterGroupFamily” –engine

      For example, to list all of the available parameter group families for the MySQL DB engine, use the following command:

      aws rds describe-db-engine-versions –query “DBEngineVersions[].DBParameterGroupFamily” –engine mysql

      The output contains duplicates.

      The following are the valid DB engine values:

      • aurora-mysql

      • aurora-postgresql

      • db2-ae

      • db2-se

      • mysql

      • oracle-ee

      • oracle-ee-cdb

      • oracle-se2

      • oracle-se2-cdb

      • postgres

      • sqlserver-ee

      • sqlserver-se

      • sqlserver-ex

      • sqlserver-web


    • description(impl Into<String>) / set_description(Option<String>):
      required: true

      The description for the DB parameter group.


    • tags(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      Tags to assign to the DB parameter group.


  • On success, responds with CreateDbParameterGroupOutput with field(s):
  • On failure, responds with SdkError<CreateDBParameterGroupError>
Source§

impl Client

Source

pub fn create_db_proxy(&self) -> CreateDBProxyFluentBuilder

Constructs a fluent builder for the CreateDBProxy operation.

Source§

impl Client

Source

pub fn create_db_proxy_endpoint(&self) -> CreateDBProxyEndpointFluentBuilder

Constructs a fluent builder for the CreateDBProxyEndpoint operation.

Source§

impl Client

Source

pub fn create_db_security_group(&self) -> CreateDBSecurityGroupFluentBuilder

Constructs a fluent builder for the CreateDBSecurityGroup operation.

Source§

impl Client

Source

pub fn create_db_shard_group(&self) -> CreateDBShardGroupFluentBuilder

Constructs a fluent builder for the CreateDBShardGroup operation.

  • The fluent builder is configurable:
    • db_shard_group_identifier(impl Into<String>) / set_db_shard_group_identifier(Option<String>):
      required: true

      The name of the DB shard group.


    • db_cluster_identifier(impl Into<String>) / set_db_cluster_identifier(Option<String>):
      required: true

      The name of the primary DB cluster for the DB shard group.


    • compute_redundancy(i32) / set_compute_redundancy(Option<i32>):
      required: false

      Specifies whether to create standby DB shard groups for the DB shard group. Valid values are the following:

      • 0 - Creates a DB shard group without a standby DB shard group. This is the default value.

      • 1 - Creates a DB shard group with a standby DB shard group in a different Availability Zone (AZ).

      • 2 - Creates a DB shard group with two standby DB shard groups in two different AZs.


    • max_acu(f64) / set_max_acu(Option<f64>):
      required: true

      The maximum capacity of the DB shard group in Aurora capacity units (ACUs).


    • min_acu(f64) / set_min_acu(Option<f64>):
      required: false

      The minimum capacity of the DB shard group in Aurora capacity units (ACUs).


    • publicly_accessible(bool) / set_publicly_accessible(Option<bool>):
      required: false

      Specifies whether the DB shard group is publicly accessible.

      When the DB shard group is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB shard group’s virtual private cloud (VPC). It resolves to the public IP address from outside of the DB shard group’s VPC. Access to the DB shard group is ultimately controlled by the security group it uses. That public access is not permitted if the security group assigned to the DB shard group doesn’t permit it.

      When the DB shard group isn’t publicly accessible, it is an internal DB shard group with a DNS name that resolves to a private IP address.

      Default: The default behavior varies depending on whether DBSubnetGroupName is specified.

      If DBSubnetGroupName isn’t specified, and PubliclyAccessible isn’t specified, the following applies:

      • If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB shard group is private.

      • If the default VPC in the target Region has an internet gateway attached to it, the DB shard group is public.

      If DBSubnetGroupName is specified, and PubliclyAccessible isn’t specified, the following applies:

      • If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB shard group is private.

      • If the subnets are part of a VPC that has an internet gateway attached to it, the DB shard group is public.


    • tags(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      A list of tags.

      For more information, see Tagging Amazon RDS resources in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide.


  • On success, responds with CreateDbShardGroupOutput with field(s):
    • db_shard_group_resource_id(Option<String>):

      The Amazon Web Services Region-unique, immutable identifier for the DB shard group.

    • db_shard_group_identifier(Option<String>):

      The name of the DB shard group.

    • db_cluster_identifier(Option<String>):

      The name of the primary DB cluster for the DB shard group.

    • max_acu(Option<f64>):

      The maximum capacity of the DB shard group in Aurora capacity units (ACUs).

    • min_acu(Option<f64>):

      The minimum capacity of the DB shard group in Aurora capacity units (ACUs).

    • compute_redundancy(Option<i32>):

      Specifies whether to create standby DB shard groups for the DB shard group. Valid values are the following:

      • 0 - Creates a DB shard group without a standby DB shard group. This is the default value.

      • 1 - Creates a DB shard group with a standby DB shard group in a different Availability Zone (AZ).

      • 2 - Creates a DB shard group with two standby DB shard groups in two different AZs.

    • status(Option<String>):

      The status of the DB shard group.

    • publicly_accessible(Option<bool>):

      Indicates whether the DB shard group is publicly accessible.

      When the DB shard group is publicly accessible, its Domain Name System (DNS) endpoint resolves to the private IP address from within the DB shard group’s virtual private cloud (VPC). It resolves to the public IP address from outside of the DB shard group’s VPC. Access to the DB shard group is ultimately controlled by the security group it uses. That public access isn’t permitted if the security group assigned to the DB shard group doesn’t permit it.

      When the DB shard group isn’t publicly accessible, it is an internal DB shard group with a DNS name that resolves to a private IP address.

      For more information, see CreateDBShardGroup.

      This setting is only for Aurora Limitless Database.

    • endpoint(Option<String>):

      The connection endpoint for the DB shard group.

    • db_shard_group_arn(Option<String>):

      The Amazon Resource Name (ARN) for the DB shard group.

    • tag_list(Option<Vec::<Tag>>):

      A list of tags.

      For more information, see Tagging Amazon RDS resources in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources in the Amazon Aurora User Guide.

  • On failure, responds with SdkError<CreateDBShardGroupError>
Source§

impl Client

Source

pub fn create_db_snapshot(&self) -> CreateDBSnapshotFluentBuilder

Constructs a fluent builder for the CreateDBSnapshot operation.

Source§

impl Client

Source

pub fn create_db_subnet_group(&self) -> CreateDBSubnetGroupFluentBuilder

Constructs a fluent builder for the CreateDBSubnetGroup operation.

Source§

impl Client

Source

pub fn create_event_subscription(&self) -> CreateEventSubscriptionFluentBuilder

Constructs a fluent builder for the CreateEventSubscription operation.

Source§

impl Client

Source

pub fn create_global_cluster(&self) -> CreateGlobalClusterFluentBuilder

Constructs a fluent builder for the CreateGlobalCluster operation.

Source§

impl Client

Source

pub fn create_integration(&self) -> CreateIntegrationFluentBuilder

Constructs a fluent builder for the CreateIntegration operation.

Source§

impl Client

Source

pub fn create_option_group(&self) -> CreateOptionGroupFluentBuilder

Constructs a fluent builder for the CreateOptionGroup operation.

Source§

impl Client

Source

pub fn create_tenant_database(&self) -> CreateTenantDatabaseFluentBuilder

Constructs a fluent builder for the CreateTenantDatabase operation.

Source§

impl Client

Source

pub fn delete_blue_green_deployment( &self, ) -> DeleteBlueGreenDeploymentFluentBuilder

Constructs a fluent builder for the DeleteBlueGreenDeployment operation.

Source§

impl Client

Source

pub fn delete_custom_db_engine_version( &self, ) -> DeleteCustomDBEngineVersionFluentBuilder

Constructs a fluent builder for the DeleteCustomDBEngineVersion operation.

Source§

impl Client

Source

pub fn delete_db_cluster(&self) -> DeleteDBClusterFluentBuilder

Constructs a fluent builder for the DeleteDBCluster operation.

  • The fluent builder is configurable:
    • db_cluster_identifier(impl Into<String>) / set_db_cluster_identifier(Option<String>):
      required: true

      The DB cluster identifier for the DB cluster to be deleted. This parameter isn’t case-sensitive.

      Constraints:

      • Must match an existing DBClusterIdentifier.


    • skip_final_snapshot(bool) / set_skip_final_snapshot(Option<bool>):
      required: false

      Specifies whether to skip the creation of a final DB cluster snapshot before RDS deletes the DB cluster. If you set this value to true, RDS doesn’t create a final DB cluster snapshot. If you set this value to false or don’t specify it, RDS creates a DB cluster snapshot before it deletes the DB cluster. By default, this parameter is disabled, so RDS creates a final DB cluster snapshot.

      If SkipFinalSnapshot is disabled, you must specify a value for the FinalDBSnapshotIdentifier parameter.


    • final_db_snapshot_identifier(impl Into<String>) / set_final_db_snapshot_identifier(Option<String>):
      required: false

      The DB cluster snapshot identifier of the new DB cluster snapshot created when SkipFinalSnapshot is disabled.

      If you specify this parameter and also skip the creation of a final DB cluster snapshot with the SkipFinalShapshot parameter, the request results in an error.

      Constraints:

      • Must be 1 to 255 letters, numbers, or hyphens.

      • First character must be a letter

      • Can’t end with a hyphen or contain two consecutive hyphens


    • delete_automated_backups(bool) / set_delete_automated_backups(Option<bool>):
      required: false

      Specifies whether to remove automated backups immediately after the DB cluster is deleted. This parameter isn’t case-sensitive. The default is to remove automated backups immediately after the DB cluster is deleted, unless the Amazon Web Services Backup policy specifies a point-in-time restore rule.


  • On success, responds with DeleteDbClusterOutput with field(s):
    • db_cluster(Option<DbCluster>):

      Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB cluster.

      For an Amazon Aurora DB cluster, this data type is used as a response element in the operations CreateDBCluster, DeleteDBCluster, DescribeDBClusters, FailoverDBCluster, ModifyDBCluster, PromoteReadReplicaDBCluster, RestoreDBClusterFromS3, RestoreDBClusterFromSnapshot, RestoreDBClusterToPointInTime, StartDBCluster, and StopDBCluster.

      For a Multi-AZ DB cluster, this data type is used as a response element in the operations CreateDBCluster, DeleteDBCluster, DescribeDBClusters, FailoverDBCluster, ModifyDBCluster, RebootDBCluster, RestoreDBClusterFromSnapshot, and RestoreDBClusterToPointInTime.

      For more information on Amazon Aurora DB clusters, see What is Amazon Aurora? in the Amazon Aurora User Guide.

      For more information on Multi-AZ DB clusters, see Multi-AZ deployments with two readable standby DB instances in the Amazon RDS User Guide.

  • On failure, responds with SdkError<DeleteDBClusterError>
Source§

impl Client

Source

pub fn delete_db_cluster_automated_backup( &self, ) -> DeleteDBClusterAutomatedBackupFluentBuilder

Constructs a fluent builder for the DeleteDBClusterAutomatedBackup operation.

Source§

impl Client

Source

pub fn delete_db_cluster_endpoint(&self) -> DeleteDBClusterEndpointFluentBuilder

Constructs a fluent builder for the DeleteDBClusterEndpoint operation.

Source§

impl Client

Source

pub fn delete_db_cluster_parameter_group( &self, ) -> DeleteDBClusterParameterGroupFluentBuilder

Constructs a fluent builder for the DeleteDBClusterParameterGroup operation.

Source§

impl Client

Source

pub fn delete_db_cluster_snapshot(&self) -> DeleteDBClusterSnapshotFluentBuilder

Constructs a fluent builder for the DeleteDBClusterSnapshot operation.

Source§

impl Client

Source

pub fn delete_db_instance(&self) -> DeleteDBInstanceFluentBuilder

Constructs a fluent builder for the DeleteDBInstance operation.

  • The fluent builder is configurable:
    • db_instance_identifier(impl Into<String>) / set_db_instance_identifier(Option<String>):
      required: true

      The DB instance identifier for the DB instance to be deleted. This parameter isn’t case-sensitive.

      Constraints:

      • Must match the name of an existing DB instance.


    • skip_final_snapshot(bool) / set_skip_final_snapshot(Option<bool>):
      required: false

      Specifies whether to skip the creation of a final DB snapshot before deleting the instance. If you enable this parameter, RDS doesn’t create a DB snapshot. If you don’t enable this parameter, RDS creates a DB snapshot before the DB instance is deleted. By default, skip isn’t enabled, and the DB snapshot is created.

      If you don’t enable this parameter, you must specify the FinalDBSnapshotIdentifier parameter.

      When a DB instance is in a failure state and has a status of failed, incompatible-restore, or incompatible-network, RDS can delete the instance only if you enable this parameter.

      If you delete a read replica or an RDS Custom instance, you must enable this setting.

      This setting is required for RDS Custom.


    • final_db_snapshot_identifier(impl Into<String>) / set_final_db_snapshot_identifier(Option<String>):
      required: false

      The DBSnapshotIdentifier of the new DBSnapshot created when the SkipFinalSnapshot parameter is disabled.

      If you enable this parameter and also enable SkipFinalShapshot, the command results in an error.

      This setting doesn’t apply to RDS Custom.

      Constraints:

      • Must be 1 to 255 letters or numbers.

      • First character must be a letter.

      • Can’t end with a hyphen or contain two consecutive hyphens.

      • Can’t be specified when deleting a read replica.


    • delete_automated_backups(bool) / set_delete_automated_backups(Option<bool>):
      required: false

      Specifies whether to remove automated backups immediately after the DB instance is deleted. This parameter isn’t case-sensitive. The default is to remove automated backups immediately after the DB instance is deleted.


  • On success, responds with DeleteDbInstanceOutput with field(s):
    • db_instance(Option<DbInstance>):

      Contains the details of an Amazon RDS DB instance.

      This data type is used as a response element in the operations CreateDBInstance, CreateDBInstanceReadReplica, DeleteDBInstance, DescribeDBInstances, ModifyDBInstance, PromoteReadReplica, RebootDBInstance, RestoreDBInstanceFromDBSnapshot, RestoreDBInstanceFromS3, RestoreDBInstanceToPointInTime, StartDBInstance, and StopDBInstance.

  • On failure, responds with SdkError<DeleteDBInstanceError>
Source§

impl Client

Source

pub fn delete_db_instance_automated_backup( &self, ) -> DeleteDBInstanceAutomatedBackupFluentBuilder

Constructs a fluent builder for the DeleteDBInstanceAutomatedBackup operation.

Source§

impl Client

Source

pub fn delete_db_parameter_group(&self) -> DeleteDBParameterGroupFluentBuilder

Constructs a fluent builder for the DeleteDBParameterGroup operation.

Source§

impl Client

Source

pub fn delete_db_proxy(&self) -> DeleteDBProxyFluentBuilder

Constructs a fluent builder for the DeleteDBProxy operation.

Source§

impl Client

Source

pub fn delete_db_proxy_endpoint(&self) -> DeleteDBProxyEndpointFluentBuilder

Constructs a fluent builder for the DeleteDBProxyEndpoint operation.

Source§

impl Client

Source

pub fn delete_db_security_group(&self) -> DeleteDBSecurityGroupFluentBuilder

Constructs a fluent builder for the DeleteDBSecurityGroup operation.

Source§

impl Client

Source

pub fn delete_db_shard_group(&self) -> DeleteDBShardGroupFluentBuilder

Constructs a fluent builder for the DeleteDBShardGroup operation.

Source§

impl Client

Source

pub fn delete_db_snapshot(&self) -> DeleteDBSnapshotFluentBuilder

Constructs a fluent builder for the DeleteDBSnapshot operation.

Source§

impl Client

Source

pub fn delete_db_subnet_group(&self) -> DeleteDBSubnetGroupFluentBuilder

Constructs a fluent builder for the DeleteDBSubnetGroup operation.

Source§

impl Client

Source

pub fn delete_event_subscription(&self) -> DeleteEventSubscriptionFluentBuilder

Constructs a fluent builder for the DeleteEventSubscription operation.

Source§

impl Client

Source

pub fn delete_global_cluster(&self) -> DeleteGlobalClusterFluentBuilder

Constructs a fluent builder for the DeleteGlobalCluster operation.

Source§

impl Client

Source

pub fn delete_integration(&self) -> DeleteIntegrationFluentBuilder

Constructs a fluent builder for the DeleteIntegration operation.

Source§

impl Client

Source

pub fn delete_option_group(&self) -> DeleteOptionGroupFluentBuilder

Constructs a fluent builder for the DeleteOptionGroup operation.

Source§

impl Client

Source

pub fn delete_tenant_database(&self) -> DeleteTenantDatabaseFluentBuilder

Constructs a fluent builder for the DeleteTenantDatabase operation.

Source§

impl Client

Source

pub fn deregister_db_proxy_targets( &self, ) -> DeregisterDBProxyTargetsFluentBuilder

Constructs a fluent builder for the DeregisterDBProxyTargets operation.

Source§

impl Client

Source

pub fn describe_account_attributes( &self, ) -> DescribeAccountAttributesFluentBuilder

Constructs a fluent builder for the DescribeAccountAttributes operation.

Source§

impl Client

Source

pub fn describe_blue_green_deployments( &self, ) -> DescribeBlueGreenDeploymentsFluentBuilder

Constructs a fluent builder for the DescribeBlueGreenDeployments operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • blue_green_deployment_identifier(impl Into<String>) / set_blue_green_deployment_identifier(Option<String>):
      required: false

      The blue/green deployment identifier. If you specify this parameter, the response only includes information about the specific blue/green deployment. This parameter isn’t case-sensitive.

      Constraints:

      • Must match an existing blue/green deployment identifier.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      A filter that specifies one or more blue/green deployments to describe.

      Valid Values:

      • blue-green-deployment-identifier - Accepts system-generated identifiers for blue/green deployments. The results list only includes information about the blue/green deployments with the specified identifiers.

      • blue-green-deployment-name - Accepts user-supplied names for blue/green deployments. The results list only includes information about the blue/green deployments with the specified names.

      • source - Accepts source databases for a blue/green deployment. The results list only includes information about the blue/green deployments with the specified source databases.

      • target - Accepts target databases for a blue/green deployment. The results list only includes information about the blue/green deployments with the specified target databases.


    • marker(impl Into<String>) / set_marker(Option<String>):
      required: false

      An optional pagination token provided by a previous DescribeBlueGreenDeployments request. If you specify this parameter, the response only includes records beyond the marker, up to the value specified by MaxRecords.


    • max_records(i32) / set_max_records(Option<i32>):
      required: false

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so you can retrieve the remaining results.

      Default: 100

      Constraints:

      • Must be a minimum of 20.

      • Can’t exceed 100.


  • On success, responds with DescribeBlueGreenDeploymentsOutput with field(s):
  • On failure, responds with SdkError<DescribeBlueGreenDeploymentsError>
Source§

impl Client

Source

pub fn describe_certificates(&self) -> DescribeCertificatesFluentBuilder

Constructs a fluent builder for the DescribeCertificates operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_cluster_automated_backups( &self, ) -> DescribeDBClusterAutomatedBackupsFluentBuilder

Constructs a fluent builder for the DescribeDBClusterAutomatedBackups operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_cluster_backtracks( &self, ) -> DescribeDBClusterBacktracksFluentBuilder

Constructs a fluent builder for the DescribeDBClusterBacktracks operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_cluster_endpoints( &self, ) -> DescribeDBClusterEndpointsFluentBuilder

Constructs a fluent builder for the DescribeDBClusterEndpoints operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_cluster_parameter_groups( &self, ) -> DescribeDBClusterParameterGroupsFluentBuilder

Constructs a fluent builder for the DescribeDBClusterParameterGroups operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_cluster_parameters( &self, ) -> DescribeDBClusterParametersFluentBuilder

Constructs a fluent builder for the DescribeDBClusterParameters operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_cluster_snapshot_attributes( &self, ) -> DescribeDBClusterSnapshotAttributesFluentBuilder

Constructs a fluent builder for the DescribeDBClusterSnapshotAttributes operation.

Source§

impl Client

Source

pub fn describe_db_cluster_snapshots( &self, ) -> DescribeDBClusterSnapshotsFluentBuilder

Constructs a fluent builder for the DescribeDBClusterSnapshots operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • db_cluster_identifier(impl Into<String>) / set_db_cluster_identifier(Option<String>):
      required: false

      The ID of the DB cluster to retrieve the list of DB cluster snapshots for. This parameter can’t be used in conjunction with the DBClusterSnapshotIdentifier parameter. This parameter isn’t case-sensitive.

      Constraints:

      • If supplied, must match the identifier of an existing DBCluster.


    • db_cluster_snapshot_identifier(impl Into<String>) / set_db_cluster_snapshot_identifier(Option<String>):
      required: false

      A specific DB cluster snapshot identifier to describe. This parameter can’t be used in conjunction with the DBClusterIdentifier parameter. This value is stored as a lowercase string.

      Constraints:

      • If supplied, must match the identifier of an existing DBClusterSnapshot.

      • If this identifier is for an automated snapshot, the SnapshotType parameter must also be specified.


    • snapshot_type(impl Into<String>) / set_snapshot_type(Option<String>):
      required: false

      The type of DB cluster snapshots to be returned. You can specify one of the following values:

      • automated - Return all DB cluster snapshots that have been automatically taken by Amazon RDS for my Amazon Web Services account.

      • manual - Return all DB cluster snapshots that have been taken by my Amazon Web Services account.

      • shared - Return all manual DB cluster snapshots that have been shared to my Amazon Web Services account.

      • public - Return all DB cluster snapshots that have been marked as public.

      If you don’t specify a SnapshotType value, then both automated and manual DB cluster snapshots are returned. You can include shared DB cluster snapshots with these results by enabling the IncludeShared parameter. You can include public DB cluster snapshots with these results by enabling the IncludePublic parameter.

      The IncludeShared and IncludePublic parameters don’t apply for SnapshotType values of manual or automated. The IncludePublic parameter doesn’t apply when SnapshotType is set to shared. The IncludeShared parameter doesn’t apply when SnapshotType is set to public.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      A filter that specifies one or more DB cluster snapshots to describe.

      Supported filters:

      • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs).

      • db-cluster-snapshot-id - Accepts DB cluster snapshot identifiers.

      • snapshot-type - Accepts types of DB cluster snapshots.

      • engine - Accepts names of database engines.


    • max_records(i32) / set_max_records(Option<i32>):
      required: false

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so you can retrieve the remaining results.

      Default: 100

      Constraints: Minimum 20, maximum 100.


    • marker(impl Into<String>) / set_marker(Option<String>):
      required: false

      An optional pagination token provided by a previous DescribeDBClusterSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.


    • include_shared(bool) / set_include_shared(Option<bool>):
      required: false

      Specifies whether to include shared manual DB cluster snapshots from other Amazon Web Services accounts that this Amazon Web Services account has been given permission to copy or restore. By default, these snapshots are not included.

      You can give an Amazon Web Services account permission to restore a manual DB cluster snapshot from another Amazon Web Services account by the ModifyDBClusterSnapshotAttribute API action.


    • include_public(bool) / set_include_public(Option<bool>):
      required: false

      Specifies whether to include manual DB cluster snapshots that are public and can be copied or restored by any Amazon Web Services account. By default, the public snapshots are not included.

      You can share a manual DB cluster snapshot as public by using the ModifyDBClusterSnapshotAttribute API action.


    • db_cluster_resource_id(impl Into<String>) / set_db_cluster_resource_id(Option<String>):
      required: false

      A specific DB cluster resource ID to describe.


  • On success, responds with DescribeDbClusterSnapshotsOutput with field(s):
  • On failure, responds with SdkError<DescribeDBClusterSnapshotsError>
Source§

impl Client

Source

pub fn describe_db_clusters(&self) -> DescribeDBClustersFluentBuilder

Constructs a fluent builder for the DescribeDBClusters operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • db_cluster_identifier(impl Into<String>) / set_db_cluster_identifier(Option<String>):
      required: false

      The user-supplied DB cluster identifier or the Amazon Resource Name (ARN) of the DB cluster. If this parameter is specified, information for only the specific DB cluster is returned. This parameter isn’t case-sensitive.

      Constraints:

      • If supplied, must match an existing DB cluster identifier.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      A filter that specifies one or more DB clusters to describe.

      Supported Filters:

      • clone-group-id - Accepts clone group identifiers. The results list only includes information about the DB clusters associated with these clone groups.

      • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list only includes information about the DB clusters identified by these ARNs.

      • db-cluster-resource-id - Accepts DB cluster resource identifiers. The results list will only include information about the DB clusters identified by these DB cluster resource identifiers.

      • domain - Accepts Active Directory directory IDs. The results list only includes information about the DB clusters associated with these domains.

      • engine - Accepts engine names. The results list only includes information about the DB clusters for these engines.


    • max_records(i32) / set_max_records(Option<i32>):
      required: false

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so you can retrieve the remaining results.

      Default: 100

      Constraints: Minimum 20, maximum 100


    • marker(impl Into<String>) / set_marker(Option<String>):
      required: false

      An optional pagination token provided by a previous DescribeDBClusters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.


    • include_shared(bool) / set_include_shared(Option<bool>):
      required: false

      Specifies whether the output includes information about clusters shared from other Amazon Web Services accounts.


  • On success, responds with DescribeDbClustersOutput with field(s):
  • On failure, responds with SdkError<DescribeDBClustersError>
Source§

impl Client

Source

pub fn describe_db_engine_versions( &self, ) -> DescribeDBEngineVersionsFluentBuilder

Constructs a fluent builder for the DescribeDBEngineVersions operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • engine(impl Into<String>) / set_engine(Option<String>):
      required: false

      The database engine to return version details for.

      Valid Values:

      • aurora-mysql

      • aurora-postgresql

      • custom-oracle-ee

      • custom-oracle-ee-cdb

      • custom-oracle-se2

      • custom-oracle-se2-cdb

      • db2-ae

      • db2-se

      • mariadb

      • mysql

      • oracle-ee

      • oracle-ee-cdb

      • oracle-se2

      • oracle-se2-cdb

      • postgres

      • sqlserver-ee

      • sqlserver-se

      • sqlserver-ex

      • sqlserver-web


    • engine_version(impl Into<String>) / set_engine_version(Option<String>):
      required: false

      A specific database engine version to return details for.

      Example: 5.1.49


    • db_parameter_group_family(impl Into<String>) / set_db_parameter_group_family(Option<String>):
      required: false

      The name of a specific DB parameter group family to return details for.

      Constraints:

      • If supplied, must match an existing DB parameter group family.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      A filter that specifies one or more DB engine versions to describe.

      Supported filters:

      • db-parameter-group-family - Accepts parameter groups family names. The results list only includes information about the DB engine versions for these parameter group families.

      • engine - Accepts engine names. The results list only includes information about the DB engine versions for these engines.

      • engine-mode - Accepts DB engine modes. The results list only includes information about the DB engine versions for these engine modes. Valid DB engine modes are the following:

        • global

        • multimaster

        • parallelquery

        • provisioned

        • serverless

      • engine-version - Accepts engine versions. The results list only includes information about the DB engine versions for these engine versions.

      • status - Accepts engine version statuses. The results list only includes information about the DB engine versions for these statuses. Valid statuses are the following:

        • available

        • deprecated


    • max_records(i32) / set_max_records(Option<i32>):
      required: false

      The maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so you can retrieve the remaining results.

      Default: 100

      Constraints: Minimum 20, maximum 100.


    • marker(impl Into<String>) / set_marker(Option<String>):
      required: false

      An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.


    • default_only(bool) / set_default_only(Option<bool>):
      required: false

      Specifies whether to return only the default version of the specified engine or the engine and major version combination.


    • list_supported_character_sets(bool) / set_list_supported_character_sets(Option<bool>):
      required: false

      Specifies whether to list the supported character sets for each engine version.

      If this parameter is enabled and the requested engine supports the CharacterSetName parameter for CreateDBInstance, the response includes a list of supported character sets for each engine version.

      For RDS Custom, the default is not to list supported character sets. If you enable this parameter, RDS Custom returns no results.


    • list_supported_timezones(bool) / set_list_supported_timezones(Option<bool>):
      required: false

      Specifies whether to list the supported time zones for each engine version.

      If this parameter is enabled and the requested engine supports the TimeZone parameter for CreateDBInstance, the response includes a list of supported time zones for each engine version.

      For RDS Custom, the default is not to list supported time zones. If you enable this parameter, RDS Custom returns no results.


    • include_all(bool) / set_include_all(Option<bool>):
      required: false

      Specifies whether to also list the engine versions that aren’t available. The default is to list only available engine versions.


  • On success, responds with DescribeDbEngineVersionsOutput with field(s):
  • On failure, responds with SdkError<DescribeDBEngineVersionsError>
Source§

impl Client

Source

pub fn describe_db_instance_automated_backups( &self, ) -> DescribeDBInstanceAutomatedBackupsFluentBuilder

Constructs a fluent builder for the DescribeDBInstanceAutomatedBackups operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_instances(&self) -> DescribeDBInstancesFluentBuilder

Constructs a fluent builder for the DescribeDBInstances operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • db_instance_identifier(impl Into<String>) / set_db_instance_identifier(Option<String>):
      required: false

      The user-supplied instance identifier or the Amazon Resource Name (ARN) of the DB instance. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn’t case-sensitive.

      Constraints:

      • If supplied, must match the identifier of an existing DB instance.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      A filter that specifies one or more DB instances to describe.

      Supported Filters:

      • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list only includes information about the DB instances associated with the DB clusters identified by these ARNs.

      • db-instance-id - Accepts DB instance identifiers and DB instance Amazon Resource Names (ARNs). The results list only includes information about the DB instances identified by these ARNs.

      • dbi-resource-id - Accepts DB instance resource identifiers. The results list only includes information about the DB instances identified by these DB instance resource identifiers.

      • domain - Accepts Active Directory directory IDs. The results list only includes information about the DB instances associated with these domains.

      • engine - Accepts engine names. The results list only includes information about the DB instances for these engines.


    • max_records(i32) / set_max_records(Option<i32>):
      required: false

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results.

      Default: 100

      Constraints: Minimum 20, maximum 100.


    • marker(impl Into<String>) / set_marker(Option<String>):
      required: false

      An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.


  • On success, responds with DescribeDbInstancesOutput with field(s):
  • On failure, responds with SdkError<DescribeDBInstancesError>
Source§

impl Client

Source

pub fn describe_db_log_files(&self) -> DescribeDBLogFilesFluentBuilder

Constructs a fluent builder for the DescribeDBLogFiles operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_parameter_groups( &self, ) -> DescribeDBParameterGroupsFluentBuilder

Constructs a fluent builder for the DescribeDBParameterGroups operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_parameters(&self) -> DescribeDBParametersFluentBuilder

Constructs a fluent builder for the DescribeDBParameters operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_proxies(&self) -> DescribeDBProxiesFluentBuilder

Constructs a fluent builder for the DescribeDBProxies operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_proxy_endpoints( &self, ) -> DescribeDBProxyEndpointsFluentBuilder

Constructs a fluent builder for the DescribeDBProxyEndpoints operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_proxy_target_groups( &self, ) -> DescribeDBProxyTargetGroupsFluentBuilder

Constructs a fluent builder for the DescribeDBProxyTargetGroups operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_proxy_targets(&self) -> DescribeDBProxyTargetsFluentBuilder

Constructs a fluent builder for the DescribeDBProxyTargets operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_recommendations( &self, ) -> DescribeDBRecommendationsFluentBuilder

Constructs a fluent builder for the DescribeDBRecommendations operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • last_updated_after(DateTime) / set_last_updated_after(Option<DateTime>):
      required: false

      A filter to include only the recommendations that were updated after this specified time.


    • last_updated_before(DateTime) / set_last_updated_before(Option<DateTime>):
      required: false

      A filter to include only the recommendations that were updated before this specified time.


    • locale(impl Into<String>) / set_locale(Option<String>):
      required: false

      The language that you choose to return the list of recommendations.

      Valid values:

      • en

      • en_UK

      • de

      • es

      • fr

      • id

      • it

      • ja

      • ko

      • pt_BR

      • zh_TW

      • zh_CN


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      A filter that specifies one or more recommendations to describe.

      Supported Filters:

      • recommendation-id - Accepts a list of recommendation identifiers. The results list only includes the recommendations whose identifier is one of the specified filter values.

      • status - Accepts a list of recommendation statuses.

        Valid values:

        • active - The recommendations which are ready for you to apply.

        • pending - The applied or scheduled recommendations which are in progress.

        • resolved - The recommendations which are completed.

        • dismissed - The recommendations that you dismissed.

        The results list only includes the recommendations whose status is one of the specified filter values.

      • severity - Accepts a list of recommendation severities. The results list only includes the recommendations whose severity is one of the specified filter values.

        Valid values:

        • high

        • medium

        • low

        • informational

      • type-id - Accepts a list of recommendation type identifiers. The results list only includes the recommendations whose type is one of the specified filter values.

      • dbi-resource-id - Accepts a list of database resource identifiers. The results list only includes the recommendations that generated for the specified databases.

      • cluster-resource-id - Accepts a list of cluster resource identifiers. The results list only includes the recommendations that generated for the specified clusters.

      • pg-arn - Accepts a list of parameter group ARNs. The results list only includes the recommendations that generated for the specified parameter groups.

      • cluster-pg-arn - Accepts a list of cluster parameter group ARNs. The results list only includes the recommendations that generated for the specified cluster parameter groups.


    • max_records(i32) / set_max_records(Option<i32>):
      required: false

      The maximum number of recommendations to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results.


    • marker(impl Into<String>) / set_marker(Option<String>):
      required: false

      An optional pagination token provided by a previous DescribeDBRecommendations request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.


  • On success, responds with DescribeDbRecommendationsOutput with field(s):
  • On failure, responds with SdkError<DescribeDBRecommendationsError>
Source§

impl Client

Source

pub fn describe_db_security_groups( &self, ) -> DescribeDBSecurityGroupsFluentBuilder

Constructs a fluent builder for the DescribeDBSecurityGroups operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_db_shard_groups(&self) -> DescribeDBShardGroupsFluentBuilder

Constructs a fluent builder for the DescribeDBShardGroups operation.

Source§

impl Client

Source

pub fn describe_db_snapshot_attributes( &self, ) -> DescribeDBSnapshotAttributesFluentBuilder

Constructs a fluent builder for the DescribeDBSnapshotAttributes operation.

Source§

impl Client

Source

pub fn describe_db_snapshot_tenant_databases( &self, ) -> DescribeDBSnapshotTenantDatabasesFluentBuilder

Constructs a fluent builder for the DescribeDBSnapshotTenantDatabases operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • db_instance_identifier(impl Into<String>) / set_db_instance_identifier(Option<String>):
      required: false

      The ID of the DB instance used to create the DB snapshots. This parameter isn’t case-sensitive.

      Constraints:

      • If supplied, must match the identifier of an existing DBInstance.


    • db_snapshot_identifier(impl Into<String>) / set_db_snapshot_identifier(Option<String>):
      required: false

      The ID of a DB snapshot that contains the tenant databases to describe. This value is stored as a lowercase string.

      Constraints:

      • If you specify this parameter, the value must match the ID of an existing DB snapshot.

      • If you specify an automatic snapshot, you must also specify SnapshotType.


    • snapshot_type(impl Into<String>) / set_snapshot_type(Option<String>):
      required: false

      The type of DB snapshots to be returned. You can specify one of the following values:

      • automated – All DB snapshots that have been automatically taken by Amazon RDS for my Amazon Web Services account.

      • manual – All DB snapshots that have been taken by my Amazon Web Services account.

      • shared – All manual DB snapshots that have been shared to my Amazon Web Services account.

      • public – All DB snapshots that have been marked as public.

      • awsbackup – All DB snapshots managed by the Amazon Web Services Backup service.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      A filter that specifies one or more tenant databases to describe.

      Supported filters:

      • tenant-db-name - Tenant database names. The results list only includes information about the tenant databases that match these tenant DB names.

      • tenant-database-resource-id - Tenant database resource identifiers. The results list only includes information about the tenant databases contained within the DB snapshots.

      • dbi-resource-id - DB instance resource identifiers. The results list only includes information about snapshots containing tenant databases contained within the DB instances identified by these resource identifiers.

      • db-instance-id - Accepts DB instance identifiers and DB instance Amazon Resource Names (ARNs).

      • db-snapshot-id - Accepts DB snapshot identifiers.

      • snapshot-type - Accepts types of DB snapshots.


    • max_records(i32) / set_max_records(Option<i32>):
      required: false

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results.


    • marker(impl Into<String>) / set_marker(Option<String>):
      required: false

      An optional pagination token provided by a previous DescribeDBSnapshotTenantDatabases request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.


    • dbi_resource_id(impl Into<String>) / set_dbi_resource_id(Option<String>):
      required: false

      A specific DB resource identifier to describe.


  • On success, responds with DescribeDbSnapshotTenantDatabasesOutput with field(s):
  • On failure, responds with SdkError<DescribeDBSnapshotTenantDatabasesError>
Source§

impl Client

Source

pub fn describe_db_snapshots(&self) -> DescribeDBSnapshotsFluentBuilder

Constructs a fluent builder for the DescribeDBSnapshots operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • db_instance_identifier(impl Into<String>) / set_db_instance_identifier(Option<String>):
      required: false

      The ID of the DB instance to retrieve the list of DB snapshots for. This parameter isn’t case-sensitive.

      Constraints:

      • If supplied, must match the identifier of an existing DBInstance.


    • db_snapshot_identifier(impl Into<String>) / set_db_snapshot_identifier(Option<String>):
      required: false

      A specific DB snapshot identifier to describe. This value is stored as a lowercase string.

      Constraints:

      • If supplied, must match the identifier of an existing DBSnapshot.

      • If this identifier is for an automated snapshot, the SnapshotType parameter must also be specified.


    • snapshot_type(impl Into<String>) / set_snapshot_type(Option<String>):
      required: false

      The type of snapshots to be returned. You can specify one of the following values:

      • automated - Return all DB snapshots that have been automatically taken by Amazon RDS for my Amazon Web Services account.

      • manual - Return all DB snapshots that have been taken by my Amazon Web Services account.

      • shared - Return all manual DB snapshots that have been shared to my Amazon Web Services account.

      • public - Return all DB snapshots that have been marked as public.

      • awsbackup - Return the DB snapshots managed by the Amazon Web Services Backup service.

        For information about Amazon Web Services Backup, see the Amazon Web Services Backup Developer Guide.

        The awsbackup type does not apply to Aurora.

      If you don’t specify a SnapshotType value, then both automated and manual snapshots are returned. Shared and public DB snapshots are not included in the returned results by default. You can include shared snapshots with these results by enabling the IncludeShared parameter. You can include public snapshots with these results by enabling the IncludePublic parameter.

      The IncludeShared and IncludePublic parameters don’t apply for SnapshotType values of manual or automated. The IncludePublic parameter doesn’t apply when SnapshotType is set to shared. The IncludeShared parameter doesn’t apply when SnapshotType is set to public.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      A filter that specifies one or more DB snapshots to describe.

      Supported filters:

      • db-instance-id - Accepts DB instance identifiers and DB instance Amazon Resource Names (ARNs).

      • db-snapshot-id - Accepts DB snapshot identifiers.

      • dbi-resource-id - Accepts identifiers of source DB instances.

      • snapshot-type - Accepts types of DB snapshots.

      • engine - Accepts names of database engines.


    • max_records(i32) / set_max_records(Option<i32>):
      required: false

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results.

      Default: 100

      Constraints: Minimum 20, maximum 100.


    • marker(impl Into<String>) / set_marker(Option<String>):
      required: false

      An optional pagination token provided by a previous DescribeDBSnapshots request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.


    • include_shared(bool) / set_include_shared(Option<bool>):
      required: false

      Specifies whether to include shared manual DB cluster snapshots from other Amazon Web Services accounts that this Amazon Web Services account has been given permission to copy or restore. By default, these snapshots are not included.

      You can give an Amazon Web Services account permission to restore a manual DB snapshot from another Amazon Web Services account by using the ModifyDBSnapshotAttribute API action.

      This setting doesn’t apply to RDS Custom.


    • include_public(bool) / set_include_public(Option<bool>):
      required: false

      Specifies whether to include manual DB cluster snapshots that are public and can be copied or restored by any Amazon Web Services account. By default, the public snapshots are not included.

      You can share a manual DB snapshot as public by using the ModifyDBSnapshotAttribute API.

      This setting doesn’t apply to RDS Custom.


    • dbi_resource_id(impl Into<String>) / set_dbi_resource_id(Option<String>):
      required: false

      A specific DB resource ID to describe.


  • On success, responds with DescribeDbSnapshotsOutput with field(s):
  • On failure, responds with SdkError<DescribeDBSnapshotsError>
Source§

impl Client

Source

pub fn describe_db_subnet_groups(&self) -> DescribeDBSubnetGroupsFluentBuilder

Constructs a fluent builder for the DescribeDBSubnetGroups operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_engine_default_cluster_parameters( &self, ) -> DescribeEngineDefaultClusterParametersFluentBuilder

Constructs a fluent builder for the DescribeEngineDefaultClusterParameters operation.

Source§

impl Client

Source

pub fn describe_engine_default_parameters( &self, ) -> DescribeEngineDefaultParametersFluentBuilder

Constructs a fluent builder for the DescribeEngineDefaultParameters operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • db_parameter_group_family(impl Into<String>) / set_db_parameter_group_family(Option<String>):
      required: true

      The name of the DB parameter group family.

      Valid Values:

      • aurora-mysql5.7

      • aurora-mysql8.0

      • aurora-postgresql10

      • aurora-postgresql11

      • aurora-postgresql12

      • aurora-postgresql13

      • aurora-postgresql14

      • custom-oracle-ee-19

      • custom-oracle-ee-cdb-19

      • db2-ae

      • db2-se

      • mariadb10.2

      • mariadb10.3

      • mariadb10.4

      • mariadb10.5

      • mariadb10.6

      • mysql5.7

      • mysql8.0

      • oracle-ee-19

      • oracle-ee-cdb-19

      • oracle-ee-cdb-21

      • oracle-se2-19

      • oracle-se2-cdb-19

      • oracle-se2-cdb-21

      • postgres10

      • postgres11

      • postgres12

      • postgres13

      • postgres14

      • sqlserver-ee-11.0

      • sqlserver-ee-12.0

      • sqlserver-ee-13.0

      • sqlserver-ee-14.0

      • sqlserver-ee-15.0

      • sqlserver-ex-11.0

      • sqlserver-ex-12.0

      • sqlserver-ex-13.0

      • sqlserver-ex-14.0

      • sqlserver-ex-15.0

      • sqlserver-se-11.0

      • sqlserver-se-12.0

      • sqlserver-se-13.0

      • sqlserver-se-14.0

      • sqlserver-se-15.0

      • sqlserver-web-11.0

      • sqlserver-web-12.0

      • sqlserver-web-13.0

      • sqlserver-web-14.0

      • sqlserver-web-15.0


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      A filter that specifies one or more parameters to describe.

      The only supported filter is parameter-name. The results list only includes information about the parameters with these names.


    • max_records(i32) / set_max_records(Option<i32>):
      required: false

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so you can retrieve the remaining results.

      Default: 100

      Constraints: Minimum 20, maximum 100.


    • marker(impl Into<String>) / set_marker(Option<String>):
      required: false

      An optional pagination token provided by a previous DescribeEngineDefaultParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.


  • On success, responds with DescribeEngineDefaultParametersOutput with field(s):
  • On failure, responds with SdkError<DescribeEngineDefaultParametersError>
Source§

impl Client

Source

pub fn describe_event_categories(&self) -> DescribeEventCategoriesFluentBuilder

Constructs a fluent builder for the DescribeEventCategories operation.

Source§

impl Client

Source

pub fn describe_event_subscriptions( &self, ) -> DescribeEventSubscriptionsFluentBuilder

Constructs a fluent builder for the DescribeEventSubscriptions operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_events(&self) -> DescribeEventsFluentBuilder

Constructs a fluent builder for the DescribeEvents operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_export_tasks(&self) -> DescribeExportTasksFluentBuilder

Constructs a fluent builder for the DescribeExportTasks operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_global_clusters(&self) -> DescribeGlobalClustersFluentBuilder

Constructs a fluent builder for the DescribeGlobalClusters operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • global_cluster_identifier(impl Into<String>) / set_global_cluster_identifier(Option<String>):
      required: false

      The user-supplied DB cluster identifier. If this parameter is specified, information from only the specific DB cluster is returned. This parameter isn’t case-sensitive.

      Constraints:

      • If supplied, must match an existing DBClusterIdentifier.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      A filter that specifies one or more global database clusters to describe. This parameter is case-sensitive.

      Currently, the only supported filter is region.

      If used, the request returns information about any global cluster with at least one member (primary or secondary) in the specified Amazon Web Services Regions.


    • max_records(i32) / set_max_records(Option<i32>):
      required: false

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results.

      Default: 100

      Constraints: Minimum 20, maximum 100.


    • marker(impl Into<String>) / set_marker(Option<String>):
      required: false

      An optional pagination token provided by a previous DescribeGlobalClusters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.


  • On success, responds with DescribeGlobalClustersOutput with field(s):
    • marker(Option<String>):

      An optional pagination token provided by a previous DescribeGlobalClusters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    • global_clusters(Option<Vec::<GlobalCluster>>):

      The list of global clusters returned by this request.

  • On failure, responds with SdkError<DescribeGlobalClustersError>
Source§

impl Client

Source

pub fn describe_integrations(&self) -> DescribeIntegrationsFluentBuilder

Constructs a fluent builder for the DescribeIntegrations operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_option_group_options( &self, ) -> DescribeOptionGroupOptionsFluentBuilder

Constructs a fluent builder for the DescribeOptionGroupOptions operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_option_groups(&self) -> DescribeOptionGroupsFluentBuilder

Constructs a fluent builder for the DescribeOptionGroups operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_orderable_db_instance_options( &self, ) -> DescribeOrderableDBInstanceOptionsFluentBuilder

Constructs a fluent builder for the DescribeOrderableDBInstanceOptions operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_pending_maintenance_actions( &self, ) -> DescribePendingMaintenanceActionsFluentBuilder

Constructs a fluent builder for the DescribePendingMaintenanceActions operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_reserved_db_instances( &self, ) -> DescribeReservedDBInstancesFluentBuilder

Constructs a fluent builder for the DescribeReservedDBInstances operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_reserved_db_instances_offerings( &self, ) -> DescribeReservedDBInstancesOfferingsFluentBuilder

Constructs a fluent builder for the DescribeReservedDBInstancesOfferings operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_source_regions(&self) -> DescribeSourceRegionsFluentBuilder

Constructs a fluent builder for the DescribeSourceRegions operation. This operation supports pagination; See into_paginator().

Source§

impl Client

Source

pub fn describe_tenant_databases(&self) -> DescribeTenantDatabasesFluentBuilder

Constructs a fluent builder for the DescribeTenantDatabases operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • db_instance_identifier(impl Into<String>) / set_db_instance_identifier(Option<String>):
      required: false

      The user-supplied DB instance identifier, which must match the identifier of an existing instance owned by the Amazon Web Services account. This parameter isn’t case-sensitive.


    • tenant_db_name(impl Into<String>) / set_tenant_db_name(Option<String>):
      required: false

      The user-supplied tenant database name, which must match the name of an existing tenant database on the specified DB instance owned by your Amazon Web Services account. This parameter isn’t case-sensitive.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      A filter that specifies one or more database tenants to describe.

      Supported filters:

      • tenant-db-name - Tenant database names. The results list only includes information about the tenant databases that match these tenant DB names.

      • tenant-database-resource-id - Tenant database resource identifiers.

      • dbi-resource-id - DB instance resource identifiers. The results list only includes information about the tenants contained within the DB instances identified by these resource identifiers.


    • marker(impl Into<String>) / set_marker(Option<String>):
      required: false

      An optional pagination token provided by a previous DescribeTenantDatabases request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.


    • max_records(i32) / set_max_records(Option<i32>):
      required: false

      The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results.


  • On success, responds with DescribeTenantDatabasesOutput with field(s):
    • marker(Option<String>):

      An optional pagination token provided by a previous DescribeTenantDatabases request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

    • tenant_databases(Option<Vec::<TenantDatabase>>):

      An array of the tenant databases requested by the DescribeTenantDatabases operation.

  • On failure, responds with SdkError<DescribeTenantDatabasesError>
Source§

impl Client