#[non_exhaustive]pub struct CreateCustomKeyStoreInputBuilder { /* private fields */ }
Expand description
A builder for CreateCustomKeyStoreInput
.
Implementations§
Source§impl CreateCustomKeyStoreInputBuilder
impl CreateCustomKeyStoreInputBuilder
Sourcepub fn custom_key_store_name(self, input: impl Into<String>) -> Self
pub fn custom_key_store_name(self, input: impl Into<String>) -> Self
Specifies a friendly name for the custom key store. The name must be unique in your Amazon Web Services account and Region. This parameter is required for all custom key stores.
Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Sourcepub fn set_custom_key_store_name(self, input: Option<String>) -> Self
pub fn set_custom_key_store_name(self, input: Option<String>) -> Self
Specifies a friendly name for the custom key store. The name must be unique in your Amazon Web Services account and Region. This parameter is required for all custom key stores.
Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Sourcepub fn get_custom_key_store_name(&self) -> &Option<String>
pub fn get_custom_key_store_name(&self) -> &Option<String>
Specifies a friendly name for the custom key store. The name must be unique in your Amazon Web Services account and Region. This parameter is required for all custom key stores.
Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Sourcepub fn cloud_hsm_cluster_id(self, input: impl Into<String>) -> Self
pub fn cloud_hsm_cluster_id(self, input: impl Into<String>) -> Self
Identifies the CloudHSM cluster for an CloudHSM key store. This parameter is required for custom key stores with CustomKeyStoreType
of AWS_CLOUDHSM
.
Enter the cluster ID of any active CloudHSM cluster that is not already associated with a custom key store. To find the cluster ID, use the DescribeClusters operation.
Sourcepub fn set_cloud_hsm_cluster_id(self, input: Option<String>) -> Self
pub fn set_cloud_hsm_cluster_id(self, input: Option<String>) -> Self
Identifies the CloudHSM cluster for an CloudHSM key store. This parameter is required for custom key stores with CustomKeyStoreType
of AWS_CLOUDHSM
.
Enter the cluster ID of any active CloudHSM cluster that is not already associated with a custom key store. To find the cluster ID, use the DescribeClusters operation.
Sourcepub fn get_cloud_hsm_cluster_id(&self) -> &Option<String>
pub fn get_cloud_hsm_cluster_id(&self) -> &Option<String>
Identifies the CloudHSM cluster for an CloudHSM key store. This parameter is required for custom key stores with CustomKeyStoreType
of AWS_CLOUDHSM
.
Enter the cluster ID of any active CloudHSM cluster that is not already associated with a custom key store. To find the cluster ID, use the DescribeClusters operation.
Sourcepub fn trust_anchor_certificate(self, input: impl Into<String>) -> Self
pub fn trust_anchor_certificate(self, input: impl Into<String>) -> Self
Specifies the certificate for an CloudHSM key store. This parameter is required for custom key stores with a CustomKeyStoreType
of AWS_CLOUDHSM
.
Enter the content of the trust anchor certificate for the CloudHSM cluster. This is the content of the customerCA.crt
file that you created when you initialized the cluster.
Sourcepub fn set_trust_anchor_certificate(self, input: Option<String>) -> Self
pub fn set_trust_anchor_certificate(self, input: Option<String>) -> Self
Specifies the certificate for an CloudHSM key store. This parameter is required for custom key stores with a CustomKeyStoreType
of AWS_CLOUDHSM
.
Enter the content of the trust anchor certificate for the CloudHSM cluster. This is the content of the customerCA.crt
file that you created when you initialized the cluster.
Sourcepub fn get_trust_anchor_certificate(&self) -> &Option<String>
pub fn get_trust_anchor_certificate(&self) -> &Option<String>
Specifies the certificate for an CloudHSM key store. This parameter is required for custom key stores with a CustomKeyStoreType
of AWS_CLOUDHSM
.
Enter the content of the trust anchor certificate for the CloudHSM cluster. This is the content of the customerCA.crt
file that you created when you initialized the cluster.
Sourcepub fn key_store_password(self, input: impl Into<String>) -> Self
pub fn key_store_password(self, input: impl Into<String>) -> Self
Specifies the kmsuser
password for an CloudHSM key store. This parameter is required for custom key stores with a CustomKeyStoreType
of AWS_CLOUDHSM
.
Enter the password of the kmsuser
crypto user (CU) account in the specified CloudHSM cluster. KMS logs into the cluster as this user to manage key material on your behalf.
The password must be a string of 7 to 32 characters. Its value is case sensitive.
This parameter tells KMS the kmsuser
account password; it does not change the password in the CloudHSM cluster.
Sourcepub fn set_key_store_password(self, input: Option<String>) -> Self
pub fn set_key_store_password(self, input: Option<String>) -> Self
Specifies the kmsuser
password for an CloudHSM key store. This parameter is required for custom key stores with a CustomKeyStoreType
of AWS_CLOUDHSM
.
Enter the password of the kmsuser
crypto user (CU) account in the specified CloudHSM cluster. KMS logs into the cluster as this user to manage key material on your behalf.
The password must be a string of 7 to 32 characters. Its value is case sensitive.
This parameter tells KMS the kmsuser
account password; it does not change the password in the CloudHSM cluster.
Sourcepub fn get_key_store_password(&self) -> &Option<String>
pub fn get_key_store_password(&self) -> &Option<String>
Specifies the kmsuser
password for an CloudHSM key store. This parameter is required for custom key stores with a CustomKeyStoreType
of AWS_CLOUDHSM
.
Enter the password of the kmsuser
crypto user (CU) account in the specified CloudHSM cluster. KMS logs into the cluster as this user to manage key material on your behalf.
The password must be a string of 7 to 32 characters. Its value is case sensitive.
This parameter tells KMS the kmsuser
account password; it does not change the password in the CloudHSM cluster.
Sourcepub fn custom_key_store_type(self, input: CustomKeyStoreType) -> Self
pub fn custom_key_store_type(self, input: CustomKeyStoreType) -> Self
Specifies the type of custom key store. The default value is AWS_CLOUDHSM
.
For a custom key store backed by an CloudHSM cluster, omit the parameter or enter AWS_CLOUDHSM
. For a custom key store backed by an external key manager outside of Amazon Web Services, enter EXTERNAL_KEY_STORE
. You cannot change this property after the key store is created.
Sourcepub fn set_custom_key_store_type(
self,
input: Option<CustomKeyStoreType>,
) -> Self
pub fn set_custom_key_store_type( self, input: Option<CustomKeyStoreType>, ) -> Self
Specifies the type of custom key store. The default value is AWS_CLOUDHSM
.
For a custom key store backed by an CloudHSM cluster, omit the parameter or enter AWS_CLOUDHSM
. For a custom key store backed by an external key manager outside of Amazon Web Services, enter EXTERNAL_KEY_STORE
. You cannot change this property after the key store is created.
Sourcepub fn get_custom_key_store_type(&self) -> &Option<CustomKeyStoreType>
pub fn get_custom_key_store_type(&self) -> &Option<CustomKeyStoreType>
Specifies the type of custom key store. The default value is AWS_CLOUDHSM
.
For a custom key store backed by an CloudHSM cluster, omit the parameter or enter AWS_CLOUDHSM
. For a custom key store backed by an external key manager outside of Amazon Web Services, enter EXTERNAL_KEY_STORE
. You cannot change this property after the key store is created.
Sourcepub fn xks_proxy_uri_endpoint(self, input: impl Into<String>) -> Self
pub fn xks_proxy_uri_endpoint(self, input: impl Into<String>) -> Self
Specifies the endpoint that KMS uses to send requests to the external key store proxy (XKS proxy). This parameter is required for custom key stores with a CustomKeyStoreType
of EXTERNAL_KEY_STORE
.
The protocol must be HTTPS. KMS communicates on port 443. Do not specify the port in the XksProxyUriEndpoint
value.
For external key stores with XksProxyConnectivity
value of VPC_ENDPOINT_SERVICE
, specify https://
followed by the private DNS name of the VPC endpoint service.
For external key stores with PUBLIC_ENDPOINT
connectivity, this endpoint must be reachable before you create the custom key store. KMS connects to the external key store proxy while creating the custom key store. For external key stores with VPC_ENDPOINT_SERVICE
connectivity, KMS connects when you call the ConnectCustomKeyStore
operation.
The value of this parameter must begin with https://
. The remainder can contain upper and lower case letters (A-Z and a-z), numbers (0-9), dots (.
), and hyphens (-
). Additional slashes (/
and \
) are not permitted.
Uniqueness requirements:
-
The combined
XksProxyUriEndpoint
andXksProxyUriPath
values must be unique in the Amazon Web Services account and Region. -
An external key store with
PUBLIC_ENDPOINT
connectivity cannot use the sameXksProxyUriEndpoint
value as an external key store withVPC_ENDPOINT_SERVICE
connectivity in this Amazon Web Services Region. -
Each external key store with
VPC_ENDPOINT_SERVICE
connectivity must have its own private DNS name. TheXksProxyUriEndpoint
value for external key stores withVPC_ENDPOINT_SERVICE
connectivity (private DNS name) must be unique in the Amazon Web Services account and Region.
Sourcepub fn set_xks_proxy_uri_endpoint(self, input: Option<String>) -> Self
pub fn set_xks_proxy_uri_endpoint(self, input: Option<String>) -> Self
Specifies the endpoint that KMS uses to send requests to the external key store proxy (XKS proxy). This parameter is required for custom key stores with a CustomKeyStoreType
of EXTERNAL_KEY_STORE
.
The protocol must be HTTPS. KMS communicates on port 443. Do not specify the port in the XksProxyUriEndpoint
value.
For external key stores with XksProxyConnectivity
value of VPC_ENDPOINT_SERVICE
, specify https://
followed by the private DNS name of the VPC endpoint service.
For external key stores with PUBLIC_ENDPOINT
connectivity, this endpoint must be reachable before you create the custom key store. KMS connects to the external key store proxy while creating the custom key store. For external key stores with VPC_ENDPOINT_SERVICE
connectivity, KMS connects when you call the ConnectCustomKeyStore
operation.
The value of this parameter must begin with https://
. The remainder can contain upper and lower case letters (A-Z and a-z), numbers (0-9), dots (.
), and hyphens (-
). Additional slashes (/
and \
) are not permitted.
Uniqueness requirements:
-
The combined
XksProxyUriEndpoint
andXksProxyUriPath
values must be unique in the Amazon Web Services account and Region. -
An external key store with
PUBLIC_ENDPOINT
connectivity cannot use the sameXksProxyUriEndpoint
value as an external key store withVPC_ENDPOINT_SERVICE
connectivity in this Amazon Web Services Region. -
Each external key store with
VPC_ENDPOINT_SERVICE
connectivity must have its own private DNS name. TheXksProxyUriEndpoint
value for external key stores withVPC_ENDPOINT_SERVICE
connectivity (private DNS name) must be unique in the Amazon Web Services account and Region.
Sourcepub fn get_xks_proxy_uri_endpoint(&self) -> &Option<String>
pub fn get_xks_proxy_uri_endpoint(&self) -> &Option<String>
Specifies the endpoint that KMS uses to send requests to the external key store proxy (XKS proxy). This parameter is required for custom key stores with a CustomKeyStoreType
of EXTERNAL_KEY_STORE
.
The protocol must be HTTPS. KMS communicates on port 443. Do not specify the port in the XksProxyUriEndpoint
value.
For external key stores with XksProxyConnectivity
value of VPC_ENDPOINT_SERVICE
, specify https://
followed by the private DNS name of the VPC endpoint service.
For external key stores with PUBLIC_ENDPOINT
connectivity, this endpoint must be reachable before you create the custom key store. KMS connects to the external key store proxy while creating the custom key store. For external key stores with VPC_ENDPOINT_SERVICE
connectivity, KMS connects when you call the ConnectCustomKeyStore
operation.
The value of this parameter must begin with https://
. The remainder can contain upper and lower case letters (A-Z and a-z), numbers (0-9), dots (.
), and hyphens (-
). Additional slashes (/
and \
) are not permitted.
Uniqueness requirements:
-
The combined
XksProxyUriEndpoint
andXksProxyUriPath
values must be unique in the Amazon Web Services account and Region. -
An external key store with
PUBLIC_ENDPOINT
connectivity cannot use the sameXksProxyUriEndpoint
value as an external key store withVPC_ENDPOINT_SERVICE
connectivity in this Amazon Web Services Region. -
Each external key store with
VPC_ENDPOINT_SERVICE
connectivity must have its own private DNS name. TheXksProxyUriEndpoint
value for external key stores withVPC_ENDPOINT_SERVICE
connectivity (private DNS name) must be unique in the Amazon Web Services account and Region.
Sourcepub fn xks_proxy_uri_path(self, input: impl Into<String>) -> Self
pub fn xks_proxy_uri_path(self, input: impl Into<String>) -> Self
Specifies the base path to the proxy APIs for this external key store. To find this value, see the documentation for your external key store proxy. This parameter is required for all custom key stores with a CustomKeyStoreType
of EXTERNAL_KEY_STORE
.
The value must start with /
and must end with /kms/xks/v1
where v1
represents the version of the KMS external key store proxy API. This path can include an optional prefix between the required elements such as /prefix/kms/xks/v1
.
Uniqueness requirements:
-
The combined
XksProxyUriEndpoint
andXksProxyUriPath
values must be unique in the Amazon Web Services account and Region.
Sourcepub fn set_xks_proxy_uri_path(self, input: Option<String>) -> Self
pub fn set_xks_proxy_uri_path(self, input: Option<String>) -> Self
Specifies the base path to the proxy APIs for this external key store. To find this value, see the documentation for your external key store proxy. This parameter is required for all custom key stores with a CustomKeyStoreType
of EXTERNAL_KEY_STORE
.
The value must start with /
and must end with /kms/xks/v1
where v1
represents the version of the KMS external key store proxy API. This path can include an optional prefix between the required elements such as /prefix/kms/xks/v1
.
Uniqueness requirements:
-
The combined
XksProxyUriEndpoint
andXksProxyUriPath
values must be unique in the Amazon Web Services account and Region.
Sourcepub fn get_xks_proxy_uri_path(&self) -> &Option<String>
pub fn get_xks_proxy_uri_path(&self) -> &Option<String>
Specifies the base path to the proxy APIs for this external key store. To find this value, see the documentation for your external key store proxy. This parameter is required for all custom key stores with a CustomKeyStoreType
of EXTERNAL_KEY_STORE
.
The value must start with /
and must end with /kms/xks/v1
where v1
represents the version of the KMS external key store proxy API. This path can include an optional prefix between the required elements such as /prefix/kms/xks/v1
.
Uniqueness requirements:
-
The combined
XksProxyUriEndpoint
andXksProxyUriPath
values must be unique in the Amazon Web Services account and Region.
Sourcepub fn xks_proxy_vpc_endpoint_service_name(
self,
input: impl Into<String>,
) -> Self
pub fn xks_proxy_vpc_endpoint_service_name( self, input: impl Into<String>, ) -> Self
Specifies the name of the Amazon VPC endpoint service for interface endpoints that is used to communicate with your external key store proxy (XKS proxy). This parameter is required when the value of CustomKeyStoreType
is EXTERNAL_KEY_STORE
and the value of XksProxyConnectivity
is VPC_ENDPOINT_SERVICE
.
The Amazon VPC endpoint service must fulfill all requirements for use with an external key store.
Uniqueness requirements:
-
External key stores with
VPC_ENDPOINT_SERVICE
connectivity can share an Amazon VPC, but each external key store must have its own VPC endpoint service and private DNS name.
Sourcepub fn set_xks_proxy_vpc_endpoint_service_name(
self,
input: Option<String>,
) -> Self
pub fn set_xks_proxy_vpc_endpoint_service_name( self, input: Option<String>, ) -> Self
Specifies the name of the Amazon VPC endpoint service for interface endpoints that is used to communicate with your external key store proxy (XKS proxy). This parameter is required when the value of CustomKeyStoreType
is EXTERNAL_KEY_STORE
and the value of XksProxyConnectivity
is VPC_ENDPOINT_SERVICE
.
The Amazon VPC endpoint service must fulfill all requirements for use with an external key store.
Uniqueness requirements:
-
External key stores with
VPC_ENDPOINT_SERVICE
connectivity can share an Amazon VPC, but each external key store must have its own VPC endpoint service and private DNS name.
Sourcepub fn get_xks_proxy_vpc_endpoint_service_name(&self) -> &Option<String>
pub fn get_xks_proxy_vpc_endpoint_service_name(&self) -> &Option<String>
Specifies the name of the Amazon VPC endpoint service for interface endpoints that is used to communicate with your external key store proxy (XKS proxy). This parameter is required when the value of CustomKeyStoreType
is EXTERNAL_KEY_STORE
and the value of XksProxyConnectivity
is VPC_ENDPOINT_SERVICE
.
The Amazon VPC endpoint service must fulfill all requirements for use with an external key store.
Uniqueness requirements:
-
External key stores with
VPC_ENDPOINT_SERVICE
connectivity can share an Amazon VPC, but each external key store must have its own VPC endpoint service and private DNS name.
Sourcepub fn xks_proxy_authentication_credential(
self,
input: XksProxyAuthenticationCredentialType,
) -> Self
pub fn xks_proxy_authentication_credential( self, input: XksProxyAuthenticationCredentialType, ) -> Self
Specifies an authentication credential for the external key store proxy (XKS proxy). This parameter is required for all custom key stores with a CustomKeyStoreType
of EXTERNAL_KEY_STORE
.
The XksProxyAuthenticationCredential
has two required elements: RawSecretAccessKey
, a secret key, and AccessKeyId
, a unique identifier for the RawSecretAccessKey
. For character requirements, see XksProxyAuthenticationCredentialType.
KMS uses this authentication credential to sign requests to the external key store proxy on your behalf. This credential is unrelated to Identity and Access Management (IAM) and Amazon Web Services credentials.
This parameter doesn't set or change the authentication credentials on the XKS proxy. It just tells KMS the credential that you established on your external key store proxy. If you rotate your proxy authentication credential, use the UpdateCustomKeyStore
operation to provide the new credential to KMS.
Sourcepub fn set_xks_proxy_authentication_credential(
self,
input: Option<XksProxyAuthenticationCredentialType>,
) -> Self
pub fn set_xks_proxy_authentication_credential( self, input: Option<XksProxyAuthenticationCredentialType>, ) -> Self
Specifies an authentication credential for the external key store proxy (XKS proxy). This parameter is required for all custom key stores with a CustomKeyStoreType
of EXTERNAL_KEY_STORE
.
The XksProxyAuthenticationCredential
has two required elements: RawSecretAccessKey
, a secret key, and AccessKeyId
, a unique identifier for the RawSecretAccessKey
. For character requirements, see XksProxyAuthenticationCredentialType.
KMS uses this authentication credential to sign requests to the external key store proxy on your behalf. This credential is unrelated to Identity and Access Management (IAM) and Amazon Web Services credentials.
This parameter doesn't set or change the authentication credentials on the XKS proxy. It just tells KMS the credential that you established on your external key store proxy. If you rotate your proxy authentication credential, use the UpdateCustomKeyStore
operation to provide the new credential to KMS.
Sourcepub fn get_xks_proxy_authentication_credential(
&self,
) -> &Option<XksProxyAuthenticationCredentialType>
pub fn get_xks_proxy_authentication_credential( &self, ) -> &Option<XksProxyAuthenticationCredentialType>
Specifies an authentication credential for the external key store proxy (XKS proxy). This parameter is required for all custom key stores with a CustomKeyStoreType
of EXTERNAL_KEY_STORE
.
The XksProxyAuthenticationCredential
has two required elements: RawSecretAccessKey
, a secret key, and AccessKeyId
, a unique identifier for the RawSecretAccessKey
. For character requirements, see XksProxyAuthenticationCredentialType.
KMS uses this authentication credential to sign requests to the external key store proxy on your behalf. This credential is unrelated to Identity and Access Management (IAM) and Amazon Web Services credentials.
This parameter doesn't set or change the authentication credentials on the XKS proxy. It just tells KMS the credential that you established on your external key store proxy. If you rotate your proxy authentication credential, use the UpdateCustomKeyStore
operation to provide the new credential to KMS.
Sourcepub fn xks_proxy_connectivity(self, input: XksProxyConnectivityType) -> Self
pub fn xks_proxy_connectivity(self, input: XksProxyConnectivityType) -> Self
Indicates how KMS communicates with the external key store proxy. This parameter is required for custom key stores with a CustomKeyStoreType
of EXTERNAL_KEY_STORE
.
If the external key store proxy uses a public endpoint, specify PUBLIC_ENDPOINT
. If the external key store proxy uses a Amazon VPC endpoint service for communication with KMS, specify VPC_ENDPOINT_SERVICE
. For help making this choice, see Choosing a connectivity option in the Key Management Service Developer Guide.
An Amazon VPC endpoint service keeps your communication with KMS in a private address space entirely within Amazon Web Services, but it requires more configuration, including establishing a Amazon VPC with multiple subnets, a VPC endpoint service, a network load balancer, and a verified private DNS name. A public endpoint is simpler to set up, but it might be slower and might not fulfill your security requirements. You might consider testing with a public endpoint, and then establishing a VPC endpoint service for production tasks. Note that this choice does not determine the location of the external key store proxy. Even if you choose a VPC endpoint service, the proxy can be hosted within the VPC or outside of Amazon Web Services such as in your corporate data center.
Sourcepub fn set_xks_proxy_connectivity(
self,
input: Option<XksProxyConnectivityType>,
) -> Self
pub fn set_xks_proxy_connectivity( self, input: Option<XksProxyConnectivityType>, ) -> Self
Indicates how KMS communicates with the external key store proxy. This parameter is required for custom key stores with a CustomKeyStoreType
of EXTERNAL_KEY_STORE
.
If the external key store proxy uses a public endpoint, specify PUBLIC_ENDPOINT
. If the external key store proxy uses a Amazon VPC endpoint service for communication with KMS, specify VPC_ENDPOINT_SERVICE
. For help making this choice, see Choosing a connectivity option in the Key Management Service Developer Guide.
An Amazon VPC endpoint service keeps your communication with KMS in a private address space entirely within Amazon Web Services, but it requires more configuration, including establishing a Amazon VPC with multiple subnets, a VPC endpoint service, a network load balancer, and a verified private DNS name. A public endpoint is simpler to set up, but it might be slower and might not fulfill your security requirements. You might consider testing with a public endpoint, and then establishing a VPC endpoint service for production tasks. Note that this choice does not determine the location of the external key store proxy. Even if you choose a VPC endpoint service, the proxy can be hosted within the VPC or outside of Amazon Web Services such as in your corporate data center.
Sourcepub fn get_xks_proxy_connectivity(&self) -> &Option<XksProxyConnectivityType>
pub fn get_xks_proxy_connectivity(&self) -> &Option<XksProxyConnectivityType>
Indicates how KMS communicates with the external key store proxy. This parameter is required for custom key stores with a CustomKeyStoreType
of EXTERNAL_KEY_STORE
.
If the external key store proxy uses a public endpoint, specify PUBLIC_ENDPOINT
. If the external key store proxy uses a Amazon VPC endpoint service for communication with KMS, specify VPC_ENDPOINT_SERVICE
. For help making this choice, see Choosing a connectivity option in the Key Management Service Developer Guide.
An Amazon VPC endpoint service keeps your communication with KMS in a private address space entirely within Amazon Web Services, but it requires more configuration, including establishing a Amazon VPC with multiple subnets, a VPC endpoint service, a network load balancer, and a verified private DNS name. A public endpoint is simpler to set up, but it might be slower and might not fulfill your security requirements. You might consider testing with a public endpoint, and then establishing a VPC endpoint service for production tasks. Note that this choice does not determine the location of the external key store proxy. Even if you choose a VPC endpoint service, the proxy can be hosted within the VPC or outside of Amazon Web Services such as in your corporate data center.
Sourcepub fn build(self) -> Result<CreateCustomKeyStoreInput, BuildError>
pub fn build(self) -> Result<CreateCustomKeyStoreInput, BuildError>
Consumes the builder and constructs a CreateCustomKeyStoreInput
.
Source§impl CreateCustomKeyStoreInputBuilder
impl CreateCustomKeyStoreInputBuilder
Sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateCustomKeyStoreOutput, SdkError<CreateCustomKeyStoreError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateCustomKeyStoreOutput, SdkError<CreateCustomKeyStoreError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
Source§impl Clone for CreateCustomKeyStoreInputBuilder
impl Clone for CreateCustomKeyStoreInputBuilder
Source§fn clone(&self) -> CreateCustomKeyStoreInputBuilder
fn clone(&self) -> CreateCustomKeyStoreInputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for CreateCustomKeyStoreInputBuilder
impl Default for CreateCustomKeyStoreInputBuilder
Source§fn default() -> CreateCustomKeyStoreInputBuilder
fn default() -> CreateCustomKeyStoreInputBuilder
Source§impl PartialEq for CreateCustomKeyStoreInputBuilder
impl PartialEq for CreateCustomKeyStoreInputBuilder
Source§fn eq(&self, other: &CreateCustomKeyStoreInputBuilder) -> bool
fn eq(&self, other: &CreateCustomKeyStoreInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateCustomKeyStoreInputBuilder
Auto Trait Implementations§
impl Freeze for CreateCustomKeyStoreInputBuilder
impl RefUnwindSafe for CreateCustomKeyStoreInputBuilder
impl Send for CreateCustomKeyStoreInputBuilder
impl Sync for CreateCustomKeyStoreInputBuilder
impl Unpin for CreateCustomKeyStoreInputBuilder
impl UnwindSafe for CreateCustomKeyStoreInputBuilder
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.bright_black());
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.bright_green());
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightYellow
.
§Example
println!("{}", value.bright_yellow());
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightMagenta
.
§Example
println!("{}", value.bright_magenta());
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightWhite
.
§Example
println!("{}", value.bright_white());
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.on_bright_black());
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.on_bright_green());
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightYellow
.
§Example
println!("{}", value.on_bright_yellow());
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightBlue
.
§Example
println!("{}", value.on_bright_blue());
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightMagenta
.
§Example
println!("{}", value.on_bright_magenta());
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightCyan
.
§Example
println!("{}", value.on_bright_cyan());
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightWhite
.
§Example
println!("{}", value.on_bright_white());
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn underline(&self) -> Painted<&T>
fn underline(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::Underline
.
§Example
println!("{}", value.underline());
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::RapidBlink
.
§Example
println!("{}", value.rapid_blink());
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);