pub struct Builder { /* private fields */ }
Expand description
A builder for AwsCloudFrontDistributionViewerCertificate
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn acm_certificate_arn(self, input: impl Into<String>) -> Self
pub fn acm_certificate_arn(self, input: impl Into<String>) -> Self
The ARN of the ACM certificate. Used if the certificate is stored in ACM. If you provide an ACM certificate ARN, you must also provide MinimumCertificateVersion
and SslSupportMethod
.
sourcepub fn set_acm_certificate_arn(self, input: Option<String>) -> Self
pub fn set_acm_certificate_arn(self, input: Option<String>) -> Self
The ARN of the ACM certificate. Used if the certificate is stored in ACM. If you provide an ACM certificate ARN, you must also provide MinimumCertificateVersion
and SslSupportMethod
.
sourcepub fn certificate(self, input: impl Into<String>) -> Self
pub fn certificate(self, input: impl Into<String>) -> Self
The identifier of the certificate. Note that in CloudFront, this attribute is deprecated.
sourcepub fn set_certificate(self, input: Option<String>) -> Self
pub fn set_certificate(self, input: Option<String>) -> Self
The identifier of the certificate. Note that in CloudFront, this attribute is deprecated.
sourcepub fn certificate_source(self, input: impl Into<String>) -> Self
pub fn certificate_source(self, input: impl Into<String>) -> Self
The source of the certificate identified by Certificate
. Note that in CloudFront, this attribute is deprecated.
sourcepub fn set_certificate_source(self, input: Option<String>) -> Self
pub fn set_certificate_source(self, input: Option<String>) -> Self
The source of the certificate identified by Certificate
. Note that in CloudFront, this attribute is deprecated.
sourcepub fn cloud_front_default_certificate(self, input: bool) -> Self
pub fn cloud_front_default_certificate(self, input: bool) -> Self
Whether the distribution uses the CloudFront domain name. If set to false
, then you provide either AcmCertificateArn
or IamCertificateId
.
sourcepub fn set_cloud_front_default_certificate(self, input: Option<bool>) -> Self
pub fn set_cloud_front_default_certificate(self, input: Option<bool>) -> Self
Whether the distribution uses the CloudFront domain name. If set to false
, then you provide either AcmCertificateArn
or IamCertificateId
.
sourcepub fn iam_certificate_id(self, input: impl Into<String>) -> Self
pub fn iam_certificate_id(self, input: impl Into<String>) -> Self
The identifier of the IAM certificate. Used if the certificate is stored in IAM. If you provide IamCertificateId
, then you also must provide MinimumProtocolVersion
and SslSupportMethod
.
sourcepub fn set_iam_certificate_id(self, input: Option<String>) -> Self
pub fn set_iam_certificate_id(self, input: Option<String>) -> Self
The identifier of the IAM certificate. Used if the certificate is stored in IAM. If you provide IamCertificateId
, then you also must provide MinimumProtocolVersion
and SslSupportMethod
.
sourcepub fn minimum_protocol_version(self, input: impl Into<String>) -> Self
pub fn minimum_protocol_version(self, input: impl Into<String>) -> Self
The security policy that CloudFront uses for HTTPS connections with viewers. If SslSupportMethod
is sni-only
, then MinimumProtocolVersion
must be TLSv1
or higher.
sourcepub fn set_minimum_protocol_version(self, input: Option<String>) -> Self
pub fn set_minimum_protocol_version(self, input: Option<String>) -> Self
The security policy that CloudFront uses for HTTPS connections with viewers. If SslSupportMethod
is sni-only
, then MinimumProtocolVersion
must be TLSv1
or higher.
sourcepub fn ssl_support_method(self, input: impl Into<String>) -> Self
pub fn ssl_support_method(self, input: impl Into<String>) -> Self
The viewers that the distribution accepts HTTPS connections from.
sourcepub fn set_ssl_support_method(self, input: Option<String>) -> Self
pub fn set_ssl_support_method(self, input: Option<String>) -> Self
The viewers that the distribution accepts HTTPS connections from.
sourcepub fn build(self) -> AwsCloudFrontDistributionViewerCertificate
pub fn build(self) -> AwsCloudFrontDistributionViewerCertificate
Consumes the builder and constructs a AwsCloudFrontDistributionViewerCertificate
.