Class: AWSCDK::Route53GlobalResolver::CfnDNSViewProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53GlobalResolver::CfnDNSViewProps
- Defined in:
- route53_global_resolver/cfn_dns_view_props.rb
Overview
Properties for defining a CfnDnsView.
Instance Attribute Summary collapse
- #client_token ⇒ String? readonly
- #description ⇒ String? readonly
- #dnssec_validation ⇒ String? readonly
- #edns_client_subnet ⇒ String? readonly
- #firewall_rules_fail_open ⇒ String? readonly
- #global_resolver_id ⇒ String readonly
- #name ⇒ String readonly
- #tags ⇒ Array<AWSCDK::CfnTag>? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(global_resolver_id:, name:, client_token: nil, description: nil, dnssec_validation: nil, edns_client_subnet: nil, firewall_rules_fail_open: nil, tags: nil) ⇒ CfnDNSViewProps
constructor
A new instance of CfnDNSViewProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(global_resolver_id:, name:, client_token: nil, description: nil, dnssec_validation: nil, edns_client_subnet: nil, firewall_rules_fail_open: nil, tags: nil) ⇒ CfnDNSViewProps
Returns a new instance of CfnDNSViewProps.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'route53_global_resolver/cfn_dns_view_props.rb', line 17 def initialize(global_resolver_id:, name:, client_token: nil, description: nil, dnssec_validation: nil, edns_client_subnet: nil, firewall_rules_fail_open: nil, tags: nil) @global_resolver_id = global_resolver_id Jsii::Type.check_type(@global_resolver_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "globalResolverId") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @client_token = client_token Jsii::Type.check_type(@client_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientToken") unless @client_token.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @dnssec_validation = dnssec_validation Jsii::Type.check_type(@dnssec_validation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dnssecValidation") unless @dnssec_validation.nil? @edns_client_subnet = edns_client_subnet Jsii::Type.check_type(@edns_client_subnet, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ednsClientSubnet") unless @edns_client_subnet.nil? @firewall_rules_fail_open = firewall_rules_fail_open Jsii::Type.check_type(@firewall_rules_fail_open, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "firewallRulesFailOpen") unless @firewall_rules_fail_open.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#client_token ⇒ String? (readonly)
44 45 46 |
# File 'route53_global_resolver/cfn_dns_view_props.rb', line 44 def client_token @client_token end |
#description ⇒ String? (readonly)
47 48 49 |
# File 'route53_global_resolver/cfn_dns_view_props.rb', line 47 def description @description end |
#dnssec_validation ⇒ String? (readonly)
50 51 52 |
# File 'route53_global_resolver/cfn_dns_view_props.rb', line 50 def dnssec_validation @dnssec_validation end |
#edns_client_subnet ⇒ String? (readonly)
53 54 55 |
# File 'route53_global_resolver/cfn_dns_view_props.rb', line 53 def edns_client_subnet @edns_client_subnet end |
#firewall_rules_fail_open ⇒ String? (readonly)
56 57 58 |
# File 'route53_global_resolver/cfn_dns_view_props.rb', line 56 def firewall_rules_fail_open @firewall_rules_fail_open end |
#global_resolver_id ⇒ String (readonly)
38 39 40 |
# File 'route53_global_resolver/cfn_dns_view_props.rb', line 38 def global_resolver_id @global_resolver_id end |
#name ⇒ String (readonly)
41 42 43 |
# File 'route53_global_resolver/cfn_dns_view_props.rb', line 41 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
59 60 61 |
# File 'route53_global_resolver/cfn_dns_view_props.rb', line 59 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'route53_global_resolver/cfn_dns_view_props.rb', line 61 def self.jsii_properties { :global_resolver_id => "globalResolverId", :name => "name", :client_token => "clientToken", :description => "description", :dnssec_validation => "dnssecValidation", :edns_client_subnet => "ednsClientSubnet", :firewall_rules_fail_open => "firewallRulesFailOpen", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'route53_global_resolver/cfn_dns_view_props.rb', line 74 def to_jsii result = {} result.merge!({ "globalResolverId" => @global_resolver_id, "name" => @name, "clientToken" => @client_token, "description" => @description, "dnssecValidation" => @dnssec_validation, "ednsClientSubnet" => @edns_client_subnet, "firewallRulesFailOpen" => @firewall_rules_fail_open, "tags" => @tags, }) result.compact end |