Struct aws_sdk_lightsail::types::RelationalDatabase
source · #[non_exhaustive]pub struct RelationalDatabase {Show 26 fields
pub name: Option<String>,
pub arn: Option<String>,
pub support_code: Option<String>,
pub created_at: Option<DateTime>,
pub location: Option<ResourceLocation>,
pub resource_type: Option<ResourceType>,
pub tags: Option<Vec<Tag>>,
pub relational_database_blueprint_id: Option<String>,
pub relational_database_bundle_id: Option<String>,
pub master_database_name: Option<String>,
pub hardware: Option<RelationalDatabaseHardware>,
pub state: Option<String>,
pub secondary_availability_zone: Option<String>,
pub backup_retention_enabled: Option<bool>,
pub pending_modified_values: Option<PendingModifiedRelationalDatabaseValues>,
pub engine: Option<String>,
pub engine_version: Option<String>,
pub latest_restorable_time: Option<DateTime>,
pub master_username: Option<String>,
pub parameter_apply_status: Option<String>,
pub preferred_backup_window: Option<String>,
pub preferred_maintenance_window: Option<String>,
pub publicly_accessible: Option<bool>,
pub master_endpoint: Option<RelationalDatabaseEndpoint>,
pub pending_maintenance_actions: Option<Vec<PendingMaintenanceAction>>,
pub ca_certificate_identifier: Option<String>,
}
Expand description
Describes a database.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The unique name of the database resource in Lightsail.
arn: Option<String>
The Amazon Resource Name (ARN) of the database.
support_code: Option<String>
The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.
created_at: Option<DateTime>
The timestamp when the database was created. Formatted in Unix time.
location: Option<ResourceLocation>
The Region name and Availability Zone where the database is located.
resource_type: Option<ResourceType>
The Lightsail resource type for the database (for example, RelationalDatabase
).
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
relational_database_blueprint_id: Option<String>
The blueprint ID for the database. A blueprint describes the major engine version of a database.
relational_database_bundle_id: Option<String>
The bundle ID for the database. A bundle describes the performance specifications for your database.
master_database_name: Option<String>
The name of the master database created when the Lightsail database resource is created.
hardware: Option<RelationalDatabaseHardware>
Describes the hardware of the database.
state: Option<String>
Describes the current state of the database.
secondary_availability_zone: Option<String>
Describes the secondary Availability Zone of a high availability database.
The secondary database is used for failover support of a high availability database.
backup_retention_enabled: Option<bool>
A Boolean value indicating whether automated backup retention is enabled for the database.
pending_modified_values: Option<PendingModifiedRelationalDatabaseValues>
Describes pending database value modifications.
engine: Option<String>
The database software (for example, MySQL
).
engine_version: Option<String>
The database engine version (for example, 5.7.23
).
latest_restorable_time: Option<DateTime>
The latest point in time to which the database can be restored. Formatted in Unix time.
master_username: Option<String>
The master user name of the database.
parameter_apply_status: Option<String>
The status of parameter updates for the database.
preferred_backup_window: Option<String>
The daily time range during which automated backups are created for the database (for example, 16:00-16:30
).
preferred_maintenance_window: Option<String>
The weekly time range during which system maintenance can occur on the database.
In the format ddd:hh24:mi-ddd:hh24:mi
. For example, Tue:17:00-Tue:17:30
.
publicly_accessible: Option<bool>
A Boolean value indicating whether the database is publicly accessible.
master_endpoint: Option<RelationalDatabaseEndpoint>
The master endpoint for the database.
pending_maintenance_actions: Option<Vec<PendingMaintenanceAction>>
Describes the pending maintenance actions for the database.
ca_certificate_identifier: Option<String>
The certificate associated with the database.
Implementations§
source§impl RelationalDatabase
impl RelationalDatabase
sourcepub fn support_code(&self) -> Option<&str>
pub fn support_code(&self) -> Option<&str>
The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The timestamp when the database was created. Formatted in Unix time.
sourcepub fn location(&self) -> Option<&ResourceLocation>
pub fn location(&self) -> Option<&ResourceLocation>
The Region name and Availability Zone where the database is located.
sourcepub fn resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&ResourceType>
The Lightsail resource type for the database (for example, RelationalDatabase
).
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
sourcepub fn relational_database_blueprint_id(&self) -> Option<&str>
pub fn relational_database_blueprint_id(&self) -> Option<&str>
The blueprint ID for the database. A blueprint describes the major engine version of a database.
sourcepub fn relational_database_bundle_id(&self) -> Option<&str>
pub fn relational_database_bundle_id(&self) -> Option<&str>
The bundle ID for the database. A bundle describes the performance specifications for your database.
sourcepub fn master_database_name(&self) -> Option<&str>
pub fn master_database_name(&self) -> Option<&str>
The name of the master database created when the Lightsail database resource is created.
sourcepub fn hardware(&self) -> Option<&RelationalDatabaseHardware>
pub fn hardware(&self) -> Option<&RelationalDatabaseHardware>
Describes the hardware of the database.
sourcepub fn secondary_availability_zone(&self) -> Option<&str>
pub fn secondary_availability_zone(&self) -> Option<&str>
Describes the secondary Availability Zone of a high availability database.
The secondary database is used for failover support of a high availability database.
sourcepub fn backup_retention_enabled(&self) -> Option<bool>
pub fn backup_retention_enabled(&self) -> Option<bool>
A Boolean value indicating whether automated backup retention is enabled for the database.
sourcepub fn pending_modified_values(
&self
) -> Option<&PendingModifiedRelationalDatabaseValues>
pub fn pending_modified_values( &self ) -> Option<&PendingModifiedRelationalDatabaseValues>
Describes pending database value modifications.
sourcepub fn engine_version(&self) -> Option<&str>
pub fn engine_version(&self) -> Option<&str>
The database engine version (for example, 5.7.23
).
sourcepub fn latest_restorable_time(&self) -> Option<&DateTime>
pub fn latest_restorable_time(&self) -> Option<&DateTime>
The latest point in time to which the database can be restored. Formatted in Unix time.
sourcepub fn master_username(&self) -> Option<&str>
pub fn master_username(&self) -> Option<&str>
The master user name of the database.
sourcepub fn parameter_apply_status(&self) -> Option<&str>
pub fn parameter_apply_status(&self) -> Option<&str>
The status of parameter updates for the database.
sourcepub fn preferred_backup_window(&self) -> Option<&str>
pub fn preferred_backup_window(&self) -> Option<&str>
The daily time range during which automated backups are created for the database (for example, 16:00-16:30
).
sourcepub fn preferred_maintenance_window(&self) -> Option<&str>
pub fn preferred_maintenance_window(&self) -> Option<&str>
The weekly time range during which system maintenance can occur on the database.
In the format ddd:hh24:mi-ddd:hh24:mi
. For example, Tue:17:00-Tue:17:30
.
sourcepub fn publicly_accessible(&self) -> Option<bool>
pub fn publicly_accessible(&self) -> Option<bool>
A Boolean value indicating whether the database is publicly accessible.
sourcepub fn master_endpoint(&self) -> Option<&RelationalDatabaseEndpoint>
pub fn master_endpoint(&self) -> Option<&RelationalDatabaseEndpoint>
The master endpoint for the database.
sourcepub fn pending_maintenance_actions(&self) -> &[PendingMaintenanceAction]
pub fn pending_maintenance_actions(&self) -> &[PendingMaintenanceAction]
Describes the pending maintenance actions for the database.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .pending_maintenance_actions.is_none()
.
sourcepub fn ca_certificate_identifier(&self) -> Option<&str>
pub fn ca_certificate_identifier(&self) -> Option<&str>
The certificate associated with the database.
source§impl RelationalDatabase
impl RelationalDatabase
sourcepub fn builder() -> RelationalDatabaseBuilder
pub fn builder() -> RelationalDatabaseBuilder
Creates a new builder-style object to manufacture RelationalDatabase
.
Trait Implementations§
source§impl Clone for RelationalDatabase
impl Clone for RelationalDatabase
source§fn clone(&self) -> RelationalDatabase
fn clone(&self) -> RelationalDatabase
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RelationalDatabase
impl Debug for RelationalDatabase
source§impl PartialEq for RelationalDatabase
impl PartialEq for RelationalDatabase
source§fn eq(&self, other: &RelationalDatabase) -> bool
fn eq(&self, other: &RelationalDatabase) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RelationalDatabase
Auto Trait Implementations§
impl Freeze for RelationalDatabase
impl RefUnwindSafe for RelationalDatabase
impl Send for RelationalDatabase
impl Sync for RelationalDatabase
impl Unpin for RelationalDatabase
impl UnwindSafe for RelationalDatabase
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more