FirewallDomainListProps

class aws_cdk.aws_route53resolver_alpha.FirewallDomainListProps(*, domains, name=None)

Bases: object

(experimental) Properties for a Firewall Domain List.

Parameters:
  • domains (FirewallDomains) – (experimental) A list of domains.

  • name (Optional[str]) – (experimental) A name for the domain list. Default: - a CloudFormation generated name

Stability:

experimental

ExampleMetadata:

infused

Example:

block_list = route53resolver.FirewallDomainList(self, "BlockList",
    domains=route53resolver.FirewallDomains.from_list(["bad-domain.com", "bot-domain.net"])
)

s3_list = route53resolver.FirewallDomainList(self, "S3List",
    domains=route53resolver.FirewallDomains.from_s3_url("s3://bucket/prefix/object")
)

asset_list = route53resolver.FirewallDomainList(self, "AssetList",
    domains=route53resolver.FirewallDomains.from_asset("/path/to/domains.txt")
)

Attributes

domains

(experimental) A list of domains.

Stability:

experimental

name

(experimental) A name for the domain list.

Default:
  • a CloudFormation generated name

Stability:

experimental