![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.appplatform.kotlin.SpringCloudApplicationLiveViewArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.appplatform.kotlin
import com.pulumi.azure.appplatform.SpringCloudApplicationLiveViewArgs.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
/**
* > **NOTE:** This resource is applicable only for Spring Cloud Service with enterprise tier.
* Manages a Spring Cloud Application Live View.
* ## 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 exampleSpringCloudApplicationLiveView = new azure.appplatform.SpringCloudApplicationLiveView("example", {
* name: "default",
* springCloudServiceId: exampleSpringCloudService.id,
* });
* ```
* ```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_application_live_view = azure.appplatform.SpringCloudApplicationLiveView("example",
* name="default",
* spring_cloud_service_id=example_spring_cloud_service.id)
* ```
* ```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 exampleSpringCloudApplicationLiveView = new Azure.AppPlatform.SpringCloudApplicationLiveView("example", new()
* {
* Name = "default",
* SpringCloudServiceId = exampleSpringCloudService.Id,
* });
* });
* ```
* ```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
* }
* _, err = appplatform.NewSpringCloudApplicationLiveView(ctx, "example", &appplatform.SpringCloudApplicationLiveViewArgs{
* Name: pulumi.String("default"),
* SpringCloudServiceId: exampleSpringCloudService.ID(),
* })
* 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.SpringCloudApplicationLiveView;
* import com.pulumi.azure.appplatform.SpringCloudApplicationLiveViewArgs;
* 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 exampleSpringCloudApplicationLiveView = new SpringCloudApplicationLiveView("exampleSpringCloudApplicationLiveView", SpringCloudApplicationLiveViewArgs.builder()
* .name("default")
* .springCloudServiceId(exampleSpringCloudService.id())
* .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
* exampleSpringCloudApplicationLiveView:
* type: azure:appplatform:SpringCloudApplicationLiveView
* name: example
* properties:
* name: default
* springCloudServiceId: ${exampleSpringCloudService.id}
* ```
*
* ## Import
* Spring Cloud Application Live Views can be imported using the `resource id`, e.g.
* g
* ```sh
* $ pulumi import azure:appplatform/springCloudApplicationLiveView:SpringCloudApplicationLiveView example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/applicationLiveViews/default
* ```
* @property name The name which should be used for this Spring Cloud Application Live View. Changing this forces a new Spring Cloud Application Live View to be created. The only possible value is `default`.
* @property springCloudServiceId The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Application Live View to be created.
*/
public data class SpringCloudApplicationLiveViewArgs(
public val name: Output? = null,
public val springCloudServiceId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.appplatform.SpringCloudApplicationLiveViewArgs =
com.pulumi.azure.appplatform.SpringCloudApplicationLiveViewArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.springCloudServiceId(springCloudServiceId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SpringCloudApplicationLiveViewArgs].
*/
@PulumiTagMarker
public class SpringCloudApplicationLiveViewArgsBuilder internal constructor() {
private var name: Output? = null
private var springCloudServiceId: Output? = null
/**
* @param value The name which should be used for this Spring Cloud Application Live View. Changing this forces a new Spring Cloud Application Live View to be created. The only possible value is `default`.
*/
@JvmName("vldjabtnbgsufevr")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Application Live View to be created.
*/
@JvmName("ummpxefqnnfcenwc")
public suspend fun springCloudServiceId(`value`: Output) {
this.springCloudServiceId = value
}
/**
* @param value The name which should be used for this Spring Cloud Application Live View. Changing this forces a new Spring Cloud Application Live View to be created. The only possible value is `default`.
*/
@JvmName("rdojrjpvbbhiubwx")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Application Live View to be created.
*/
@JvmName("jbiunbefirvxqmap")
public suspend fun springCloudServiceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.springCloudServiceId = mapped
}
internal fun build(): SpringCloudApplicationLiveViewArgs = SpringCloudApplicationLiveViewArgs(
name = name,
springCloudServiceId = springCloudServiceId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy