Class: AWSCDK::Interfaces::AWSMediatailor::LiveSourceReference

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

Overview

A reference to a LiveSource resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(live_source_arn:, live_source_name:, source_location_name:) ⇒ LiveSourceReference

Returns a new instance of LiveSourceReference.

Parameters:

  • live_source_arn (String)

    The ARN of the LiveSource resource.

  • live_source_name (String)

    The LiveSourceName of the LiveSource resource.

  • source_location_name (String)

    The SourceLocationName of the LiveSource resource.



10
11
12
13
14
15
16
17
# File 'interfaces/aws_mediatailor/live_source_reference.rb', line 10

def initialize(live_source_arn:, live_source_name:, source_location_name:)
  @live_source_arn = live_source_arn
  Jsii::Type.check_type(@live_source_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "liveSourceArn")
  @live_source_name = live_source_name
  Jsii::Type.check_type(@live_source_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "liveSourceName")
  @source_location_name = source_location_name
  Jsii::Type.check_type(@source_location_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceLocationName")
end

Instance Attribute Details

#live_source_arnString (readonly)

The ARN of the LiveSource resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_mediatailor/live_source_reference.rb', line 22

def live_source_arn
  @live_source_arn
end

#live_source_nameString (readonly)

The LiveSourceName of the LiveSource resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_mediatailor/live_source_reference.rb', line 26

def live_source_name
  @live_source_name
end

#source_location_nameString (readonly)

The SourceLocationName of the LiveSource resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_mediatailor/live_source_reference.rb', line 30

def source_location_name
  @source_location_name
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :live_source_arn => "liveSourceArn",
    :live_source_name => "liveSourceName",
    :source_location_name => "sourceLocationName",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'interfaces/aws_mediatailor/live_source_reference.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "liveSourceArn" => @live_source_arn,
    "liveSourceName" => @live_source_name,
    "sourceLocationName" => @source_location_name,
  })
  result.compact
end