#[non_exhaustive]
pub struct RestoreDbClusterFromSnapshotInput {
Show 14 fields pub availability_zones: Option<Vec<String>>, pub db_cluster_identifier: Option<String>, pub snapshot_identifier: Option<String>, pub engine: Option<String>, pub engine_version: Option<String>, pub port: Option<i32>, pub db_subnet_group_name: Option<String>, pub vpc_security_group_ids: Option<Vec<String>>, pub tags: Option<Vec<Tag>>, pub kms_key_id: Option<String>, pub enable_cloudwatch_logs_exports: Option<Vec<String>>, pub deletion_protection: Option<bool>, pub db_cluster_parameter_group_name: Option<String>, pub storage_type: Option<String>,
}
Expand description

Represents the input to RestoreDBClusterFromSnapshot.

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.
§availability_zones: Option<Vec<String>>

Provides the list of Amazon EC2 Availability Zones that instances in the restored DB cluster can be created in.

§db_cluster_identifier: Option<String>

The name of the cluster to create from the snapshot or cluster snapshot. This parameter isn't case sensitive.

Constraints:

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

  • The first character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-snapshot-id

§snapshot_identifier: Option<String>

The identifier for the snapshot or cluster snapshot to restore from.

You can use either the name or the Amazon Resource Name (ARN) to specify a cluster snapshot. However, you can use only the ARN to specify a snapshot.

Constraints:

  • Must match the identifier of an existing snapshot.

§engine: Option<String>

The database engine to use for the new cluster.

Default: The same as source.

Constraint: Must be compatible with the engine of the source.

§engine_version: Option<String>

The version of the database engine to use for the new cluster.

§port: Option<i32>

The port number on which the new cluster accepts connections.

Constraints: Must be a value from 1150 to 65535.

Default: The same port as the original cluster.

§db_subnet_group_name: Option<String>

The name of the subnet group to use for the new cluster.

Constraints: If provided, must match the name of an existing DBSubnetGroup.

Example: mySubnetgroup

§vpc_security_group_ids: Option<Vec<String>>

A list of virtual private cloud (VPC) security groups that the new cluster will belong to.

§tags: Option<Vec<Tag>>

The tags to be assigned to the restored cluster.

§kms_key_id: Option<String>

The KMS key identifier to use when restoring an encrypted cluster from a DB snapshot or cluster snapshot.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a cluster with the same Amazon Web Services account that owns the KMS encryption key used to encrypt the new cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.

If you do not specify a value for the KmsKeyId parameter, then the following occurs:

  • If the snapshot or cluster snapshot in SnapshotIdentifier is encrypted, then the restored cluster is encrypted using the KMS key that was used to encrypt the snapshot or the cluster snapshot.

  • If the snapshot or the cluster snapshot in SnapshotIdentifier is not encrypted, then the restored DB cluster is not encrypted.

§enable_cloudwatch_logs_exports: Option<Vec<String>>

A list of log types that must be enabled for exporting to Amazon CloudWatch Logs.

§deletion_protection: Option<bool>

Specifies whether this cluster can be deleted. If DeletionProtection is enabled, the cluster cannot be deleted unless it is modified and DeletionProtection is disabled. DeletionProtection protects clusters from being accidentally deleted.

§db_cluster_parameter_group_name: Option<String>

The name of the DB cluster parameter group to associate with this DB cluster.

Type: String.       Required: No.

If this argument is omitted, the default DB cluster parameter group is used. If supplied, must match the name of an existing default DB cluster parameter group. The string must consist of from 1 to 255 letters, numbers or hyphens. Its first character must be a letter, and it cannot end with a hyphen or contain two consecutive hyphens.

§storage_type: Option<String>

The storage type to associate with the DB cluster.

For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the Amazon DocumentDB Developer Guide.

Valid values for storage type - standard | iopt1

Default value is standard

Implementations§

source§

impl RestoreDbClusterFromSnapshotInput

source

pub fn availability_zones(&self) -> &[String]

Provides the list of Amazon EC2 Availability Zones that instances in the restored DB cluster can be created in.

If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .availability_zones.is_none().

source

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

The name of the cluster to create from the snapshot or cluster snapshot. This parameter isn't case sensitive.

Constraints:

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

  • The first character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-snapshot-id

source

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

The identifier for the snapshot or cluster snapshot to restore from.

You can use either the name or the Amazon Resource Name (ARN) to specify a cluster snapshot. However, you can use only the ARN to specify a snapshot.

Constraints:

  • Must match the identifier of an existing snapshot.

source

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

The database engine to use for the new cluster.

Default: The same as source.

Constraint: Must be compatible with the engine of the source.

source

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

The version of the database engine to use for the new cluster.

source

pub fn port(&self) -> Option<i32>

The port number on which the new cluster accepts connections.

Constraints: Must be a value from 1150 to 65535.

Default: The same port as the original cluster.

source

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

The name of the subnet group to use for the new cluster.

Constraints: If provided, must match the name of an existing DBSubnetGroup.

Example: mySubnetgroup

source

pub fn vpc_security_group_ids(&self) -> &[String]

A list of virtual private cloud (VPC) security groups that the new cluster will belong to.

If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .vpc_security_group_ids.is_none().

source

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

The tags to be assigned to the restored cluster.

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 kms_key_id(&self) -> Option<&str>

The KMS key identifier to use when restoring an encrypted cluster from a DB snapshot or cluster snapshot.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a cluster with the same Amazon Web Services account that owns the KMS encryption key used to encrypt the new cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key.

If you do not specify a value for the KmsKeyId parameter, then the following occurs:

  • If the snapshot or cluster snapshot in SnapshotIdentifier is encrypted, then the restored cluster is encrypted using the KMS key that was used to encrypt the snapshot or the cluster snapshot.

  • If the snapshot or the cluster snapshot in SnapshotIdentifier is not encrypted, then the restored DB cluster is not encrypted.

source

pub fn enable_cloudwatch_logs_exports(&self) -> &[String]

A list of log types that must be enabled for exporting to Amazon CloudWatch Logs.

If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .enable_cloudwatch_logs_exports.is_none().

source

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

Specifies whether this cluster can be deleted. If DeletionProtection is enabled, the cluster cannot be deleted unless it is modified and DeletionProtection is disabled. DeletionProtection protects clusters from being accidentally deleted.

source

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

The name of the DB cluster parameter group to associate with this DB cluster.

Type: String.       Required: No.

If this argument is omitted, the default DB cluster parameter group is used. If supplied, must match the name of an existing default DB cluster parameter group. The string must consist of from 1 to 255 letters, numbers or hyphens. Its first character must be a letter, and it cannot end with a hyphen or contain two consecutive hyphens.

source

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

The storage type to associate with the DB cluster.

For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the Amazon DocumentDB Developer Guide.

Valid values for storage type - standard | iopt1

Default value is standard

source§

impl RestoreDbClusterFromSnapshotInput

source

pub fn builder() -> RestoreDbClusterFromSnapshotInputBuilder

Creates a new builder-style object to manufacture RestoreDbClusterFromSnapshotInput.

Trait Implementations§

source§

impl Clone for RestoreDbClusterFromSnapshotInput

source§

fn clone(&self) -> RestoreDbClusterFromSnapshotInput

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 RestoreDbClusterFromSnapshotInput

source§

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

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

impl PartialEq for RestoreDbClusterFromSnapshotInput

source§

fn eq(&self, other: &RestoreDbClusterFromSnapshotInput) -> 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 RestoreDbClusterFromSnapshotInput

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