All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.container.kotlin.AzureClientArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.container.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.AzureClientArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * AzureClient resources hold client authentication information needed by the Anthos Multi-Cloud API to manage Azure resources on your Azure subscription.When an AzureCluster is created, an AzureClient resource needs to be provided and all operations on Azure resources associated to that cluster will authenticate to Azure services using the given client.AzureClient resources are immutable and cannot be modified upon creation.Each AzureClient resource is bound to a single Azure Active Directory Application and tenant.
 * For more information, see:
 * * [Multicloud overview](https://cloud.google.com/anthos/clusters/docs/multi-cloud)
 * ## Example Usage
 * ### Basic_azure_client
 * A basic example of a containerazure azure client
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const primary = new gcp.container.AzureClient("primary", {
 *     applicationId: "12345678-1234-1234-1234-123456789111",
 *     location: "us-west1",
 *     name: "client-name",
 *     tenantId: "12345678-1234-1234-1234-123456789111",
 *     project: "my-project-name",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * primary = gcp.container.AzureClient("primary",
 *     application_id="12345678-1234-1234-1234-123456789111",
 *     location="us-west1",
 *     name="client-name",
 *     tenant_id="12345678-1234-1234-1234-123456789111",
 *     project="my-project-name")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var primary = new Gcp.Container.AzureClient("primary", new()
 *     {
 *         ApplicationId = "12345678-1234-1234-1234-123456789111",
 *         Location = "us-west1",
 *         Name = "client-name",
 *         TenantId = "12345678-1234-1234-1234-123456789111",
 *         Project = "my-project-name",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/container"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := container.NewAzureClient(ctx, "primary", &container.AzureClientArgs{
 * 			ApplicationId: pulumi.String("12345678-1234-1234-1234-123456789111"),
 * 			Location:      pulumi.String("us-west1"),
 * 			Name:          pulumi.String("client-name"),
 * 			TenantId:      pulumi.String("12345678-1234-1234-1234-123456789111"),
 * 			Project:       pulumi.String("my-project-name"),
 * 		})
 * 		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.gcp.container.AzureClient;
 * import com.pulumi.gcp.container.AzureClientArgs;
 * 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 primary = new AzureClient("primary", AzureClientArgs.builder()
 *             .applicationId("12345678-1234-1234-1234-123456789111")
 *             .location("us-west1")
 *             .name("client-name")
 *             .tenantId("12345678-1234-1234-1234-123456789111")
 *             .project("my-project-name")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   primary:
 *     type: gcp:container:AzureClient
 *     properties:
 *       applicationId: 12345678-1234-1234-1234-123456789111
 *       location: us-west1
 *       name: client-name
 *       tenantId: 12345678-1234-1234-1234-123456789111
 *       project: my-project-name
 * ```
 * 
 * ## Import
 * Client can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{location}}/azureClients/{{name}}`
 * * `{{project}}/{{location}}/{{name}}`
 * * `{{location}}/{{name}}`
 * When using the `pulumi import` command, Client can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:container/azureClient:AzureClient default projects/{{project}}/locations/{{location}}/azureClients/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:container/azureClient:AzureClient default {{project}}/{{location}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:container/azureClient:AzureClient default {{location}}/{{name}}
 * ```
 * @property applicationId The Azure Active Directory Application ID.
 * @property location The location for the resource
 * @property name The name of this resource.
 * @property project The project for the resource
 * @property tenantId The Azure Active Directory Tenant ID.
 * - - -
 */
public data class AzureClientArgs(
    public val applicationId: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val project: Output? = null,
    public val tenantId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.AzureClientArgs =
        com.pulumi.gcp.container.AzureClientArgs.builder()
            .applicationId(applicationId?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .tenantId(tenantId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AzureClientArgs].
 */
@PulumiTagMarker
public class AzureClientArgsBuilder internal constructor() {
    private var applicationId: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var project: Output? = null

    private var tenantId: Output? = null

    /**
     * @param value The Azure Active Directory Application ID.
     */
    @JvmName("lcdeeqwbapuwnjoy")
    public suspend fun applicationId(`value`: Output) {
        this.applicationId = value
    }

    /**
     * @param value The location for the resource
     */
    @JvmName("jwhnmcfamxfcwdui")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name of this resource.
     */
    @JvmName("wwydmcjsjomspxcq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The project for the resource
     */
    @JvmName("kgfhvbjgqnfdhhxq")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value The Azure Active Directory Tenant ID.
     * - - -
     */
    @JvmName("hwmihvkiatmofnft")
    public suspend fun tenantId(`value`: Output) {
        this.tenantId = value
    }

    /**
     * @param value The Azure Active Directory Application ID.
     */
    @JvmName("fwjypchehqnesnxx")
    public suspend fun applicationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationId = mapped
    }

    /**
     * @param value The location for the resource
     */
    @JvmName("halycuydetmwstom")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name of this resource.
     */
    @JvmName("ylwrohphgdybifoh")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The project for the resource
     */
    @JvmName("qvrhsfnkunekcsne")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value The Azure Active Directory Tenant ID.
     * - - -
     */
    @JvmName("cnnqciqywpgpfhob")
    public suspend fun tenantId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tenantId = mapped
    }

    internal fun build(): AzureClientArgs = AzureClientArgs(
        applicationId = applicationId,
        location = location,
        name = name,
        project = project,
        tenantId = tenantId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy