Interface ViewerCertificateOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ViewerCertificateOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:43.778Z")
@Stability(Stable)
public interface ViewerCertificateOptions
extends software.amazon.jsii.JsiiSerializable
Example:
Bucket s3BucketSource = new Bucket(this, "Bucket"); CloudFrontWebDistribution distribution = CloudFrontWebDistribution.Builder.create(this, "AnAmazingWebsiteProbably") .originConfigs(List.of(SourceConfiguration.builder() .s3OriginSource(S3OriginConfig.builder().s3BucketSource(s3BucketSource).build()) .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build())) .build())) .viewerCertificate(ViewerCertificate.fromIamCertificate("certificateId", ViewerCertificateOptions.builder() .aliases(List.of("example.com")) .securityPolicy(SecurityPolicyProtocol.SSL_V3) // default .sslMethod(SSLMethod.SNI) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forViewerCertificateOptions
static final class
An implementation forViewerCertificateOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Domain names on the certificate (both main domain name and Subject Alternative names).default SecurityPolicyProtocol
The minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections.default SSLMethod
How CloudFront should serve HTTPS requests.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAliases
Domain names on the certificate (both main domain name and Subject Alternative names). -
getSecurityPolicy
The minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections.CloudFront serves your objects only to browsers or devices that support at least the SSL version that you specify.
Default: - SSLv3 if sslMethod VIP, TLSv1 if sslMethod SNI
-
getSslMethod
How CloudFront should serve HTTPS requests.See the notes on SSLMethod if you wish to use other SSL termination types.
Default: SSLMethod.SNI
- See Also:
-
builder
- Returns:
- a
ViewerCertificateOptions.Builder
ofViewerCertificateOptions
-