Class: AWSCDK::NimbleStudio::CfnLaunchProfileProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NimbleStudio::CfnLaunchProfileProps
- Defined in:
- nimble_studio/cfn_launch_profile_props.rb
Overview
Properties for defining a CfnLaunchProfile.
Instance Attribute Summary collapse
- #description ⇒ String? readonly
- #ec2_subnet_ids ⇒ Array<String> readonly
- #launch_profile_protocol_versions ⇒ Array<String> readonly
- #name ⇒ String readonly
- #stream_configuration ⇒ AWSCDK::IResolvable, AWSCDK::NimbleStudio::CfnLaunchProfile::StreamConfigurationProperty readonly
- #studio_component_ids ⇒ Array<String> readonly
- #studio_id ⇒ String readonly
- #tags ⇒ Hash{String => String}? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ec2_subnet_ids:, launch_profile_protocol_versions:, name:, stream_configuration:, studio_component_ids:, studio_id:, description: nil, tags: nil) ⇒ CfnLaunchProfileProps
constructor
A new instance of CfnLaunchProfileProps.
- #to_jsii ⇒ Object
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.
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 = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
56 57 58 |
# File 'nimble_studio/cfn_launch_profile_props.rb', line 56 def description @description end |
#ec2_subnet_ids ⇒ Array<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_versions ⇒ Array<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 |
#name ⇒ String (readonly)
44 45 46 |
# File 'nimble_studio/cfn_launch_profile_props.rb', line 44 def name @name end |
#stream_configuration ⇒ AWSCDK::IResolvable, AWSCDK::NimbleStudio::CfnLaunchProfile::StreamConfigurationProperty (readonly)
47 48 49 |
# File 'nimble_studio/cfn_launch_profile_props.rb', line 47 def stream_configuration @stream_configuration end |
#studio_component_ids ⇒ Array<String> (readonly)
50 51 52 |
# File 'nimble_studio/cfn_launch_profile_props.rb', line 50 def studio_component_ids @studio_component_ids end |
#studio_id ⇒ String (readonly)
53 54 55 |
# File 'nimble_studio/cfn_launch_profile_props.rb', line 53 def studio_id @studio_id end |
#tags ⇒ Hash{String => String}? (readonly)
59 60 61 |
# File 'nimble_studio/cfn_launch_profile_props.rb', line 59 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |