Cognitive Services Rai External Safety provider Schema.
Uses Azure REST API version 2025-10-01-preview.
Example Usage
PutRaiExternalSafetyProvider
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var raiExternalSafetyProvider = new AzureNative.CognitiveServices.RaiExternalSafetyProvider("raiExternalSafetyProvider", new()
{
Properties = new AzureNative.CognitiveServices.Inputs.RaiExternalSafetyProviderSchemaPropertiesArgs
{
KeyVaultUri = "https://example.vault.azure.net",
ManagedIdentity = "00000000-0000-0000-0000-000000000000",
Mode = "sync",
ProviderId = "00000000-0000-0000-0000-000000000000",
ProviderName = "safetyProviderName",
SecretName = "mySecretName",
Url = "https://example.webhook.endpoint",
},
SafetyProviderName = "safetyProviderName",
});
});
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.NewRaiExternalSafetyProvider(ctx, "raiExternalSafetyProvider", &cognitiveservices.RaiExternalSafetyProviderArgs{
Properties: &cognitiveservices.RaiExternalSafetyProviderSchemaPropertiesArgs{
KeyVaultUri: pulumi.String("https://example.vault.azure.net"),
ManagedIdentity: pulumi.String("00000000-0000-0000-0000-000000000000"),
Mode: pulumi.String("sync"),
ProviderId: pulumi.String("00000000-0000-0000-0000-000000000000"),
ProviderName: pulumi.String("safetyProviderName"),
SecretName: pulumi.String("mySecretName"),
Url: pulumi.String("https://example.webhook.endpoint"),
},
SafetyProviderName: pulumi.String("safetyProviderName"),
})
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.RaiExternalSafetyProvider;
import com.pulumi.azurenative.cognitiveservices.RaiExternalSafetyProviderArgs;
import com.pulumi.azurenative.cognitiveservices.inputs.RaiExternalSafetyProviderSchemaPropertiesArgs;
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 raiExternalSafetyProvider = new RaiExternalSafetyProvider("raiExternalSafetyProvider", RaiExternalSafetyProviderArgs.builder()
.properties(RaiExternalSafetyProviderSchemaPropertiesArgs.builder()
.keyVaultUri("https://example.vault.azure.net")
.managedIdentity("00000000-0000-0000-0000-000000000000")
.mode("sync")
.providerId("00000000-0000-0000-0000-000000000000")
.providerName("safetyProviderName")
.secretName("mySecretName")
.url("https://example.webhook.endpoint")
.build())
.safetyProviderName("safetyProviderName")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const raiExternalSafetyProvider = new azure_native.cognitiveservices.RaiExternalSafetyProvider("raiExternalSafetyProvider", {
properties: {
keyVaultUri: "https://example.vault.azure.net",
managedIdentity: "00000000-0000-0000-0000-000000000000",
mode: "sync",
providerId: "00000000-0000-0000-0000-000000000000",
providerName: "safetyProviderName",
secretName: "mySecretName",
url: "https://example.webhook.endpoint",
},
safetyProviderName: "safetyProviderName",
});
import pulumi
import pulumi_azure_native as azure_native
rai_external_safety_provider = azure_native.cognitiveservices.RaiExternalSafetyProvider("raiExternalSafetyProvider",
properties={
"key_vault_uri": "https://example.vault.azure.net",
"managed_identity": "00000000-0000-0000-0000-000000000000",
"mode": "sync",
"provider_id": "00000000-0000-0000-0000-000000000000",
"provider_name": "safetyProviderName",
"secret_name": "mySecretName",
"url": "https://example.webhook.endpoint",
},
safety_provider_name="safetyProviderName")
resources:
raiExternalSafetyProvider:
type: azure-native:cognitiveservices:RaiExternalSafetyProvider
properties:
properties:
keyVaultUri: https://example.vault.azure.net
managedIdentity: 00000000-0000-0000-0000-000000000000
mode: sync
providerId: 00000000-0000-0000-0000-000000000000
providerName: safetyProviderName
secretName: mySecretName
url: https://example.webhook.endpoint
safetyProviderName: safetyProviderName
Create RaiExternalSafetyProvider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RaiExternalSafetyProvider(name: string, args?: RaiExternalSafetyProviderArgs, opts?: CustomResourceOptions);@overload
def RaiExternalSafetyProvider(resource_name: str,
args: Optional[RaiExternalSafetyProviderArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RaiExternalSafetyProvider(resource_name: str,
opts: Optional[ResourceOptions] = None,
properties: Optional[RaiExternalSafetyProviderSchemaPropertiesArgs] = None,
safety_provider_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)func NewRaiExternalSafetyProvider(ctx *Context, name string, args *RaiExternalSafetyProviderArgs, opts ...ResourceOption) (*RaiExternalSafetyProvider, error)public RaiExternalSafetyProvider(string name, RaiExternalSafetyProviderArgs? args = null, CustomResourceOptions? opts = null)
public RaiExternalSafetyProvider(String name, RaiExternalSafetyProviderArgs args)
public RaiExternalSafetyProvider(String name, RaiExternalSafetyProviderArgs args, CustomResourceOptions options)
type: azure-native:cognitiveservices:RaiExternalSafetyProvider
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RaiExternalSafetyProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RaiExternalSafetyProviderArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RaiExternalSafetyProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RaiExternalSafetyProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RaiExternalSafetyProviderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var raiExternalSafetyProviderResource = new AzureNative.CognitiveServices.RaiExternalSafetyProvider("raiExternalSafetyProviderResource", new()
{
Properties = new AzureNative.CognitiveServices.Inputs.RaiExternalSafetyProviderSchemaPropertiesArgs
{
KeyVaultUri = "string",
ManagedIdentity = "string",
Mode = "string",
ProviderId = "string",
ProviderName = "string",
SecretName = "string",
Url = "string",
},
SafetyProviderName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := cognitiveservices.NewRaiExternalSafetyProvider(ctx, "raiExternalSafetyProviderResource", &cognitiveservices.RaiExternalSafetyProviderArgs{
Properties: &cognitiveservices.RaiExternalSafetyProviderSchemaPropertiesArgs{
KeyVaultUri: pulumi.String("string"),
ManagedIdentity: pulumi.String("string"),
Mode: pulumi.String("string"),
ProviderId: pulumi.String("string"),
ProviderName: pulumi.String("string"),
SecretName: pulumi.String("string"),
Url: pulumi.String("string"),
},
SafetyProviderName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var raiExternalSafetyProviderResource = new RaiExternalSafetyProvider("raiExternalSafetyProviderResource", RaiExternalSafetyProviderArgs.builder()
.properties(RaiExternalSafetyProviderSchemaPropertiesArgs.builder()
.keyVaultUri("string")
.managedIdentity("string")
.mode("string")
.providerId("string")
.providerName("string")
.secretName("string")
.url("string")
.build())
.safetyProviderName("string")
.tags(Map.of("string", "string"))
.build());
rai_external_safety_provider_resource = azure_native.cognitiveservices.RaiExternalSafetyProvider("raiExternalSafetyProviderResource",
properties={
"key_vault_uri": "string",
"managed_identity": "string",
"mode": "string",
"provider_id": "string",
"provider_name": "string",
"secret_name": "string",
"url": "string",
},
safety_provider_name="string",
tags={
"string": "string",
})
const raiExternalSafetyProviderResource = new azure_native.cognitiveservices.RaiExternalSafetyProvider("raiExternalSafetyProviderResource", {
properties: {
keyVaultUri: "string",
managedIdentity: "string",
mode: "string",
providerId: "string",
providerName: "string",
secretName: "string",
url: "string",
},
safetyProviderName: "string",
tags: {
string: "string",
},
});
type: azure-native:cognitiveservices:RaiExternalSafetyProvider
properties:
properties:
keyVaultUri: string
managedIdentity: string
mode: string
providerId: string
providerName: string
secretName: string
url: string
safetyProviderName: string
tags:
string: string
RaiExternalSafetyProvider Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RaiExternalSafetyProvider resource accepts the following input properties:
- Properties
Pulumi.
Azure Native. Cognitive Services. Inputs. Rai External Safety Provider Schema Properties - Properties of Cognitive Services Rai External Safety provider.
- Safety
Provider stringName - The name of the Rai External Safety Provider associated with the Cognitive Services Account
- Dictionary<string, string>
- Resource tags.
- Properties
Rai
External Safety Provider Schema Properties Args - Properties of Cognitive Services Rai External Safety provider.
- Safety
Provider stringName - The name of the Rai External Safety Provider associated with the Cognitive Services Account
- map[string]string
- Resource tags.
- properties
Rai
External Safety Provider Schema Properties - Properties of Cognitive Services Rai External Safety provider.
- safety
Provider StringName - The name of the Rai External Safety Provider associated with the Cognitive Services Account
- Map<String,String>
- Resource tags.
- properties
Rai
External Safety Provider Schema Properties - Properties of Cognitive Services Rai External Safety provider.
- safety
Provider stringName - The name of the Rai External Safety Provider associated with the Cognitive Services Account
- {[key: string]: string}
- Resource tags.
- properties
Rai
External Safety Provider Schema Properties Args - Properties of Cognitive Services Rai External Safety provider.
- safety_
provider_ strname - The name of the Rai External Safety Provider associated with the Cognitive Services Account
- Mapping[str, str]
- Resource tags.
- properties Property Map
- Properties of Cognitive Services Rai External Safety provider.
- safety
Provider StringName - The name of the Rai External Safety Provider associated with the Cognitive Services Account
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the RaiExternalSafetyProvider resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Etag string
- Resource Etag.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Cognitive Services. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Etag string
- Resource Etag.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- etag String
- Resource Etag.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- etag string
- Resource Etag.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- etag str
- Resource Etag.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- etag String
- Resource Etag.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
RaiExternalSafetyProviderSchemaProperties, RaiExternalSafetyProviderSchemaPropertiesArgs
RAI External SafetyProvider schema properties.- Key
Vault stringUri - The Key Vault URI that contains the api key for safety provider urls.
- Managed
Identity string - The managed identity to access the Key Vault.
- Mode string
- Safety provider mode sync/async.
- Provider
Id string - The unique identifier of the safety provider.
- Provider
Name string - Name of the safety provider.
- Secret
Name string - The name of the secret in Key Vault that contains the api key to access the webhook.
- Url string
- Webhook URL for the safety provider.
- Key
Vault stringUri - The Key Vault URI that contains the api key for safety provider urls.
- Managed
Identity string - The managed identity to access the Key Vault.
- Mode string
- Safety provider mode sync/async.
- Provider
Id string - The unique identifier of the safety provider.
- Provider
Name string - Name of the safety provider.
- Secret
Name string - The name of the secret in Key Vault that contains the api key to access the webhook.
- Url string
- Webhook URL for the safety provider.
- key
Vault StringUri - The Key Vault URI that contains the api key for safety provider urls.
- managed
Identity String - The managed identity to access the Key Vault.
- mode String
- Safety provider mode sync/async.
- provider
Id String - The unique identifier of the safety provider.
- provider
Name String - Name of the safety provider.
- secret
Name String - The name of the secret in Key Vault that contains the api key to access the webhook.
- url String
- Webhook URL for the safety provider.
- key
Vault stringUri - The Key Vault URI that contains the api key for safety provider urls.
- managed
Identity string - The managed identity to access the Key Vault.
- mode string
- Safety provider mode sync/async.
- provider
Id string - The unique identifier of the safety provider.
- provider
Name string - Name of the safety provider.
- secret
Name string - The name of the secret in Key Vault that contains the api key to access the webhook.
- url string
- Webhook URL for the safety provider.
- key_
vault_ struri - The Key Vault URI that contains the api key for safety provider urls.
- managed_
identity str - The managed identity to access the Key Vault.
- mode str
- Safety provider mode sync/async.
- provider_
id str - The unique identifier of the safety provider.
- provider_
name str - Name of the safety provider.
- secret_
name str - The name of the secret in Key Vault that contains the api key to access the webhook.
- url str
- Webhook URL for the safety provider.
- key
Vault StringUri - The Key Vault URI that contains the api key for safety provider urls.
- managed
Identity String - The managed identity to access the Key Vault.
- mode String
- Safety provider mode sync/async.
- provider
Id String - The unique identifier of the safety provider.
- provider
Name String - Name of the safety provider.
- secret
Name String - The name of the secret in Key Vault that contains the api key to access the webhook.
- url String
- Webhook URL for the safety provider.
RaiExternalSafetyProviderSchemaPropertiesResponse, RaiExternalSafetyProviderSchemaPropertiesResponseArgs
RAI External SafetyProvider schema properties.- Created
At string - Creation time of the safety provider.
- Last
Modified stringAt - Last modified time of the safety provider.
- Key
Vault stringUri - The Key Vault URI that contains the api key for safety provider urls.
- Managed
Identity string - The managed identity to access the Key Vault.
- Mode string
- Safety provider mode sync/async.
- Provider
Id string - The unique identifier of the safety provider.
- Provider
Name string - Name of the safety provider.
- Secret
Name string - The name of the secret in Key Vault that contains the api key to access the webhook.
- Url string
- Webhook URL for the safety provider.
- Created
At string - Creation time of the safety provider.
- Last
Modified stringAt - Last modified time of the safety provider.
- Key
Vault stringUri - The Key Vault URI that contains the api key for safety provider urls.
- Managed
Identity string - The managed identity to access the Key Vault.
- Mode string
- Safety provider mode sync/async.
- Provider
Id string - The unique identifier of the safety provider.
- Provider
Name string - Name of the safety provider.
- Secret
Name string - The name of the secret in Key Vault that contains the api key to access the webhook.
- Url string
- Webhook URL for the safety provider.
- created
At String - Creation time of the safety provider.
- last
Modified StringAt - Last modified time of the safety provider.
- key
Vault StringUri - The Key Vault URI that contains the api key for safety provider urls.
- managed
Identity String - The managed identity to access the Key Vault.
- mode String
- Safety provider mode sync/async.
- provider
Id String - The unique identifier of the safety provider.
- provider
Name String - Name of the safety provider.
- secret
Name String - The name of the secret in Key Vault that contains the api key to access the webhook.
- url String
- Webhook URL for the safety provider.
- created
At string - Creation time of the safety provider.
- last
Modified stringAt - Last modified time of the safety provider.
- key
Vault stringUri - The Key Vault URI that contains the api key for safety provider urls.
- managed
Identity string - The managed identity to access the Key Vault.
- mode string
- Safety provider mode sync/async.
- provider
Id string - The unique identifier of the safety provider.
- provider
Name string - Name of the safety provider.
- secret
Name string - The name of the secret in Key Vault that contains the api key to access the webhook.
- url string
- Webhook URL for the safety provider.
- created_
at str - Creation time of the safety provider.
- last_
modified_ strat - Last modified time of the safety provider.
- key_
vault_ struri - The Key Vault URI that contains the api key for safety provider urls.
- managed_
identity str - The managed identity to access the Key Vault.
- mode str
- Safety provider mode sync/async.
- provider_
id str - The unique identifier of the safety provider.
- provider_
name str - Name of the safety provider.
- secret_
name str - The name of the secret in Key Vault that contains the api key to access the webhook.
- url str
- Webhook URL for the safety provider.
- created
At String - Creation time of the safety provider.
- last
Modified StringAt - Last modified time of the safety provider.
- key
Vault StringUri - The Key Vault URI that contains the api key for safety provider urls.
- managed
Identity String - The managed identity to access the Key Vault.
- mode String
- Safety provider mode sync/async.
- provider
Id String - The unique identifier of the safety provider.
- provider
Name String - Name of the safety provider.
- secret
Name String - The name of the secret in Key Vault that contains the api key to access the webhook.
- url String
- Webhook URL for the safety provider.
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cognitiveservices:RaiExternalSafetyProvider safetyProviderName /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/raiExternalSafetyProviders/{safetyProviderName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
