Class: AWSCDK::MediaLive::CfnInput::InputSourceRequestProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_live/cfn_input.rb

Overview

Settings that apply only if the input is a pull type of input.

The parent of this entity is Input.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(password_param: nil, url: nil, username: nil) ⇒ InputSourceRequestProperty

Returns a new instance of InputSourceRequestProperty.

Parameters:

  • password_param (String, nil) (defaults to: nil)

    The password parameter that holds the password for accessing the upstream system.

  • url (String, nil) (defaults to: nil)

    For a pull input, the URL where MediaLive pulls the source content from.

  • username (String, nil) (defaults to: nil)

    The user name to connect to the upstream system.



963
964
965
966
967
968
969
970
# File 'media_live/cfn_input.rb', line 963

def initialize(password_param: nil, url: nil, username: nil)
  @password_param = password_param
  Jsii::Type.check_type(@password_param, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "passwordParam") unless @password_param.nil?
  @url = url
  Jsii::Type.check_type(@url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "url") unless @url.nil?
  @username = username
  Jsii::Type.check_type(@username, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "username") unless @username.nil?
end

Instance Attribute Details

#password_paramString? (readonly)

The password parameter that holds the password for accessing the upstream system.

The password parameter applies only if the upstream system requires credentials.



978
979
980
# File 'media_live/cfn_input.rb', line 978

def password_param
  @password_param
end

#urlString? (readonly)

For a pull input, the URL where MediaLive pulls the source content from.



983
984
985
# File 'media_live/cfn_input.rb', line 983

def url
  @url
end

#usernameString? (readonly)

The user name to connect to the upstream system.

The user name applies only if the upstream system requires credentials.



990
991
992
# File 'media_live/cfn_input.rb', line 990

def username
  @username
end

Class Method Details

.jsii_propertiesObject



992
993
994
995
996
997
998
# File 'media_live/cfn_input.rb', line 992

def self.jsii_properties
  {
    :password_param => "passwordParam",
    :url => "url",
    :username => "username",
  }
end

Instance Method Details

#to_jsiiObject



1000
1001
1002
1003
1004
1005
1006
1007
1008
# File 'media_live/cfn_input.rb', line 1000

def to_jsii
  result = {}
  result.merge!({
    "passwordParam" => @password_param,
    "url" => @url,
    "username" => @username,
  })
  result.compact
end