Interface IViewerCertificateOptions
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IViewerCertificateOptions
Syntax (vb)
Public Interface IViewerCertificateOptions
Remarks
ExampleMetadata: lit=aws-cloudfront/test/example.iam-cert-alias.lit.ts infused
Examples
var s3BucketSource = new Bucket(this, "Bucket");
var distribution = new CloudFrontWebDistribution(this, "AnAmazingWebsiteProbably", new CloudFrontWebDistributionProps {
OriginConfigs = new [] { new SourceConfiguration {
S3OriginSource = new S3OriginConfig { S3BucketSource = s3BucketSource },
Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }
} },
ViewerCertificate = ViewerCertificate.FromIamCertificate("certificateId", new ViewerCertificateOptions {
Aliases = new [] { "example.com" },
SecurityPolicy = SecurityPolicyProtocol.SSL_V3, // default
SslMethod = SSLMethod.SNI
})
});
Synopsis
Properties
Aliases | Domain names on the certificate (both main domain name and Subject Alternative names). |
Security |
The minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections. |
Ssl |
How CloudFront should serve HTTPS requests. |
Properties
Aliases
Domain names on the certificate (both main domain name and Subject Alternative names).
virtual string[] Aliases { get; }
Property Value
System.
SecurityPolicy
The minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections.
virtual Nullable<SecurityPolicyProtocol> SecurityPolicy { get; }
Property Value
System.
Remarks
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
SslMethod
How CloudFront should serve HTTPS requests.
virtual Nullable<SSLMethod> SslMethod { get; }
Property Value
System.
Remarks
See the notes on SSLMethod if you wish to use other SSL termination types.
Default: SSLMethod.SNI
See: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_ViewerCertificate.html