Class: AWSCDK::NimbleStudio::CfnLaunchProfileProps

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

Overview

Properties for defining a CfnLaunchProfile.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ec2_subnet_ids:, launch_profile_protocol_versions:, name:, stream_configuration:, studio_component_ids:, studio_id:, description: nil, tags: nil) ⇒ CfnLaunchProfileProps

Returns a new instance of CfnLaunchProfileProps.

Parameters:



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'nimble_studio/cfn_launch_profile_props.rb', line 17

def initialize(ec2_subnet_ids:, launch_profile_protocol_versions:, name:, stream_configuration:, studio_component_ids:, studio_id:, description: nil, tags: nil)
  @ec2_subnet_ids = ec2_subnet_ids
  Jsii::Type.check_type(@ec2_subnet_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "ec2SubnetIds")
  @launch_profile_protocol_versions = launch_profile_protocol_versions
  Jsii::Type.check_type(@launch_profile_protocol_versions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "launchProfileProtocolVersions")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @stream_configuration = stream_configuration.is_a?(Hash) ? ::AWSCDK::NimbleStudio::CfnLaunchProfile::StreamConfigurationProperty.new(**stream_configuration.transform_keys(&:to_sym)) : stream_configuration
  Jsii::Type.check_type(@stream_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19uaW1ibGVzdHVkaW8uQ2ZuTGF1bmNoUHJvZmlsZS5TdHJlYW1Db25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "streamConfiguration")
  @studio_component_ids = studio_component_ids
  Jsii::Type.check_type(@studio_component_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "studioComponentIds")
  @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)



56
57
58
# File 'nimble_studio/cfn_launch_profile_props.rb', line 56

def description
  @description
end

#ec2_subnet_idsArray<String> (readonly)



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

def ec2_subnet_ids
  @ec2_subnet_ids
end

#launch_profile_protocol_versionsArray<String> (readonly)



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

def launch_profile_protocol_versions
  @launch_profile_protocol_versions
end

#nameString (readonly)



44
45
46
# File 'nimble_studio/cfn_launch_profile_props.rb', line 44

def name
  @name
end

#studio_component_idsArray<String> (readonly)



50
51
52
# File 'nimble_studio/cfn_launch_profile_props.rb', line 50

def studio_component_ids
  @studio_component_ids
end

#studio_idString (readonly)



53
54
55
# File 'nimble_studio/cfn_launch_profile_props.rb', line 53

def studio_id
  @studio_id
end

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



59
60
61
# File 'nimble_studio/cfn_launch_profile_props.rb', line 59

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



61
62
63
64
65
66
67
68
69
70
71
72
# File 'nimble_studio/cfn_launch_profile_props.rb', line 61

def self.jsii_properties
  {
    :ec2_subnet_ids => "ec2SubnetIds",
    :launch_profile_protocol_versions => "launchProfileProtocolVersions",
    :name => "name",
    :stream_configuration => "streamConfiguration",
    :studio_component_ids => "studioComponentIds",
    :studio_id => "studioId",
    :description => "description",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'nimble_studio/cfn_launch_profile_props.rb', line 74

def to_jsii
  result = {}
  result.merge!({
    "ec2SubnetIds" => @ec2_subnet_ids,
    "launchProfileProtocolVersions" => @launch_profile_protocol_versions,
    "name" => @name,
    "streamConfiguration" => @stream_configuration,
    "studioComponentIds" => @studio_component_ids,
    "studioId" => @studio_id,
    "description" => @description,
    "tags" => @tags,
  })
  result.compact
end