@aws-cdk_aws-route53resolver-alpha.FirewallRuleGroup

class FirewallRuleGroup (construct) ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Route53Resolver.Alpha.FirewallRuleGroup
Gogithub.com/aws/aws-cdk-go/awscdkroute53resolveralpha/v2#FirewallRuleGroup
Javasoftware.amazon.awscdk.services.route53resolver.alpha.FirewallRuleGroup
Pythonaws_cdk.aws_route53resolver_alpha.FirewallRuleGroup
TypeScript (source)@aws-cdk/aws-route53resolver-alpha ยป FirewallRuleGroup

Implements IConstruct, IDependable, IResource, IFirewallRuleGroup

A Firewall Rule Group.

Example

declare const myBlockList: route53resolver.FirewallDomainList;
new route53resolver.FirewallRuleGroup(this, 'RuleGroup', {
  rules: [
    {
      priority: 10,
      firewallDomainList: myBlockList,
      // block and reply with NODATA
      action: route53resolver.FirewallRuleAction.block(),
    },
  ],
});

Initializer

new FirewallRuleGroup(scope: Construct, id: string, props?: FirewallRuleGroupProps)

Parameters

  • scope Construct
  • id string
  • props FirewallRuleGroupProps

Construct Props

NameTypeDescription
name?๐Ÿ”นstringThe name of the rule group.
rules?๐Ÿ”นFirewallRule[]A list of rules for this group.

name?๐Ÿ”น

Type: string (optional, default: a CloudFormation generated name)

The name of the rule group.


rules?๐Ÿ”น

Type: FirewallRule[] (optional, default: no rules)

A list of rules for this group.

Properties

NameTypeDescription
env๐Ÿ”นResourceEnvironmentThe environment this resource belongs to.
firewallRuleGroupArn๐Ÿ”นstringThe ARN (Amazon Resource Name) of the rule group.
firewallRuleGroupCreationTime๐Ÿ”นstringThe date and time that the rule group was created.
firewallRuleGroupCreatorRequestId๐Ÿ”นstringThe creator request ID.
firewallRuleGroupId๐Ÿ”นstringThe ID of the rule group.
firewallRuleGroupModificationTime๐Ÿ”นstringThe date and time that the rule group was last modified.
firewallRuleGroupOwnerId๐Ÿ”นstringThe AWS account ID for the account that created the rule group.
firewallRuleGroupRuleCount๐Ÿ”นnumberThe number of rules in the rule group.
firewallRuleGroupShareStatus๐Ÿ”นstringWhether the rule group is shared with other AWS accounts, or was shared with the current account by another AWS account.
firewallRuleGroupStatus๐Ÿ”นstringThe status of the rule group.
firewallRuleGroupStatusMessage๐Ÿ”นstringAdditional information about the status of the rule group.
node๐Ÿ”นNodeThe tree node.
stack๐Ÿ”นStackThe stack in which this resource is defined.

env๐Ÿ”น

Type: ResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


firewallRuleGroupArn๐Ÿ”น

Type: string

The ARN (Amazon Resource Name) of the rule group.


firewallRuleGroupCreationTime๐Ÿ”น

Type: string

The date and time that the rule group was created.


firewallRuleGroupCreatorRequestId๐Ÿ”น

Type: string

The creator request ID.


firewallRuleGroupId๐Ÿ”น

Type: string

The ID of the rule group.


firewallRuleGroupModificationTime๐Ÿ”น

Type: string

The date and time that the rule group was last modified.


firewallRuleGroupOwnerId๐Ÿ”น

Type: string

The AWS account ID for the account that created the rule group.


firewallRuleGroupRuleCount๐Ÿ”น

Type: number

The number of rules in the rule group.


firewallRuleGroupShareStatus๐Ÿ”น

Type: string

Whether the rule group is shared with other AWS accounts, or was shared with the current account by another AWS account.


firewallRuleGroupStatus๐Ÿ”น

Type: string

The status of the rule group.


firewallRuleGroupStatusMessage๐Ÿ”น

Type: string

Additional information about the status of the rule group.


node๐Ÿ”น

Type: Node

The tree node.


stack๐Ÿ”น

Type: Stack

The stack in which this resource is defined.

Methods

NameDescription
addRule(rule)๐Ÿ”นAdds a rule to this group.
applyRemovalPolicy(policy)๐Ÿ”นApply the given removal policy to this resource.
associate(id, props)๐Ÿ”นAssociates this Firewall Rule Group with a VPC.
toString()๐Ÿ”นReturns a string representation of this construct.
static fromFirewallRuleGroupId(scope, id, firewallRuleGroupId)๐Ÿ”นImport an existing Firewall Rule Group.

addRule(rule)๐Ÿ”น

public addRule(rule: FirewallRule): FirewallRuleGroup

Parameters

  • rule FirewallRule

Returns

  • FirewallRuleGroup

Adds a rule to this group.


applyRemovalPolicy(policy)๐Ÿ”น

public applyRemovalPolicy(policy: RemovalPolicy): void

Parameters

  • policy RemovalPolicy

Apply the given removal policy to this resource.

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).


associate(id, props)๐Ÿ”น

public associate(id: string, props: FirewallRuleGroupAssociationOptions): FirewallRuleGroupAssociation

Parameters

  • id string
  • props FirewallRuleGroupAssociationOptions

Returns

  • FirewallRuleGroupAssociation

Associates this Firewall Rule Group with a VPC.


toString()๐Ÿ”น

public toString(): string

Returns

  • string

Returns a string representation of this construct.


static fromFirewallRuleGroupId(scope, id, firewallRuleGroupId)๐Ÿ”น

public static fromFirewallRuleGroupId(scope: Construct, id: string, firewallRuleGroupId: string): IFirewallRuleGroup

Parameters

  • scope Construct
  • id string
  • firewallRuleGroupId string

Returns

  • IFirewallRuleGroup

Import an existing Firewall Rule Group.