AzureKeyVaultSecretProviderClassArgs

data class AzureKeyVaultSecretProviderClassArgs(val azureKeyVaultSecretProviderClassName: Output<String>? = null, val clientId: Output<String>? = null, val extendedLocation: Output<AzureResourceManagerCommonTypesExtendedLocationArgs>? = null, val keyvaultName: Output<String>? = null, val location: Output<String>? = null, val objects: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val tenantId: Output<String>? = null) : ConvertibleToJava<AzureKeyVaultSecretProviderClassArgs>

The AzureKeyVaultSecretProviderClass resource. Uses Azure REST API version 2024-08-21-preview. In version 2.x of the Azure Native provider, it used API version 2024-08-21-preview.

Example Usage

AzureKeyVaultSecretProviderClasses_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var azureKeyVaultSecretProviderClass = new AzureNative.SecretSyncController.AzureKeyVaultSecretProviderClass("azureKeyVaultSecretProviderClass", new()
{
AzureKeyVaultSecretProviderClassName = "akvspc-ssc-example",
ClientId = "00000000-0000-0000-0000-000000000000",
ExtendedLocation = new AzureNative.SecretSyncController.Inputs.AzureResourceManagerCommonTypesExtendedLocationArgs
{
Name = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-ssc-example/providers/Microsoft.ExtendedLocation/customLocations/example-custom-location",
Type = AzureNative.SecretSyncController.ExtendedLocationType.CustomLocation,
},
KeyvaultName = "example-ssc-key-vault",
Location = "eastus",
Objects = @"array: |
- |
objectName: my-secret-object
objectType: secret
objectVersionHistory: 1",
ResourceGroupName = "rg-ssc-example",
Tags =
{
{ "example-tag", "example-tag-value" },
},
TenantId = "00000000-0000-0000-0000-000000000000",
});
});
package main
import (
secretsynccontroller "github.com/pulumi/pulumi-azure-native-sdk/secretsynccontroller/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := secretsynccontroller.NewAzureKeyVaultSecretProviderClass(ctx, "azureKeyVaultSecretProviderClass", &secretsynccontroller.AzureKeyVaultSecretProviderClassArgs{
AzureKeyVaultSecretProviderClassName: pulumi.String("akvspc-ssc-example"),
ClientId: pulumi.String("00000000-0000-0000-0000-000000000000"),
ExtendedLocation: &secretsynccontroller.AzureResourceManagerCommonTypesExtendedLocationArgs{
Name: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-ssc-example/providers/Microsoft.ExtendedLocation/customLocations/example-custom-location"),
Type: pulumi.String(secretsynccontroller.ExtendedLocationTypeCustomLocation),
},
KeyvaultName: pulumi.String("example-ssc-key-vault"),
Location: pulumi.String("eastus"),
Objects: pulumi.String("array: |\n - |\n objectName: my-secret-object\n objectType: secret\n objectVersionHistory: 1"),
ResourceGroupName: pulumi.String("rg-ssc-example"),
Tags: pulumi.StringMap{
"example-tag": pulumi.String("example-tag-value"),
},
TenantId: pulumi.String("00000000-0000-0000-0000-000000000000"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.secretsynccontroller.AzureKeyVaultSecretProviderClass;
import com.pulumi.azurenative.secretsynccontroller.AzureKeyVaultSecretProviderClassArgs;
import com.pulumi.azurenative.secretsynccontroller.inputs.AzureResourceManagerCommonTypesExtendedLocationArgs;
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 azureKeyVaultSecretProviderClass = new AzureKeyVaultSecretProviderClass("azureKeyVaultSecretProviderClass", AzureKeyVaultSecretProviderClassArgs.builder()
.azureKeyVaultSecretProviderClassName("akvspc-ssc-example")
.clientId("00000000-0000-0000-0000-000000000000")
.extendedLocation(AzureResourceManagerCommonTypesExtendedLocationArgs.builder()
.name("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-ssc-example/providers/Microsoft.ExtendedLocation/customLocations/example-custom-location")
.type("CustomLocation")
.build())
.keyvaultName("example-ssc-key-vault")
.location("eastus")
.objects("""
array: |
- |
objectName: my-secret-object
objectType: secret
objectVersionHistory: 1 """)
.resourceGroupName("rg-ssc-example")
.tags(Map.of("example-tag", "example-tag-value"))
.tenantId("00000000-0000-0000-0000-000000000000")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:secretsynccontroller:AzureKeyVaultSecretProviderClass akvspc-ssc-example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecretSyncController/azureKeyVaultSecretProviderClasses/{azureKeyVaultSecretProviderClassName}

Constructors

Link copied to clipboard
constructor(azureKeyVaultSecretProviderClassName: Output<String>? = null, clientId: Output<String>? = null, extendedLocation: Output<AzureResourceManagerCommonTypesExtendedLocationArgs>? = null, keyvaultName: Output<String>? = null, location: Output<String>? = null, objects: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, tenantId: Output<String>? = null)

Properties

Link copied to clipboard

The name of the AzureKeyVaultSecretProviderClass

Link copied to clipboard
val clientId: Output<String>? = null

The user assigned managed identity client ID that should be used to access the Azure Key Vault.

Link copied to clipboard

The complex type of the extended location.

Link copied to clipboard
val keyvaultName: Output<String>? = null

The name of the Azure Key Vault to sync secrets from.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val objects: Output<String>? = null

Objects defines the desired state of synced K8s secret objects

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Link copied to clipboard
val tenantId: Output<String>? = null

The Azure Active Directory tenant ID that should be used for authenticating requests to the Azure Key Vault.

Functions

Link copied to clipboard
open override fun toJava(): AzureKeyVaultSecretProviderClassArgs