![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.appconfiguration.kotlin.LicationLoadBalancerFrontend.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.appconfiguration.kotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
/**
* Builder for [LicationLoadBalancerFrontend].
*/
@PulumiTagMarker
public class LicationLoadBalancerFrontendResourceBuilder internal constructor() {
public var name: String? = null
public var args: LicationLoadBalancerFrontendArgs = LicationLoadBalancerFrontendArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend LicationLoadBalancerFrontendArgsBuilder.() -> Unit) {
val builder = LicationLoadBalancerFrontendArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): LicationLoadBalancerFrontend {
val builtJavaResource =
com.pulumi.azure.appconfiguration.LicationLoadBalancerFrontend(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return LicationLoadBalancerFrontend(builtJavaResource)
}
}
/**
* Manages an Application Gateway for Containers Frontend.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.appconfiguration.LicationLoadBalancer("example", {
* name: "example",
* resourceGroupName: "example",
* location: "West Europe",
* });
* const exampleLicationLoadBalancerFrontend = new azure.appconfiguration.LicationLoadBalancerFrontend("example", {
* name: "example",
* applicationLoadBalancerId: example.id,
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.appconfiguration.LicationLoadBalancer("example",
* name="example",
* resource_group_name="example",
* location="West Europe")
* example_lication_load_balancer_frontend = azure.appconfiguration.LicationLoadBalancerFrontend("example",
* name="example",
* application_load_balancer_id=example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.AppConfiguration.LicationLoadBalancer("example", new()
* {
* Name = "example",
* ResourceGroupName = "example",
* Location = "West Europe",
* });
* var exampleLicationLoadBalancerFrontend = new Azure.AppConfiguration.LicationLoadBalancerFrontend("example", new()
* {
* Name = "example",
* ApplicationLoadBalancerId = example.Id,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appconfiguration"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := appconfiguration.NewLicationLoadBalancer(ctx, "example", &appconfiguration.LicationLoadBalancerArgs{
* Name: pulumi.String("example"),
* ResourceGroupName: pulumi.String("example"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* _, err = appconfiguration.NewLicationLoadBalancerFrontend(ctx, "example", &appconfiguration.LicationLoadBalancerFrontendArgs{
* Name: pulumi.String("example"),
* ApplicationLoadBalancerId: example.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.appconfiguration.LicationLoadBalancer;
* import com.pulumi.azure.appconfiguration.LicationLoadBalancerArgs;
* import com.pulumi.azure.appconfiguration.LicationLoadBalancerFrontend;
* import com.pulumi.azure.appconfiguration.LicationLoadBalancerFrontendArgs;
* 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 LicationLoadBalancer("example", LicationLoadBalancerArgs.builder()
* .name("example")
* .resourceGroupName("example")
* .location("West Europe")
* .build());
* var exampleLicationLoadBalancerFrontend = new LicationLoadBalancerFrontend("exampleLicationLoadBalancerFrontend", LicationLoadBalancerFrontendArgs.builder()
* .name("example")
* .applicationLoadBalancerId(example.id())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:appconfiguration:LicationLoadBalancer
* properties:
* name: example
* resourceGroupName: example
* location: West Europe
* exampleLicationLoadBalancerFrontend:
* type: azure:appconfiguration:LicationLoadBalancerFrontend
* name: example
* properties:
* name: example
* applicationLoadBalancerId: ${example.id}
* ```
*
* ## Import
* Application Gateway for Containers Frontend can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:appconfiguration/licationLoadBalancerFrontend:LicationLoadBalancerFrontend example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ServiceNetworking/trafficControllers/alb1/frontends/frontend1
* ```
*/
public class LicationLoadBalancerFrontend internal constructor(
override val javaResource: com.pulumi.azure.appconfiguration.LicationLoadBalancerFrontend,
) : KotlinCustomResource(javaResource, LicationLoadBalancerFrontendMapper) {
/**
* The ID of the Application Gateway for Containers. Changing this forces a new resource to be created.
*/
public val applicationLoadBalancerId: Output
get() = javaResource.applicationLoadBalancerId().applyValue({ args0 -> args0 })
/**
* The Fully Qualified Domain Name of the DNS record associated to an Application Gateway for Containers Frontend.
*/
public val fullyQualifiedDomainName: Output
get() = javaResource.fullyQualifiedDomainName().applyValue({ args0 -> args0 })
/**
* The name which should be used for this Application Gateway for Containers Frontend. Changing this forces a new resource to be created.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* A mapping of tags which should be assigned to the Application Gateway for Containers Frontend.
*/
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy