Class: AWSCDK::GameLift::CfnGameServerGroup::LaunchTemplateProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GameLift::CfnGameServerGroup::LaunchTemplateProperty
- Defined in:
- game_lift/cfn_game_server_group.rb
Overview
This data type is used with the GameLift FleetIQ and game server groups..
An Amazon EC2 launch template that contains configuration settings and game server code to be deployed to all instances in a game server group. The launch template is specified when creating a new game server group with GameServerGroup .
Instance Attribute Summary collapse
-
#launch_template_id ⇒ String?
readonly
A unique identifier for an existing Amazon EC2 launch template.
-
#launch_template_name ⇒ String?
readonly
A readable identifier for an existing Amazon EC2 launch template.
-
#version ⇒ String?
readonly
The version of the Amazon EC2 launch template to use.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(launch_template_id: nil, launch_template_name: nil, version: nil) ⇒ LaunchTemplateProperty
constructor
A new instance of LaunchTemplateProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(launch_template_id: nil, launch_template_name: nil, version: nil) ⇒ LaunchTemplateProperty
Returns a new instance of LaunchTemplateProperty.
785 786 787 788 789 790 791 792 |
# File 'game_lift/cfn_game_server_group.rb', line 785 def initialize(launch_template_id: nil, launch_template_name: nil, version: nil) @launch_template_id = launch_template_id Jsii::Type.check_type(@launch_template_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "launchTemplateId") unless @launch_template_id.nil? @launch_template_name = launch_template_name Jsii::Type.check_type(@launch_template_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "launchTemplateName") unless @launch_template_name.nil? @version = version Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil? end |
Instance Attribute Details
#launch_template_id ⇒ String? (readonly)
A unique identifier for an existing Amazon EC2 launch template.
798 799 800 |
# File 'game_lift/cfn_game_server_group.rb', line 798 def launch_template_id @launch_template_id end |
#launch_template_name ⇒ String? (readonly)
A readable identifier for an existing Amazon EC2 launch template.
803 804 805 |
# File 'game_lift/cfn_game_server_group.rb', line 803 def launch_template_name @launch_template_name end |
#version ⇒ String? (readonly)
The version of the Amazon EC2 launch template to use.
If no version is specified, the default version will be used. With Amazon EC2, you can specify a default version for a launch template. If none is set, the default is the first version created.
810 811 812 |
# File 'game_lift/cfn_game_server_group.rb', line 810 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
812 813 814 815 816 817 818 |
# File 'game_lift/cfn_game_server_group.rb', line 812 def self.jsii_properties { :launch_template_id => "launchTemplateId", :launch_template_name => "launchTemplateName", :version => "version", } end |
Instance Method Details
#to_jsii ⇒ Object
820 821 822 823 824 825 826 827 828 |
# File 'game_lift/cfn_game_server_group.rb', line 820 def to_jsii result = {} result.merge!({ "launchTemplateId" => @launch_template_id, "launchTemplateName" => @launch_template_name, "version" => @version, }) result.compact end |