Class: AWSCDK::Connect::CfnWorkspace::MediaItemProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_workspace.rb

Overview

Contains information about a media asset used in a workspace.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, source: nil) ⇒ MediaItemProperty

Returns a new instance of MediaItemProperty.

Parameters:

  • type (String)

    The type of media.

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

    The source URL or data for the media asset.



677
678
679
680
681
682
# File 'connect/cfn_workspace.rb', line 677

def initialize(type:, source: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @source = source
  Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source") unless @source.nil?
end

Instance Attribute Details

#sourceString? (readonly)

The source URL or data for the media asset.



695
696
697
# File 'connect/cfn_workspace.rb', line 695

def source
  @source
end

#typeString (readonly)

The type of media.

Valid values are: IMAGE_LOGO_FAVICON and IMAGE_LOGO_HORIZONTAL .



690
691
692
# File 'connect/cfn_workspace.rb', line 690

def type
  @type
end

Class Method Details

.jsii_propertiesObject



697
698
699
700
701
702
# File 'connect/cfn_workspace.rb', line 697

def self.jsii_properties
  {
    :type => "type",
    :source => "source",
  }
end

Instance Method Details

#to_jsiiObject



704
705
706
707
708
709
710
711
# File 'connect/cfn_workspace.rb', line 704

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