Class: AWSCDK::NimbleStudio::CfnStreamingImageProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NimbleStudio::CfnStreamingImageProps
- Defined in:
- nimble_studio/cfn_streaming_image_props.rb
Overview
Properties for defining a CfnStreamingImage.
Instance Attribute Summary collapse
- #description ⇒ String? readonly
- #ec2_image_id ⇒ String readonly
- #name ⇒ String readonly
- #studio_id ⇒ String readonly
- #tags ⇒ Hash{String => String}? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ec2_image_id:, name:, studio_id:, description: nil, tags: nil) ⇒ CfnStreamingImageProps
constructor
A new instance of CfnStreamingImageProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ec2_image_id:, name:, studio_id:, description: nil, tags: nil) ⇒ CfnStreamingImageProps
Returns a new instance of CfnStreamingImageProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'nimble_studio/cfn_streaming_image_props.rb', line 14 def initialize(ec2_image_id:, name:, studio_id:, description: nil, tags: nil) @ec2_image_id = ec2_image_id Jsii::Type.check_type(@ec2_image_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ec2ImageId") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @studio_id = studio_id Jsii::Type.check_type(@studio_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "studioId") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
38 39 40 |
# File 'nimble_studio/cfn_streaming_image_props.rb', line 38 def description @description end |
#ec2_image_id ⇒ String (readonly)
29 30 31 |
# File 'nimble_studio/cfn_streaming_image_props.rb', line 29 def ec2_image_id @ec2_image_id end |
#name ⇒ String (readonly)
32 33 34 |
# File 'nimble_studio/cfn_streaming_image_props.rb', line 32 def name @name end |
#studio_id ⇒ String (readonly)
35 36 37 |
# File 'nimble_studio/cfn_streaming_image_props.rb', line 35 def studio_id @studio_id end |
#tags ⇒ Hash{String => String}? (readonly)
41 42 43 |
# File 'nimble_studio/cfn_streaming_image_props.rb', line 41 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'nimble_studio/cfn_streaming_image_props.rb', line 43 def self.jsii_properties { :ec2_image_id => "ec2ImageId", :name => "name", :studio_id => "studioId", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 |
# File 'nimble_studio/cfn_streaming_image_props.rb', line 53 def to_jsii result = {} result.merge!({ "ec2ImageId" => @ec2_image_id, "name" => @name, "studioId" => @studio_id, "description" => @description, "tags" => @tags, }) result.compact end |