Class: AWSCDK::NimbleStudio::CfnStreamingImageProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
nimble_studio/cfn_streaming_image_props.rb

Overview

Properties for defining a CfnStreamingImage.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ec2_image_id:, name:, studio_id:, description: nil, tags: nil) ⇒ CfnStreamingImageProps

Returns a new instance of CfnStreamingImageProps.

Parameters:

  • ec2_image_id (String)
  • name (String)
  • studio_id (String)
  • description (String, nil) (defaults to: nil)
  • tags (Hash{String => String}, nil) (defaults to: nil)


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 = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#descriptionString? (readonly)



38
39
40
# File 'nimble_studio/cfn_streaming_image_props.rb', line 38

def description
  @description
end

#ec2_image_idString (readonly)



29
30
31
# File 'nimble_studio/cfn_streaming_image_props.rb', line 29

def ec2_image_id
  @ec2_image_id
end

#nameString (readonly)



32
33
34
# File 'nimble_studio/cfn_streaming_image_props.rb', line 32

def name
  @name
end

#studio_idString (readonly)



35
36
37
# File 'nimble_studio/cfn_streaming_image_props.rb', line 35

def studio_id
  @studio_id
end

#tagsHash{String => String}? (readonly)



41
42
43
# File 'nimble_studio/cfn_streaming_image_props.rb', line 41

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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