Class FirewallDomains

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.route53resolver.FirewallDomains
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.407Z") @Stability(Experimental) public abstract class FirewallDomains extends software.amazon.jsii.JsiiObject
(experimental) A list of domains.

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();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    FirewallDomains(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    FirewallDomains(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract DomainsConfig
    bind(software.constructs.Construct scope)
    (experimental) Binds the domains to a domain list.
    fromAsset(String assetPath)
    (experimental) Firewall domains created from a local disk path to a text file.
    (experimental) Firewall domains created from a list of domains.
    fromS3(IBucket bucket, String key)
    (experimental) Firewall domains created from a file stored in Amazon S3.
    (experimental) Firewall domains created from the URL of a file stored in Amazon S3.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • FirewallDomains

      protected FirewallDomains(software.amazon.jsii.JsiiObjectRef objRef)
    • FirewallDomains

      protected FirewallDomains(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • FirewallDomains

      @Stability(Experimental) protected FirewallDomains()
  • Method Details

    • fromAsset

      @Stability(Experimental) @NotNull public static FirewallDomains fromAsset(@NotNull String assetPath)
      (experimental) 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.

      Parameters:
      assetPath - path to the text file. This parameter is required.
    • fromList

      @Stability(Experimental) @NotNull public static FirewallDomains fromList(@NotNull List<String> list)
      (experimental) Firewall domains created from a list of domains.

      Parameters:
      list - the list of domains. This parameter is required.
    • fromS3

      @Stability(Experimental) @NotNull public static FirewallDomains fromS3(@NotNull IBucket bucket, @NotNull String key)
      (experimental) 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.

      Parameters:
      bucket - S3 bucket. This parameter is required.
      key - S3 key. This parameter is required.
    • fromS3Url

      @Stability(Experimental) @NotNull public static FirewallDomains fromS3Url(@NotNull String url)
      (experimental) 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.

      Parameters:
      url - S3 bucket url (s3://bucket/prefix/objet). This parameter is required.
    • bind

      @Stability(Experimental) @NotNull public abstract DomainsConfig bind(@NotNull software.constructs.Construct scope)
      (experimental) Binds the domains to a domain list.

      Parameters:
      scope - This parameter is required.