Class: AWSCDK::WorkspacesWeb::CfnUserSettings::ImageMetadataProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
workspaces_web/cfn_user_settings.rb

Overview

Metadata information about an uploaded image file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_extension:, last_upload_timestamp:, mime_type:) ⇒ ImageMetadataProperty

Returns a new instance of ImageMetadataProperty.

Parameters:

  • file_extension (String)

    The file extension of the image.

  • last_upload_timestamp (String)

    The timestamp when the image was last uploaded.

  • mime_type (String)

    The MIME type of the image.



971
972
973
974
975
976
977
978
# File 'workspaces_web/cfn_user_settings.rb', line 971

def initialize(file_extension:, last_upload_timestamp:, mime_type:)
  @file_extension = file_extension
  Jsii::Type.check_type(@file_extension, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fileExtension")
  @last_upload_timestamp = last_upload_timestamp
  Jsii::Type.check_type(@last_upload_timestamp, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lastUploadTimestamp")
  @mime_type = mime_type
  Jsii::Type.check_type(@mime_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mimeType")
end

Instance Attribute Details

#file_extensionString (readonly)

The file extension of the image.



984
985
986
# File 'workspaces_web/cfn_user_settings.rb', line 984

def file_extension
  @file_extension
end

#last_upload_timestampString (readonly)

The timestamp when the image was last uploaded.



989
990
991
# File 'workspaces_web/cfn_user_settings.rb', line 989

def last_upload_timestamp
  @last_upload_timestamp
end

#mime_typeString (readonly)

The MIME type of the image.



994
995
996
# File 'workspaces_web/cfn_user_settings.rb', line 994

def mime_type
  @mime_type
end

Class Method Details

.jsii_propertiesObject



996
997
998
999
1000
1001
1002
# File 'workspaces_web/cfn_user_settings.rb', line 996

def self.jsii_properties
  {
    :file_extension => "fileExtension",
    :last_upload_timestamp => "lastUploadTimestamp",
    :mime_type => "mimeType",
  }
end

Instance Method Details

#to_jsiiObject



1004
1005
1006
1007
1008
1009
1010
1011
1012
# File 'workspaces_web/cfn_user_settings.rb', line 1004

def to_jsii
  result = {}
  result.merge!({
    "fileExtension" => @file_extension,
    "lastUploadTimestamp" => @last_upload_timestamp,
    "mimeType" => @mime_type,
  })
  result.compact
end