
com.pulumi.azure.appplatform.kotlin.SpringCloudContainerDeploymentArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.appplatform.kotlin
import com.pulumi.azure.appplatform.SpringCloudContainerDeploymentArgs.builder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudContainerDeploymentQuotaArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudContainerDeploymentQuotaArgsBuilder
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.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages a Spring Cloud Container Deployment.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "example",
* location: "West Europe",
* });
* const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", {
* name: "example",
* location: example.location,
* resourceGroupName: example.name,
* skuName: "E0",
* });
* const exampleSpringCloudApp = new azure.appplatform.SpringCloudApp("example", {
* name: "example",
* resourceGroupName: exampleSpringCloudService.resourceGroupName,
* serviceName: exampleSpringCloudService.name,
* });
* const exampleSpringCloudContainerDeployment = new azure.appplatform.SpringCloudContainerDeployment("example", {
* name: "example",
* springCloudAppId: exampleSpringCloudApp.id,
* instanceCount: 2,
* arguments: [
* "-cp",
* "/app/resources:/app/classes:/app/libs/*",
* "hello.Application",
* ],
* commands: ["java"],
* environmentVariables: {
* Foo: "Bar",
* Env: "Staging",
* },
* server: "docker.io",
* image: "springio/gs-spring-boot-docker",
* languageFramework: "springboot",
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example",
* location="West Europe")
* example_spring_cloud_service = azure.appplatform.SpringCloudService("example",
* name="example",
* location=example.location,
* resource_group_name=example.name,
* sku_name="E0")
* example_spring_cloud_app = azure.appplatform.SpringCloudApp("example",
* name="example",
* resource_group_name=example_spring_cloud_service.resource_group_name,
* service_name=example_spring_cloud_service.name)
* example_spring_cloud_container_deployment = azure.appplatform.SpringCloudContainerDeployment("example",
* name="example",
* spring_cloud_app_id=example_spring_cloud_app.id,
* instance_count=2,
* arguments=[
* "-cp",
* "/app/resources:/app/classes:/app/libs/*",
* "hello.Application",
* ],
* commands=["java"],
* environment_variables={
* "Foo": "Bar",
* "Env": "Staging",
* },
* server="docker.io",
* image="springio/gs-spring-boot-docker",
* language_framework="springboot")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example",
* Location = "West Europe",
* });
* var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("example", new()
* {
* Name = "example",
* Location = example.Location,
* ResourceGroupName = example.Name,
* SkuName = "E0",
* });
* var exampleSpringCloudApp = new Azure.AppPlatform.SpringCloudApp("example", new()
* {
* Name = "example",
* ResourceGroupName = exampleSpringCloudService.ResourceGroupName,
* ServiceName = exampleSpringCloudService.Name,
* });
* var exampleSpringCloudContainerDeployment = new Azure.AppPlatform.SpringCloudContainerDeployment("example", new()
* {
* Name = "example",
* SpringCloudAppId = exampleSpringCloudApp.Id,
* InstanceCount = 2,
* Arguments = new[]
* {
* "-cp",
* "/app/resources:/app/classes:/app/libs/*",
* "hello.Application",
* },
* Commands = new[]
* {
* "java",
* },
* EnvironmentVariables =
* {
* { "Foo", "Bar" },
* { "Env", "Staging" },
* },
* Server = "docker.io",
* Image = "springio/gs-spring-boot-docker",
* LanguageFramework = "springboot",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appplatform"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, "example", &appplatform.SpringCloudServiceArgs{
* Name: pulumi.String("example"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* SkuName: pulumi.String("E0"),
* })
* if err != nil {
* return err
* }
* exampleSpringCloudApp, err := appplatform.NewSpringCloudApp(ctx, "example", &appplatform.SpringCloudAppArgs{
* Name: pulumi.String("example"),
* ResourceGroupName: exampleSpringCloudService.ResourceGroupName,
* ServiceName: exampleSpringCloudService.Name,
* })
* if err != nil {
* return err
* }
* _, err = appplatform.NewSpringCloudContainerDeployment(ctx, "example", &appplatform.SpringCloudContainerDeploymentArgs{
* Name: pulumi.String("example"),
* SpringCloudAppId: exampleSpringCloudApp.ID(),
* InstanceCount: pulumi.Int(2),
* Arguments: pulumi.StringArray{
* pulumi.String("-cp"),
* pulumi.String("/app/resources:/app/classes:/app/libs/*"),
* pulumi.String("hello.Application"),
* },
* Commands: pulumi.StringArray{
* pulumi.String("java"),
* },
* EnvironmentVariables: pulumi.StringMap{
* "Foo": pulumi.String("Bar"),
* "Env": pulumi.String("Staging"),
* },
* Server: pulumi.String("docker.io"),
* Image: pulumi.String("springio/gs-spring-boot-docker"),
* LanguageFramework: pulumi.String("springboot"),
* })
* 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.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.appplatform.SpringCloudService;
* import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
* import com.pulumi.azure.appplatform.SpringCloudApp;
* import com.pulumi.azure.appplatform.SpringCloudAppArgs;
* import com.pulumi.azure.appplatform.SpringCloudContainerDeployment;
* import com.pulumi.azure.appplatform.SpringCloudContainerDeploymentArgs;
* 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 ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example")
* .location("West Europe")
* .build());
* var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
* .name("example")
* .location(example.location())
* .resourceGroupName(example.name())
* .skuName("E0")
* .build());
* var exampleSpringCloudApp = new SpringCloudApp("exampleSpringCloudApp", SpringCloudAppArgs.builder()
* .name("example")
* .resourceGroupName(exampleSpringCloudService.resourceGroupName())
* .serviceName(exampleSpringCloudService.name())
* .build());
* var exampleSpringCloudContainerDeployment = new SpringCloudContainerDeployment("exampleSpringCloudContainerDeployment", SpringCloudContainerDeploymentArgs.builder()
* .name("example")
* .springCloudAppId(exampleSpringCloudApp.id())
* .instanceCount(2)
* .arguments(
* "-cp",
* "/app/resources:/app/classes:/app/libs/*",
* "hello.Application")
* .commands("java")
* .environmentVariables(Map.ofEntries(
* Map.entry("Foo", "Bar"),
* Map.entry("Env", "Staging")
* ))
* .server("docker.io")
* .image("springio/gs-spring-boot-docker")
* .languageFramework("springboot")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example
* location: West Europe
* exampleSpringCloudService:
* type: azure:appplatform:SpringCloudService
* name: example
* properties:
* name: example
* location: ${example.location}
* resourceGroupName: ${example.name}
* skuName: E0
* exampleSpringCloudApp:
* type: azure:appplatform:SpringCloudApp
* name: example
* properties:
* name: example
* resourceGroupName: ${exampleSpringCloudService.resourceGroupName}
* serviceName: ${exampleSpringCloudService.name}
* exampleSpringCloudContainerDeployment:
* type: azure:appplatform:SpringCloudContainerDeployment
* name: example
* properties:
* name: example
* springCloudAppId: ${exampleSpringCloudApp.id}
* instanceCount: 2
* arguments:
* - -cp
* - /app/resources:/app/classes:/app/libs/*
* - hello.Application
* commands:
* - java
* environmentVariables:
* Foo: Bar
* Env: Staging
* server: docker.io
* image: springio/gs-spring-boot-docker
* languageFramework: springboot
* ```
*
* ## Import
* Spring Cloud Container Deployments can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:appplatform/springCloudContainerDeployment:SpringCloudContainerDeployment example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.AppPlatform/spring/spring1/apps/app1/deployments/deploy1
* ```
* @property addonJson A JSON object that contains the addon configurations of the Spring Cloud Container Deployment.
* @property applicationPerformanceMonitoringIds Specifies a list of Spring Cloud Application Performance Monitoring IDs.
* @property arguments Specifies the arguments to the entrypoint. The docker image's `CMD` is used if not specified.
* @property commands Specifies the entrypoint array. It will not be executed within a shell. The docker image's `ENTRYPOINT` is used if not specified.
* @property environmentVariables Specifies the environment variables of the Spring Cloud Deployment as a map of key-value pairs.
* @property image Container image of the custom container. This should be in the form of `:` without the server name of the registry.
* @property instanceCount Specifies the required instance count of the Spring Cloud Deployment. Possible Values are between `1` and `500`. Defaults to `1` if not specified.
* @property languageFramework Specifies the language framework of the container image. The only possible value is `springboot`.
* @property name The name which should be used for this Spring Cloud Container Deployment. Changing this forces a new Spring Cloud Container Deployment to be created.
* @property quota A `quota` block as defined below.
* @property server The name of the registry that contains the container image.
* @property springCloudAppId The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Container Deployment to be created.
* */*/*/*/*/*/
*/
public data class SpringCloudContainerDeploymentArgs(
public val addonJson: Output? = null,
public val applicationPerformanceMonitoringIds: Output>? = null,
public val arguments: Output>? = null,
public val commands: Output>? = null,
public val environmentVariables: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy