Class: AWSCDK::Interfaces::AWSMediatailor::SourceLocationReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_mediatailor/source_location_reference.rb

Overview

A reference to a SourceLocation resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_location_arn:, source_location_name:) ⇒ SourceLocationReference

Returns a new instance of SourceLocationReference.

Parameters:

  • source_location_arn (String)

    The ARN of the SourceLocation resource.

  • source_location_name (String)

    The SourceLocationName of the SourceLocation resource.



9
10
11
12
13
14
# File 'interfaces/aws_mediatailor/source_location_reference.rb', line 9

def initialize(source_location_arn:, source_location_name:)
  @source_location_arn = source_location_arn
  Jsii::Type.check_type(@source_location_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceLocationArn")
  @source_location_name = source_location_name
  Jsii::Type.check_type(@source_location_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceLocationName")
end

Instance Attribute Details

#source_location_arnString (readonly)

The ARN of the SourceLocation resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_mediatailor/source_location_reference.rb', line 19

def source_location_arn
  @source_location_arn
end

#source_location_nameString (readonly)

The SourceLocationName of the SourceLocation resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_mediatailor/source_location_reference.rb', line 23

def source_location_name
  @source_location_name
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_mediatailor/source_location_reference.rb', line 25

def self.jsii_properties
  {
    :source_location_arn => "sourceLocationArn",
    :source_location_name => "sourceLocationName",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "sourceLocationArn" => @source_location_arn,
    "sourceLocationName" => @source_location_name,
  })
  result.compact
end