Class: AWSCDK::MediaLive::CfnSdiSourceProps

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

Overview

Properties for defining a CfnSdiSource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, type:, mode: nil, tags: nil) ⇒ CfnSdiSourceProps

Returns a new instance of CfnSdiSourceProps.

Parameters:

  • name (String)

    The name of the SdiSource.

  • type (String)

    The interface mode of the SdiSource.

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

    The current state of the SdiSource.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    A collection of key-value pairs.



13
14
15
16
17
18
19
20
21
22
# File 'media_live/cfn_sdi_source_props.rb', line 13

def initialize(name:, type:, mode: nil, tags: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @mode = mode
  Jsii::Type.check_type(@mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mode") unless @mode.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#modeString? (readonly)

The current state of the SdiSource.



38
39
40
# File 'media_live/cfn_sdi_source_props.rb', line 38

def mode
  @mode
end

#nameString (readonly)

The name of the SdiSource.



28
29
30
# File 'media_live/cfn_sdi_source_props.rb', line 28

def name
  @name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

A collection of key-value pairs.



43
44
45
# File 'media_live/cfn_sdi_source_props.rb', line 43

def tags
  @tags
end

#typeString (readonly)

The interface mode of the SdiSource.



33
34
35
# File 'media_live/cfn_sdi_source_props.rb', line 33

def type
  @type
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'media_live/cfn_sdi_source_props.rb', line 45

def self.jsii_properties
  {
    :name => "name",
    :type => "type",
    :mode => "mode",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'media_live/cfn_sdi_source_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "type" => @type,
    "mode" => @mode,
    "tags" => @tags,
  })
  result.compact
end