Struct aws_sdk_acm::model::certificate_detail::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for CertificateDetail
Implementations
sourceimpl Builder
impl Builder
sourcepub fn certificate_arn(self, input: impl Into<String>) -> Self
pub fn certificate_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn set_certificate_arn(self, input: Option<String>) -> Self
pub fn set_certificate_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
The fully qualified domain name for the certificate, such as www.example.com or example.com.
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
The fully qualified domain name for the certificate, such as www.example.com or example.com.
sourcepub fn subject_alternative_names(self, input: impl Into<String>) -> Self
pub fn subject_alternative_names(self, input: impl Into<String>) -> Self
Appends an item to subject_alternative_names
.
To override the contents of this collection use set_subject_alternative_names
.
One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.
sourcepub fn set_subject_alternative_names(self, input: Option<Vec<String>>) -> Self
pub fn set_subject_alternative_names(self, input: Option<Vec<String>>) -> Self
One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.
sourcepub fn domain_validation_options(self, input: DomainValidation) -> Self
pub fn domain_validation_options(self, input: DomainValidation) -> Self
Appends an item to domain_validation_options
.
To override the contents of this collection use set_domain_validation_options
.
Contains information about the initial validation of each domain name that occurs as a result of the RequestCertificate
request. This field exists only when the certificate type is AMAZON_ISSUED
.
sourcepub fn set_domain_validation_options(
self,
input: Option<Vec<DomainValidation>>
) -> Self
pub fn set_domain_validation_options(
self,
input: Option<Vec<DomainValidation>>
) -> Self
Contains information about the initial validation of each domain name that occurs as a result of the RequestCertificate
request. This field exists only when the certificate type is AMAZON_ISSUED
.
sourcepub fn set_serial(self, input: Option<String>) -> Self
pub fn set_serial(self, input: Option<String>) -> Self
The serial number of the certificate.
sourcepub fn subject(self, input: impl Into<String>) -> Self
pub fn subject(self, input: impl Into<String>) -> Self
The name of the entity that is associated with the public key contained in the certificate.
sourcepub fn set_subject(self, input: Option<String>) -> Self
pub fn set_subject(self, input: Option<String>) -> Self
The name of the entity that is associated with the public key contained in the certificate.
sourcepub fn issuer(self, input: impl Into<String>) -> Self
pub fn issuer(self, input: impl Into<String>) -> Self
The name of the certificate authority that issued and signed the certificate.
sourcepub fn set_issuer(self, input: Option<String>) -> Self
pub fn set_issuer(self, input: Option<String>) -> Self
The name of the certificate authority that issued and signed the certificate.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time at which the certificate was requested.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time at which the certificate was requested.
sourcepub fn issued_at(self, input: DateTime) -> Self
pub fn issued_at(self, input: DateTime) -> Self
The time at which the certificate was issued. This value exists only when the certificate type is AMAZON_ISSUED
.
sourcepub fn set_issued_at(self, input: Option<DateTime>) -> Self
pub fn set_issued_at(self, input: Option<DateTime>) -> Self
The time at which the certificate was issued. This value exists only when the certificate type is AMAZON_ISSUED
.
sourcepub fn imported_at(self, input: DateTime) -> Self
pub fn imported_at(self, input: DateTime) -> Self
The date and time at which the certificate was imported. This value exists only when the certificate type is IMPORTED
.
sourcepub fn set_imported_at(self, input: Option<DateTime>) -> Self
pub fn set_imported_at(self, input: Option<DateTime>) -> Self
The date and time at which the certificate was imported. This value exists only when the certificate type is IMPORTED
.
sourcepub fn status(self, input: CertificateStatus) -> Self
pub fn status(self, input: CertificateStatus) -> Self
The status of the certificate.
sourcepub fn set_status(self, input: Option<CertificateStatus>) -> Self
pub fn set_status(self, input: Option<CertificateStatus>) -> Self
The status of the certificate.
sourcepub fn revoked_at(self, input: DateTime) -> Self
pub fn revoked_at(self, input: DateTime) -> Self
The time at which the certificate was revoked. This value exists only when the certificate status is REVOKED
.
sourcepub fn set_revoked_at(self, input: Option<DateTime>) -> Self
pub fn set_revoked_at(self, input: Option<DateTime>) -> Self
The time at which the certificate was revoked. This value exists only when the certificate status is REVOKED
.
sourcepub fn revocation_reason(self, input: RevocationReason) -> Self
pub fn revocation_reason(self, input: RevocationReason) -> Self
The reason the certificate was revoked. This value exists only when the certificate status is REVOKED
.
sourcepub fn set_revocation_reason(self, input: Option<RevocationReason>) -> Self
pub fn set_revocation_reason(self, input: Option<RevocationReason>) -> Self
The reason the certificate was revoked. This value exists only when the certificate status is REVOKED
.
sourcepub fn not_before(self, input: DateTime) -> Self
pub fn not_before(self, input: DateTime) -> Self
The time before which the certificate is not valid.
sourcepub fn set_not_before(self, input: Option<DateTime>) -> Self
pub fn set_not_before(self, input: Option<DateTime>) -> Self
The time before which the certificate is not valid.
sourcepub fn not_after(self, input: DateTime) -> Self
pub fn not_after(self, input: DateTime) -> Self
The time after which the certificate is not valid.
sourcepub fn set_not_after(self, input: Option<DateTime>) -> Self
pub fn set_not_after(self, input: Option<DateTime>) -> Self
The time after which the certificate is not valid.
sourcepub fn key_algorithm(self, input: KeyAlgorithm) -> Self
pub fn key_algorithm(self, input: KeyAlgorithm) -> Self
The algorithm that was used to generate the public-private key pair.
sourcepub fn set_key_algorithm(self, input: Option<KeyAlgorithm>) -> Self
pub fn set_key_algorithm(self, input: Option<KeyAlgorithm>) -> Self
The algorithm that was used to generate the public-private key pair.
sourcepub fn signature_algorithm(self, input: impl Into<String>) -> Self
pub fn signature_algorithm(self, input: impl Into<String>) -> Self
The algorithm that was used to sign the certificate.
sourcepub fn set_signature_algorithm(self, input: Option<String>) -> Self
pub fn set_signature_algorithm(self, input: Option<String>) -> Self
The algorithm that was used to sign the certificate.
sourcepub fn in_use_by(self, input: impl Into<String>) -> Self
pub fn in_use_by(self, input: impl Into<String>) -> Self
Appends an item to in_use_by
.
To override the contents of this collection use set_in_use_by
.
A list of ARNs for the Amazon Web Services resources that are using the certificate. A certificate can be used by multiple Amazon Web Services resources.
sourcepub fn set_in_use_by(self, input: Option<Vec<String>>) -> Self
pub fn set_in_use_by(self, input: Option<Vec<String>>) -> Self
A list of ARNs for the Amazon Web Services resources that are using the certificate. A certificate can be used by multiple Amazon Web Services resources.
sourcepub fn failure_reason(self, input: FailureReason) -> Self
pub fn failure_reason(self, input: FailureReason) -> Self
The reason the certificate request failed. This value exists only when the certificate status is FAILED
. For more information, see Certificate Request Failed in the Amazon Web Services Certificate Manager User Guide.
sourcepub fn set_failure_reason(self, input: Option<FailureReason>) -> Self
pub fn set_failure_reason(self, input: Option<FailureReason>) -> Self
The reason the certificate request failed. This value exists only when the certificate status is FAILED
. For more information, see Certificate Request Failed in the Amazon Web Services Certificate Manager User Guide.
sourcepub fn type(self, input: CertificateType) -> Self
pub fn type(self, input: CertificateType) -> Self
The source of the certificate. For certificates provided by ACM, this value is AMAZON_ISSUED
. For certificates that you imported with ImportCertificate
, this value is IMPORTED
. ACM does not provide managed renewal for imported certificates. For more information about the differences between certificates that you import and those that ACM provides, see Importing Certificates in the Amazon Web Services Certificate Manager User Guide.
sourcepub fn set_type(self, input: Option<CertificateType>) -> Self
pub fn set_type(self, input: Option<CertificateType>) -> Self
The source of the certificate. For certificates provided by ACM, this value is AMAZON_ISSUED
. For certificates that you imported with ImportCertificate
, this value is IMPORTED
. ACM does not provide managed renewal for imported certificates. For more information about the differences between certificates that you import and those that ACM provides, see Importing Certificates in the Amazon Web Services Certificate Manager User Guide.
sourcepub fn renewal_summary(self, input: RenewalSummary) -> Self
pub fn renewal_summary(self, input: RenewalSummary) -> Self
Contains information about the status of ACM's managed renewal for the certificate. This field exists only when the certificate type is AMAZON_ISSUED
.
sourcepub fn set_renewal_summary(self, input: Option<RenewalSummary>) -> Self
pub fn set_renewal_summary(self, input: Option<RenewalSummary>) -> Self
Contains information about the status of ACM's managed renewal for the certificate. This field exists only when the certificate type is AMAZON_ISSUED
.
sourcepub fn key_usages(self, input: KeyUsage) -> Self
pub fn key_usages(self, input: KeyUsage) -> Self
Appends an item to key_usages
.
To override the contents of this collection use set_key_usages
.
A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
sourcepub fn set_key_usages(self, input: Option<Vec<KeyUsage>>) -> Self
pub fn set_key_usages(self, input: Option<Vec<KeyUsage>>) -> Self
A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
sourcepub fn extended_key_usages(self, input: ExtendedKeyUsage) -> Self
pub fn extended_key_usages(self, input: ExtendedKeyUsage) -> Self
Appends an item to extended_key_usages
.
To override the contents of this collection use set_extended_key_usages
.
Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).
sourcepub fn set_extended_key_usages(
self,
input: Option<Vec<ExtendedKeyUsage>>
) -> Self
pub fn set_extended_key_usages(
self,
input: Option<Vec<ExtendedKeyUsage>>
) -> Self
Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).
The Amazon Resource Name (ARN) of the ACM PCA private certificate authority (CA) that issued the certificate. This has the following format:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
The Amazon Resource Name (ARN) of the ACM PCA private certificate authority (CA) that issued the certificate. This has the following format:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
sourcepub fn renewal_eligibility(self, input: RenewalEligibility) -> Self
pub fn renewal_eligibility(self, input: RenewalEligibility) -> Self
Specifies whether the certificate is eligible for renewal. At this time, only exported private certificates can be renewed with the RenewCertificate
command.
sourcepub fn set_renewal_eligibility(self, input: Option<RenewalEligibility>) -> Self
pub fn set_renewal_eligibility(self, input: Option<RenewalEligibility>) -> Self
Specifies whether the certificate is eligible for renewal. At this time, only exported private certificates can be renewed with the RenewCertificate
command.
sourcepub fn options(self, input: CertificateOptions) -> Self
pub fn options(self, input: CertificateOptions) -> Self
Value that specifies whether to add the certificate to a transparency log. Certificate transparency makes it possible to detect SSL certificates that have been mistakenly or maliciously issued. A browser might respond to certificate that has not been logged by showing an error message. The logs are cryptographically secure.
sourcepub fn set_options(self, input: Option<CertificateOptions>) -> Self
pub fn set_options(self, input: Option<CertificateOptions>) -> Self
Value that specifies whether to add the certificate to a transparency log. Certificate transparency makes it possible to detect SSL certificates that have been mistakenly or maliciously issued. A browser might respond to certificate that has not been logged by showing an error message. The logs are cryptographically secure.
sourcepub fn build(self) -> CertificateDetail
pub fn build(self) -> CertificateDetail
Consumes the builder and constructs a CertificateDetail
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 · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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