Class CertificateValidation
How to validate a certificate.
Inheritance
Namespace: Amazon.CDK.AWS.CertificateManager
Assembly: Amazon.CDK.AWS.CertificateManager.dll
Syntax (csharp)
public class CertificateValidation : DeputyBase
Syntax (vb)
Public Class CertificateValidation
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
var myHostedZone = new HostedZone(this, "HostedZone", new HostedZoneProps {
ZoneName = "example.com"
});
new Certificate(this, "Certificate", new CertificateProps {
DomainName = "hello.example.com",
Validation = CertificateValidation.FromDns(myHostedZone)
});
Synopsis
Constructors
CertificateValidation(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CertificateValidation(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
Method | The validation method. |
Props | Certification validation properties. |
Methods
FromDns(IHostedZone) | Validate the certificate with DNS. |
FromDnsMultiZone(IDictionary<String, IHostedZone>) | Validate the certificate with automatically created DNS records in multiple Amazon Route 53 hosted zones. |
FromEmail(IDictionary<String, String>) | Validate the certificate with Email. |
Constructors
CertificateValidation(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CertificateValidation(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CertificateValidation(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CertificateValidation(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
Method
The validation method.
public virtual ValidationMethod Method { get; }
Property Value
Props
Certification validation properties.
public virtual ICertificationValidationProps Props { get; }
Property Value
Methods
FromDns(IHostedZone)
Validate the certificate with DNS.
public static CertificateValidation FromDns(IHostedZone hostedZone = null)
Parameters
- hostedZone IHostedZone
the hosted zone where DNS records must be created.
Returns
Remarks
IMPORTANT: If hostedZone
is not specified, DNS records must be added
manually and the stack will not complete creating until the records are
added.
FromDnsMultiZone(IDictionary<String, IHostedZone>)
Validate the certificate with automatically created DNS records in multiple Amazon Route 53 hosted zones.
public static CertificateValidation FromDnsMultiZone(IDictionary<string, IHostedZone> hostedZones)
Parameters
- hostedZones System.Collections.Generic.IDictionary<System.String, IHostedZone>
a map of hosted zones where DNS records must be created for the domains in the certificate.
Returns
FromEmail(IDictionary<String, String>)
Validate the certificate with Email.
public static CertificateValidation FromEmail(IDictionary<string, string> validationDomains = null)
Parameters
- validationDomains System.Collections.Generic.IDictionary<System.String, System.String>
a map of validation domains to use for domains in the certificate.
Returns
Remarks
IMPORTANT: if you are creating a certificate as part of your stack, the stack will not complete creating until you read and follow the instructions in the email that you will receive.
ACM will send validation emails to the following addresses:
admin@domain.com administrator@domain.com hostmaster@domain.com postmaster@domain.com webmaster@domain.com
For every domain that you register.