Class: AWSCDK::Route53Resolver::CfnFirewallDomainListProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53_resolver/cfn_firewall_domain_list_props.rb

Overview

Properties for defining a CfnFirewallDomainList.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_file_url: nil, domains: nil, name: nil, tags: nil) ⇒ CfnFirewallDomainListProps

Returns a new instance of CfnFirewallDomainListProps.

Parameters:

  • domain_file_url (String, nil) (defaults to: nil)

    The fully qualified URL or URI of the file stored in Amazon Simple Storage Service (Amazon S3) that contains the list of domains to import.

  • domains (Array<String>, nil) (defaults to: nil)

    A list of the domain lists that you have defined.

  • name (String, nil) (defaults to: nil)

    The name of the domain list.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    A list of the tag keys and values that you want to associate with the domain list.



13
14
15
16
17
18
19
20
21
22
# File 'route53_resolver/cfn_firewall_domain_list_props.rb', line 13

def initialize(domain_file_url: nil, domains: nil, name: nil, tags: nil)
  @domain_file_url = domain_file_url
  Jsii::Type.check_type(@domain_file_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainFileUrl") unless @domain_file_url.nil?
  @domains = domains
  Jsii::Type.check_type(@domains, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "domains") unless @domains.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#domain_file_urlString? (readonly)

The fully qualified URL or URI of the file stored in Amazon Simple Storage Service (Amazon S3) that contains the list of domains to import.

The file must be in an S3 bucket that's in the same Region as your DNS Firewall. The file must be a text file and must contain a single domain per line.



30
31
32
# File 'route53_resolver/cfn_firewall_domain_list_props.rb', line 30

def domain_file_url
  @domain_file_url
end

#domainsArray<String>? (readonly)

A list of the domain lists that you have defined.



35
36
37
# File 'route53_resolver/cfn_firewall_domain_list_props.rb', line 35

def domains
  @domains
end

#nameString? (readonly)

The name of the domain list.



40
41
42
# File 'route53_resolver/cfn_firewall_domain_list_props.rb', line 40

def name
  @name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

A list of the tag keys and values that you want to associate with the domain list.



45
46
47
# File 'route53_resolver/cfn_firewall_domain_list_props.rb', line 45

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



47
48
49
50
51
52
53
54
# File 'route53_resolver/cfn_firewall_domain_list_props.rb', line 47

def self.jsii_properties
  {
    :domain_file_url => "domainFileUrl",
    :domains => "domains",
    :name => "name",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
65
# File 'route53_resolver/cfn_firewall_domain_list_props.rb', line 56

def to_jsii
  result = {}
  result.merge!({
    "domainFileUrl" => @domain_file_url,
    "domains" => @domains,
    "name" => @name,
    "tags" => @tags,
  })
  result.compact
end