FleetArgs

data class FleetArgs(val buildId: Output<String>? = null, val certificateConfiguration: Output<FleetCertificateConfigurationArgs>? = null, val description: Output<String>? = null, val ec2InboundPermissions: Output<List<FleetEc2InboundPermissionArgs>>? = null, val ec2InstanceType: Output<String>? = null, val fleetType: Output<String>? = null, val instanceRoleArn: Output<String>? = null, val metricGroups: Output<List<String>>? = null, val name: Output<String>? = null, val newGameSessionProtectionPolicy: Output<String>? = null, val resourceCreationLimitPolicy: Output<FleetResourceCreationLimitPolicyArgs>? = null, val runtimeConfiguration: Output<FleetRuntimeConfigurationArgs>? = null, val scriptId: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<FleetArgs>

Provides a GameLift Fleet resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.gamelift.Fleet;
import com.pulumi.aws.gamelift.FleetArgs;
import com.pulumi.aws.gamelift.inputs.FleetRuntimeConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Fleet("example", FleetArgs.builder()
.buildId(aws_gamelift_build.example().id())
.ec2InstanceType("t2.micro")
.fleetType("ON_DEMAND")
.runtimeConfiguration(FleetRuntimeConfigurationArgs.builder()
.serverProcesses(FleetRuntimeConfigurationServerProcessArgs.builder()
.concurrentExecutions(1)
.launchPath("C:\\game\\GomokuServer.exe")
.build())
.build())
.build());
}
}

Import

GameLift Fleets can be imported using the ID, e.g.,

$ pulumi import aws:gamelift/fleet:Fleet example <fleet-id>

Constructors

Link copied to clipboard
constructor(buildId: Output<String>? = null, certificateConfiguration: Output<FleetCertificateConfigurationArgs>? = null, description: Output<String>? = null, ec2InboundPermissions: Output<List<FleetEc2InboundPermissionArgs>>? = null, ec2InstanceType: Output<String>? = null, fleetType: Output<String>? = null, instanceRoleArn: Output<String>? = null, metricGroups: Output<List<String>>? = null, name: Output<String>? = null, newGameSessionProtectionPolicy: Output<String>? = null, resourceCreationLimitPolicy: Output<FleetResourceCreationLimitPolicyArgs>? = null, runtimeConfiguration: Output<FleetRuntimeConfigurationArgs>? = null, scriptId: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val buildId: Output<String>? = null

ID of the GameLift Build to be deployed on the fleet.

Link copied to clipboard

Prompts GameLift to generate a TLS/SSL certificate for the fleet. See certificate_configuration.

Link copied to clipboard
val description: Output<String>? = null

Human-readable description of the fleet.

Link copied to clipboard

Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.

Link copied to clipboard
val ec2InstanceType: Output<String>? = null

Name of an EC2 instance typeE.g., t2.micro

Link copied to clipboard
val fleetType: Output<String>? = null

Type of fleet. This value must be ON_DEMAND or SPOT. Defaults to ON_DEMAND.

Link copied to clipboard
val instanceRoleArn: Output<String>? = null

ARN of an IAM role that instances in the fleet can assume.

Link copied to clipboard
val metricGroups: Output<List<String>>? = null

List of names of metric groups to add this fleet to. A metric group tracks metrics across all fleets in the group. Defaults to default.

Link copied to clipboard
val name: Output<String>? = null

The name of the fleet.

Link copied to clipboard

Game session protection policy to apply to all instances in this fleetE.g., FullProtection. Defaults to NoProtection.

Link copied to clipboard

Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.

Link copied to clipboard

Instructions for launching server processes on each instance in the fleet. See below.

Link copied to clipboard
val scriptId: Output<String>? = null

ID of the GameLift Script to be deployed on the fleet.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): FleetArgs