java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.route53globalresolver.CfnFirewallRule
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IFirewallRuleRef, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-27T13:12:06.770Z") @Stability(Stable) public class CfnFirewallRule extends CfnResource implements IInspectable, IFirewallRuleRef
Resource schema for AWS::Route53GlobalResolver::FirewallRule.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.route53globalresolver.*;
 CfnFirewallRule cfnFirewallRule = CfnFirewallRule.Builder.create(this, "MyCfnFirewallRule")
         .action("action")
         .dnsViewId("dnsViewId")
         .name("name")
         // the properties below are optional
         .blockOverrideDnsType("blockOverrideDnsType")
         .blockOverrideDomain("blockOverrideDomain")
         .blockOverrideTtl(123)
         .blockResponse("blockResponse")
         .clientToken("clientToken")
         .confidenceThreshold("confidenceThreshold")
         .description("description")
         .dnsAdvancedProtection("dnsAdvancedProtection")
         .firewallDomainListId("firewallDomainListId")
         .priority(123)
         .qType("qType")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnFirewallRule

      protected CfnFirewallRule(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnFirewallRule

      protected CfnFirewallRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnFirewallRule

      @Stability(Stable) public CfnFirewallRule(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFirewallRuleProps props)
      Create a new AWS::Route53GlobalResolver::FirewallRule.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • isCfnFirewallRule

      @Stability(Stable) @NotNull public static Boolean isCfnFirewallRule(@NotNull Object x)
      Checks whether the given object is a CfnFirewallRule.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
    • getAttrFirewallRuleId

      @Stability(Stable) @NotNull public String getAttrFirewallRuleId()
    • getAttrQueryType

      @Stability(Stable) @NotNull public String getAttrQueryType()
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getFirewallRuleRef

      @Stability(Stable) @NotNull public FirewallRuleReference getFirewallRuleRef()
      A reference to a FirewallRule resource.
      Specified by:
      getFirewallRuleRef in interface IFirewallRuleRef
    • getAction

      @Stability(Stable) @NotNull public String getAction()
    • setAction

      @Stability(Stable) public void setAction(@NotNull String value)
    • getDnsViewId

      @Stability(Stable) @NotNull public String getDnsViewId()
    • setDnsViewId

      @Stability(Stable) public void setDnsViewId(@NotNull String value)
    • getName

      @Stability(Stable) @NotNull public String getName()
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
    • getBlockOverrideDnsType

      @Stability(Stable) @Nullable public String getBlockOverrideDnsType()
    • setBlockOverrideDnsType

      @Stability(Stable) public void setBlockOverrideDnsType(@Nullable String value)
    • getBlockOverrideDomain

      @Stability(Stable) @Nullable public String getBlockOverrideDomain()
    • setBlockOverrideDomain

      @Stability(Stable) public void setBlockOverrideDomain(@Nullable String value)
    • getBlockOverrideTtl

      @Stability(Stable) @Nullable public Number getBlockOverrideTtl()
    • setBlockOverrideTtl

      @Stability(Stable) public void setBlockOverrideTtl(@Nullable Number value)
    • getBlockResponse

      @Stability(Stable) @Nullable public String getBlockResponse()
    • setBlockResponse

      @Stability(Stable) public void setBlockResponse(@Nullable String value)
    • getClientToken

      @Stability(Stable) @Nullable public String getClientToken()
    • setClientToken

      @Stability(Stable) public void setClientToken(@Nullable String value)
    • getConfidenceThreshold

      @Stability(Stable) @Nullable public String getConfidenceThreshold()
    • setConfidenceThreshold

      @Stability(Stable) public void setConfidenceThreshold(@Nullable String value)
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
    • getDnsAdvancedProtection

      @Stability(Stable) @Nullable public String getDnsAdvancedProtection()
    • setDnsAdvancedProtection

      @Stability(Stable) public void setDnsAdvancedProtection(@Nullable String value)
    • getFirewallDomainListId

      @Stability(Stable) @Nullable public String getFirewallDomainListId()
    • setFirewallDomainListId

      @Stability(Stable) public void setFirewallDomainListId(@Nullable String value)
    • getPriority

      @Stability(Stable) @Nullable public Number getPriority()
    • setPriority

      @Stability(Stable) public void setPriority(@Nullable Number value)
    • getQType

      @Stability(Stable) @Nullable public String getQType()
    • setQType

      @Stability(Stable) public void setQType(@Nullable String value)