
com.pulumi.azurenative.appplatform.kotlin.DevToolPortalArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.appplatform.kotlin
import com.pulumi.azurenative.appplatform.DevToolPortalArgs.builder
import com.pulumi.azurenative.appplatform.kotlin.inputs.DevToolPortalPropertiesArgs
import com.pulumi.azurenative.appplatform.kotlin.inputs.DevToolPortalPropertiesArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Dev Tool Portal resource
* Azure REST API version: 2023-05-01-preview.
* Other available API versions: 2023-07-01-preview, 2023-09-01-preview, 2023-11-01-preview, 2023-12-01, 2024-01-01-preview, 2024-05-01-preview.
* ## Example Usage
* ### DevToolPortals_CreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var devToolPortal = new AzureNative.AppPlatform.DevToolPortal("devToolPortal", new()
* {
* DevToolPortalName = "default",
* Properties = new AzureNative.AppPlatform.Inputs.DevToolPortalPropertiesArgs
* {
* Features = new AzureNative.AppPlatform.Inputs.DevToolPortalFeatureSettingsArgs
* {
* ApplicationAccelerator = new AzureNative.AppPlatform.Inputs.DevToolPortalFeatureDetailArgs
* {
* State = AzureNative.AppPlatform.DevToolPortalFeatureState.Enabled,
* },
* ApplicationLiveView = new AzureNative.AppPlatform.Inputs.DevToolPortalFeatureDetailArgs
* {
* State = AzureNative.AppPlatform.DevToolPortalFeatureState.Enabled,
* },
* },
* Public = true,
* SsoProperties = new AzureNative.AppPlatform.Inputs.DevToolPortalSsoPropertiesArgs
* {
* ClientId = "00000000-0000-0000-0000-000000000000",
* ClientSecret = "xxxxx",
* MetadataUrl = "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration",
* Scopes = new[]
* {
* "openid",
* },
* },
* },
* ResourceGroupName = "myResourceGroup",
* ServiceName = "myservice",
* });
* });
* ```
* ```go
* package main
* import (
* appplatform "github.com/pulumi/pulumi-azure-native-sdk/appplatform/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := appplatform.NewDevToolPortal(ctx, "devToolPortal", &appplatform.DevToolPortalArgs{
* DevToolPortalName: pulumi.String("default"),
* Properties: &appplatform.DevToolPortalPropertiesArgs{
* Features: &appplatform.DevToolPortalFeatureSettingsArgs{
* ApplicationAccelerator: &appplatform.DevToolPortalFeatureDetailArgs{
* State: pulumi.String(appplatform.DevToolPortalFeatureStateEnabled),
* },
* ApplicationLiveView: &appplatform.DevToolPortalFeatureDetailArgs{
* State: pulumi.String(appplatform.DevToolPortalFeatureStateEnabled),
* },
* },
* Public: pulumi.Bool(true),
* SsoProperties: &appplatform.DevToolPortalSsoPropertiesArgs{
* ClientId: pulumi.String("00000000-0000-0000-0000-000000000000"),
* ClientSecret: pulumi.String("xxxxx"),
* MetadataUrl: pulumi.String("https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration"),
* Scopes: pulumi.StringArray{
* pulumi.String("openid"),
* },
* },
* },
* ResourceGroupName: pulumi.String("myResourceGroup"),
* ServiceName: pulumi.String("myservice"),
* })
* 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.azurenative.appplatform.DevToolPortal;
* import com.pulumi.azurenative.appplatform.DevToolPortalArgs;
* import com.pulumi.azurenative.appplatform.inputs.DevToolPortalPropertiesArgs;
* import com.pulumi.azurenative.appplatform.inputs.DevToolPortalFeatureSettingsArgs;
* import com.pulumi.azurenative.appplatform.inputs.DevToolPortalFeatureDetailArgs;
* import com.pulumi.azurenative.appplatform.inputs.DevToolPortalSsoPropertiesArgs;
* 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 devToolPortal = new DevToolPortal("devToolPortal", DevToolPortalArgs.builder()
* .devToolPortalName("default")
* .properties(DevToolPortalPropertiesArgs.builder()
* .features(DevToolPortalFeatureSettingsArgs.builder()
* .applicationAccelerator(DevToolPortalFeatureDetailArgs.builder()
* .state("Enabled")
* .build())
* .applicationLiveView(DevToolPortalFeatureDetailArgs.builder()
* .state("Enabled")
* .build())
* .build())
* .public_(true)
* .ssoProperties(DevToolPortalSsoPropertiesArgs.builder()
* .clientId("00000000-0000-0000-0000-000000000000")
* .clientSecret("xxxxx")
* .metadataUrl("https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration")
* .scopes("openid")
* .build())
* .build())
* .resourceGroupName("myResourceGroup")
* .serviceName("myservice")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:appplatform:DevToolPortal default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}
* ```
* @property devToolPortalName The name of Dev Tool Portal.
* @property properties Dev Tool Portal properties payload
* @property resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @property serviceName The name of the Service resource.
*/
public data class DevToolPortalArgs(
public val devToolPortalName: Output? = null,
public val properties: Output? = null,
public val resourceGroupName: Output? = null,
public val serviceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.appplatform.DevToolPortalArgs =
com.pulumi.azurenative.appplatform.DevToolPortalArgs.builder()
.devToolPortalName(devToolPortalName?.applyValue({ args0 -> args0 }))
.properties(properties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.serviceName(serviceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DevToolPortalArgs].
*/
@PulumiTagMarker
public class DevToolPortalArgsBuilder internal constructor() {
private var devToolPortalName: Output? = null
private var properties: Output? = null
private var resourceGroupName: Output? = null
private var serviceName: Output? = null
/**
* @param value The name of Dev Tool Portal.
*/
@JvmName("lectimxnobwnxgqt")
public suspend fun devToolPortalName(`value`: Output) {
this.devToolPortalName = value
}
/**
* @param value Dev Tool Portal properties payload
*/
@JvmName("cmxgsrqrdkylgxyp")
public suspend fun properties(`value`: Output) {
this.properties = value
}
/**
* @param value The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
*/
@JvmName("tltjyimjvnapmpiy")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the Service resource.
*/
@JvmName("knsqtgatdmgyyfgu")
public suspend fun serviceName(`value`: Output) {
this.serviceName = value
}
/**
* @param value The name of Dev Tool Portal.
*/
@JvmName("inkheclowpirqmmv")
public suspend fun devToolPortalName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.devToolPortalName = mapped
}
/**
* @param value Dev Tool Portal properties payload
*/
@JvmName("buormngyeebeyvdl")
public suspend fun properties(`value`: DevToolPortalPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param argument Dev Tool Portal properties payload
*/
@JvmName("qpfbidbmktqijdwg")
public suspend fun properties(argument: suspend DevToolPortalPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = DevToolPortalPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.properties = mapped
}
/**
* @param value The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
*/
@JvmName("ayfkddiwhvbwvlcy")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The name of the Service resource.
*/
@JvmName("rgdiifuftwfksoaw")
public suspend fun serviceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceName = mapped
}
internal fun build(): DevToolPortalArgs = DevToolPortalArgs(
devToolPortalName = devToolPortalName,
properties = properties,
resourceGroupName = resourceGroupName,
serviceName = serviceName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy