Please wait. This can take some minutes ...
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.
com.pulumi.azurenative.kubernetes.kotlin.ConnectedClusterArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.kubernetes.kotlin
import com.pulumi.azurenative.kubernetes.ConnectedClusterArgs.builder
import com.pulumi.azurenative.kubernetes.kotlin.enums.PrivateLinkState
import com.pulumi.azurenative.kubernetes.kotlin.enums.ProvisioningState
import com.pulumi.azurenative.kubernetes.kotlin.inputs.ConnectedClusterIdentityArgs
import com.pulumi.azurenative.kubernetes.kotlin.inputs.ConnectedClusterIdentityArgsBuilder
import com.pulumi.core.Either
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Represents a connected cluster.
* Azure REST API version: 2022-05-01-preview. Prior API version in Azure Native 1.x: 2021-03-01.
* Other available API versions: 2020-01-01-preview, 2022-10-01-preview, 2023-11-01-preview, 2024-01-01, 2024-02-01-preview, 2024-06-01-preview, 2024-07-01-preview, 2024-07-15-preview.
* ## Example Usage
* ### CreateClusterExample
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var connectedCluster = new AzureNative.Kubernetes.ConnectedCluster("connectedCluster", new()
* {
* AgentPublicKeyCertificate = "MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO",
* ClusterName = "testCluster",
* Identity = new AzureNative.Kubernetes.Inputs.ConnectedClusterIdentityArgs
* {
* Type = AzureNative.Kubernetes.ResourceIdentityType.SystemAssigned,
* },
* Location = "East US",
* ResourceGroupName = "k8sc-rg",
* Tags = null,
* });
* });
* ```
* ```go
* package main
* import (
* kubernetes "github.com/pulumi/pulumi-azure-native-sdk/kubernetes/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := kubernetes.NewConnectedCluster(ctx, "connectedCluster", &kubernetes.ConnectedClusterArgs{
* AgentPublicKeyCertificate: pulumi.String("MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO"),
* ClusterName: pulumi.String("testCluster"),
* Identity: &kubernetes.ConnectedClusterIdentityArgs{
* Type: kubernetes.ResourceIdentityTypeSystemAssigned,
* },
* Location: pulumi.String("East US"),
* ResourceGroupName: pulumi.String("k8sc-rg"),
* Tags: nil,
* })
* 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.kubernetes.ConnectedCluster;
* import com.pulumi.azurenative.kubernetes.ConnectedClusterArgs;
* import com.pulumi.azurenative.kubernetes.inputs.ConnectedClusterIdentityArgs;
* 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 connectedCluster = new ConnectedCluster("connectedCluster", ConnectedClusterArgs.builder()
* .agentPublicKeyCertificate("MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO")
* .clusterName("testCluster")
* .identity(ConnectedClusterIdentityArgs.builder()
* .type("SystemAssigned")
* .build())
* .location("East US")
* .resourceGroupName("k8sc-rg")
* .tags()
* .build());
* }
* }
* ```
* ### CreateClusterPrivateLinkExample
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var connectedCluster = new AzureNative.Kubernetes.ConnectedCluster("connectedCluster", new()
* {
* AgentPublicKeyCertificate = "MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO",
* ClusterName = "testClusterPvtLink",
* Identity = new AzureNative.Kubernetes.Inputs.ConnectedClusterIdentityArgs
* {
* Type = AzureNative.Kubernetes.ResourceIdentityType.SystemAssigned,
* },
* Location = "East US",
* PrivateLinkScopeResourceId = "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName",
* PrivateLinkState = AzureNative.Kubernetes.PrivateLinkState.Enabled,
* ResourceGroupName = "k8sc-rg",
* Tags = null,
* });
* });
* ```
* ```go
* package main
* import (
* kubernetes "github.com/pulumi/pulumi-azure-native-sdk/kubernetes/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := kubernetes.NewConnectedCluster(ctx, "connectedCluster", &kubernetes.ConnectedClusterArgs{
* AgentPublicKeyCertificate: pulumi.String("MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO"),
* ClusterName: pulumi.String("testClusterPvtLink"),
* Identity: &kubernetes.ConnectedClusterIdentityArgs{
* Type: kubernetes.ResourceIdentityTypeSystemAssigned,
* },
* Location: pulumi.String("East US"),
* PrivateLinkScopeResourceId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName"),
* PrivateLinkState: pulumi.String(kubernetes.PrivateLinkStateEnabled),
* ResourceGroupName: pulumi.String("k8sc-rg"),
* Tags: nil,
* })
* 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.kubernetes.ConnectedCluster;
* import com.pulumi.azurenative.kubernetes.ConnectedClusterArgs;
* import com.pulumi.azurenative.kubernetes.inputs.ConnectedClusterIdentityArgs;
* 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 connectedCluster = new ConnectedCluster("connectedCluster", ConnectedClusterArgs.builder()
* .agentPublicKeyCertificate("MIICYzCCAcygAwIBAgIBADANBgkqhkiG9w0BAQUFADAuMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDSUJNMREwDwYDVQQLEwhMb2NhbCBDQTAeFw05OTEyMjIwNTAwMDBaFw0wMDEyMjMwNDU5NTlaMC4xCzAJBgNVBAYTAlVTMQwwCgYDVQQKEwNJQk0xETAPBgNVBAsTCExvY2FsIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2bZEo7xGaX2/0GHkrNFZvlxBou9v1Jmt/PDiTMPve8r9FeJAQ0QdvFST/0JPQYD20rH0bimdDLgNdNynmyRoS2S/IInfpmf69iyc2G0TPyRvmHIiOZbdCd+YBHQi1adkj17NDcWj6S14tVurFX73zx0sNoMS79q3tuXKrDsxeuwIDAQABo4GQMIGNMEsGCVUdDwGG+EIBDQQ+EzxHZW5lcmF0ZWQgYnkgdGhlIFNlY3VyZVdheSBTZWN1cml0eSBTZXJ2ZXIgZm9yIE9TLzM5MCAoUkFDRikwDgYDVR0PAQH/BAQDAgAGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ3+ocRyCTJw067dLSwr/nalx6YMMA0GCSqGSIb3DQEBBQUAA4GBAMaQzt+zaj1GU77yzlr8iiMBXgdQrwsZZWJo5exnAucJAEYQZmOfyLiM D6oYq+ZnfvM0n8G/Y79q8nhwvuxpYOnRSAXFp6xSkrIOeZtJMY1h00LKp/JX3Ng1svZ2agE126JHsQ0bhzN5TKsYfbwfTwfjdWAGy6Vf1nYi/rO+ryMO")
* .clusterName("testClusterPvtLink")
* .identity(ConnectedClusterIdentityArgs.builder()
* .type("SystemAssigned")
* .build())
* .location("East US")
* .privateLinkScopeResourceId("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName")
* .privateLinkState("Enabled")
* .resourceGroupName("k8sc-rg")
* .tags()
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:kubernetes:ConnectedCluster connectedCluster1 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedClusters/{clusterName}
* ```
* @property agentPublicKeyCertificate Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.
* @property clusterName The name of the Kubernetes cluster on which get is called.
* @property distribution The Kubernetes distribution running on this connected cluster.
* @property identity The identity of the connected cluster.
* @property infrastructure The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on.
* @property location The geo-location where the resource lives
* @property privateLinkScopeResourceId The resource id of the private link scope this connected cluster is assigned to, if any.
* @property privateLinkState Property which describes the state of private link on a connected cluster resource.
* @property provisioningState Provisioning state of the connected cluster resource.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property tags Resource tags.
*/
public data class ConnectedClusterArgs(
public val agentPublicKeyCertificate: Output? = null,
public val clusterName: Output? = null,
public val distribution: Output? = null,
public val identity: Output? = null,
public val infrastructure: Output? = null,
public val location: Output? = null,
public val privateLinkScopeResourceId: Output? = null,
public val privateLinkState: Output>? = null,
public val provisioningState: Output>? = null,
public val resourceGroupName: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.kubernetes.ConnectedClusterArgs =
com.pulumi.azurenative.kubernetes.ConnectedClusterArgs.builder()
.agentPublicKeyCertificate(agentPublicKeyCertificate?.applyValue({ args0 -> args0 }))
.clusterName(clusterName?.applyValue({ args0 -> args0 }))
.distribution(distribution?.applyValue({ args0 -> args0 }))
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.infrastructure(infrastructure?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.privateLinkScopeResourceId(privateLinkScopeResourceId?.applyValue({ args0 -> args0 }))
.privateLinkState(
privateLinkState?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.provisioningState(
provisioningState?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [ConnectedClusterArgs].
*/
@PulumiTagMarker
public class ConnectedClusterArgsBuilder internal constructor() {
private var agentPublicKeyCertificate: Output? = null
private var clusterName: Output? = null
private var distribution: Output? = null
private var identity: Output? = null
private var infrastructure: Output? = null
private var location: Output? = null
private var privateLinkScopeResourceId: Output? = null
private var privateLinkState: Output>? = null
private var provisioningState: Output>? = null
private var resourceGroupName: Output? = null
private var tags: Output>? = null
/**
* @param value Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.
*/
@JvmName("eojckmqehgltjvan")
public suspend fun agentPublicKeyCertificate(`value`: Output) {
this.agentPublicKeyCertificate = value
}
/**
* @param value The name of the Kubernetes cluster on which get is called.
*/
@JvmName("sgnsqkvhrbyslqoc")
public suspend fun clusterName(`value`: Output) {
this.clusterName = value
}
/**
* @param value The Kubernetes distribution running on this connected cluster.
*/
@JvmName("giujdbgguasjvmib")
public suspend fun distribution(`value`: Output) {
this.distribution = value
}
/**
* @param value The identity of the connected cluster.
*/
@JvmName("rmoqjehpihhhgobg")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on.
*/
@JvmName("tamwgpfaosudvrop")
public suspend fun infrastructure(`value`: Output) {
this.infrastructure = value
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("ikadawknuuawvobc")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The resource id of the private link scope this connected cluster is assigned to, if any.
*/
@JvmName("gwaqsujylbkfejks")
public suspend fun privateLinkScopeResourceId(`value`: Output) {
this.privateLinkScopeResourceId = value
}
/**
* @param value Property which describes the state of private link on a connected cluster resource.
*/
@JvmName("cbjuxiycfbtsjcwh")
public suspend fun privateLinkState(`value`: Output>) {
this.privateLinkState = value
}
/**
* @param value Provisioning state of the connected cluster resource.
*/
@JvmName("atxtveccnhkfyutg")
public suspend fun provisioningState(`value`: Output>) {
this.provisioningState = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("resaatslgupwrgff")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Resource tags.
*/
@JvmName("ejjpupqqyygjbhux")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value Base64 encoded public certificate used by the agent to do the initial handshake to the backend services in Azure.
*/
@JvmName("vplcplfccmniagdg")
public suspend fun agentPublicKeyCertificate(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.agentPublicKeyCertificate = mapped
}
/**
* @param value The name of the Kubernetes cluster on which get is called.
*/
@JvmName("mrwcddmcboitrwod")
public suspend fun clusterName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clusterName = mapped
}
/**
* @param value The Kubernetes distribution running on this connected cluster.
*/
@JvmName("tvveiionmhfngobs")
public suspend fun distribution(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.distribution = mapped
}
/**
* @param value The identity of the connected cluster.
*/
@JvmName("qiwxgblcrfohtlfx")
public suspend fun identity(`value`: ConnectedClusterIdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument The identity of the connected cluster.
*/
@JvmName("qaxloelqbuaqiebg")
public suspend fun identity(argument: suspend ConnectedClusterIdentityArgsBuilder.() -> Unit) {
val toBeMapped = ConnectedClusterIdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value The infrastructure on which the Kubernetes cluster represented by this connected cluster is running on.
*/
@JvmName("gmgmxduimomcaoob")
public suspend fun infrastructure(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.infrastructure = mapped
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("jccnwxetjbygvtwd")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The resource id of the private link scope this connected cluster is assigned to, if any.
*/
@JvmName("kcwodnqfuqqfgeag")
public suspend fun privateLinkScopeResourceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateLinkScopeResourceId = mapped
}
/**
* @param value Property which describes the state of private link on a connected cluster resource.
*/
@JvmName("sgmdtfttsywfdqsq")
public suspend fun privateLinkState(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateLinkState = mapped
}
/**
* @param value Property which describes the state of private link on a connected cluster resource.
*/
@JvmName("ikckohsotghwtthn")
public fun privateLinkState(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.privateLinkState = mapped
}
/**
* @param value Property which describes the state of private link on a connected cluster resource.
*/
@JvmName("xtparahedksfgxdi")
public fun privateLinkState(`value`: PrivateLinkState) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.privateLinkState = mapped
}
/**
* @param value Provisioning state of the connected cluster resource.
*/
@JvmName("aofklnuxfoslpail")
public suspend fun provisioningState(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.provisioningState = mapped
}
/**
* @param value Provisioning state of the connected cluster resource.
*/
@JvmName("yyervrfvbrklplsn")
public fun provisioningState(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.provisioningState = mapped
}
/**
* @param value Provisioning state of the connected cluster resource.
*/
@JvmName("lnomgeheddloykts")
public fun provisioningState(`value`: ProvisioningState) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.provisioningState = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("xljbjwulxpqhusdn")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("pgpjbkkslsawhrsi")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("eaowkwoxechpxnfu")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): ConnectedClusterArgs = ConnectedClusterArgs(
agentPublicKeyCertificate = agentPublicKeyCertificate,
clusterName = clusterName,
distribution = distribution,
identity = identity,
infrastructure = infrastructure,
location = location,
privateLinkScopeResourceId = privateLinkScopeResourceId,
privateLinkState = privateLinkState,
provisioningState = provisioningState,
resourceGroupName = resourceGroupName,
tags = tags,
)
}