#[non_exhaustive]pub struct CreateHsmInputBuilder { /* private fields */ }Expand description
A builder for CreateHsmInput.
Implementations§
source§impl CreateHsmInputBuilder
impl CreateHsmInputBuilder
sourcepub fn subnet_id(self, input: impl Into<String>) -> Self
pub fn subnet_id(self, input: impl Into<String>) -> Self
The identifier of the subnet in your VPC in which to place the HSM.
sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
The identifier of the subnet in your VPC in which to place the HSM.
sourcepub fn get_subnet_id(&self) -> &Option<String>
pub fn get_subnet_id(&self) -> &Option<String>
The identifier of the subnet in your VPC in which to place the HSM.
sourcepub fn ssh_key(self, input: impl Into<String>) -> Self
pub fn ssh_key(self, input: impl Into<String>) -> Self
The SSH public key to install on the HSM.
sourcepub fn set_ssh_key(self, input: Option<String>) -> Self
pub fn set_ssh_key(self, input: Option<String>) -> Self
The SSH public key to install on the HSM.
sourcepub fn get_ssh_key(&self) -> &Option<String>
pub fn get_ssh_key(&self) -> &Option<String>
The SSH public key to install on the HSM.
sourcepub fn eni_ip(self, input: impl Into<String>) -> Self
pub fn eni_ip(self, input: impl Into<String>) -> Self
The IP address to assign to the HSM's ENI.
If an IP address is not specified, an IP address will be randomly chosen from the CIDR range of the subnet.
sourcepub fn set_eni_ip(self, input: Option<String>) -> Self
pub fn set_eni_ip(self, input: Option<String>) -> Self
The IP address to assign to the HSM's ENI.
If an IP address is not specified, an IP address will be randomly chosen from the CIDR range of the subnet.
sourcepub fn get_eni_ip(&self) -> &Option<String>
pub fn get_eni_ip(&self) -> &Option<String>
The IP address to assign to the HSM's ENI.
If an IP address is not specified, an IP address will be randomly chosen from the CIDR range of the subnet.
sourcepub fn iam_role_arn(self, input: impl Into<String>) -> Self
pub fn iam_role_arn(self, input: impl Into<String>) -> Self
The ARN of an IAM role to enable the AWS CloudHSM service to allocate an ENI on your behalf.
sourcepub fn set_iam_role_arn(self, input: Option<String>) -> Self
pub fn set_iam_role_arn(self, input: Option<String>) -> Self
The ARN of an IAM role to enable the AWS CloudHSM service to allocate an ENI on your behalf.
sourcepub fn get_iam_role_arn(&self) -> &Option<String>
pub fn get_iam_role_arn(&self) -> &Option<String>
The ARN of an IAM role to enable the AWS CloudHSM service to allocate an ENI on your behalf.
sourcepub fn external_id(self, input: impl Into<String>) -> Self
pub fn external_id(self, input: impl Into<String>) -> Self
The external ID from IamRoleArn, if present.
sourcepub fn set_external_id(self, input: Option<String>) -> Self
pub fn set_external_id(self, input: Option<String>) -> Self
The external ID from IamRoleArn, if present.
sourcepub fn get_external_id(&self) -> &Option<String>
pub fn get_external_id(&self) -> &Option<String>
The external ID from IamRoleArn, if present.
sourcepub fn subscription_type(self, input: SubscriptionType) -> Self
pub fn subscription_type(self, input: SubscriptionType) -> Self
Specifies the type of subscription for the HSM.
-
PRODUCTION - The HSM is being used in a production environment.
-
TRIAL - The HSM is being used in a product trial.
sourcepub fn set_subscription_type(self, input: Option<SubscriptionType>) -> Self
pub fn set_subscription_type(self, input: Option<SubscriptionType>) -> Self
Specifies the type of subscription for the HSM.
-
PRODUCTION - The HSM is being used in a production environment.
-
TRIAL - The HSM is being used in a product trial.
sourcepub fn get_subscription_type(&self) -> &Option<SubscriptionType>
pub fn get_subscription_type(&self) -> &Option<SubscriptionType>
Specifies the type of subscription for the HSM.
-
PRODUCTION - The HSM is being used in a production environment.
-
TRIAL - The HSM is being used in a product trial.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A user-defined token to ensure idempotence. Subsequent calls to this operation with the same token will be ignored.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A user-defined token to ensure idempotence. Subsequent calls to this operation with the same token will be ignored.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A user-defined token to ensure idempotence. Subsequent calls to this operation with the same token will be ignored.
sourcepub fn syslog_ip(self, input: impl Into<String>) -> Self
pub fn syslog_ip(self, input: impl Into<String>) -> Self
The IP address for the syslog monitoring server. The AWS CloudHSM service only supports one syslog monitoring server.
sourcepub fn set_syslog_ip(self, input: Option<String>) -> Self
pub fn set_syslog_ip(self, input: Option<String>) -> Self
The IP address for the syslog monitoring server. The AWS CloudHSM service only supports one syslog monitoring server.
sourcepub fn get_syslog_ip(&self) -> &Option<String>
pub fn get_syslog_ip(&self) -> &Option<String>
The IP address for the syslog monitoring server. The AWS CloudHSM service only supports one syslog monitoring server.
sourcepub fn build(self) -> Result<CreateHsmInput, BuildError>
pub fn build(self) -> Result<CreateHsmInput, BuildError>
Consumes the builder and constructs a CreateHsmInput.
source§impl CreateHsmInputBuilder
impl CreateHsmInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateHsmOutput, SdkError<CreateHsmError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateHsmOutput, SdkError<CreateHsmError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateHsmInputBuilder
impl Clone for CreateHsmInputBuilder
source§fn clone(&self) -> CreateHsmInputBuilder
fn clone(&self) -> CreateHsmInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateHsmInputBuilder
impl Debug for CreateHsmInputBuilder
source§impl Default for CreateHsmInputBuilder
impl Default for CreateHsmInputBuilder
source§fn default() -> CreateHsmInputBuilder
fn default() -> CreateHsmInputBuilder
source§impl PartialEq<CreateHsmInputBuilder> for CreateHsmInputBuilder
impl PartialEq<CreateHsmInputBuilder> for CreateHsmInputBuilder
source§fn eq(&self, other: &CreateHsmInputBuilder) -> bool
fn eq(&self, other: &CreateHsmInputBuilder) -> bool
self and other values to be equal, and is used
by ==.