class FirewallDomainList (construct)
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Route53Resolver.Alpha.FirewallDomainList |
![]() | github.com/aws/aws-cdk-go/awscdkroute53resolveralpha/v2#FirewallDomainList |
![]() | software.amazon.awscdk.services.route53resolver.alpha.FirewallDomainList |
![]() | aws_cdk.aws_route53resolver_alpha.FirewallDomainList |
![]() | @aws-cdk/aws-route53resolver-alpha ยป FirewallDomainList |
Implements
IConstruct
, IDependable
, IResource
, IFirewall
A Firewall Domain List.
Example
const blockList = new route53resolver.FirewallDomainList(this, 'BlockList', {
domains: route53resolver.FirewallDomains.fromList(['bad-domain.com', 'bot-domain.net']),
});
const s3List = new route53resolver.FirewallDomainList(this, 'S3List', {
domains: route53resolver.FirewallDomains.fromS3Url('s3://bucket/prefix/object'),
});
const assetList = new route53resolver.FirewallDomainList(this, 'AssetList', {
domains: route53resolver.FirewallDomains.fromAsset('/path/to/domains.txt'),
});
Initializer
new FirewallDomainList(scope: Construct, id: string, props: FirewallDomainListProps)
Parameters
- scope
Construct
- id
string
- props
Firewall
Domain List Props
Construct Props
Name | Type | Description |
---|---|---|
domains | Firewall | A list of domains. |
name? | string | A name for the domain list. |
domains
Type:
Firewall
A list of domains.
name?
Type:
string
(optional, default: a CloudFormation generated name)
A name for the domain list.
Properties
Name | Type | Description |
---|---|---|
env | Resource | The environment this resource belongs to. |
firewall | string | The ARN (Amazon Resource Name) of the domain list. |
firewall | string | The date and time that the domain list was created. |
firewall | string | The creator request ID. |
firewall | number | The number of domains in the list. |
firewall | string | The ID of the domain list. |
firewall | string | The owner of the list, used only for lists that are not managed by you. |
firewall | string | The date and time that the domain list was last modified. |
firewall | string | The status of the domain list. |
firewall | string | Additional information about the status of the rule group. |
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.
firewallDomainListArn
Type:
string
The ARN (Amazon Resource Name) of the domain list.
firewallDomainListCreationTime
Type:
string
The date and time that the domain list was created.
firewallDomainListCreatorRequestId
Type:
string
The creator request ID.
firewallDomainListDomainCount
Type:
number
The number of domains in the list.
firewallDomainListId
Type:
string
The ID of the domain list.
firewallDomainListManagedOwnerName
Type:
string
The owner of the list, used only for lists that are not managed by you.
For example, the managed domain list AWSManagedDomainsMalwareDomainList
has the managed owner name Route 53 Resolver DNS Firewall
.
firewallDomainListModificationTime
Type:
string
The date and time that the domain list was last modified.
firewallDomainListStatus
Type:
string
The status of the domain list.
firewallDomainListStatusMessage
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
Name | Description |
---|---|
apply | Apply the given removal policy to this resource. |
to | Returns a string representation of this construct. |
static from | Import an existing Firewall Rule Group. |
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.
static fromFirewallDomainListId(scope, id, firewallDomainListId)
public static fromFirewallDomainListId(scope: Construct, id: string, firewallDomainListId: string): IFirewallDomainList
Parameters
- scope
Construct
- id
string
- firewallDomainListId
string
Returns
Import an existing Firewall Rule Group.