Class: AWSCDK::Route53GlobalResolver::CfnGlobalResolverProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53_global_resolver/cfn_global_resolver_props.rb

Overview

Properties for defining a CfnGlobalResolver.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • name (String)
  • regions (Array<String>)

    A list of regions the Global Resolver will exist in.

  • client_token (String, nil) (defaults to: nil)
  • description (String, nil) (defaults to: nil)
  • ip_address_type (String, nil) (defaults to: nil)
  • observability_region (String, nil) (defaults to: nil)
  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)


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 = 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

#client_tokenString? (readonly)



45
46
47
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 45

def client_token
  @client_token
end

#descriptionString? (readonly)



48
49
50
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 48

def description
  @description
end

#ip_address_typeString? (readonly)



51
52
53
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 51

def ip_address_type
  @ip_address_type
end

#nameString (readonly)



35
36
37
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 35

def name
  @name
end

#observability_regionString? (readonly)



54
55
56
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 54

def observability_region
  @observability_region
end

#regionsArray<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

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



57
58
59
# File 'route53_global_resolver/cfn_global_resolver_props.rb', line 57

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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