Struct aws_sdk_lightsail::client::fluent_builders::UpdateRelationalDatabase [−][src]
pub struct UpdateRelationalDatabase<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to UpdateRelationalDatabase
.
Allows the update of one or more attributes of a database in Amazon Lightsail.
Updates are applied immediately, or in cases where the updates could result in an outage, are applied during the database's predefined maintenance window.
The update relational database
operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName. For more information, see the Amazon Lightsail Developer Guide.
Implementations
impl<C, M, R> UpdateRelationalDatabase<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateRelationalDatabase<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<UpdateRelationalDatabaseOutput, SdkError<UpdateRelationalDatabaseError>> where
R::Policy: SmithyRetryPolicy<UpdateRelationalDatabaseInputOperationOutputAlias, UpdateRelationalDatabaseOutput, UpdateRelationalDatabaseError, UpdateRelationalDatabaseInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<UpdateRelationalDatabaseOutput, SdkError<UpdateRelationalDatabaseError>> where
R::Policy: SmithyRetryPolicy<UpdateRelationalDatabaseInputOperationOutputAlias, UpdateRelationalDatabaseOutput, UpdateRelationalDatabaseError, UpdateRelationalDatabaseInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The name of your Lightsail database resource to update.
The name of your Lightsail database resource to update.
The password for the master user. The password can include any printable ASCII character except "/", """, or "@".
MySQL
Constraints: Must contain from 8 to 41 characters.
PostgreSQL
Constraints: Must contain from 8 to 128 characters.
The password for the master user. The password can include any printable ASCII character except "/", """, or "@".
MySQL
Constraints: Must contain from 8 to 41 characters.
PostgreSQL
Constraints: Must contain from 8 to 128 characters.
When true
, the master user password is changed to a new strong password generated by Lightsail.
Use the get relational database master user password
operation to get the new password.
When true
, the master user password is changed to a new strong password generated by Lightsail.
Use the get relational database master user password
operation to get the new password.
The daily time range during which automated backups are created for your database if automated backups are enabled.
Constraints:
-
Must be in the
hh24:mi-hh24:mi
format.Example:
16:00-16:30
-
Specified in Coordinated Universal Time (UTC).
-
Must not conflict with the preferred maintenance window.
-
Must be at least 30 minutes.
The daily time range during which automated backups are created for your database if automated backups are enabled.
Constraints:
-
Must be in the
hh24:mi-hh24:mi
format.Example:
16:00-16:30
-
Specified in Coordinated Universal Time (UTC).
-
Must not conflict with the preferred maintenance window.
-
Must be at least 30 minutes.
The weekly time range during which system maintenance can occur on your database.
The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
Constraints:
-
Must be in the
ddd:hh24:mi-ddd:hh24:mi
format. -
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
-
Must be at least 30 minutes.
-
Specified in Coordinated Universal Time (UTC).
-
Example:
Tue:17:00-Tue:17:30
The weekly time range during which system maintenance can occur on your database.
The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
Constraints:
-
Must be in the
ddd:hh24:mi-ddd:hh24:mi
format. -
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
-
Must be at least 30 minutes.
-
Specified in Coordinated Universal Time (UTC).
-
Example:
Tue:17:00-Tue:17:30
When true
, enables automated backup retention for your database.
Updates are applied during the next maintenance window because this can result in an outage.
When true
, enables automated backup retention for your database.
Updates are applied during the next maintenance window because this can result in an outage.
When true
, disables automated backup retention for your database.
Disabling backup retention deletes all automated database backups. Before disabling this, you may want to create a snapshot of your database using the create relational database snapshot
operation.
Updates are applied during the next maintenance window because this can result in an outage.
When true
, disables automated backup retention for your database.
Disabling backup retention deletes all automated database backups. Before disabling this, you may want to create a snapshot of your database using the create relational database snapshot
operation.
Updates are applied during the next maintenance window because this can result in an outage.
Specifies the accessibility options for your database. A value of true
specifies a database that is available to resources outside of your Lightsail account. A value of false
specifies a database that is available only to your Lightsail resources in the same region as your database.
Specifies the accessibility options for your database. A value of true
specifies a database that is available to resources outside of your Lightsail account. A value of false
specifies a database that is available only to your Lightsail resources in the same region as your database.
When true
, applies changes immediately. When false
, applies changes during the preferred maintenance window. Some changes may cause an outage.
Default: false
When true
, applies changes immediately. When false
, applies changes during the preferred maintenance window. Some changes may cause an outage.
Default: false
Indicates the certificate that needs to be associated with the database.
Indicates the certificate that needs to be associated with the database.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for UpdateRelationalDatabase<C, M, R>
impl<C, M, R> Send for UpdateRelationalDatabase<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for UpdateRelationalDatabase<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for UpdateRelationalDatabase<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for UpdateRelationalDatabase<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more