AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the CreateFleet operation. Creates a fleet of compute resources to host your game servers. Use this operation to set up the following types of fleets based on compute type:
Managed EC2 fleet
An EC2 fleet is a set of Amazon Elastic Compute Cloud (Amazon EC2) instances. Your
game server build is deployed to each fleet instance. Amazon GameLift Servers manages
the fleet's instances and controls the lifecycle of game server processes, which host
game sessions for players. EC2 fleets can have instances in multiple locations. Each
instance in the fleet is designated a Compute
.
To create an EC2 fleet, provide these required parameters:
Either BuildId
or ScriptId
ComputeType
set to EC2
(the default value)
EC2InboundPermissions
EC2InstanceType
FleetType
Name
RuntimeConfiguration
with at least one ServerProcesses
configuration
If successful, this operation creates a new fleet resource and places it in NEW
status while Amazon GameLift Servers initiates the fleet
creation workflow. To debug your fleet, fetch logs, view performance metrics or
other actions on the fleet, create a development fleet with port 22/3389 open. As
a best practice, we recommend opening ports for remote access only when you need them
and closing them when you're finished.
When the fleet status is ACTIVE, you can adjust capacity settings and turn autoscaling on/off for each location.
Anywhere fleet
An Anywhere fleet represents compute resources that are not owned or managed by Amazon GameLift Servers. You might create an Anywhere fleet with your local machine for testing, or use one to host game servers with on-premises hardware or other game hosting solutions.
To create an Anywhere fleet, provide these required parameters:
ComputeType
set to ANYWHERE
Locations
specifying a custom location
Name
If successful, this operation creates a new fleet resource and places it in ACTIVE
status. You can register computes with a fleet in ACTIVE
status.
Learn more
Namespace: Amazon.GameLift.Model
Assembly: AWSSDK.GameLift.dll
Version: 3.x.y.z
public class CreateFleetRequest : AmazonGameLiftRequest IAmazonWebServiceRequest
The CreateFleetRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
CreateFleetRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
AnywhereConfiguration | Amazon.GameLift.Model.AnywhereConfiguration |
Gets and sets the property AnywhereConfiguration. Amazon GameLift Servers Anywhere configuration options. |
![]() |
BuildId | System.String |
Gets and sets the property BuildId.
The unique identifier for a custom game server build to be deployed to a fleet with
compute type |
![]() |
CertificateConfiguration | Amazon.GameLift.Model.CertificateConfiguration |
Gets and sets the property CertificateConfiguration.
Prompts Amazon GameLift Servers to generate a TLS/SSL certificate for the fleet. Amazon
GameLift Servers uses the certificates to encrypt traffic between game clients and
the game servers running on Amazon GameLift Servers. By default, the Certificate Manager (ACM) certificates expire after 13 months. Certificate expiration can cause fleets to fail, preventing players from connecting to instances in the fleet. We recommend you replace fleets before 13 months, consider using fleet aliases for a smooth transition. ACM isn't available in all Amazon Web Services regions. A fleet creation request with certificate generation enabled in an unsupported Region, fails with a 4xx error. For more information about the supported Regions, see Supported Regions in the Certificate Manager User Guide. |
![]() |
ComputeType | Amazon.GameLift.ComputeType |
Gets and sets the property ComputeType. The type of compute resource used to host your game servers.
|
![]() |
Description | System.String |
Gets and sets the property Description. A description for the fleet. |
![]() |
EC2InboundPermissions | System.Collections.Generic.List<Amazon.GameLift.Model.IpPermission> |
Gets and sets the property EC2InboundPermissions. The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet. Set this parameter for managed EC2 fleets. You can leave this parameter empty when creating the fleet, but you must call https://docs.aws.amazon.com/gamelift/latest/apireference/API_UpdateFleetPortSettings to set it before players can connect to game sessions. As a best practice, we recommend opening ports for remote access only when you need them and closing them when you're finished. For Amazon GameLift Servers Realtime fleets, Amazon GameLift Servers automatically sets TCP and UDP ranges. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
EC2InstanceType | Amazon.GameLift.EC2InstanceType |
Gets and sets the property EC2InstanceType. The Amazon GameLift Servers-supported Amazon EC2 instance type to use with managed EC2 fleets. Instance type determines the computing resources that will be used to host your game servers, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for detailed descriptions of Amazon EC2 instance types. |
![]() |
FleetType | Amazon.GameLift.FleetType |
Gets and sets the property FleetType.
Indicates whether to use On-Demand or Spot instances for this fleet. By default, this
property is set to |
![]() |
InstanceRoleArn | System.String |
Gets and sets the property InstanceRoleArn. A unique identifier for an IAM role that manages access to your Amazon Web Services services. With an instance role ARN set, any application that runs on an instance in this fleet can assume the role, including install scripts, server processes, and daemons (background processes). Create a role or look up a role's ARN by using the IAM dashboard in the Amazon Web Services Management Console. Learn more about using on-box credentials for your game servers at Access external resources from a game server. This fleet property can't be changed after the fleet is created. |
![]() |
InstanceRoleCredentialsProvider | Amazon.GameLift.InstanceRoleCredentialsProvider |
Gets and sets the property InstanceRoleCredentialsProvider.
Prompts Amazon GameLift Servers to generate a shared credentials file for the IAM
role that's defined in |
![]() |
Locations | System.Collections.Generic.List<Amazon.GameLift.Model.LocationConfiguration> |
Gets and sets the property Locations.
A set of remote locations to deploy additional instances to and manage as a multi-location
fleet. Use this parameter when creating a fleet in Amazon Web Services Regions that
support multiple locations. You can add any Amazon Web Services Region or Local Zone
that's supported by Amazon GameLift Servers. Provide a list of one or more Amazon
Web Services Region codes, such as |
![]() |
LogPaths | System.Collections.Generic.List<System.String> |
Gets and sets the property LogPaths.
This parameter is no longer used. To specify where Amazon GameLift Servers
should store log files once a server process shuts down, use the Amazon GameLift Servers
server API |
![]() |
MetricGroups | System.Collections.Generic.List<System.String> |
Gets and sets the property MetricGroups. The name of an Amazon Web Services CloudWatch metric group to add this fleet to. A metric group is used to aggregate the metrics for multiple fleets. You can specify an existing metric group name or set a new name to create a new metric group. A fleet can be included in only one metric group at a time. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
Name | System.String |
Gets and sets the property Name. A descriptive label that is associated with a fleet. Fleet names do not need to be unique. |
![]() |
NewGameSessionProtectionPolicy | Amazon.GameLift.ProtectionPolicy |
Gets and sets the property NewGameSessionProtectionPolicy.
The status of termination protection for active game sessions on the fleet. By default,
this property is set to
|
![]() |
PeerVpcAwsAccountId | System.String |
Gets and sets the property PeerVpcAwsAccountId. Used when peering your Amazon GameLift Servers fleet with a VPC, the unique identifier for the Amazon Web Services account that owns the VPC. You can find your account ID in the Amazon Web Services Management Console under account settings. |
![]() |
PeerVpcId | System.String |
Gets and sets the property PeerVpcId. A unique identifier for a VPC with resources to be accessed by your Amazon GameLift Servers fleet. The VPC must be in the same Region as your fleet. To look up a VPC ID, use the VPC Dashboard in the Amazon Web Services Management Console. Learn more about VPC peering in VPC Peering with Amazon GameLift Servers Fleets. |
![]() |
ResourceCreationLimitPolicy | Amazon.GameLift.Model.ResourceCreationLimitPolicy |
Gets and sets the property ResourceCreationLimitPolicy. A policy that limits the number of game sessions that an individual player can create on instances in this fleet within a specified span of time. |
![]() |
RuntimeConfiguration | Amazon.GameLift.Model.RuntimeConfiguration |
Gets and sets the property RuntimeConfiguration. Instructions for how to launch and run server processes on the fleet. Set runtime configuration for managed EC2 fleets. For an Anywhere fleets, set this parameter only if the fleet is running the Amazon GameLift Servers Agent. The runtime configuration defines one or more server process configurations. Each server process identifies a game executable or Realtime script file and the number of processes to run concurrently.
This parameter replaces the parameters |
![]() |
ScriptId | System.String |
Gets and sets the property ScriptId.
The unique identifier for a Realtime configuration script to be deployed to a fleet
with compute type |
![]() |
ServerLaunchParameters | System.String |
Gets and sets the property ServerLaunchParameters.
This parameter is no longer used. Specify server launch parameters using the
|
![]() |
ServerLaunchPath | System.String |
Gets and sets the property ServerLaunchPath.
This parameter is no longer used. Specify a server launch path using the |
![]() |
Tags | System.Collections.Generic.List<Amazon.GameLift.Model.Tag> |
Gets and sets the property Tags. A list of labels to assign to the new fleet resource. Tags are developer-defined key-value pairs. Tagging Amazon Web Services resources are useful for resource management, access management and cost allocation. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer