#[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>>,
}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. Currently the only allowed value is hsm1.medium.
source_backup_id: Option<String>The identifier (ID) 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, use DescribeBackups.
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.
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. Currently the only allowed value is hsm1.medium.
sourcepub fn source_backup_id(&self) -> Option<&str>
pub fn source_backup_id(&self) -> Option<&str>
The identifier (ID) 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, use DescribeBackups.
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().
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
source§fn eq(&self, other: &CreateClusterInput) -> bool
fn eq(&self, other: &CreateClusterInput) -> bool
self and other values to be equal, and is used
by ==.