#[non_exhaustive]pub struct CreateClusterInput {
pub backup_retention_policy: Option<BackupRetentionPolicy>,
pub hsm_type: Option<String>,
pub source_backup_id: Option<String>,
pub subnet_ids: Option<Vec<String>>,
pub tag_list: Option<Vec<Tag>>,
pub mode: Option<ClusterMode>,
}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.backup_retention_policy: Option<BackupRetentionPolicy>A policy that defines how the service retains backups.
hsm_type: Option<String>The type of HSM to use in the cluster. The allowed values are hsm1.medium and hsm2m.medium.
source_backup_id: Option<String>The identifier (ID) or the Amazon Resource Name (ARN) of the cluster backup to restore. Use this value to restore the cluster from a backup instead of creating a new cluster. To find the backup ID or ARN, use DescribeBackups. If using a backup in another account, the full ARN must be supplied.
subnet_ids: Option<Vec<String>>The identifiers (IDs) of the subnets where you are creating the cluster. You must specify at least one subnet. If you specify multiple subnets, they must meet the following criteria:
-
All subnets must be in the same virtual private cloud (VPC).
-
You can specify only one subnet per Availability Zone.
tag_list: Option<Vec<Tag>>Tags to apply to the CloudHSM cluster during creation.
mode: Option<ClusterMode>The mode to use in the cluster. The allowed values are FIPS and NON_FIPS.
Implementations§
source§impl CreateClusterInput
impl CreateClusterInput
sourcepub fn backup_retention_policy(&self) -> Option<&BackupRetentionPolicy>
pub fn backup_retention_policy(&self) -> Option<&BackupRetentionPolicy>
A policy that defines how the service retains backups.
sourcepub fn hsm_type(&self) -> Option<&str>
pub fn hsm_type(&self) -> Option<&str>
The type of HSM to use in the cluster. The allowed values are hsm1.medium and hsm2m.medium.
sourcepub fn source_backup_id(&self) -> Option<&str>
pub fn source_backup_id(&self) -> Option<&str>
The identifier (ID) or the Amazon Resource Name (ARN) of the cluster backup to restore. Use this value to restore the cluster from a backup instead of creating a new cluster. To find the backup ID or ARN, use DescribeBackups. If using a backup in another account, the full ARN must be supplied.
sourcepub fn subnet_ids(&self) -> &[String]
pub fn subnet_ids(&self) -> &[String]
The identifiers (IDs) of the subnets where you are creating the cluster. You must specify at least one subnet. If you specify multiple subnets, they must meet the following criteria:
-
All subnets must be in the same virtual private cloud (VPC).
-
You can specify only one subnet per Availability Zone.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .subnet_ids.is_none().
sourcepub fn tag_list(&self) -> &[Tag]
pub fn tag_list(&self) -> &[Tag]
Tags to apply to the CloudHSM cluster during creation.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tag_list.is_none().
sourcepub fn mode(&self) -> Option<&ClusterMode>
pub fn mode(&self) -> Option<&ClusterMode>
The mode to use in the cluster. The allowed values are FIPS and NON_FIPS.
source§impl CreateClusterInput
impl CreateClusterInput
sourcepub fn builder() -> CreateClusterInputBuilder
pub fn builder() -> CreateClusterInputBuilder
Creates a new builder-style object to manufacture CreateClusterInput.
Trait Implementations§
source§impl Clone for CreateClusterInput
impl Clone for CreateClusterInput
source§fn clone(&self) -> CreateClusterInput
fn clone(&self) -> CreateClusterInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateClusterInput
impl Debug for CreateClusterInput
source§impl PartialEq for CreateClusterInput
impl PartialEq for CreateClusterInput
impl StructuralPartialEq for CreateClusterInput
Auto Trait Implementations§
impl Freeze for CreateClusterInput
impl RefUnwindSafe for CreateClusterInput
impl Send for CreateClusterInput
impl Sync for CreateClusterInput
impl Unpin for CreateClusterInput
impl UnwindSafe for CreateClusterInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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