#[non_exhaustive]
pub struct LoadBalancerTlsCertificateBuilder { /* private fields */ }
Expand description

Implementations§

source§

impl LoadBalancerTlsCertificateBuilder

source

pub fn name(self, input: impl Into<String>) -> Self

The name of the SSL/TLS certificate (my-certificate).

source

pub fn set_name(self, input: Option<String>) -> Self

The name of the SSL/TLS certificate (my-certificate).

source

pub fn get_name(&self) -> &Option<String>

The name of the SSL/TLS certificate (my-certificate).

source

pub fn arn(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of the SSL/TLS certificate.

source

pub fn set_arn(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of the SSL/TLS certificate.

source

pub fn get_arn(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the SSL/TLS certificate.

source

pub fn support_code(self, input: impl Into<String>) -> Self

The support code. Include this code in your email to support when you have questions about your Lightsail load balancer or SSL/TLS certificate. This code enables our support team to look up your Lightsail information more easily.

source

pub fn set_support_code(self, input: Option<String>) -> Self

The support code. Include this code in your email to support when you have questions about your Lightsail load balancer or SSL/TLS certificate. This code enables our support team to look up your Lightsail information more easily.

source

pub fn get_support_code(&self) -> &Option<String>

The support code. Include this code in your email to support when you have questions about your Lightsail load balancer or SSL/TLS certificate. This code enables our support team to look up your Lightsail information more easily.

source

pub fn created_at(self, input: DateTime) -> Self

The time when you created your SSL/TLS certificate.

source

pub fn set_created_at(self, input: Option<DateTime>) -> Self

The time when you created your SSL/TLS certificate.

source

pub fn get_created_at(&self) -> &Option<DateTime>

The time when you created your SSL/TLS certificate.

source

pub fn location(self, input: ResourceLocation) -> Self

The Amazon Web Services Region and Availability Zone where you created your certificate.

source

pub fn set_location(self, input: Option<ResourceLocation>) -> Self

The Amazon Web Services Region and Availability Zone where you created your certificate.

source

pub fn get_location(&self) -> &Option<ResourceLocation>

The Amazon Web Services Region and Availability Zone where you created your certificate.

source

pub fn resource_type(self, input: ResourceType) -> Self

The resource type (LoadBalancerTlsCertificate).

  • Instance - A Lightsail instance (a virtual private server)

  • StaticIp - A static IP address

  • KeyPair - The key pair used to connect to a Lightsail instance

  • InstanceSnapshot - A Lightsail instance snapshot

  • Domain - A DNS zone

  • PeeredVpc - A peered VPC

  • LoadBalancer - A Lightsail load balancer

  • LoadBalancerTlsCertificate - An SSL/TLS certificate associated with a Lightsail load balancer

  • Disk - A Lightsail block storage disk

  • DiskSnapshot - A block storage disk snapshot

source

pub fn set_resource_type(self, input: Option<ResourceType>) -> Self

The resource type (LoadBalancerTlsCertificate).

  • Instance - A Lightsail instance (a virtual private server)

  • StaticIp - A static IP address

  • KeyPair - The key pair used to connect to a Lightsail instance

  • InstanceSnapshot - A Lightsail instance snapshot

  • Domain - A DNS zone

  • PeeredVpc - A peered VPC

  • LoadBalancer - A Lightsail load balancer

  • LoadBalancerTlsCertificate - An SSL/TLS certificate associated with a Lightsail load balancer

  • Disk - A Lightsail block storage disk

  • DiskSnapshot - A block storage disk snapshot

source

pub fn get_resource_type(&self) -> &Option<ResourceType>

The resource type (LoadBalancerTlsCertificate).

  • Instance - A Lightsail instance (a virtual private server)

  • StaticIp - A static IP address

  • KeyPair - The key pair used to connect to a Lightsail instance

  • InstanceSnapshot - A Lightsail instance snapshot

  • Domain - A DNS zone

  • PeeredVpc - A peered VPC

  • LoadBalancer - A Lightsail load balancer

  • LoadBalancerTlsCertificate - An SSL/TLS certificate associated with a Lightsail load balancer

  • Disk - A Lightsail block storage disk

  • DiskSnapshot - A block storage disk snapshot

source

pub fn tags(self, input: Tag) -> Self

Appends an item to tags.

To override the contents of this collection use set_tags.

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

source

pub fn set_tags(self, input: Option<Vec<Tag>>) -> Self

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

source

pub fn get_tags(&self) -> &Option<Vec<Tag>>

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

source

pub fn load_balancer_name(self, input: impl Into<String>) -> Self

The load balancer name where your SSL/TLS certificate is attached.

source

pub fn set_load_balancer_name(self, input: Option<String>) -> Self

The load balancer name where your SSL/TLS certificate is attached.

source

pub fn get_load_balancer_name(&self) -> &Option<String>

The load balancer name where your SSL/TLS certificate is attached.

source

pub fn is_attached(self, input: bool) -> Self

When true, the SSL/TLS certificate is attached to the Lightsail load balancer.

source

pub fn set_is_attached(self, input: Option<bool>) -> Self

When true, the SSL/TLS certificate is attached to the Lightsail load balancer.

source

pub fn get_is_attached(&self) -> &Option<bool>

When true, the SSL/TLS certificate is attached to the Lightsail load balancer.

source

pub fn status(self, input: LoadBalancerTlsCertificateStatus) -> Self

The validation status of the SSL/TLS certificate. Valid values are below.

source

pub fn set_status(self, input: Option<LoadBalancerTlsCertificateStatus>) -> Self

The validation status of the SSL/TLS certificate. Valid values are below.

source

pub fn get_status(&self) -> &Option<LoadBalancerTlsCertificateStatus>

The validation status of the SSL/TLS certificate. Valid values are below.

source

pub fn domain_name(self, input: impl Into<String>) -> Self

The domain name for your SSL/TLS certificate.

source

pub fn set_domain_name(self, input: Option<String>) -> Self

The domain name for your SSL/TLS certificate.

source

pub fn get_domain_name(&self) -> &Option<String>

The domain name for your SSL/TLS certificate.

source

pub fn domain_validation_records( self, input: LoadBalancerTlsCertificateDomainValidationRecord ) -> Self

Appends an item to domain_validation_records.

To override the contents of this collection use set_domain_validation_records.

An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing the records.

source

pub fn set_domain_validation_records( self, input: Option<Vec<LoadBalancerTlsCertificateDomainValidationRecord>> ) -> Self

An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing the records.

source

pub fn get_domain_validation_records( &self ) -> &Option<Vec<LoadBalancerTlsCertificateDomainValidationRecord>>

An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing the records.

source

pub fn failure_reason( self, input: LoadBalancerTlsCertificateFailureReason ) -> Self

The validation failure reason, if any, of the certificate.

The following failure reasons are possible:

  • NO_AVAILABLE_CONTACTS - This failure applies to email validation, which is not available for Lightsail certificates.

  • ADDITIONAL_VERIFICATION_REQUIRED - Lightsail requires additional information to process this certificate request. This can happen as a fraud-protection measure, such as when the domain ranks within the Alexa top 1000 websites. To provide the required information, use the AWS Support Center to contact AWS Support.

    You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.

  • DOMAIN_NOT_ALLOWED - One or more of the domain names in the certificate request was reported as an unsafe domain by VirusTotal. To correct the problem, search for your domain name on the VirusTotal website. If your domain is reported as suspicious, see Google Help for Hacked Websites to learn what you can do.

    If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate.

    If you see this error and your domain is not included in the VirusTotal list, visit the AWS Support Center and create a case.

  • INVALID_PUBLIC_DOMAIN - One or more of the domain names in the certificate request is not valid. Typically, this is because a domain name in the request is not a valid top-level domain. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request, and ensure that all domain names in the request are for valid top-level domains. For example, you cannot request a certificate for example.invalidpublicdomain because invalidpublicdomain is not a valid top-level domain.

  • OTHER - Typically, this failure occurs when there is a typographical error in one or more of the domain names in the certificate request. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request.

source

pub fn set_failure_reason( self, input: Option<LoadBalancerTlsCertificateFailureReason> ) -> Self

The validation failure reason, if any, of the certificate.

The following failure reasons are possible:

  • NO_AVAILABLE_CONTACTS - This failure applies to email validation, which is not available for Lightsail certificates.

  • ADDITIONAL_VERIFICATION_REQUIRED - Lightsail requires additional information to process this certificate request. This can happen as a fraud-protection measure, such as when the domain ranks within the Alexa top 1000 websites. To provide the required information, use the AWS Support Center to contact AWS Support.

    You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.

  • DOMAIN_NOT_ALLOWED - One or more of the domain names in the certificate request was reported as an unsafe domain by VirusTotal. To correct the problem, search for your domain name on the VirusTotal website. If your domain is reported as suspicious, see Google Help for Hacked Websites to learn what you can do.

    If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate.

    If you see this error and your domain is not included in the VirusTotal list, visit the AWS Support Center and create a case.

  • INVALID_PUBLIC_DOMAIN - One or more of the domain names in the certificate request is not valid. Typically, this is because a domain name in the request is not a valid top-level domain. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request, and ensure that all domain names in the request are for valid top-level domains. For example, you cannot request a certificate for example.invalidpublicdomain because invalidpublicdomain is not a valid top-level domain.

  • OTHER - Typically, this failure occurs when there is a typographical error in one or more of the domain names in the certificate request. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request.

source

pub fn get_failure_reason( &self ) -> &Option<LoadBalancerTlsCertificateFailureReason>

The validation failure reason, if any, of the certificate.

The following failure reasons are possible:

  • NO_AVAILABLE_CONTACTS - This failure applies to email validation, which is not available for Lightsail certificates.

  • ADDITIONAL_VERIFICATION_REQUIRED - Lightsail requires additional information to process this certificate request. This can happen as a fraud-protection measure, such as when the domain ranks within the Alexa top 1000 websites. To provide the required information, use the AWS Support Center to contact AWS Support.

    You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.

  • DOMAIN_NOT_ALLOWED - One or more of the domain names in the certificate request was reported as an unsafe domain by VirusTotal. To correct the problem, search for your domain name on the VirusTotal website. If your domain is reported as suspicious, see Google Help for Hacked Websites to learn what you can do.

    If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate.

    If you see this error and your domain is not included in the VirusTotal list, visit the AWS Support Center and create a case.

  • INVALID_PUBLIC_DOMAIN - One or more of the domain names in the certificate request is not valid. Typically, this is because a domain name in the request is not a valid top-level domain. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request, and ensure that all domain names in the request are for valid top-level domains. For example, you cannot request a certificate for example.invalidpublicdomain because invalidpublicdomain is not a valid top-level domain.

  • OTHER - Typically, this failure occurs when there is a typographical error in one or more of the domain names in the certificate request. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request.

source

pub fn issued_at(self, input: DateTime) -> Self

The time when the SSL/TLS certificate was issued.

source

pub fn set_issued_at(self, input: Option<DateTime>) -> Self

The time when the SSL/TLS certificate was issued.

source

pub fn get_issued_at(&self) -> &Option<DateTime>

The time when the SSL/TLS certificate was issued.

source

pub fn issuer(self, input: impl Into<String>) -> Self

The issuer of the certificate.

source

pub fn set_issuer(self, input: Option<String>) -> Self

The issuer of the certificate.

source

pub fn get_issuer(&self) -> &Option<String>

The issuer of the certificate.

source

pub fn key_algorithm(self, input: impl Into<String>) -> Self

The algorithm used to generate the key pair (the public and private key).

source

pub fn set_key_algorithm(self, input: Option<String>) -> Self

The algorithm used to generate the key pair (the public and private key).

source

pub fn get_key_algorithm(&self) -> &Option<String>

The algorithm used to generate the key pair (the public and private key).

source

pub fn not_after(self, input: DateTime) -> Self

The timestamp when the SSL/TLS certificate expires.

source

pub fn set_not_after(self, input: Option<DateTime>) -> Self

The timestamp when the SSL/TLS certificate expires.

source

pub fn get_not_after(&self) -> &Option<DateTime>

The timestamp when the SSL/TLS certificate expires.

source

pub fn not_before(self, input: DateTime) -> Self

The timestamp when the SSL/TLS certificate is first valid.

source

pub fn set_not_before(self, input: Option<DateTime>) -> Self

The timestamp when the SSL/TLS certificate is first valid.

source

pub fn get_not_before(&self) -> &Option<DateTime>

The timestamp when the SSL/TLS certificate is first valid.

source

pub fn renewal_summary( self, input: LoadBalancerTlsCertificateRenewalSummary ) -> Self

An object that describes the status of the certificate renewal managed by Lightsail.

source

pub fn set_renewal_summary( self, input: Option<LoadBalancerTlsCertificateRenewalSummary> ) -> Self

An object that describes the status of the certificate renewal managed by Lightsail.

source

pub fn get_renewal_summary( &self ) -> &Option<LoadBalancerTlsCertificateRenewalSummary>

An object that describes the status of the certificate renewal managed by Lightsail.

source

pub fn revocation_reason( self, input: LoadBalancerTlsCertificateRevocationReason ) -> Self

The reason the certificate was revoked. This value is present only when the certificate status is REVOKED.

source

pub fn set_revocation_reason( self, input: Option<LoadBalancerTlsCertificateRevocationReason> ) -> Self

The reason the certificate was revoked. This value is present only when the certificate status is REVOKED.

source

pub fn get_revocation_reason( &self ) -> &Option<LoadBalancerTlsCertificateRevocationReason>

The reason the certificate was revoked. This value is present only when the certificate status is REVOKED.

source

pub fn revoked_at(self, input: DateTime) -> Self

The timestamp when the certificate was revoked. This value is present only when the certificate status is REVOKED.

source

pub fn set_revoked_at(self, input: Option<DateTime>) -> Self

The timestamp when the certificate was revoked. This value is present only when the certificate status is REVOKED.

source

pub fn get_revoked_at(&self) -> &Option<DateTime>

The timestamp when the certificate was revoked. This value is present only when the certificate status is REVOKED.

source

pub fn serial(self, input: impl Into<String>) -> Self

The serial number of the certificate.

source

pub fn set_serial(self, input: Option<String>) -> Self

The serial number of the certificate.

source

pub fn get_serial(&self) -> &Option<String>

The serial number of the certificate.

source

pub fn signature_algorithm(self, input: impl Into<String>) -> Self

The algorithm that was used to sign the certificate.

source

pub fn set_signature_algorithm(self, input: Option<String>) -> Self

The algorithm that was used to sign the certificate.

source

pub fn get_signature_algorithm(&self) -> &Option<String>

The algorithm that was used to sign the certificate.

source

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.

source

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.

source

pub fn get_subject(&self) -> &Option<String>

The name of the entity that is associated with the public key contained in the certificate.

source

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.

An array of strings that specify the alternate domains (example2.com) and subdomains (blog.example.com) for the certificate.

source

pub fn set_subject_alternative_names(self, input: Option<Vec<String>>) -> Self

An array of strings that specify the alternate domains (example2.com) and subdomains (blog.example.com) for the certificate.

source

pub fn get_subject_alternative_names(&self) -> &Option<Vec<String>>

An array of strings that specify the alternate domains (example2.com) and subdomains (blog.example.com) for the certificate.

source

pub fn build(self) -> LoadBalancerTlsCertificate

Consumes the builder and constructs a LoadBalancerTlsCertificate.

Trait Implementations§

source§

impl Clone for LoadBalancerTlsCertificateBuilder

source§

fn clone(&self) -> LoadBalancerTlsCertificateBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LoadBalancerTlsCertificateBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for LoadBalancerTlsCertificateBuilder

source§

fn default() -> LoadBalancerTlsCertificateBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for LoadBalancerTlsCertificateBuilder

source§

fn eq(&self, other: &LoadBalancerTlsCertificateBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for LoadBalancerTlsCertificateBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more