com.pulumi.aws.gamelift.kotlin.AliasArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.gamelift.kotlin
import com.pulumi.aws.gamelift.AliasArgs.builder
import com.pulumi.aws.gamelift.kotlin.inputs.AliasRoutingStrategyArgs
import com.pulumi.aws.gamelift.kotlin.inputs.AliasRoutingStrategyArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Provides a GameLift Alias resource.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.gamelift.Alias("example", {
* name: "example-alias",
* description: "Example Description",
* routingStrategy: {
* message: "Example Message",
* type: "TERMINAL",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.gamelift.Alias("example",
* name="example-alias",
* description="Example Description",
* routing_strategy={
* "message": "Example Message",
* "type": "TERMINAL",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.GameLift.Alias("example", new()
* {
* Name = "example-alias",
* Description = "Example Description",
* RoutingStrategy = new Aws.GameLift.Inputs.AliasRoutingStrategyArgs
* {
* Message = "Example Message",
* Type = "TERMINAL",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/gamelift"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := gamelift.NewAlias(ctx, "example", &gamelift.AliasArgs{
* Name: pulumi.String("example-alias"),
* Description: pulumi.String("Example Description"),
* RoutingStrategy: &gamelift.AliasRoutingStrategyArgs{
* Message: pulumi.String("Example Message"),
* Type: pulumi.String("TERMINAL"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.gamelift.Alias;
* import com.pulumi.aws.gamelift.AliasArgs;
* import com.pulumi.aws.gamelift.inputs.AliasRoutingStrategyArgs;
* 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 Alias("example", AliasArgs.builder()
* .name("example-alias")
* .description("Example Description")
* .routingStrategy(AliasRoutingStrategyArgs.builder()
* .message("Example Message")
* .type("TERMINAL")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:gamelift:Alias
* properties:
* name: example-alias
* description: Example Description
* routingStrategy:
* message: Example Message
* type: TERMINAL
* ```
*
* ## Import
* Using `pulumi import`, import GameLift Aliases using the ID. For example:
* ```sh
* $ pulumi import aws:gamelift/alias:Alias example
* ```
* @property description Description of the alias.
* @property name Name of the alias.
* @property routingStrategy Specifies the fleet and/or routing type to use for the alias.
* @property tags 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.
*/
public data class AliasArgs(
public val description: Output? = null,
public val name: Output? = null,
public val routingStrategy: Output? = null,
public val tags: Output