FirewallRuleGroupAssociation

class aws_cdk.aws_route53resolver.FirewallRuleGroupAssociation(scope, id, *, firewall_rule_group, priority, vpc, mutation_protection=None, name=None)

Bases: Resource

(experimental) A Firewall Rule Group Association.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2
import aws_cdk.aws_route53resolver as route53resolver

# firewall_rule_group: route53resolver.FirewallRuleGroup
# vpc: ec2.Vpc

firewall_rule_group_association = route53resolver.FirewallRuleGroupAssociation(self, "MyFirewallRuleGroupAssociation",
    firewall_rule_group=firewall_rule_group,
    priority=123,
    vpc=vpc,

    # the properties below are optional
    mutation_protection=False,
    name="name"
)
Parameters:
  • scope (Construct) –

  • id (str) –

  • firewall_rule_group (IFirewallRuleGroup) – (experimental) The firewall rule group which must be associated.

  • priority (Union[int, float]) – (experimental) The setting that determines the processing order of the rule group among the rule groups that are associated with a single VPC. DNS Firewall filters VPC traffic starting from rule group with the lowest numeric priority setting. This value must be greater than 100 and less than 9,000

  • vpc (IVpc) – (experimental) The VPC that to associate with the rule group.

  • mutation_protection (Optional[bool]) – (experimental) If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. Default: true

  • name (Optional[str]) – (experimental) The name of the association. Default: - a CloudFormation generated name

Stability:

experimental

Methods

apply_removal_policy(policy)

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).

Parameters:

policy (RemovalPolicy) –

Return type:

None

to_string()

Returns a string representation of this construct.

Return type:

str

Attributes

env

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.

firewall_rule_group_association_arn

(experimental) The ARN (Amazon Resource Name) of the association.

Stability:

experimental

Attribute:

true

firewall_rule_group_association_creation_time

(experimental) The date and time that the association was created.

Stability:

experimental

Attribute:

true

firewall_rule_group_association_creator_request_id

(experimental) The creator request ID.

Stability:

experimental

Attribute:

true

firewall_rule_group_association_id

(experimental) The ID of the association.

Stability:

experimental

Attribute:

true

firewall_rule_group_association_managed_owner_name

(experimental) The owner of the association, used only for lists that are not managed by you.

If you use AWS Firewall Manager to manage your firewallls from DNS Firewall, then this reports Firewall Manager as the managed owner.

Stability:

experimental

Attribute:

true

firewall_rule_group_association_modification_time

(experimental) The date and time that the association was last modified.

Stability:

experimental

Attribute:

true

firewall_rule_group_association_status

(experimental) The status of the association.

Stability:

experimental

Attribute:

true

firewall_rule_group_association_status_message

(experimental) Additional information about the status of the association.

Stability:

experimental

Attribute:

true

node

The construct tree node associated with this construct.

stack

The stack in which this resource is defined.

Static Methods

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters:

x (Any) –

Return type:

bool

classmethod is_resource(construct)

Check whether the given construct is a Resource.

Parameters:

construct (IConstruct) –

Return type:

bool