Struct aws_sdk_amplify::types::DomainAssociation
source · #[non_exhaustive]pub struct DomainAssociation {
pub domain_association_arn: String,
pub domain_name: String,
pub enable_auto_sub_domain: bool,
pub auto_sub_domain_creation_patterns: Option<Vec<String>>,
pub auto_sub_domain_iam_role: Option<String>,
pub domain_status: DomainStatus,
pub update_status: Option<UpdateStatus>,
pub status_reason: String,
pub certificate_verification_dns_record: Option<String>,
pub sub_domains: Vec<SubDomain>,
pub certificate: Option<Certificate>,
}Expand description
Describes the association between a custom domain and an Amplify app.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.domain_association_arn: StringThe Amazon Resource Name (ARN) for the domain association.
domain_name: StringThe name of the domain.
enable_auto_sub_domain: boolEnables the automated creation of subdomains for branches.
auto_sub_domain_creation_patterns: Option<Vec<String>>Sets branch patterns for automatic subdomain creation.
auto_sub_domain_iam_role: Option<String>The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
domain_status: DomainStatusThe current status of the domain association.
update_status: Option<UpdateStatus>The status of the domain update operation that is currently in progress. The following list describes the valid update states.
- REQUESTING_CERTIFICATE
-
The certificate is in the process of being updated.
- PENDING_VERIFICATION
-
Indicates that an Amplify managed certificate is in the process of being verified. This occurs during the creation of a custom domain or when a custom domain is updated to use a managed certificate.
- IMPORTING_CUSTOM_CERTIFICATE
-
Indicates that an Amplify custom certificate is in the process of being imported. This occurs during the creation of a custom domain or when a custom domain is updated to use a custom certificate.
- PENDING_DEPLOYMENT
-
Indicates that the subdomain or certificate changes are being propagated.
- AWAITING_APP_CNAME
-
Amplify is waiting for CNAME records corresponding to subdomains to be propagated. If your custom domain is on Route 53, Amplify handles this for you automatically. For more information about custom domains, see Setting up custom domains in the Amplify Hosting User Guide.
- UPDATE_COMPLETE
-
The certificate has been associated with a domain.
- UPDATE_FAILED
-
The certificate has failed to be provisioned or associated, and there is no existing active certificate to roll back to.
status_reason: StringAdditional information that describes why the domain association is in the current state.
certificate_verification_dns_record: Option<String>The DNS record for certificate verification.
sub_domains: Vec<SubDomain>The subdomains for the domain association.
certificate: Option<Certificate>Describes the SSL/TLS certificate for the domain association. This can be your own custom certificate or the default certificate that Amplify provisions for you.
If you are updating your domain to use a different certificate, certificate points to the new certificate that is being created instead of the current active certificate. Otherwise, certificate points to the current active certificate.
Implementations§
source§impl DomainAssociation
impl DomainAssociation
sourcepub fn domain_association_arn(&self) -> &str
pub fn domain_association_arn(&self) -> &str
The Amazon Resource Name (ARN) for the domain association.
sourcepub fn domain_name(&self) -> &str
pub fn domain_name(&self) -> &str
The name of the domain.
sourcepub fn enable_auto_sub_domain(&self) -> bool
pub fn enable_auto_sub_domain(&self) -> bool
Enables the automated creation of subdomains for branches.
sourcepub fn auto_sub_domain_creation_patterns(&self) -> &[String]
pub fn auto_sub_domain_creation_patterns(&self) -> &[String]
Sets branch patterns for automatic subdomain creation.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .auto_sub_domain_creation_patterns.is_none().
sourcepub fn auto_sub_domain_iam_role(&self) -> Option<&str>
pub fn auto_sub_domain_iam_role(&self) -> Option<&str>
The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
sourcepub fn domain_status(&self) -> &DomainStatus
pub fn domain_status(&self) -> &DomainStatus
The current status of the domain association.
sourcepub fn update_status(&self) -> Option<&UpdateStatus>
pub fn update_status(&self) -> Option<&UpdateStatus>
The status of the domain update operation that is currently in progress. The following list describes the valid update states.
- REQUESTING_CERTIFICATE
-
The certificate is in the process of being updated.
- PENDING_VERIFICATION
-
Indicates that an Amplify managed certificate is in the process of being verified. This occurs during the creation of a custom domain or when a custom domain is updated to use a managed certificate.
- IMPORTING_CUSTOM_CERTIFICATE
-
Indicates that an Amplify custom certificate is in the process of being imported. This occurs during the creation of a custom domain or when a custom domain is updated to use a custom certificate.
- PENDING_DEPLOYMENT
-
Indicates that the subdomain or certificate changes are being propagated.
- AWAITING_APP_CNAME
-
Amplify is waiting for CNAME records corresponding to subdomains to be propagated. If your custom domain is on Route 53, Amplify handles this for you automatically. For more information about custom domains, see Setting up custom domains in the Amplify Hosting User Guide.
- UPDATE_COMPLETE
-
The certificate has been associated with a domain.
- UPDATE_FAILED
-
The certificate has failed to be provisioned or associated, and there is no existing active certificate to roll back to.
sourcepub fn status_reason(&self) -> &str
pub fn status_reason(&self) -> &str
Additional information that describes why the domain association is in the current state.
sourcepub fn certificate_verification_dns_record(&self) -> Option<&str>
pub fn certificate_verification_dns_record(&self) -> Option<&str>
The DNS record for certificate verification.
sourcepub fn sub_domains(&self) -> &[SubDomain]
pub fn sub_domains(&self) -> &[SubDomain]
The subdomains for the domain association.
sourcepub fn certificate(&self) -> Option<&Certificate>
pub fn certificate(&self) -> Option<&Certificate>
Describes the SSL/TLS certificate for the domain association. This can be your own custom certificate or the default certificate that Amplify provisions for you.
If you are updating your domain to use a different certificate, certificate points to the new certificate that is being created instead of the current active certificate. Otherwise, certificate points to the current active certificate.
source§impl DomainAssociation
impl DomainAssociation
sourcepub fn builder() -> DomainAssociationBuilder
pub fn builder() -> DomainAssociationBuilder
Creates a new builder-style object to manufacture DomainAssociation.
Trait Implementations§
source§impl Clone for DomainAssociation
impl Clone for DomainAssociation
source§fn clone(&self) -> DomainAssociation
fn clone(&self) -> DomainAssociation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DomainAssociation
impl Debug for DomainAssociation
source§impl PartialEq for DomainAssociation
impl PartialEq for DomainAssociation
source§fn eq(&self, other: &DomainAssociation) -> bool
fn eq(&self, other: &DomainAssociation) -> bool
self and other values to be equal, and is used
by ==.