Interface FleetAttributes.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FleetAttributes.Builder,
,FleetAttributes> SdkBuilder<FleetAttributes.Builder,
,FleetAttributes> SdkPojo
- Enclosing class:
FleetAttributes
-
Method Summary
Modifier and TypeMethodDescriptiondefault FleetAttributes.Builder
anywhereConfiguration
(Consumer<AnywhereConfiguration.Builder> anywhereConfiguration) This property is used with the Amazon GameLift containers feature, which is currently in public preview. A set of attributes that describe the container groups that are deployed on the fleet.anywhereConfiguration
(AnywhereConfiguration anywhereConfiguration) This property is used with the Amazon GameLift containers feature, which is currently in public preview. A set of attributes that describe the container groups that are deployed on the fleet.The Amazon Resource Name (ARN) associated with the Amazon GameLift build resource that is deployed on instances in this fleet.A unique identifier for the build resource that is deployed on instances in this fleet.default FleetAttributes.Builder
certificateConfiguration
(Consumer<CertificateConfiguration.Builder> certificateConfiguration) Determines whether a TLS/SSL certificate is generated for a fleet.certificateConfiguration
(CertificateConfiguration certificateConfiguration) Determines whether a TLS/SSL certificate is generated for a fleet.computeType
(String computeType) The type of compute resource used to host your game servers.computeType
(ComputeType computeType) The type of compute resource used to host your game servers.default FleetAttributes.Builder
containerGroupsAttributes
(Consumer<ContainerGroupsAttributes.Builder> containerGroupsAttributes) A set of properties that describe the container groups that are deployed to the fleet.containerGroupsAttributes
(ContainerGroupsAttributes containerGroupsAttributes) A set of properties that describe the container groups that are deployed to the fleet.creationTime
(Instant creationTime) A time stamp indicating when this data object was created.description
(String description) A human-readable description of the fleet.The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift fleet resource and uniquely identifies it.A unique identifier for the fleet.Indicates whether the fleet uses On-Demand or Spot instances.Indicates whether the fleet uses On-Demand or Spot instances.instanceRoleArn
(String instanceRoleArn) A unique identifier for an IAM role with access permissions to other Amazon Web Services services.instanceRoleCredentialsProvider
(String instanceRoleCredentialsProvider) Indicates that fleet instances maintain a shared credentials file for the IAM role defined inInstanceRoleArn
.instanceRoleCredentialsProvider
(InstanceRoleCredentialsProvider instanceRoleCredentialsProvider) Indicates that fleet instances maintain a shared credentials file for the IAM role defined inInstanceRoleArn
.instanceType
(String instanceType) The Amazon EC2 instance type that the fleet uses.instanceType
(EC2InstanceType instanceType) The Amazon EC2 instance type that the fleet uses.This parameter is no longer used. Game session log paths are now defined using the Amazon GameLift server APIProcessReady()
logParameters
.logPaths
(Collection<String> logPaths) This parameter is no longer used. Game session log paths are now defined using the Amazon GameLift server APIProcessReady()
logParameters
.metricGroups
(String... metricGroups) Name of a metric group that metrics for this fleet are added to.metricGroups
(Collection<String> metricGroups) Name of a metric group that metrics for this fleet are added to.A descriptive label that is associated with a fleet.newGameSessionProtectionPolicy
(String newGameSessionProtectionPolicy) The type of game session protection to set on all new instances that are started in the fleet.newGameSessionProtectionPolicy
(ProtectionPolicy newGameSessionProtectionPolicy) The type of game session protection to set on all new instances that are started in the fleet.operatingSystem
(String operatingSystem) The operating system of the fleet's computing resources.operatingSystem
(OperatingSystem operatingSystem) The operating system of the fleet's computing resources.default FleetAttributes.Builder
resourceCreationLimitPolicy
(Consumer<ResourceCreationLimitPolicy.Builder> resourceCreationLimitPolicy) Sets the value of the ResourceCreationLimitPolicy property for this object.resourceCreationLimitPolicy
(ResourceCreationLimitPolicy resourceCreationLimitPolicy) Sets the value of the ResourceCreationLimitPolicy property for this object.The Amazon Resource Name (ARN) associated with the GameLift script resource that is deployed on instances in this fleet.A unique identifier for the Realtime script resource that is deployed on instances in this fleet.serverLaunchParameters
(String serverLaunchParameters) This parameter is no longer used. Server launch parameters are now defined using the fleet's runtime configuration.serverLaunchPath
(String serverLaunchPath) This parameter is no longer used. Server launch paths are now defined using the fleet's RuntimeConfiguration.Current status of the fleet.status
(FleetStatus status) Current status of the fleet.stoppedActions
(Collection<FleetAction> stoppedActions) A list of fleet activity that has been suspended using StopFleetActions.stoppedActions
(FleetAction... stoppedActions) A list of fleet activity that has been suspended using StopFleetActions.stoppedActionsWithStrings
(String... stoppedActions) A list of fleet activity that has been suspended using StopFleetActions.stoppedActionsWithStrings
(Collection<String> stoppedActions) A list of fleet activity that has been suspended using StopFleetActions.terminationTime
(Instant terminationTime) A time stamp indicating when this data object was terminated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
fleetId
A unique identifier for the fleet.
- Parameters:
fleetId
- A unique identifier for the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fleetArn
The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is
arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
. In a GameLift fleet ARN, the resource ID matches theFleetId
value.- Parameters:
fleetArn
- The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format isarn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
. In a GameLift fleet ARN, the resource ID matches theFleetId
value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
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" or "Container".- Parameters:
instanceType
- 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 whereComputeType
is "EC2" or "Container".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
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" or "Container".- Parameters:
instanceType
- 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 whereComputeType
is "EC2" or "Container".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A human-readable description of the fleet.
- Parameters:
description
- A human-readable description of the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A descriptive label that is associated with a fleet. Fleet names do not need to be unique.
- Parameters:
name
- A descriptive label that is associated with a fleet. Fleet names do not need to be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example
"1469498468.057"
).- Parameters:
creationTime
- A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example"1469498468.057"
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
terminationTime
A time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (for example
"1469498468.057"
).- Parameters:
terminationTime
- A time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (for example"1469498468.057"
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Current status of the fleet. Possible fleet statuses include the following:
-
NEW -- A new fleet resource has been defined and Amazon GameLift has started creating the fleet. Desired instances is set to 1.
-
DOWNLOADING/VALIDATING/BUILDING -- Amazon GameLift is download the game server build, running install scripts, and then validating the build files. When complete, Amazon GameLift launches a fleet instance.
-
ACTIVATING -- Amazon GameLift is launching a game server process and testing its connectivity with the Amazon GameLift service.
-
ACTIVE -- The fleet is now ready to host game sessions.
-
ERROR -- An error occurred when downloading, validating, building, or activating the fleet.
-
DELETING -- Hosts are responding to a delete fleet request.
-
TERMINATED -- The fleet no longer exists.
- Parameters:
status
- Current status of the fleet. Possible fleet statuses include the following:-
NEW -- A new fleet resource has been defined and Amazon GameLift has started creating the fleet. Desired instances is set to 1.
-
DOWNLOADING/VALIDATING/BUILDING -- Amazon GameLift is download the game server build, running install scripts, and then validating the build files. When complete, Amazon GameLift launches a fleet instance.
-
ACTIVATING -- Amazon GameLift is launching a game server process and testing its connectivity with the Amazon GameLift service.
-
ACTIVE -- The fleet is now ready to host game sessions.
-
ERROR -- An error occurred when downloading, validating, building, or activating the fleet.
-
DELETING -- Hosts are responding to a delete fleet request.
-
TERMINATED -- The fleet no longer exists.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
status
Current status of the fleet. Possible fleet statuses include the following:
-
NEW -- A new fleet resource has been defined and Amazon GameLift has started creating the fleet. Desired instances is set to 1.
-
DOWNLOADING/VALIDATING/BUILDING -- Amazon GameLift is download the game server build, running install scripts, and then validating the build files. When complete, Amazon GameLift launches a fleet instance.
-
ACTIVATING -- Amazon GameLift is launching a game server process and testing its connectivity with the Amazon GameLift service.
-
ACTIVE -- The fleet is now ready to host game sessions.
-
ERROR -- An error occurred when downloading, validating, building, or activating the fleet.
-
DELETING -- Hosts are responding to a delete fleet request.
-
TERMINATED -- The fleet no longer exists.
- Parameters:
status
- Current status of the fleet. Possible fleet statuses include the following:-
NEW -- A new fleet resource has been defined and Amazon GameLift has started creating the fleet. Desired instances is set to 1.
-
DOWNLOADING/VALIDATING/BUILDING -- Amazon GameLift is download the game server build, running install scripts, and then validating the build files. When complete, Amazon GameLift launches a fleet instance.
-
ACTIVATING -- Amazon GameLift is launching a game server process and testing its connectivity with the Amazon GameLift service.
-
ACTIVE -- The fleet is now ready to host game sessions.
-
ERROR -- An error occurred when downloading, validating, building, or activating the fleet.
-
DELETING -- Hosts are responding to a delete fleet request.
-
TERMINATED -- The fleet no longer exists.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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".- Parameters:
buildId
- A unique identifier for the build resource that is deployed on instances in this fleet. This attribute is used with fleets whereComputeType
is "EC2".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buildArn
The Amazon Resource Name (ARN) associated with the Amazon GameLift 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 whereComputeType
is "EC2".- Parameters:
buildArn
- The Amazon Resource Name (ARN) associated with the Amazon GameLift build resource that is deployed on instances in this fleet. In a GameLift build ARN, the resource ID matches theBuildId
value. This attribute is used with fleets whereComputeType
is "EC2".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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".- Parameters:
scriptId
- A unique identifier for the Realtime script resource that is deployed on instances in this fleet. This attribute is used with fleets whereComputeType
is "EC2".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
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 theScriptId
value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverLaunchPath
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.
- Parameters:
serverLaunchPath
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverLaunchParameters
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.
- Parameters:
serverLaunchParameters
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logPaths
This parameter is no longer used. Game session log paths are now defined using the Amazon GameLift server API
ProcessReady()
logParameters
. See more information in the Server API Reference.- Parameters:
logPaths
- This parameter is no longer used. Game session log paths are now defined using the Amazon GameLift server APIProcessReady()
logParameters
. See more information in the Server API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logPaths
This parameter is no longer used. Game session log paths are now defined using the Amazon GameLift server API
ProcessReady()
logParameters
. See more information in the Server API Reference.- Parameters:
logPaths
- This parameter is no longer used. Game session log paths are now defined using the Amazon GameLift server APIProcessReady()
logParameters
. See more information in the Server API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newGameSessionProtectionPolicy
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" or "Container".-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVE
status, it cannot be terminated during a scale-down event.
- Parameters:
newGameSessionProtectionPolicy
- The type of game session protection to set on all new instances that are started in the fleet. This attribute is used with fleets whereComputeType
is "EC2" or "Container".-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVE
status, it cannot be terminated during a scale-down event.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
newGameSessionProtectionPolicy
FleetAttributes.Builder newGameSessionProtectionPolicy(ProtectionPolicy newGameSessionProtectionPolicy) 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" or "Container".-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVE
status, it cannot be terminated during a scale-down event.
- Parameters:
newGameSessionProtectionPolicy
- The type of game session protection to set on all new instances that are started in the fleet. This attribute is used with fleets whereComputeType
is "EC2" or "Container".-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVE
status, it cannot be terminated during a scale-down event.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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" or "Container".Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to Amazon GameLift server SDK version 5.
- Parameters:
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 whereComputeType
is "EC2" or "Container".Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to Amazon GameLift server SDK version 5.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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" or "Container".Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to Amazon GameLift server SDK version 5.
- Parameters:
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 whereComputeType
is "EC2" or "Container".Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to Amazon GameLift server SDK version 5.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceCreationLimitPolicy
FleetAttributes.Builder resourceCreationLimitPolicy(ResourceCreationLimitPolicy resourceCreationLimitPolicy) Sets the value of the ResourceCreationLimitPolicy property for this object.- Parameters:
resourceCreationLimitPolicy
- The new value for the ResourceCreationLimitPolicy property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceCreationLimitPolicy
default FleetAttributes.Builder resourceCreationLimitPolicy(Consumer<ResourceCreationLimitPolicy.Builder> resourceCreationLimitPolicy) Sets the value of the ResourceCreationLimitPolicy property for this object. This is a convenience method that creates an instance of theResourceCreationLimitPolicy.Builder
avoiding the need to create one manually viaResourceCreationLimitPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceCreationLimitPolicy(ResourceCreationLimitPolicy)
.- Parameters:
resourceCreationLimitPolicy
- a consumer that will call methods onResourceCreationLimitPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricGroups
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" or "Container".- Parameters:
metricGroups
- 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 whereComputeType
is "EC2" or "Container".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricGroups
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" or "Container".- Parameters:
metricGroups
- 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 whereComputeType
is "EC2" or "Container".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stoppedActionsWithStrings
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" or "Container".- Parameters:
stoppedActions
- A list of fleet activity that has been suspended using StopFleetActions. This includes fleet auto-scaling. This attribute is used with fleets whereComputeType
is "EC2" or "Container".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stoppedActionsWithStrings
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" or "Container".- Parameters:
stoppedActions
- A list of fleet activity that has been suspended using StopFleetActions. This includes fleet auto-scaling. This attribute is used with fleets whereComputeType
is "EC2" or "Container".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stoppedActions
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" or "Container".- Parameters:
stoppedActions
- A list of fleet activity that has been suspended using StopFleetActions. This includes fleet auto-scaling. This attribute is used with fleets whereComputeType
is "EC2" or "Container".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stoppedActions
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" or "Container".- Parameters:
stoppedActions
- A list of fleet activity that has been suspended using StopFleetActions. This includes fleet auto-scaling. This attribute is used with fleets whereComputeType
is "EC2" or "Container".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceRoleArn
A unique identifier for an IAM role with access permissions to other Amazon Web Services services. Any application that runs on an instance in the fleet--including install scripts, server processes, and other processes--can use these permissions to interact with Amazon Web Services resources that you own or have access to. For more information about using the role with your game server builds, see Communicate with other Amazon Web Services resources from your fleets. This attribute is used with fleets where
ComputeType
is "EC2" or "Container".- Parameters:
instanceRoleArn
- A unique identifier for an IAM role with access permissions to other Amazon Web Services services. Any application that runs on an instance in the fleet--including install scripts, server processes, and other processes--can use these permissions to interact with Amazon Web Services resources that you own or have access to. For more information about using the role with your game server builds, see Communicate with other Amazon Web Services resources from your fleets. This attribute is used with fleets whereComputeType
is "EC2" or "Container".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
certificateConfiguration
default FleetAttributes.Builder certificateConfiguration(Consumer<CertificateConfiguration.Builder> 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.
This is a convenience method that creates an instance of theCertificateConfiguration.Builder
avoiding the need to create one manually viaCertificateConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocertificateConfiguration(CertificateConfiguration)
.- Parameters:
certificateConfiguration
- a consumer that will call methods onCertificateConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
computeType
The type of compute resource used to host your game servers. You can use your own compute resources with Amazon GameLift Anywhere or use Amazon EC2 instances with managed Amazon GameLift.
- Parameters:
computeType
- The type of compute resource used to host your game servers. You can use your own compute resources with Amazon GameLift Anywhere or use Amazon EC2 instances with managed Amazon GameLift.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
computeType
The type of compute resource used to host your game servers. You can use your own compute resources with Amazon GameLift Anywhere or use Amazon EC2 instances with managed Amazon GameLift.
- Parameters:
computeType
- The type of compute resource used to host your game servers. You can use your own compute resources with Amazon GameLift Anywhere or use Amazon EC2 instances with managed Amazon GameLift.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
anywhereConfiguration
This property is used with the Amazon GameLift containers feature, which is currently in public preview. A set of attributes that describe the container groups that are deployed on the fleet. These attributes are included for fleets with compute type
CONTAINER
only. This attribute is used with fleets whereComputeType
is "Container".- Parameters:
anywhereConfiguration
- This property is used with the Amazon GameLift containers feature, which is currently in public preview. A set of attributes that describe the container groups that are deployed on the fleet. These attributes are included for fleets with compute typeCONTAINER
only. This attribute is used with fleets whereComputeType
is "Container".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anywhereConfiguration
default FleetAttributes.Builder anywhereConfiguration(Consumer<AnywhereConfiguration.Builder> anywhereConfiguration) This property is used with the Amazon GameLift containers feature, which is currently in public preview. A set of attributes that describe the container groups that are deployed on the fleet. These attributes are included for fleets with compute type
This is a convenience method that creates an instance of theCONTAINER
only. This attribute is used with fleets whereComputeType
is "Container".AnywhereConfiguration.Builder
avoiding the need to create one manually viaAnywhereConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toanywhereConfiguration(AnywhereConfiguration)
.- Parameters:
anywhereConfiguration
- a consumer that will call methods onAnywhereConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 whereComputeType
is "EC2" or "Container".- Parameters:
instanceRoleCredentialsProvider
- Indicates that fleet instances maintain a shared credentials file for the IAM role defined inInstanceRoleArn
. 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 whereComputeType
is "EC2" or "Container".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceRoleCredentialsProvider
FleetAttributes.Builder instanceRoleCredentialsProvider(InstanceRoleCredentialsProvider 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 whereComputeType
is "EC2" or "Container".- Parameters:
instanceRoleCredentialsProvider
- Indicates that fleet instances maintain a shared credentials file for the IAM role defined inInstanceRoleArn
. 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 whereComputeType
is "EC2" or "Container".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
containerGroupsAttributes
FleetAttributes.Builder containerGroupsAttributes(ContainerGroupsAttributes containerGroupsAttributes) A set of properties that describe the container groups that are deployed to the fleet. These attributes are included for fleets with compute type
CONTAINER
.- Parameters:
containerGroupsAttributes
- A set of properties that describe the container groups that are deployed to the fleet. These attributes are included for fleets with compute typeCONTAINER
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerGroupsAttributes
default FleetAttributes.Builder containerGroupsAttributes(Consumer<ContainerGroupsAttributes.Builder> containerGroupsAttributes) A set of properties that describe the container groups that are deployed to the fleet. These attributes are included for fleets with compute type
This is a convenience method that creates an instance of theCONTAINER
.ContainerGroupsAttributes.Builder
avoiding the need to create one manually viaContainerGroupsAttributes.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainerGroupsAttributes(ContainerGroupsAttributes)
.- Parameters:
containerGroupsAttributes
- a consumer that will call methods onContainerGroupsAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-