We recommend new projects start with resources from the AWS provider.
aws-native.gamelift.Alias
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::GameLift::Alias resource creates an alias for an Amazon GameLift (GameLift) fleet destination.
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var aliasResource = new AwsNative.GameLift.Alias("aliasResource", new()
{
Name = "MyTerminalAlias",
Description = "A terminal alias",
RoutingStrategy = new AwsNative.GameLift.Inputs.AliasRoutingStrategyArgs
{
Type = AwsNative.GameLift.AliasRoutingStrategyType.Terminal,
Message = "Terminal routing strategy message",
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/gamelift"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gamelift.NewAlias(ctx, "aliasResource", &gamelift.AliasArgs{
Name: pulumi.String("MyTerminalAlias"),
Description: pulumi.String("A terminal alias"),
RoutingStrategy: &gamelift.AliasRoutingStrategyArgs{
Type: gamelift.AliasRoutingStrategyTypeTerminal,
Message: pulumi.String("Terminal routing strategy message"),
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const aliasResource = new aws_native.gamelift.Alias("aliasResource", {
name: "MyTerminalAlias",
description: "A terminal alias",
routingStrategy: {
type: aws_native.gamelift.AliasRoutingStrategyType.Terminal,
message: "Terminal routing strategy message",
},
});
import pulumi
import pulumi_aws_native as aws_native
alias_resource = aws_native.gamelift.Alias("aliasResource",
name="MyTerminalAlias",
description="A terminal alias",
routing_strategy={
"type": aws_native.gamelift.AliasRoutingStrategyType.TERMINAL,
"message": "Terminal routing strategy message",
})
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var aliasResource = new AwsNative.GameLift.Alias("aliasResource", new()
{
Name = "MyTerminalAlias",
Description = "A terminal alias",
RoutingStrategy = new AwsNative.GameLift.Inputs.AliasRoutingStrategyArgs
{
Type = AwsNative.GameLift.AliasRoutingStrategyType.Terminal,
Message = "Terminal routing strategy message",
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/gamelift"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gamelift.NewAlias(ctx, "aliasResource", &gamelift.AliasArgs{
Name: pulumi.String("MyTerminalAlias"),
Description: pulumi.String("A terminal alias"),
RoutingStrategy: &gamelift.AliasRoutingStrategyArgs{
Type: gamelift.AliasRoutingStrategyTypeTerminal,
Message: pulumi.String("Terminal routing strategy message"),
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const aliasResource = new aws_native.gamelift.Alias("aliasResource", {
name: "MyTerminalAlias",
description: "A terminal alias",
routingStrategy: {
type: aws_native.gamelift.AliasRoutingStrategyType.Terminal,
message: "Terminal routing strategy message",
},
});
import pulumi
import pulumi_aws_native as aws_native
alias_resource = aws_native.gamelift.Alias("aliasResource",
name="MyTerminalAlias",
description="A terminal alias",
routing_strategy={
"type": aws_native.gamelift.AliasRoutingStrategyType.TERMINAL,
"message": "Terminal routing strategy message",
})
Coming soon!
Create Alias Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Alias(name: string, args: AliasArgs, opts?: CustomResourceOptions);
@overload
def Alias(resource_name: str,
args: AliasArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Alias(resource_name: str,
opts: Optional[ResourceOptions] = None,
routing_strategy: Optional[AliasRoutingStrategyArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewAlias(ctx *Context, name string, args AliasArgs, opts ...ResourceOption) (*Alias, error)
public Alias(string name, AliasArgs args, CustomResourceOptions? opts = null)
type: aws-native:gamelift:Alias
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AliasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AliasArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AliasArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AliasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AliasArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Alias Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Alias resource accepts the following input properties:
- Routing
Strategy Pulumi.Aws Native. Game Lift. Inputs. Alias Routing Strategy - A routing configuration that specifies where traffic is directed for this alias, such as to a fleet or to a message.
- Description string
- A human-readable description of the alias.
- Name string
- A descriptive label that is associated with an alias. Alias names do not need to be unique.
- List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Routing
Strategy AliasRouting Strategy Args - A routing configuration that specifies where traffic is directed for this alias, such as to a fleet or to a message.
- Description string
- A human-readable description of the alias.
- Name string
- A descriptive label that is associated with an alias. Alias names do not need to be unique.
- Tag
Args - An array of key-value pairs to apply to this resource.
- routing
Strategy AliasRouting Strategy - A routing configuration that specifies where traffic is directed for this alias, such as to a fleet or to a message.
- description String
- A human-readable description of the alias.
- name String
- A descriptive label that is associated with an alias. Alias names do not need to be unique.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- routing
Strategy AliasRouting Strategy - A routing configuration that specifies where traffic is directed for this alias, such as to a fleet or to a message.
- description string
- A human-readable description of the alias.
- name string
- A descriptive label that is associated with an alias. Alias names do not need to be unique.
- Tag[]
- An array of key-value pairs to apply to this resource.
- routing_
strategy AliasRouting Strategy Args - A routing configuration that specifies where traffic is directed for this alias, such as to a fleet or to a message.
- description str
- A human-readable description of the alias.
- name str
- A descriptive label that is associated with an alias. Alias names do not need to be unique.
- Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- routing
Strategy Property Map - A routing configuration that specifies where traffic is directed for this alias, such as to a fleet or to a message.
- description String
- A human-readable description of the alias.
- name String
- A descriptive label that is associated with an alias. Alias names do not need to be unique.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Alias resource produces the following output properties:
- Alias
Arn string - The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Alias resource and uniquely identifies it. ARNs are unique across all Regions. In a GameLift Alias ARN, the resource ID matches the AliasId value.
- Alias
Id string - Unique alias ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Alias
Arn string - The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Alias resource and uniquely identifies it. ARNs are unique across all Regions. In a GameLift Alias ARN, the resource ID matches the AliasId value.
- Alias
Id string - Unique alias ID
- Id string
- The provider-assigned unique ID for this managed resource.
- alias
Arn String - The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Alias resource and uniquely identifies it. ARNs are unique across all Regions. In a GameLift Alias ARN, the resource ID matches the AliasId value.
- alias
Id String - Unique alias ID
- id String
- The provider-assigned unique ID for this managed resource.
- alias
Arn string - The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Alias resource and uniquely identifies it. ARNs are unique across all Regions. In a GameLift Alias ARN, the resource ID matches the AliasId value.
- alias
Id string - Unique alias ID
- id string
- The provider-assigned unique ID for this managed resource.
- alias_
arn str - The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Alias resource and uniquely identifies it. ARNs are unique across all Regions. In a GameLift Alias ARN, the resource ID matches the AliasId value.
- alias_
id str - Unique alias ID
- id str
- The provider-assigned unique ID for this managed resource.
- alias
Arn String - The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Alias resource and uniquely identifies it. ARNs are unique across all Regions. In a GameLift Alias ARN, the resource ID matches the AliasId value.
- alias
Id String - Unique alias ID
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
AliasRoutingStrategy, AliasRoutingStrategyArgs
- Type
Pulumi.
Aws Native. Game Lift. Alias Routing Strategy Type - Simple routing strategy. The alias resolves to one specific fleet. Use this type when routing to active fleets.
- Fleet
Id string - A unique identifier for a fleet that the alias points to. If you specify SIMPLE for the Type property, you must specify this property.
- Message string
- The message text to be used with a terminal routing strategy. If you specify TERMINAL for the Type property, you must specify this property.
- Type
Alias
Routing Strategy Type - Simple routing strategy. The alias resolves to one specific fleet. Use this type when routing to active fleets.
- Fleet
Id string - A unique identifier for a fleet that the alias points to. If you specify SIMPLE for the Type property, you must specify this property.
- Message string
- The message text to be used with a terminal routing strategy. If you specify TERMINAL for the Type property, you must specify this property.
- type
Alias
Routing Strategy Type - Simple routing strategy. The alias resolves to one specific fleet. Use this type when routing to active fleets.
- fleet
Id String - A unique identifier for a fleet that the alias points to. If you specify SIMPLE for the Type property, you must specify this property.
- message String
- The message text to be used with a terminal routing strategy. If you specify TERMINAL for the Type property, you must specify this property.
- type
Alias
Routing Strategy Type - Simple routing strategy. The alias resolves to one specific fleet. Use this type when routing to active fleets.
- fleet
Id string - A unique identifier for a fleet that the alias points to. If you specify SIMPLE for the Type property, you must specify this property.
- message string
- The message text to be used with a terminal routing strategy. If you specify TERMINAL for the Type property, you must specify this property.
- type
Alias
Routing Strategy Type - Simple routing strategy. The alias resolves to one specific fleet. Use this type when routing to active fleets.
- fleet_
id str - A unique identifier for a fleet that the alias points to. If you specify SIMPLE for the Type property, you must specify this property.
- message str
- The message text to be used with a terminal routing strategy. If you specify TERMINAL for the Type property, you must specify this property.
- type "SIMPLE" | "TERMINAL"
- Simple routing strategy. The alias resolves to one specific fleet. Use this type when routing to active fleets.
- fleet
Id String - A unique identifier for a fleet that the alias points to. If you specify SIMPLE for the Type property, you must specify this property.
- message String
- The message text to be used with a terminal routing strategy. If you specify TERMINAL for the Type property, you must specify this property.
AliasRoutingStrategyType, AliasRoutingStrategyTypeArgs
- Simple
- SIMPLE
- Terminal
- TERMINAL
- Alias
Routing Strategy Type Simple - SIMPLE
- Alias
Routing Strategy Type Terminal - TERMINAL
- Simple
- SIMPLE
- Terminal
- TERMINAL
- Simple
- SIMPLE
- Terminal
- TERMINAL
- SIMPLE
- SIMPLE
- TERMINAL
- TERMINAL
- "SIMPLE"
- SIMPLE
- "TERMINAL"
- TERMINAL
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.