AWS SDK for .NET Documentation
ViewerCertificate Class
AmazonAmazon.CloudFront.ModelViewerCertificate Did this page help you?   Yes   No    Tell us about it...
A complex type that contains information about viewer certificates for this distribution.
Declaration Syntax
public class ViewerCertificate
All MembersConstructorsMethodsProperties

Initializes a new instance of the ViewerCertificate class

Gets and sets the property CloudFrontDefaultCertificate. If you want viewers to use HTTPS to request your objects and you're using the CloudFront domain name of your distribution in your object URLs (for example,, set to true. Omit this value if you are setting an IAMCertificateId.

Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Serves as a hash function for a particular type.
(Inherited from Object.)
Gets the type of the current instance.
(Inherited from Object.)
Gets and sets the property IAMCertificateId. If you want viewers to use HTTPS to request your objects and you're using an alternate domain name in your object URLs (for example,, specify the IAM certificate identifier of the custom viewer certificate for this distribution. Specify either this value or CloudFrontDefaultCertificate.

Gets and sets the property SSLSupportMethod. If you specify a value for IAMCertificateId, you must also specify how you want CloudFront to serve HTTPS requests. Valid values are vip and sni-only. If you specify vip, CloudFront uses dedicated IP addresses for your content and can respond to HTTPS requests from any viewer. However, you must request permission to use this feature, and you incur additional monthly charges. If you specify sni-only, CloudFront can only respond to HTTPS requests from viewers that support Server Name Indication (SNI). All modern browsers support SNI, but some browsers still in use don't support SNI. Do not specify a value for SSLSupportMethod if you specified true for CloudFrontDefaultCertificate.

Returns a string that represents the current object.
(Inherited from Object.)
WithCloudFrontDefaultCertificate(Boolean) Obsolete.
Sets the CloudFrontDefaultCertificate property

WithIAMCertificateId(String) Obsolete.
Sets the IAMCertificateId property

WithSSLSupportMethod(String) Obsolete.
Sets the SSLSupportMethod property

Inheritance Hierarchy

Assembly: AWSSDK (Module: AWSSDK) Version: (