Class: AWSCDK::WorkspacesWeb::CfnUserSettings::ImageMetadataProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WorkspacesWeb::CfnUserSettings::ImageMetadataProperty
- Defined in:
- workspaces_web/cfn_user_settings.rb
Overview
Metadata information about an uploaded image file.
Instance Attribute Summary collapse
-
#file_extension ⇒ String
readonly
The file extension of the image.
-
#last_upload_timestamp ⇒ String
readonly
The timestamp when the image was last uploaded.
-
#mime_type ⇒ String
readonly
The MIME type of the image.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file_extension:, last_upload_timestamp:, mime_type:) ⇒ ImageMetadataProperty
constructor
A new instance of ImageMetadataProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(file_extension:, last_upload_timestamp:, mime_type:) ⇒ ImageMetadataProperty
Returns a new instance of ImageMetadataProperty.
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 = 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_extension ⇒ String (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_timestamp ⇒ String (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 end |
#mime_type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |