Class: AWSCDK::Route53Resolver::CfnOutpostResolverProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53Resolver::CfnOutpostResolverProps
- Defined in:
- route53_resolver/cfn_outpost_resolver_props.rb
Overview
Properties for defining a CfnOutpostResolver.
Instance Attribute Summary collapse
-
#instance_count ⇒ Numeric?
readonly
Amazon EC2 instance count for the Resolver on the Outpost.
-
#name ⇒ String
readonly
Name of the Resolver.
-
#outpost_arn ⇒ String
readonly
The ARN (Amazon Resource Name) for the Outpost.
-
#preferred_instance_type ⇒ String
readonly
The Amazon EC2 instance type.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A key value pair that helps you identify a Route 53 Resolver .
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, outpost_arn:, preferred_instance_type:, instance_count: nil, tags: nil) ⇒ CfnOutpostResolverProps
constructor
A new instance of CfnOutpostResolverProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, outpost_arn:, preferred_instance_type:, instance_count: nil, tags: nil) ⇒ CfnOutpostResolverProps
Returns a new instance of CfnOutpostResolverProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'route53_resolver/cfn_outpost_resolver_props.rb', line 14 def initialize(name:, outpost_arn:, preferred_instance_type:, instance_count: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @outpost_arn = outpost_arn Jsii::Type.check_type(@outpost_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "outpostArn") @preferred_instance_type = preferred_instance_type Jsii::Type.check_type(@preferred_instance_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "preferredInstanceType") @instance_count = instance_count Jsii::Type.check_type(@instance_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "instanceCount") unless @instance_count.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
#instance_count ⇒ Numeric? (readonly)
Amazon EC2 instance count for the Resolver on the Outpost.
48 49 50 |
# File 'route53_resolver/cfn_outpost_resolver_props.rb', line 48 def instance_count @instance_count end |
#name ⇒ String (readonly)
Name of the Resolver.
31 32 33 |
# File 'route53_resolver/cfn_outpost_resolver_props.rb', line 31 def name @name end |
#outpost_arn ⇒ String (readonly)
The ARN (Amazon Resource Name) for the Outpost.
36 37 38 |
# File 'route53_resolver/cfn_outpost_resolver_props.rb', line 36 def outpost_arn @outpost_arn end |
#preferred_instance_type ⇒ String (readonly)
The Amazon EC2 instance type.
If you specify this, you must also specify a value for the OutpostArn .
43 44 45 |
# File 'route53_resolver/cfn_outpost_resolver_props.rb', line 43 def preferred_instance_type @preferred_instance_type end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A key value pair that helps you identify a Route 53 Resolver .
53 54 55 |
# File 'route53_resolver/cfn_outpost_resolver_props.rb', line 53 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
55 56 57 58 59 60 61 62 63 |
# File 'route53_resolver/cfn_outpost_resolver_props.rb', line 55 def self.jsii_properties { :name => "name", :outpost_arn => "outpostArn", :preferred_instance_type => "preferredInstanceType", :instance_count => "instanceCount", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 |
# File 'route53_resolver/cfn_outpost_resolver_props.rb', line 65 def to_jsii result = {} result.merge!({ "name" => @name, "outpostArn" => @outpost_arn, "preferredInstanceType" => @preferred_instance_type, "instanceCount" => @instance_count, "tags" => @tags, }) result.compact end |