Interface ICertificateProps
Properties for your certificate.
Namespace: Amazon.CDK.AWS.CertificateManager
Assembly: Amazon.CDK.AWS.CertificateManager.dll
Syntax (csharp)
public interface ICertificateProps
Syntax (vb)
Public Interface ICertificateProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CloudWatch;
HostedZone myHostedZone;
var certificate = new Certificate(this, "Certificate", new CertificateProps {
DomainName = "hello.example.com",
Validation = CertificateValidation.FromDns(myHostedZone)
});
certificate.MetricDaysToExpiry().CreateAlarm(this, "Alarm", new CreateAlarmOptions {
ComparisonOperator = ComparisonOperator.LESS_THAN_THRESHOLD,
EvaluationPeriods = 1,
Threshold = 45
});
Synopsis
Properties
DomainName | Fully-qualified domain name to request a certificate for. |
SubjectAlternativeNames | Alternative domain names on your certificate. |
Validation | How to validate this certificate. |
ValidationDomains | (deprecated) What validation domain to use for every requested domain. |
ValidationMethod | (deprecated) Validation method used to assert domain ownership. |
Properties
DomainName
Fully-qualified domain name to request a certificate for.
string DomainName { get; }
Property Value
System.String
Remarks
May contain wildcards, such as *.domain.com
.
SubjectAlternativeNames
Alternative domain names on your certificate.
virtual string[] SubjectAlternativeNames { get; }
Property Value
System.String[]
Remarks
Use this to register alternative domain names that represent the same site.
Default: - No additional FQDNs will be included as alternative domain names.
Validation
How to validate this certificate.
virtual CertificateValidation Validation { get; }
Property Value
Remarks
Default: CertificateValidation.fromEmail()
ValidationDomains
(deprecated) What validation domain to use for every requested domain.
virtual IDictionary<string, string> ValidationDomains { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Has to be a superdomain of the requested domain.
Default: - Apex domain is used for every domain that's not overridden.
Stability: Deprecated
ValidationMethod
(deprecated) Validation method used to assert domain ownership.
virtual Nullable<ValidationMethod> ValidationMethod { get; }
Property Value
System.Nullable<ValidationMethod>
Remarks
Default: ValidationMethod.EMAIL
Stability: Deprecated