com.pulumi.aws.gamelift.kotlin.ScriptArgs.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.ScriptArgs.builder
import com.pulumi.aws.gamelift.kotlin.inputs.ScriptStorageLocationArgs
import com.pulumi.aws.gamelift.kotlin.inputs.ScriptStorageLocationArgsBuilder
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 an GameLift Script resource.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.gamelift.Script("example", {
* name: "example-script",
* storageLocation: {
* bucket: exampleAwsS3Bucket.id,
* key: exampleAwsS3Object.key,
* roleArn: exampleAwsIamRole.arn,
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.gamelift.Script("example",
* name="example-script",
* storage_location={
* "bucket": example_aws_s3_bucket["id"],
* "key": example_aws_s3_object["key"],
* "role_arn": example_aws_iam_role["arn"],
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.GameLift.Script("example", new()
* {
* Name = "example-script",
* StorageLocation = new Aws.GameLift.Inputs.ScriptStorageLocationArgs
* {
* Bucket = exampleAwsS3Bucket.Id,
* Key = exampleAwsS3Object.Key,
* RoleArn = exampleAwsIamRole.Arn,
* },
* });
* });
* ```
* ```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.NewScript(ctx, "example", &gamelift.ScriptArgs{
* Name: pulumi.String("example-script"),
* StorageLocation: &gamelift.ScriptStorageLocationArgs{
* Bucket: pulumi.Any(exampleAwsS3Bucket.Id),
* Key: pulumi.Any(exampleAwsS3Object.Key),
* RoleArn: pulumi.Any(exampleAwsIamRole.Arn),
* },
* })
* 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.Script;
* import com.pulumi.aws.gamelift.ScriptArgs;
* import com.pulumi.aws.gamelift.inputs.ScriptStorageLocationArgs;
* 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 Script("example", ScriptArgs.builder()
* .name("example-script")
* .storageLocation(ScriptStorageLocationArgs.builder()
* .bucket(exampleAwsS3Bucket.id())
* .key(exampleAwsS3Object.key())
* .roleArn(exampleAwsIamRole.arn())
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:gamelift:Script
* properties:
* name: example-script
* storageLocation:
* bucket: ${exampleAwsS3Bucket.id}
* key: ${exampleAwsS3Object.key}
* roleArn: ${exampleAwsIamRole.arn}
* ```
*
* ## Import
* Using `pulumi import`, import GameLift Scripts using the ID. For example:
* ```sh
* $ pulumi import aws:gamelift/script:Script example
* ```
* @property name Name of the script
* @property storageLocation Information indicating where your game script files are stored. See below.
* @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.
* @property version Version that is associated with this script.
* @property zipFile A data object containing your Realtime scripts and dependencies as a zip file. The zip file can have one or multiple files. Maximum size of a zip file is 5 MB.
*/
public data class ScriptArgs(
public val name: Output? = null,
public val storageLocation: Output? = null,
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy