CustomizationsProperty Struct
Customizations for the distribution tenant.
For each distribution tenant, you can specify the geographic restrictions, and the Amazon Resource Names (ARNs) for the ACM certificate and AWS WAF web ACL. These are specific values that you can override or disable from the multi-tenant distribution that was used to create the distribution tenant.
| Source | |
|---|---|
| Type last changed |
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 customizationsProperty: cloudfront.CfnDistributionTenant.CustomizationsProperty = {
certificate: {
arn: 'arn',
},
geoRestrictions: {
locations: ['locations'],
restrictionType: 'restrictionType',
},
webAcl: {
action: 'action',
arn: 'arn',
},
};
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
customizations_property = cloudfront.CfnDistributionTenant.CustomizationsProperty(
certificate=cloudfront.CfnDistributionTenant.CertificateProperty(
arn="arn"
),
geo_restrictions=cloudfront.CfnDistributionTenant.GeoRestrictionCustomizationProperty(
locations=["locations"],
restriction_type="restrictionType"
),
web_acl=cloudfront.CfnDistributionTenant.WebAclCustomizationProperty(
action="action",
arn="arn"
)
)
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.*;
CustomizationsProperty customizationsProperty = CustomizationsProperty.builder()
.certificate(CertificateProperty.builder()
.arn("arn")
.build())
.geoRestrictions(GeoRestrictionCustomizationProperty.builder()
.locations(List.of("locations"))
.restrictionType("restrictionType")
.build())
.webAcl(WebAclCustomizationProperty.builder()
.action("action")
.arn("arn")
.build())
.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 customizationsProperty = new CustomizationsProperty {
Certificate = new CertificateProperty {
Arn = "arn"
},
GeoRestrictions = new GeoRestrictionCustomizationProperty {
Locations = new [] { "locations" },
RestrictionType = "restrictionType"
},
WebAcl = new WebAclCustomizationProperty {
Action = "action",
Arn = "arn"
}
};
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"
customizationsProperty := &CustomizationsProperty{
Certificate: &CertificateProperty{
Arn: jsii.String("arn"),
},
GeoRestrictions: &GeoRestrictionCustomizationProperty{
Locations: []*string{
jsii.String("locations"),
},
RestrictionType: jsii.String("restrictionType"),
},
WebAcl: &WebAclCustomizationProperty{
Action: jsii.String("action"),
Arn: jsii.String("arn"),
},
}
Properties
certificateoptionalIResolvable | CfnDistributionTenant.certificateoptionaltyping.Union[IResolvable, CertificateProperty]certificateoptionalIResolvableCertificateoptionalIResolvableCertificateoptionalinterface{} #The Certificate Manager (ACM) certificate.
geoRestrictionsoptionalIResolvable | CfnDistributionTenant.geo_restrictionsoptionaltyping.Union[IResolvable, GeoRestrictionCustomizationProperty]geoRestrictionsoptionalIResolvableGeoRestrictionsoptionalIResolvableGeoRestrictionsoptionalinterface{} #The geographic restrictions.
webAcloptionalIResolvable | CfnDistributionTenant.web_acloptionaltyping.Union[IResolvable, WebAclCustomizationProperty]webAcloptionalIResolvableWebAcloptionalIResolvableWebAcloptionalinterface{} #The AWS WAF web ACL.