Struct aws_sdk_acmpca::model::certificate_authority::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for CertificateAuthority
Implementations
sourceimpl Builder
impl Builder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
Amazon Resource Name (ARN) for your private certificate authority (CA). The format is 12345678-1234-1234-1234-123456789012
.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
Amazon Resource Name (ARN) for your private certificate authority (CA). The format is 12345678-1234-1234-1234-123456789012
.
sourcepub fn owner_account(self, input: impl Into<String>) -> Self
pub fn owner_account(self, input: impl Into<String>) -> Self
The AWS account ID that owns the certificate authority.
sourcepub fn set_owner_account(self, input: Option<String>) -> Self
pub fn set_owner_account(self, input: Option<String>) -> Self
The AWS account ID that owns the certificate authority.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
Date and time at which your private CA was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
Date and time at which your private CA was created.
sourcepub fn last_state_change_at(self, input: DateTime) -> Self
pub fn last_state_change_at(self, input: DateTime) -> Self
Date and time at which your private CA was last updated.
sourcepub fn set_last_state_change_at(self, input: Option<DateTime>) -> Self
pub fn set_last_state_change_at(self, input: Option<DateTime>) -> Self
Date and time at which your private CA was last updated.
sourcepub fn type(self, input: CertificateAuthorityType) -> Self
pub fn type(self, input: CertificateAuthorityType) -> Self
Type of your private CA.
sourcepub fn set_type(self, input: Option<CertificateAuthorityType>) -> Self
pub fn set_type(self, input: Option<CertificateAuthorityType>) -> Self
Type of your private CA.
sourcepub fn set_serial(self, input: Option<String>) -> Self
pub fn set_serial(self, input: Option<String>) -> Self
Serial number of your private CA.
sourcepub fn status(self, input: CertificateAuthorityStatus) -> Self
pub fn status(self, input: CertificateAuthorityStatus) -> Self
Status of your private CA.
sourcepub fn set_status(self, input: Option<CertificateAuthorityStatus>) -> Self
pub fn set_status(self, input: Option<CertificateAuthorityStatus>) -> Self
Status of your private CA.
sourcepub fn not_before(self, input: DateTime) -> Self
pub fn not_before(self, input: DateTime) -> Self
Date and time before which your private CA certificate is not valid.
sourcepub fn set_not_before(self, input: Option<DateTime>) -> Self
pub fn set_not_before(self, input: Option<DateTime>) -> Self
Date and time before which your private CA certificate is not valid.
sourcepub fn not_after(self, input: DateTime) -> Self
pub fn not_after(self, input: DateTime) -> Self
Date and time after which your private CA certificate is not valid.
sourcepub fn set_not_after(self, input: Option<DateTime>) -> Self
pub fn set_not_after(self, input: Option<DateTime>) -> Self
Date and time after which your private CA certificate is not valid.
sourcepub fn failure_reason(self, input: FailureReason) -> Self
pub fn failure_reason(self, input: FailureReason) -> Self
Reason the request to create your private CA failed.
sourcepub fn set_failure_reason(self, input: Option<FailureReason>) -> Self
pub fn set_failure_reason(self, input: Option<FailureReason>) -> Self
Reason the request to create your private CA failed.
Your private CA configuration.
Your private CA configuration.
sourcepub fn revocation_configuration(self, input: RevocationConfiguration) -> Self
pub fn revocation_configuration(self, input: RevocationConfiguration) -> Self
Information about the Online Certificate Status Protocol (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private CA.
sourcepub fn set_revocation_configuration(
self,
input: Option<RevocationConfiguration>
) -> Self
pub fn set_revocation_configuration(
self,
input: Option<RevocationConfiguration>
) -> Self
Information about the Online Certificate Status Protocol (OCSP) configuration or certificate revocation list (CRL) created and maintained by your private CA.
sourcepub fn restorable_until(self, input: DateTime) -> Self
pub fn restorable_until(self, input: DateTime) -> Self
The period during which a deleted CA can be restored. For more information, see the PermanentDeletionTimeInDays
parameter of the DeleteCertificateAuthorityRequest action.
sourcepub fn set_restorable_until(self, input: Option<DateTime>) -> Self
pub fn set_restorable_until(self, input: Option<DateTime>) -> Self
The period during which a deleted CA can be restored. For more information, see the PermanentDeletionTimeInDays
parameter of the DeleteCertificateAuthorityRequest action.
sourcepub fn key_storage_security_standard(
self,
input: KeyStorageSecurityStandard
) -> Self
pub fn key_storage_security_standard(
self,
input: KeyStorageSecurityStandard
) -> Self
Defines a cryptographic key management compliance standard used for handling CA keys.
Default: FIPS_140_2_LEVEL_3_OR_HIGHER
Note: AWS Region ap-northeast-3 supports only FIPS_140_2_LEVEL_2_OR_HIGHER. You must explicitly specify this parameter and value when creating a CA in that Region. Specifying a different value (or no value) results in an InvalidArgsException
with the message "A certificate authority cannot be created in this region with the specified security standard."
sourcepub fn set_key_storage_security_standard(
self,
input: Option<KeyStorageSecurityStandard>
) -> Self
pub fn set_key_storage_security_standard(
self,
input: Option<KeyStorageSecurityStandard>
) -> Self
Defines a cryptographic key management compliance standard used for handling CA keys.
Default: FIPS_140_2_LEVEL_3_OR_HIGHER
Note: AWS Region ap-northeast-3 supports only FIPS_140_2_LEVEL_2_OR_HIGHER. You must explicitly specify this parameter and value when creating a CA in that Region. Specifying a different value (or no value) results in an InvalidArgsException
with the message "A certificate authority cannot be created in this region with the specified security standard."
sourcepub fn build(self) -> CertificateAuthority
pub fn build(self) -> CertificateAuthority
Consumes the builder and constructs a CertificateAuthority
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more