com.pulumi.aws.amplify.kotlin.BackendEnvironmentArgs.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.amplify.kotlin
import com.pulumi.aws.amplify.BackendEnvironmentArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Provides an Amplify Backend Environment resource.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.amplify.App("example", {name: "example"});
* const exampleBackendEnvironment = new aws.amplify.BackendEnvironment("example", {
* appId: example.id,
* environmentName: "example",
* deploymentArtifacts: "app-example-deployment",
* stackName: "amplify-app-example",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.amplify.App("example", name="example")
* example_backend_environment = aws.amplify.BackendEnvironment("example",
* app_id=example.id,
* environment_name="example",
* deployment_artifacts="app-example-deployment",
* stack_name="amplify-app-example")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.Amplify.App("example", new()
* {
* Name = "example",
* });
* var exampleBackendEnvironment = new Aws.Amplify.BackendEnvironment("example", new()
* {
* AppId = example.Id,
* EnvironmentName = "example",
* DeploymentArtifacts = "app-example-deployment",
* StackName = "amplify-app-example",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/amplify"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := amplify.NewApp(ctx, "example", &lify.AppArgs{
* Name: pulumi.String("example"),
* })
* if err != nil {
* return err
* }
* _, err = amplify.NewBackendEnvironment(ctx, "example", &lify.BackendEnvironmentArgs{
* AppId: example.ID(),
* EnvironmentName: pulumi.String("example"),
* DeploymentArtifacts: pulumi.String("app-example-deployment"),
* StackName: pulumi.String("amplify-app-example"),
* })
* 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.amplify.App;
* import com.pulumi.aws.amplify.AppArgs;
* import com.pulumi.aws.amplify.BackendEnvironment;
* import com.pulumi.aws.amplify.BackendEnvironmentArgs;
* 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 App("example", AppArgs.builder()
* .name("example")
* .build());
* var exampleBackendEnvironment = new BackendEnvironment("exampleBackendEnvironment", BackendEnvironmentArgs.builder()
* .appId(example.id())
* .environmentName("example")
* .deploymentArtifacts("app-example-deployment")
* .stackName("amplify-app-example")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:amplify:App
* properties:
* name: example
* exampleBackendEnvironment:
* type: aws:amplify:BackendEnvironment
* name: example
* properties:
* appId: ${example.id}
* environmentName: example
* deploymentArtifacts: app-example-deployment
* stackName: amplify-app-example
* ```
*
* ## Import
* Using `pulumi import`, import Amplify backend environment using `app_id` and `environment_name`. For example:
* ```sh
* $ pulumi import aws:amplify/backendEnvironment:BackendEnvironment example d2ypk4k47z8u6/example
* ```
* @property appId Unique ID for an Amplify app.
* @property deploymentArtifacts Name of deployment artifacts.
* @property environmentName Name for the backend environment.
* @property stackName AWS CloudFormation stack name of a backend environment.
*/
public data class BackendEnvironmentArgs(
public val appId: Output? = null,
public val deploymentArtifacts: Output? = null,
public val environmentName: Output? = null,
public val stackName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.amplify.BackendEnvironmentArgs =
com.pulumi.aws.amplify.BackendEnvironmentArgs.builder()
.appId(appId?.applyValue({ args0 -> args0 }))
.deploymentArtifacts(deploymentArtifacts?.applyValue({ args0 -> args0 }))
.environmentName(environmentName?.applyValue({ args0 -> args0 }))
.stackName(stackName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BackendEnvironmentArgs].
*/
@PulumiTagMarker
public class BackendEnvironmentArgsBuilder internal constructor() {
private var appId: Output? = null
private var deploymentArtifacts: Output? = null
private var environmentName: Output? = null
private var stackName: Output? = null
/**
* @param value Unique ID for an Amplify app.
*/
@JvmName("uxjsufhuvqddblgm")
public suspend fun appId(`value`: Output) {
this.appId = value
}
/**
* @param value Name of deployment artifacts.
*/
@JvmName("beshqmsnnpxxyamb")
public suspend fun deploymentArtifacts(`value`: Output) {
this.deploymentArtifacts = value
}
/**
* @param value Name for the backend environment.
*/
@JvmName("uegpunuvxnrcrdoq")
public suspend fun environmentName(`value`: Output) {
this.environmentName = value
}
/**
* @param value AWS CloudFormation stack name of a backend environment.
*/
@JvmName("jwglljwrbhfcikwc")
public suspend fun stackName(`value`: Output) {
this.stackName = value
}
/**
* @param value Unique ID for an Amplify app.
*/
@JvmName("leldhdnotwhjbhsv")
public suspend fun appId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.appId = mapped
}
/**
* @param value Name of deployment artifacts.
*/
@JvmName("bynikwphnqxnpewx")
public suspend fun deploymentArtifacts(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deploymentArtifacts = mapped
}
/**
* @param value Name for the backend environment.
*/
@JvmName("bvkbjringjrkovdc")
public suspend fun environmentName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.environmentName = mapped
}
/**
* @param value AWS CloudFormation stack name of a backend environment.
*/
@JvmName("gyichpfxjlrsqqmw")
public suspend fun stackName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.stackName = mapped
}
internal fun build(): BackendEnvironmentArgs = BackendEnvironmentArgs(
appId = appId,
deploymentArtifacts = deploymentArtifacts,
environmentName = environmentName,
stackName = stackName,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy