@aws-cdk_aws-route53resolver-alpha.FirewallDomains

class FirewallDomains ๐Ÿ”น

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

A list of domains.

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 FirewallDomains()

Methods

NameDescription
bind(scope)๐Ÿ”นBinds the domains to a domain list.
static fromAsset(assetPath)๐Ÿ”นFirewall domains created from a local disk path to a text file.
static fromList(list)๐Ÿ”นFirewall domains created from a list of domains.
static fromS3(bucket, key)๐Ÿ”นFirewall domains created from a file stored in Amazon S3.
static fromS3Url(url)๐Ÿ”นFirewall domains created from the URL of a file stored in Amazon S3.

bind(scope)๐Ÿ”น

public bind(scope: Construct): DomainsConfig

Parameters

  • scope Construct

Returns

  • DomainsConfig

Binds the domains to a domain list.


static fromAsset(assetPath)๐Ÿ”น

public static fromAsset(assetPath: string): FirewallDomains

Parameters

  • assetPath string โ€” path to the text file.

Returns

  • FirewallDomains

Firewall domains created from a local disk path to a text file.

The file must be a text file (.txt extension) and must contain a single domain per line. It will be uploaded to S3.


static fromList(list)๐Ÿ”น

public static fromList(list: string[]): FirewallDomains

Parameters

  • list string[] โ€” the list of domains.

Returns

  • FirewallDomains

Firewall domains created from a list of domains.


static fromS3(bucket, key)๐Ÿ”น

public static fromS3(bucket: IBucket, key: string): FirewallDomains

Parameters

  • bucket IBucket โ€” S3 bucket.
  • key string โ€” S3 key.

Returns

  • FirewallDomains

Firewall domains created from a file stored in Amazon S3.

The file must be a text file and must contain a single domain per line. The content type of the S3 object must be plain/text.


static fromS3Url(url)๐Ÿ”น

public static fromS3Url(url: string): FirewallDomains

Parameters

  • url string โ€” S3 bucket url (s3://bucket/prefix/objet).

Returns

  • FirewallDomains

Firewall domains created from the URL of a file stored in Amazon S3.

The file must be a text file and must contain a single domain per line. The content type of the S3 object must be plain/text.