Class: AWSCDK::GameLift::CfnGameServerGroup::LaunchTemplateProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(launch_template_id: nil, launch_template_name: nil, version: nil) ⇒ LaunchTemplateProperty

Returns a new instance of LaunchTemplateProperty.

Parameters:

  • launch_template_id (String, nil) (defaults to: nil)

    A unique identifier for an existing Amazon EC2 launch template.

  • launch_template_name (String, nil) (defaults to: nil)

    A readable identifier for an existing Amazon EC2 launch template.

  • version (String, nil) (defaults to: nil)

    The version of the Amazon EC2 launch template to use.



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_idString? (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_nameString? (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

#versionString? (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_propertiesObject



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_jsiiObject



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