Custom Location Args
data class CustomLocationArgs(val authentication: Output<CustomLocationPropertiesAuthenticationArgs>? = null, val clusterExtensionIds: Output<List<String>>? = null, val displayName: Output<String>? = null, val hostResourceId: Output<String>? = null, val hostType: Output<Either<String, HostType>>? = null, val location: Output<String>? = null, val namespace: Output<String>? = null, val provisioningState: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CustomLocationArgs>
Custom Locations definition. API Version: 2021-03-15-preview.
Example Usage
Create/Update Custom Location
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var customLocation = new AzureNative.ExtendedLocation.CustomLocation("customLocation", new()
{
Authentication = new AzureNative.ExtendedLocation.Inputs.CustomLocationPropertiesAuthenticationArgs
{
Type = "KubeConfig",
Value = "<base64 KubeConfig>",
},
ClusterExtensionIds = new[]
{
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedCluster/someCluster/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension",
},
DisplayName = "customLocationLocation01",
HostResourceId = "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01",
Location = "West US",
Namespace = "namespace01",
ResourceGroupName = "testresourcegroup",
ResourceName = "customLocation01",
});
});
Content copied to clipboard
package main
import (
extendedlocation "github.com/pulumi/pulumi-azure-native-sdk/extendedlocation"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := extendedlocation.NewCustomLocation(ctx, "customLocation", &extendedlocation.CustomLocationArgs{
Authentication: &extendedlocation.CustomLocationPropertiesAuthenticationArgs{
Type: pulumi.String("KubeConfig"),
Value: pulumi.String("<base64 KubeConfig>"),
},
ClusterExtensionIds: pulumi.StringArray{
pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedCluster/someCluster/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension"),
},
DisplayName: pulumi.String("customLocationLocation01"),
HostResourceId: pulumi.String("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01"),
Location: pulumi.String("West US"),
Namespace: pulumi.String("namespace01"),
ResourceGroupName: pulumi.String("testresourcegroup"),
ResourceName: pulumi.String("customLocation01"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.extendedlocation.CustomLocation;
import com.pulumi.azurenative.extendedlocation.CustomLocationArgs;
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 customLocation = new CustomLocation("customLocation", CustomLocationArgs.builder()
.authentication(Map.ofEntries(
Map.entry("type", "KubeConfig"),
Map.entry("value", "<base64 KubeConfig>")
))
.clusterExtensionIds("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedCluster/someCluster/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension")
.displayName("customLocationLocation01")
.hostResourceId("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01")
.location("West US")
.namespace("namespace01")
.resourceGroupName("testresourcegroup")
.resourceName("customLocation01")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:extendedlocation:CustomLocation customLocation01 /subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/customLocation01
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(authentication: Output<CustomLocationPropertiesAuthenticationArgs>? = null, clusterExtensionIds: Output<List<String>>? = null, displayName: Output<String>? = null, hostResourceId: Output<String>? = null, hostType: Output<Either<String, HostType>>? = null, location: Output<String>? = null, namespace: Output<String>? = null, provisioningState: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
This is optional input that contains the authentication that should be used to generate the namespace.
Link copied to clipboard
Contains the reference to the add-on that contains charts to deploy CRDs and operators.
Link copied to clipboard
Display name for the Custom Locations location.
Link copied to clipboard
Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
Link copied to clipboard
Provisioning State for the Custom Location.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
Custom Locations name.