AzureKeyVaultSecretProviderClass

class AzureKeyVaultSecretProviderClass : KotlinCustomResource

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/v2"
"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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val clientId: Output<String>

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 id: Output<String>
Link copied to clipboard
val keyvaultName: Output<String>

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

Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

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

Objects defines the desired state of synced K8s secret objects

Link copied to clipboard

Provisioning state of the AzureKeyVaultSecretProviderClass instance.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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

Resource tags.

Link copied to clipboard
val tenantId: Output<String>

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

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>