Class: AWSCDK::Route53GlobalResolver::CfnGlobalResolverProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53GlobalResolver::CfnGlobalResolverProps
- Defined in:
- route53_global_resolver/cfn_global_resolver_props.rb
Overview
Properties for defining a CfnGlobalResolver.
Instance Attribute Summary collapse
- #client_token ⇒ String? readonly
- #description ⇒ String? readonly
- #ip_address_type ⇒ String? readonly
- #name ⇒ String readonly
- #observability_region ⇒ String? readonly
-
#regions ⇒ Array<String>
readonly
A list of regions the Global Resolver will exist in.
- #tags ⇒ Array<AWSCDK::CfnTag>? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, regions:, client_token: nil, description: nil, ip_address_type: nil, observability_region: nil, tags: nil) ⇒ CfnGlobalResolverProps
constructor
A new instance of CfnGlobalResolverProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, regions:, client_token: nil, description: nil, ip_address_type: nil, observability_region: nil, tags: nil) ⇒ CfnGlobalResolverProps
Returns a new instance of CfnGlobalResolverProps.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 16 def initialize(name:, regions:, client_token: nil, description: nil, ip_address_type: nil, observability_region: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @regions = regions Jsii::Type.check_type(@regions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "regions") @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? @ip_address_type = ip_address_type Jsii::Type.check_type(@ip_address_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipAddressType") unless @ip_address_type.nil? @observability_region = observability_region Jsii::Type.check_type(@observability_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "observabilityRegion") unless @observability_region.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)
45 46 47 |
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 45 def client_token @client_token end |
#description ⇒ String? (readonly)
48 49 50 |
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 48 def description @description end |
#ip_address_type ⇒ String? (readonly)
51 52 53 |
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 51 def ip_address_type @ip_address_type end |
#name ⇒ String (readonly)
35 36 37 |
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 35 def name @name end |
#observability_region ⇒ String? (readonly)
54 55 56 |
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 54 def observability_region @observability_region end |
#regions ⇒ Array<String> (readonly)
A list of regions the Global Resolver will exist in.
This list cannot be updated and will stay fixed for the duration of the Global Resolver.
42 43 44 |
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 42 def regions @regions end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
57 58 59 |
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 57 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 |
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 59 def self.jsii_properties { :name => "name", :regions => "regions", :client_token => "clientToken", :description => "description", :ip_address_type => "ipAddressType", :observability_region => "observabilityRegion", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 71 def to_jsii result = {} result.merge!({ "name" => @name, "regions" => @regions, "clientToken" => @client_token, "description" => @description, "ipAddressType" => @ip_address_type, "observabilityRegion" => @observability_region, "tags" => @tags, }) result.compact end |