Class: AWSCDK::Interfaces::AWSBackupgateway::HypervisorReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_backupgateway/hypervisor_reference.rb

Overview

A reference to a Hypervisor resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hypervisor_arn:) ⇒ HypervisorReference

Returns a new instance of HypervisorReference.

Parameters:

  • hypervisor_arn (String)

    The HypervisorArn of the Hypervisor resource.



8
9
10
11
# File 'interfaces/aws_backupgateway/hypervisor_reference.rb', line 8

def initialize(hypervisor_arn:)
  @hypervisor_arn = hypervisor_arn
  Jsii::Type.check_type(@hypervisor_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hypervisorArn")
end

Instance Attribute Details

#hypervisor_arnString (readonly)

The HypervisorArn of the Hypervisor resource.

Returns:

  • (String)


16
17
18
# File 'interfaces/aws_backupgateway/hypervisor_reference.rb', line 16

def hypervisor_arn
  @hypervisor_arn
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'interfaces/aws_backupgateway/hypervisor_reference.rb', line 18

def self.jsii_properties
  {
    :hypervisor_arn => "hypervisorArn",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'interfaces/aws_backupgateway/hypervisor_reference.rb', line 24

def to_jsii
  result = {}
  result.merge!({
    "hypervisorArn" => @hypervisor_arn,
  })
  result.compact
end