Class: AWSCDK::Connect::CfnWorkspace::MediaItemProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnWorkspace::MediaItemProperty
- Defined in:
- connect/cfn_workspace.rb
Overview
Contains information about a media asset used in a workspace.
Instance Attribute Summary collapse
-
#source ⇒ String?
readonly
The source URL or data for the media asset.
-
#type ⇒ String
readonly
The type of media.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, source: nil) ⇒ MediaItemProperty
constructor
A new instance of MediaItemProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, source: nil) ⇒ MediaItemProperty
Returns a new instance of MediaItemProperty.
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
#source ⇒ String? (readonly)
The source URL or data for the media asset.
695 696 697 |
# File 'connect/cfn_workspace.rb', line 695 def source @source end |
#type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |