Class Fleet
Provides a Gamelift Fleet resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.GameLift.Fleet("example", new Aws.GameLift.FleetArgs
{
BuildId = aws_gamelift_build.Example.Id,
Ec2InstanceType = "t2.micro",
FleetType = "ON_DEMAND",
RuntimeConfiguration = new Aws.GameLift.Inputs.FleetRuntimeConfigurationArgs
{
ServerProcess =
{
{
{ "concurrentExecutions", 1 },
{ "launchPath", "C:\\game\\GomokuServer.exe" },
},
},
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.GameLift
Assembly: Pulumi.Aws.dll
Syntax
public class Fleet : CustomResource
Constructors
View SourceFleet(String, FleetArgs, CustomResourceOptions)
Create a Fleet resource with the given unique name, arguments, and options.
Declaration
public Fleet(string name, FleetArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| FleetArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
Fleet ARN.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
BuildId
ID of the Gamelift Build to be deployed on the fleet.
Declaration
public Output<string> BuildId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
Human-readable description of the fleet.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Ec2InboundPermissions
Range of IP addresses and port settings that permit inbound traffic to access server processes running on the fleet. See below.
Declaration
public Output<ImmutableArray<FleetEc2InboundPermission>> Ec2InboundPermissions { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<FleetEc2InboundPermission>> |
Ec2InstanceType
Name of an EC2 instance type. e.g. t2.micro
Declaration
public Output<string> Ec2InstanceType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
FleetType
Type of fleet. This value must be ON_DEMAND or SPOT. Defaults to ON_DEMAND.
Declaration
public Output<string> FleetType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
InstanceRoleArn
ARN of an IAM role that instances in the fleet can assume.
Declaration
public Output<string> InstanceRoleArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LogPaths
Declaration
public Output<ImmutableArray<string>> LogPaths { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
MetricGroups
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.
Declaration
public Output<ImmutableArray<string>> MetricGroups { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Name
The name of the fleet.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NewGameSessionProtectionPolicy
Game session protection policy to apply to all instances in this fleet. e.g. FullProtection. Defaults to NoProtection.
Declaration
public Output<string> NewGameSessionProtectionPolicy { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OperatingSystem
Operating system of the fleet's computing resources.
Declaration
public Output<string> OperatingSystem { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceCreationLimitPolicy
Policy that limits the number of game sessions an individual player can create over a span of time for this fleet. See below.
Declaration
public Output<FleetResourceCreationLimitPolicy> ResourceCreationLimitPolicy { get; }
Property Value
| Type | Description |
|---|---|
| Output<FleetResourceCreationLimitPolicy> |
RuntimeConfiguration
Instructions for launching server processes on each instance in the fleet. See below.
Declaration
public Output<FleetRuntimeConfiguration> RuntimeConfiguration { get; }
Property Value
| Type | Description |
|---|---|
| Output<FleetRuntimeConfiguration> |
Tags
Key-value map of resource tags
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, FleetState, CustomResourceOptions)
Get an existing Fleet resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Fleet Get(string name, Input<string> id, FleetState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| FleetState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Fleet |