@Generated(value="jsii-pacmak/1.62.0 (build 293ac17)", date="2022-07-30T00:01:30.893Z") @Stability(value=Experimental) public abstract class FirewallDomains extends software.amazon.jsii.JsiiObject
Example:
FirewallDomainList blockList = FirewallDomainList.Builder.create(this, "BlockList")
.domains(FirewallDomains.fromList(List.of("bad-domain.com", "bot-domain.net")))
.build();
FirewallDomainList s3List = FirewallDomainList.Builder.create(this, "S3List")
.domains(FirewallDomains.fromS3Url("s3://bucket/prefix/object"))
.build();
FirewallDomainList assetList = FirewallDomainList.Builder.create(this, "AssetList")
.domains(FirewallDomains.fromAsset("/path/to/domains.txt"))
.build();
| Modifier | Constructor and Description |
|---|---|
protected |
FirewallDomains() |
protected |
FirewallDomains(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FirewallDomains(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract DomainsConfig |
bind(software.constructs.Construct scope)
(experimental) Binds the domains to a domain list.
|
static FirewallDomains |
fromAsset(String assetPath)
(experimental) Firewall domains created from a local disk path to a text file.
|
static FirewallDomains |
fromList(List<String> list)
(experimental) Firewall domains created from a list of domains.
|
static FirewallDomains |
fromS3(IBucket bucket,
String key)
(experimental) Firewall domains created from a file stored in Amazon S3.
|
static FirewallDomains |
fromS3Url(String url)
(experimental) Firewall domains created from the URL of a file stored in Amazon S3.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected FirewallDomains(software.amazon.jsii.JsiiObjectRef objRef)
protected FirewallDomains(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected FirewallDomains()
@Stability(value=Experimental) @NotNull public static FirewallDomains fromAsset(@NotNull String assetPath)
The file must be a text file (.txt extension) and must contain a single
domain per line. It will be uploaded to S3.
assetPath - path to the text file. This parameter is required.@Stability(value=Experimental) @NotNull public static FirewallDomains fromList(@NotNull List<String> list)
list - the list of domains. This parameter is required.@Stability(value=Experimental) @NotNull public static FirewallDomains fromS3(@NotNull IBucket bucket, @NotNull String key)
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.
bucket - S3 bucket. This parameter is required.key - S3 key. This parameter is required.@Stability(value=Experimental) @NotNull public static FirewallDomains fromS3Url(@NotNull String url)
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.
url - S3 bucket url (s3://bucket/prefix/objet). This parameter is required.@Stability(value=Experimental) @NotNull public abstract DomainsConfig bind(@NotNull software.constructs.Construct scope)
scope - This parameter is required.Copyright © 2022. All rights reserved.