FleetAttributes
¶
Source code in docs_src/capo_gamelift/types/fleet_attributes.py
anywhere_configuration
instance-attribute
¶
anywhere_configuration: NotRequired[AnywhereConfiguration]
A set of attributes that are specific to an Anywhere fleet.
build_arn
instance-attribute
¶
build_arn: NotRequired[BuildArn]
The Amazon Resource Name (ARN) associated with the Amazon GameLift Servers build resource that is deployed on instances in this fleet. In a GameLift build ARN, the resource ID matches the BuildId value. This attribute is used with fleets where ComputeType is "EC2".
build_id
instance-attribute
¶
build_id: NotRequired[BuildId]
A unique identifier for the build resource that is deployed on instances in this fleet. This attribute is used with fleets where ComputeType is "EC2".
certificate_configuration
instance-attribute
¶
certificate_configuration: NotRequired[CertificateConfiguration]
Determines whether a TLS/SSL certificate is generated for a fleet. This feature must be enabled when creating the fleet. All instances in a fleet share the same certificate.
compute_type
instance-attribute
¶
compute_type: NotRequired[ComputeType]
The type of compute resource used to host your game servers. You can use your own compute resources with Amazon GameLift Servers Anywhere or use Amazon EC2 instances with managed Amazon GameLift Servers.
creation_time
instance-attribute
¶
creation_time: NotRequired[Timestamp]
A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
description
instance-attribute
¶
description: NotRequired[NonZeroAndMaxString]
A human-readable description of the fleet.
fleet_arn
instance-attribute
¶
fleet_arn: NotRequired[FleetArn]
The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Servers fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:. In a GameLift fleet ARN, the resource ID matches the FleetId value.
fleet_type
instance-attribute
¶
fleet_type: NotRequired[FleetType]
Indicates whether the fleet uses On-Demand or Spot instances. For more information, see On-Demand versus Spot Instances. This fleet property can't be changed after the fleet is created.
instance_role_arn
instance-attribute
¶
instance_role_arn: NotRequired[NonEmptyString]
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 attribute is used with fleets where ComputeType is EC2.
instance_role_credentials_provider
instance-attribute
¶
instance_role_credentials_provider: NotRequired[InstanceRoleCredentialsProvider]
Indicates that fleet instances maintain a shared credentials file for the IAM role defined in InstanceRoleArn. Shared credentials allow applications that are deployed with the game server executable to communicate with other Amazon Web Services resources. This property is used only when the game server is integrated with the server SDK version 5.x. For more information about using shared credentials, see Communicate with other Amazon Web Services resources from your fleets. This attribute is used with fleets where ComputeType is EC2.
instance_type
instance-attribute
¶
instance_type: NotRequired[EC2InstanceType]
The Amazon EC2 instance type that the fleet uses. Instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for detailed descriptions. This attribute is used with fleets where ComputeType is EC2.
log_paths
instance-attribute
¶
log_paths: NotRequired[StringList]
This parameter is no longer used. Game session log paths are now defined using the Amazon GameLift Servers server API ProcessReady() logParameters. See more information in the Server API Reference.
metric_groups
instance-attribute
¶
metric_groups: NotRequired[MetricGroupList]
Name of a metric group that metrics for this fleet are added to. In Amazon CloudWatch, you can view aggregated metrics for fleets that are in a metric group. A fleet can be included in only one metric group at a time. This attribute is used with fleets where ComputeType is EC2.
name
instance-attribute
¶
name: NotRequired[NonZeroAndMaxString]
A descriptive label that is associated with a fleet. Fleet names do not need to be unique.
new_game_session_protection_policy
instance-attribute
¶
new_game_session_protection_policy: NotRequired[ProtectionPolicy]
The type of game session protection to set on all new instances that are started in the fleet. This attribute is used with fleets where ComputeType is EC2.
-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVEstatus, it cannot be terminated during a scale-down event.
operating_system
instance-attribute
¶
operating_system: NotRequired[OperatingSystem]
The operating system of the fleet's computing resources. A fleet's operating system is determined by the OS of the build or script that is deployed on this fleet. This attribute is used with fleets where ComputeType is EC2.
Amazon Linux 2 (AL2) will reach end of support on 6/30/2026. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use server SDK version 4.x for Amazon GameLift Servers, first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to server SDK version 5.
player_gateway_configuration
instance-attribute
¶
player_gateway_configuration: NotRequired[PlayerGatewayConfiguration]
Configuration settings for player gateway on this fleet.
player_gateway_mode
instance-attribute
¶
player_gateway_mode: NotRequired[PlayerGatewayMode]
Indicates whether player gateway is enabled for this fleet. Player gateway provides benefits such as DDoS protection with negligible impact to latency.
If ENABLED or REQUIRED, game clients can use player gateway to connect with the game server. If DISABLED, game clients cannot use player gateway. Instead, they have to directly connect to the game server.
resource_creation_limit_policy
instance-attribute
¶
resource_creation_limit_policy: NotRequired[ResourceCreationLimitPolicy]
script_arn
instance-attribute
¶
script_arn: NotRequired[ScriptArn]
The Amazon Resource Name (ARN) associated with the GameLift script resource that is deployed on instances in this fleet. In a GameLift script ARN, the resource ID matches the ScriptId value.
script_id
instance-attribute
¶
script_id: NotRequired[ScriptId]
A unique identifier for the Realtime script resource that is deployed on instances in this fleet. This attribute is used with fleets where ComputeType is "EC2".
server_launch_parameters
instance-attribute
¶
server_launch_parameters: NotRequired[LaunchParametersStringModel]
This parameter is no longer used. Server launch parameters are now defined using the fleet's runtime configuration. Requests that use this parameter continue to be valid.
server_launch_path
instance-attribute
¶
server_launch_path: NotRequired[LaunchPathStringModel]
This parameter is no longer used. Server launch paths are now defined using the fleet's RuntimeConfiguration. Requests that use this parameter continue to be valid.
status
instance-attribute
¶
status: NotRequired[FleetStatus]
Current status of the fleet. Possible fleet statuses include the following:
-
NEW -- A new fleet resource has been defined and Amazon GameLift Servers has started creating the fleet. Desired instances is set to 1.
-
DOWNLOADING/VALIDATING/BUILDING -- Amazon GameLift Servers is downloading the game server build, running install scripts, and then validating the build files. When complete, Amazon GameLift Servers launches a fleet instance.
-
ACTIVATING -- Amazon GameLift Servers is launching a game server process and testing its connectivity with the Amazon GameLift Servers service.
-
ACTIVE -- The fleet is now ready to host game sessions.
-
ERROR -- An error occurred when downloading, validating, building, or activating the fleet.
-
EXPIRED -- The fleet has been expired. The fleet is scaled down to zero instances and cannot host new game sessions.
-
DELETING -- Hosts are responding to a delete fleet request.
-
TERMINATED -- The fleet no longer exists.
stopped_actions
instance-attribute
¶
stopped_actions: NotRequired[FleetActionList]
A list of fleet activity that has been suspended using StopFleetActions. This includes fleet auto-scaling. This attribute is used with fleets where ComputeType is EC2.