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 Uses Azure REST API version 2024-10-01. In version 2.x of the Azure Native provider, it used API version 2023-10-01-preview. Other available API versions: 2023-10-01-preview, 2024-04-01-preview, 2024-06-01-preview, 2025-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native cognitiveservices [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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 = AzureNative.CognitiveServices.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 = AzureNative.CognitiveServices.EncryptionScopeState.Enabled,
},
ResourceGroupName = "resourceGroupName",
});
});
package main
import (
cognitiveservices "github.com/pulumi/pulumi-azure-native-sdk/cognitiveservices/v3"
"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.EncryptionScopePropertiesArgs{
KeySource: pulumi.String(cognitiveservices.KeySource_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(cognitiveservices.EncryptionScopeStateEnabled),
},
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 com.pulumi.azurenative.cognitiveservices.inputs.EncryptionScopePropertiesArgs;
import com.pulumi.azurenative.cognitiveservices.inputs.KeyVaultPropertiesArgs;
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(EncryptionScopePropertiesArgs.builder()
.keySource("Microsoft.KeyVault")
.keyVaultProperties(KeyVaultPropertiesArgs.builder()
.identityClientId("00000000-0000-0000-0000-000000000000")
.keyName("DevKeyWestUS2")
.keyVaultUri("https://devkvwestus2.vault.azure.net/")
.keyVersion("9f85549d7bf14ff4bf178c10d3bdca95")
.build())
.state("Enabled")
.build())
.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
constructor(accountName: Output<String>? = null, encryptionScopeName: Output<String>? = null, properties: Output<EncryptionScopePropertiesArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

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.

Functions

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