Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.web.kotlin
import com.pulumi.azurenative.web.StaticSiteLinkedBackendArgs.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
/**
* Static Site Linked Backend ARM resource.
* Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2022-03-01.
* Other available API versions: 2023-01-01, 2023-12-01.
* ## Example Usage
* ### Link a backend to a static site
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var staticSiteLinkedBackend = new AzureNative.Web.StaticSiteLinkedBackend("staticSiteLinkedBackend", new()
* {
* BackendResourceId = "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend",
* LinkedBackendName = "testBackend",
* Name = "testStaticSite0",
* Region = "West US 2",
* ResourceGroupName = "rg",
* });
* });
* ```
* ```go
* package main
* import (
* web "github.com/pulumi/pulumi-azure-native-sdk/web/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := web.NewStaticSiteLinkedBackend(ctx, "staticSiteLinkedBackend", &web.StaticSiteLinkedBackendArgs{
* BackendResourceId: pulumi.String("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"),
* LinkedBackendName: pulumi.String("testBackend"),
* Name: pulumi.String("testStaticSite0"),
* Region: pulumi.String("West US 2"),
* ResourceGroupName: pulumi.String("rg"),
* })
* 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.web.StaticSiteLinkedBackend;
* import com.pulumi.azurenative.web.StaticSiteLinkedBackendArgs;
* 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 staticSiteLinkedBackend = new StaticSiteLinkedBackend("staticSiteLinkedBackend", StaticSiteLinkedBackendArgs.builder()
* .backendResourceId("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend")
* .linkedBackendName("testBackend")
* .name("testStaticSite0")
* .region("West US 2")
* .resourceGroupName("rg")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:web:StaticSiteLinkedBackend testBackend /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/linkedBackends/{linkedBackendName}
* ```
* @property backendResourceId The resource id of the backend linked to the static site
* @property kind Kind of resource.
* @property linkedBackendName Name of the backend to link to the static site
* @property name Name of the static site
* @property region The region of the backend linked to the static site
* @property resourceGroupName Name of the resource group to which the resource belongs.
*/
public data class StaticSiteLinkedBackendArgs(
public val backendResourceId: Output? = null,
public val kind: Output? = null,
public val linkedBackendName: Output? = null,
public val name: Output? = null,
public val region: Output? = null,
public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.web.StaticSiteLinkedBackendArgs =
com.pulumi.azurenative.web.StaticSiteLinkedBackendArgs.builder()
.backendResourceId(backendResourceId?.applyValue({ args0 -> args0 }))
.kind(kind?.applyValue({ args0 -> args0 }))
.linkedBackendName(linkedBackendName?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.region(region?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [StaticSiteLinkedBackendArgs].
*/
@PulumiTagMarker
public class StaticSiteLinkedBackendArgsBuilder internal constructor() {
private var backendResourceId: Output? = null
private var kind: Output? = null
private var linkedBackendName: Output? = null
private var name: Output? = null
private var region: Output? = null
private var resourceGroupName: Output? = null
/**
* @param value The resource id of the backend linked to the static site
*/
@JvmName("gmalnfepwhmtlhcp")
public suspend fun backendResourceId(`value`: Output) {
this.backendResourceId = value
}
/**
* @param value Kind of resource.
*/
@JvmName("cxvsfcyfxcylohpy")
public suspend fun kind(`value`: Output) {
this.kind = value
}
/**
* @param value Name of the backend to link to the static site
*/
@JvmName("hsurphowqcwxmvsw")
public suspend fun linkedBackendName(`value`: Output) {
this.linkedBackendName = value
}
/**
* @param value Name of the static site
*/
@JvmName("eelbkxtbyoepuxop")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The region of the backend linked to the static site
*/
@JvmName("ojjffttqwounffjm")
public suspend fun region(`value`: Output) {
this.region = value
}
/**
* @param value Name of the resource group to which the resource belongs.
*/
@JvmName("lmfvspyecyfugymf")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The resource id of the backend linked to the static site
*/
@JvmName("ebojmgctdbpkamct")
public suspend fun backendResourceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backendResourceId = mapped
}
/**
* @param value Kind of resource.
*/
@JvmName("qhjxtoqflsjyerar")
public suspend fun kind(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value Name of the backend to link to the static site
*/
@JvmName("gypncmvyrwgwqqpk")
public suspend fun linkedBackendName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.linkedBackendName = mapped
}
/**
* @param value Name of the static site
*/
@JvmName("urvylffkonjmumsq")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The region of the backend linked to the static site
*/
@JvmName("oumccvtphsyswlcy")
public suspend fun region(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.region = mapped
}
/**
* @param value Name of the resource group to which the resource belongs.
*/
@JvmName("yiudtaglntbvpgxm")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): StaticSiteLinkedBackendArgs = StaticSiteLinkedBackendArgs(
backendResourceId = backendResourceId,
kind = kind,
linkedBackendName = linkedBackendName,
name = name,
region = region,
resourceGroupName = resourceGroupName,
)
}