class FirewallRuleGroupAssociation (construct)
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Route53Resolver.Alpha.FirewallRuleGroupAssociation |
![]() | github.com/aws/aws-cdk-go/awscdkroute53resolveralpha/v2#FirewallRuleGroupAssociation |
![]() | software.amazon.awscdk.services.route53resolver.alpha.FirewallRuleGroupAssociation |
![]() | aws_cdk.aws_route53resolver_alpha.FirewallRuleGroupAssociation |
![]() | @aws-cdk/aws-route53resolver-alpha ยป FirewallRuleGroupAssociation |
Implements
IConstruct
, IDependable
, IResource
A Firewall Rule Group Association.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as route53resolver_alpha from '@aws-cdk/aws-route53resolver-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const firewallRuleGroup: route53resolver_alpha.FirewallRuleGroup;
declare const vpc: ec2.Vpc;
const firewallRuleGroupAssociation = new route53resolver_alpha.FirewallRuleGroupAssociation(this, 'MyFirewallRuleGroupAssociation', {
firewallRuleGroup: firewallRuleGroup,
priority: 123,
vpc: vpc,
// the properties below are optional
mutationProtection: false,
name: 'name',
});
Initializer
new FirewallRuleGroupAssociation(scope: Construct, id: string, props: FirewallRuleGroupAssociationProps)
Parameters
- scope
Construct
- id
string
- props
Firewall
Rule Group Association Props
Construct Props
Name | Type | Description |
---|---|---|
firewall | IFirewall | The firewall rule group which must be associated. |
priority | number | The setting that determines the processing order of the rule group among the rule groups that are associated with a single VPC. |
vpc | IVpc | The VPC that to associate with the rule group. |
mutation | boolean | If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. |
name? | string | The name of the association. |
firewallRuleGroup
Type:
IFirewall
The firewall rule group which must be associated.
priority
Type:
number
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
Type:
IVpc
The VPC that to associate with the rule group.
mutationProtection?
Type:
boolean
(optional, default: true)
If enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections.
name?
Type:
string
(optional, default: a CloudFormation generated name)
The name of the association.
Properties
Name | Type | Description |
---|---|---|
env | Resource | The environment this resource belongs to. |
firewall | string | The ARN (Amazon Resource Name) of the association. |
firewall | string | The date and time that the association was created. |
firewall | string | The creator request ID. |
firewall | string | The ID of the association. |
firewall | string | The owner of the association, used only for lists that are not managed by you. |
firewall | string | The date and time that the association was last modified. |
firewall | string | The status of the association. |
firewall | string | Additional information about the status of the association. |
node | Node | The tree node. |
stack | Stack | The stack in which this resource is defined. |
env
Type:
Resource
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.
firewallRuleGroupAssociationArn
Type:
string
The ARN (Amazon Resource Name) of the association.
firewallRuleGroupAssociationCreationTime
Type:
string
The date and time that the association was created.
firewallRuleGroupAssociationCreatorRequestId
Type:
string
The creator request ID.
firewallRuleGroupAssociationId
Type:
string
The ID of the association.
firewallRuleGroupAssociationManagedOwnerName
Type:
string
The owner of the association, used only for lists that are not managed by you.
If you use AWS Firewall Manager to manage your firewalls from DNS Firewall, then this reports Firewall Manager as the managed owner.
firewallRuleGroupAssociationModificationTime
Type:
string
The date and time that the association was last modified.
firewallRuleGroupAssociationStatus
Type:
string
The status of the association.
firewallRuleGroupAssociationStatusMessage
Type:
string
Additional information about the status of the association.
node
Type:
Node
The tree node.
stack
Type:
Stack
The stack in which this resource is defined.
Methods
Name | Description |
---|---|
apply | Apply the given removal policy to this resource. |
to | Returns a string representation of this construct. |
applyRemovalPolicy(policy)
public applyRemovalPolicy(policy: RemovalPolicy): void
Parameters
- policy
Removal
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
).
toString()
public toString(): string
Returns
string
Returns a string representation of this construct.