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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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).

§tags: Option<Vec<Tag>>

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

source

pub fn name(&self) -> Option<&str>

The unique name of the database resource in Lightsail.

source

pub fn arn(&self) -> Option<&str>

The Amazon Resource Name (ARN) of the database.

source

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.

source

pub fn created_at(&self) -> Option<&DateTime>

The timestamp when the database was created. Formatted in Unix time.

source

pub fn location(&self) -> Option<&ResourceLocation>

The Region name and Availability Zone where the database is located.

source

pub fn resource_type(&self) -> Option<&ResourceType>

The Lightsail resource type for the database (for example, RelationalDatabase).

source

pub fn tags(&self) -> &[Tag]

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().

source

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.

source

pub fn relational_database_bundle_id(&self) -> Option<&str>

The bundle ID for the database. A bundle describes the performance specifications for your database.

source

pub fn master_database_name(&self) -> Option<&str>

The name of the master database created when the Lightsail database resource is created.

source

pub fn hardware(&self) -> Option<&RelationalDatabaseHardware>

Describes the hardware of the database.

source

pub fn state(&self) -> Option<&str>

Describes the current state of the database.

source

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.

source

pub fn backup_retention_enabled(&self) -> Option<bool>

A Boolean value indicating whether automated backup retention is enabled for the database.

source

pub fn pending_modified_values( &self ) -> Option<&PendingModifiedRelationalDatabaseValues>

Describes pending database value modifications.

source

pub fn engine(&self) -> Option<&str>

The database software (for example, MySQL).

source

pub fn engine_version(&self) -> Option<&str>

The database engine version (for example, 5.7.23).

source

pub fn latest_restorable_time(&self) -> Option<&DateTime>

The latest point in time to which the database can be restored. Formatted in Unix time.

source

pub fn master_username(&self) -> Option<&str>

The master user name of the database.

source

pub fn parameter_apply_status(&self) -> Option<&str>

The status of parameter updates for the database.

source

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).

source

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.

source

pub fn publicly_accessible(&self) -> Option<bool>

A Boolean value indicating whether the database is publicly accessible.

source

pub fn master_endpoint(&self) -> Option<&RelationalDatabaseEndpoint>

The master endpoint for the database.

source

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().

source

pub fn ca_certificate_identifier(&self) -> Option<&str>

The certificate associated with the database.

source§

impl RelationalDatabase

source

pub fn builder() -> RelationalDatabaseBuilder

Creates a new builder-style object to manufacture RelationalDatabase.

Trait Implementations§

source§

impl Clone for RelationalDatabase

source§

fn clone(&self) -> RelationalDatabase

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RelationalDatabase

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for RelationalDatabase

source§

fn eq(&self, other: &RelationalDatabase) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for RelationalDatabase

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more