Class: AWSCDK::Interfaces::AWSLightsail::StaticIPReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_lightsail/static_ip_reference.rb

Overview

A reference to a StaticIp resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(static_ip_arn:, static_ip_name:) ⇒ StaticIPReference

Returns a new instance of StaticIPReference.

Parameters:

  • static_ip_arn (String)

    The ARN of the StaticIp resource.

  • static_ip_name (String)

    The StaticIpName of the StaticIp resource.



9
10
11
12
13
14
# File 'interfaces/aws_lightsail/static_ip_reference.rb', line 9

def initialize(static_ip_arn:, static_ip_name:)
  @static_ip_arn = static_ip_arn
  Jsii::Type.check_type(@static_ip_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "staticIpArn")
  @static_ip_name = static_ip_name
  Jsii::Type.check_type(@static_ip_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "staticIpName")
end

Instance Attribute Details

#static_ip_arnString (readonly)

The ARN of the StaticIp resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_lightsail/static_ip_reference.rb', line 19

def static_ip_arn
  @static_ip_arn
end

#static_ip_nameString (readonly)

The StaticIpName of the StaticIp resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_lightsail/static_ip_reference.rb', line 23

def static_ip_name
  @static_ip_name
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_lightsail/static_ip_reference.rb', line 25

def self.jsii_properties
  {
    :static_ip_arn => "staticIpArn",
    :static_ip_name => "staticIpName",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_lightsail/static_ip_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "staticIpArn" => @static_ip_arn,
    "staticIpName" => @static_ip_name,
  })
  result.compact
end