Skip to content
v2.278.0

ManagedCertificateRequestProperty Struct ​

An object that represents the request for the Amazon CloudFront managed ACM certificate.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const managedCertificateRequestProperty: cloudfront.CfnDistributionTenant.ManagedCertificateRequestProperty = {
  certificateTransparencyLoggingPreference: 'certificateTransparencyLoggingPreference',
  primaryDomainName: 'primaryDomainName',
  validationTokenHost: 'validationTokenHost',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront

managed_certificate_request_property = cloudfront.CfnDistributionTenant.ManagedCertificateRequestProperty(
    certificate_transparency_logging_preference="certificateTransparencyLoggingPreference",
    primary_domain_name="primaryDomainName",
    validation_token_host="validationTokenHost"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;

ManagedCertificateRequestProperty managedCertificateRequestProperty = ManagedCertificateRequestProperty.builder()
        .certificateTransparencyLoggingPreference("certificateTransparencyLoggingPreference")
        .primaryDomainName("primaryDomainName")
        .validationTokenHost("validationTokenHost")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;

var managedCertificateRequestProperty = new ManagedCertificateRequestProperty {
    CertificateTransparencyLoggingPreference = "certificateTransparencyLoggingPreference",
    PrimaryDomainName = "primaryDomainName",
    ValidationTokenHost = "validationTokenHost"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

managedCertificateRequestProperty := &ManagedCertificateRequestProperty{
	CertificateTransparencyLoggingPreference: jsii.String("certificateTransparencyLoggingPreference"),
	PrimaryDomainName: jsii.String("primaryDomainName"),
	ValidationTokenHost: jsii.String("validationTokenHost"),
}

Properties ​

certificateTransparencyLoggingPreferenceoptionalstringcertificate_transparency_logging_preferenceoptionalstrcertificateTransparencyLoggingPreferenceoptionalStringCertificateTransparencyLoggingPreferenceoptionalstringCertificateTransparencyLoggingPreferenceoptional*string #
You can opt out of certificate transparency logging by specifying the `disabled` option.

Opt in by specifying enabled . For more information, see Certificate Transparency Logging in the Certificate Manager User Guide .

primaryDomainNameoptionalstringprimary_domain_nameoptionalstrprimaryDomainNameoptionalStringPrimaryDomainNameoptionalstringPrimaryDomainNameoptional*string #
The primary domain name associated with the CloudFront managed ACM certificate.
validationTokenHostoptionalstringvalidation_token_hostoptionalstrvalidationTokenHostoptionalStringValidationTokenHostoptionalstringValidationTokenHostoptional*string #
Specify how the HTTP validation token will be served when requesting the CloudFront managed ACM certificate.
notes
  • For cloudfront , CloudFront will automatically serve the validation token. Choose this mode if you can point the domain's DNS to CloudFront immediately.
  • For self-hosted , you serve the validation token from your existing infrastructure. Choose this mode when you need to maintain current traffic flow while your certificate is being issued. You can place the validation token at the well-known path on your existing web server, wait for ACM to validate and issue the certificate, and then update your DNS to point to CloudFront.