Class: AWSCDK::CloudFront::CfnDistributionTenant::WebAclCustomizationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_front/cfn_distribution_tenant.rb

Overview

The AWS WAF web ACL customization specified for the distribution tenant.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action: nil, arn: nil) ⇒ WebAclCustomizationProperty

Returns a new instance of WebAclCustomizationProperty.

Parameters:

  • action (String, nil) (defaults to: nil)

    The action for the AWS WAF web ACL customization.

  • arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the AWS WAF web ACL.



951
952
953
954
955
956
# File 'cloud_front/cfn_distribution_tenant.rb', line 951

def initialize(action: nil, arn: nil)
  @action = action
  Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "action") unless @action.nil?
  @arn = arn
  Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") unless @arn.nil?
end

Instance Attribute Details

#actionString? (readonly)

The action for the AWS WAF web ACL customization.

You can specify override to specify a separate AWS WAF web ACL for the distribution tenant. If you specify disable , the distribution tenant won't have AWS WAF web ACL protections and won't inherit from the multi-tenant distribution.



964
965
966
# File 'cloud_front/cfn_distribution_tenant.rb', line 964

def action
  @action
end

#arnString? (readonly)

The Amazon Resource Name (ARN) of the AWS WAF web ACL.



969
970
971
# File 'cloud_front/cfn_distribution_tenant.rb', line 969

def arn
  @arn
end

Class Method Details

.jsii_propertiesObject



971
972
973
974
975
976
# File 'cloud_front/cfn_distribution_tenant.rb', line 971

def self.jsii_properties
  {
    :action => "action",
    :arn => "arn",
  }
end

Instance Method Details

#to_jsiiObject



978
979
980
981
982
983
984
985
# File 'cloud_front/cfn_distribution_tenant.rb', line 978

def to_jsii
  result = {}
  result.merge!({
    "action" => @action,
    "arn" => @arn,
  })
  result.compact
end