EncryptionScopeArgs

data class EncryptionScopeArgs(val accountName: Output<String>? = null, val encryptionScopeName: Output<String>? = null, val properties: Output<EncryptionScopePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<EncryptionScopeArgs>

Cognitive Services EncryptionScope Azure REST API version: 2023-10-01-preview.

Example Usage

PutEncryptionScope

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var encryptionScope = new AzureNative.CognitiveServices.EncryptionScope("encryptionScope", new()
{
AccountName = "accountName",
EncryptionScopeName = "encryptionScopeName",
Properties = new AzureNative.CognitiveServices.Inputs.EncryptionScopePropertiesArgs
{
KeySource = "Microsoft.KeyVault",
KeyVaultProperties = new AzureNative.CognitiveServices.Inputs.KeyVaultPropertiesArgs
{
IdentityClientId = "00000000-0000-0000-0000-000000000000",
KeyName = "DevKeyWestUS2",
KeyVaultUri = "https://devkvwestus2.vault.azure.net/",
KeyVersion = "9f85549d7bf14ff4bf178c10d3bdca95",
},
State = "Enabled",
},
ResourceGroupName = "resourceGroupName",
});
});
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/cognitiveservices/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cognitiveservices.NewEncryptionScope(ctx, "encryptionScope", &cognitiveservices.EncryptionScopeArgs{
AccountName: pulumi.String("accountName"),
EncryptionScopeName: pulumi.String("encryptionScopeName"),
Properties: cognitiveservices.EncryptionScopePropertiesResponse{
KeySource: pulumi.String("Microsoft.KeyVault"),
KeyVaultProperties: &cognitiveservices.KeyVaultPropertiesArgs{
IdentityClientId: pulumi.String("00000000-0000-0000-0000-000000000000"),
KeyName: pulumi.String("DevKeyWestUS2"),
KeyVaultUri: pulumi.String("https://devkvwestus2.vault.azure.net/"),
KeyVersion: pulumi.String("9f85549d7bf14ff4bf178c10d3bdca95"),
},
State: pulumi.String("Enabled"),
},
ResourceGroupName: pulumi.String("resourceGroupName"),
})
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.cognitiveservices.EncryptionScope;
import com.pulumi.azurenative.cognitiveservices.EncryptionScopeArgs;
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 encryptionScope = new EncryptionScope("encryptionScope", EncryptionScopeArgs.builder()
.accountName("accountName")
.encryptionScopeName("encryptionScopeName")
.properties(Map.ofEntries(
Map.entry("keySource", "Microsoft.KeyVault"),
Map.entry("keyVaultProperties", Map.ofEntries(
Map.entry("identityClientId", "00000000-0000-0000-0000-000000000000"),
Map.entry("keyName", "DevKeyWestUS2"),
Map.entry("keyVaultUri", "https://devkvwestus2.vault.azure.net/"),
Map.entry("keyVersion", "9f85549d7bf14ff4bf178c10d3bdca95")
)),
Map.entry("state", "Enabled")
))
.resourceGroupName("resourceGroupName")
.build());
}
}

Import

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

$ pulumi import azure-native:cognitiveservices:EncryptionScope encryptionScopeName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes/{encryptionScopeName}

Constructors

Link copied to clipboard
fun EncryptionScopeArgs(accountName: Output<String>? = null, encryptionScopeName: Output<String>? = null, properties: Output<EncryptionScopePropertiesArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

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

Properties

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

The name of Cognitive Services account.

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

The name of the encryptionScope associated with the Cognitive Services Account

Link copied to clipboard

Properties of Cognitive Services EncryptionScope.

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.