Class CfnFirewallRuleGroup

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.route53resolver.CfnFirewallRuleGroup
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-11T23:26:40.504Z") @Stability(Stable) public class CfnFirewallRuleGroup extends CfnResource implements IInspectable, ITaggable
High-level information for a firewall rule group.

A firewall rule group is a collection of rules that DNS Firewall uses to filter DNS network traffic for a VPC. To retrieve the rules for the rule group, call ListFirewallRules .

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.route53resolver.*;
 CfnFirewallRuleGroup cfnFirewallRuleGroup = CfnFirewallRuleGroup.Builder.create(this, "MyCfnFirewallRuleGroup")
         .firewallRules(List.of(FirewallRuleProperty.builder()
                 .action("action")
                 .priority(123)
                 // the properties below are optional
                 .blockOverrideDnsType("blockOverrideDnsType")
                 .blockOverrideDomain("blockOverrideDomain")
                 .blockOverrideTtl(123)
                 .blockResponse("blockResponse")
                 .confidenceThreshold("confidenceThreshold")
                 .dnsThreatProtection("dnsThreatProtection")
                 .firewallDomainListId("firewallDomainListId")
                 .firewallDomainRedirectionAction("firewallDomainRedirectionAction")
                 .firewallThreatProtectionId("firewallThreatProtectionId")
                 .qtype("qtype")
                 .build()))
         .name("name")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .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

    • CfnFirewallRuleGroup

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

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

      @Stability(Stable) public CfnFirewallRuleGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnFirewallRuleGroupProps props)
      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.
    • CfnFirewallRuleGroup

      @Stability(Stable) public CfnFirewallRuleGroup(@NotNull software.constructs.Construct scope, @NotNull String id)
      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.
  • Method Details

    • 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.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The ARN (Amazon Resource Name) of the rule group.
    • getAttrCreationTime

      @Stability(Stable) @NotNull public String getAttrCreationTime()
      The date and time that the rule group was created, in Unix time format and Coordinated Universal Time (UTC).
    • getAttrCreatorRequestId

      @Stability(Stable) @NotNull public String getAttrCreatorRequestId()
      A unique string defined by you to identify the request.

      This allows you to retry failed requests without the risk of running the operation twice. This can be any unique string, for example, a timestamp.

    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The ID of the rule group.
    • getAttrModificationTime

      @Stability(Stable) @NotNull public String getAttrModificationTime()
      The date and time that the rule group was last modified, in Unix time format and Coordinated Universal Time (UTC).
    • getAttrOwnerId

      @Stability(Stable) @NotNull public String getAttrOwnerId()
      The AWS account ID for the account that created the rule group.

      When a rule group is shared with your account, this is the account that has shared the rule group with you.

    • getAttrRuleCount

      @Stability(Stable) @NotNull public Number getAttrRuleCount()
      The number of rules in the rule group.
    • getAttrShareStatus

      @Stability(Stable) @NotNull public String getAttrShareStatus()
      Whether the rule group is shared with other AWS accounts , or was shared with the current account by another AWS account .

      Sharing is configured through AWS Resource Access Manager ( AWS RAM ).

    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      The status of the domain list.
    • getAttrStatusMessage

      @Stability(Stable) @NotNull public String getAttrStatusMessage()
      Additional information about the status of the rule group, if available.
    • getCfnProperties

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

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getFirewallRules

      @Stability(Stable) @Nullable public Object getFirewallRules()
      A list of the rules that you have defined.
    • setFirewallRules

      @Stability(Stable) public void setFirewallRules(@Nullable IResolvable value)
      A list of the rules that you have defined.
    • setFirewallRules

      @Stability(Stable) public void setFirewallRules(@Nullable List<Object> value)
      A list of the rules that you have defined.
    • getName

      @Stability(Stable) @Nullable public String getName()
      The name of the rule group.
    • setName

      @Stability(Stable) public void setName(@Nullable String value)
      The name of the rule group.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      A list of the tag keys and values that you want to associate with the rule group.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      A list of the tag keys and values that you want to associate with the rule group.