Class: AWSCDK::Route53Resolver::CfnOutpostResolverProps

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

Overview

Properties for defining a CfnOutpostResolver.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, outpost_arn:, preferred_instance_type:, instance_count: nil, tags: nil) ⇒ CfnOutpostResolverProps

Returns a new instance of CfnOutpostResolverProps.

Parameters:

  • name (String)

    Name of the Resolver.

  • outpost_arn (String)

    The ARN (Amazon Resource Name) for the Outpost.

  • preferred_instance_type (String)

    The Amazon EC2 instance type.

  • instance_count (Numeric, nil) (defaults to: nil)

    Amazon EC2 instance count for the Resolver on the Outpost.

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

    A key value pair that helps you identify a Route 53 Resolver .



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

#instance_countNumeric? (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

#nameString (readonly)

Name of the Resolver.



31
32
33
# File 'route53_resolver/cfn_outpost_resolver_props.rb', line 31

def name
  @name
end

#outpost_arnString (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_typeString (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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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