Class: AWSCDK::CloudFront::CfnDistributionTenant::CustomizationsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnDistributionTenant::CustomizationsProperty
- Defined in:
- cloud_front/cfn_distribution_tenant.rb
Overview
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.
Instance Attribute Summary collapse
-
#certificate ⇒ AWSCDK::IResolvable, ...
readonly
The Certificate Manager (ACM) certificate.
-
#geo_restrictions ⇒ AWSCDK::IResolvable, ...
readonly
The geographic restrictions.
-
#web_acl ⇒ AWSCDK::IResolvable, ...
readonly
The AWS WAF web ACL.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(certificate: nil, geo_restrictions: nil, web_acl: nil) ⇒ CustomizationsProperty
constructor
A new instance of CustomizationsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(certificate: nil, geo_restrictions: nil, web_acl: nil) ⇒ CustomizationsProperty
Returns a new instance of CustomizationsProperty.
706 707 708 709 710 711 712 713 |
# File 'cloud_front/cfn_distribution_tenant.rb', line 706 def initialize(certificate: nil, geo_restrictions: nil, web_acl: nil) @certificate = certificate.is_a?(Hash) ? ::AWSCDK::CloudFront::CfnDistributionTenant::CertificateProperty.new(**certificate.transform_keys(&:to_sym)) : certificate Jsii::Type.check_type(@certificate, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZGZyb250LkNmbkRpc3RyaWJ1dGlvblRlbmFudC5DZXJ0aWZpY2F0ZVByb3BlcnR5In1dfX0=")), "certificate") unless @certificate.nil? @geo_restrictions = geo_restrictions.is_a?(Hash) ? ::AWSCDK::CloudFront::CfnDistributionTenant::GeoRestrictionCustomizationProperty.new(**geo_restrictions.transform_keys(&:to_sym)) : geo_restrictions Jsii::Type.check_type(@geo_restrictions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZGZyb250LkNmbkRpc3RyaWJ1dGlvblRlbmFudC5HZW9SZXN0cmljdGlvbkN1c3RvbWl6YXRpb25Qcm9wZXJ0eSJ9XX19")), "geoRestrictions") unless @geo_restrictions.nil? @web_acl = web_acl.is_a?(Hash) ? ::AWSCDK::CloudFront::CfnDistributionTenant::WebAclCustomizationProperty.new(**web_acl.transform_keys(&:to_sym)) : web_acl Jsii::Type.check_type(@web_acl, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZGZyb250LkNmbkRpc3RyaWJ1dGlvblRlbmFudC5XZWJBY2xDdXN0b21pemF0aW9uUHJvcGVydHkifV19fQ==")), "webAcl") unless @web_acl.nil? end |
Instance Attribute Details
#certificate ⇒ AWSCDK::IResolvable, ... (readonly)
The Certificate Manager (ACM) certificate.
719 720 721 |
# File 'cloud_front/cfn_distribution_tenant.rb', line 719 def certificate @certificate end |
#geo_restrictions ⇒ AWSCDK::IResolvable, ... (readonly)
The geographic restrictions.
724 725 726 |
# File 'cloud_front/cfn_distribution_tenant.rb', line 724 def geo_restrictions @geo_restrictions end |
#web_acl ⇒ AWSCDK::IResolvable, ... (readonly)
The AWS WAF web ACL.
729 730 731 |
# File 'cloud_front/cfn_distribution_tenant.rb', line 729 def web_acl @web_acl end |
Class Method Details
.jsii_properties ⇒ Object
731 732 733 734 735 736 737 |
# File 'cloud_front/cfn_distribution_tenant.rb', line 731 def self.jsii_properties { :certificate => "certificate", :geo_restrictions => "geoRestrictions", :web_acl => "webAcl", } end |
Instance Method Details
#to_jsii ⇒ Object
739 740 741 742 743 744 745 746 747 |
# File 'cloud_front/cfn_distribution_tenant.rb', line 739 def to_jsii result = {} result.merge!({ "certificate" => @certificate, "geoRestrictions" => @geo_restrictions, "webAcl" => @web_acl, }) result.compact end |