1. Packages
  2. Azure Native
  3. API Docs
  4. machinelearningservices
  5. ConnectionRaiPolicy
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.machinelearningservices.ConnectionRaiPolicy

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

Azure OpenAI Content Filters resource.

Uses Azure REST API version 2025-01-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-04-01-preview.

Other available API versions: 2024-04-01-preview, 2024-07-01-preview, 2024-10-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native machinelearningservices [ApiVersion]. See the version guide for details.

Example Usage

Create Rai policy

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var connectionRaiPolicy = new AzureNative.MachineLearningServices.ConnectionRaiPolicy("connectionRaiPolicy", new()
    {
        ConnectionName = "testConnection",
        Properties = new AzureNative.MachineLearningServices.Inputs.RaiPolicyPropertiesArgs
        {
            BasePolicyName = "112",
            CompletionBlocklists = new[]
            {
                new AzureNative.MachineLearningServices.Inputs.RaiBlocklistConfigArgs
                {
                    Blocking = false,
                    BlocklistName = "blocklistName",
                },
            },
            ContentFilters = new[]
            {
                new AzureNative.MachineLearningServices.Inputs.RaiPolicyContentFilterArgs
                {
                    AllowedContentLevel = AzureNative.MachineLearningServices.AllowedContentLevel.Low,
                    Blocking = false,
                    Enabled = false,
                    Name = "policyName",
                    Source = AzureNative.MachineLearningServices.RaiPolicyContentSource.Prompt,
                },
            },
            Mode = AzureNative.MachineLearningServices.RaiPolicyMode.Blocking,
            PromptBlocklists = new[]
            {
                new AzureNative.MachineLearningServices.Inputs.RaiBlocklistConfigArgs
                {
                    Blocking = false,
                    BlocklistName = "blocklistName",
                },
            },
            Type = AzureNative.MachineLearningServices.RaiPolicyType.SystemManaged,
        },
        RaiPolicyName = "raiPolicyName",
        ResourceGroupName = "test-rg",
        WorkspaceName = "aml-workspace-name",
    });

});
Copy
package main

import (
	machinelearningservices "github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := machinelearningservices.NewConnectionRaiPolicy(ctx, "connectionRaiPolicy", &machinelearningservices.ConnectionRaiPolicyArgs{
			ConnectionName: pulumi.String("testConnection"),
			Properties: &machinelearningservices.RaiPolicyPropertiesArgs{
				BasePolicyName: pulumi.String("112"),
				CompletionBlocklists: machinelearningservices.RaiBlocklistConfigArray{
					&machinelearningservices.RaiBlocklistConfigArgs{
						Blocking:      pulumi.Bool(false),
						BlocklistName: pulumi.String("blocklistName"),
					},
				},
				ContentFilters: machinelearningservices.RaiPolicyContentFilterArray{
					&machinelearningservices.RaiPolicyContentFilterArgs{
						AllowedContentLevel: pulumi.String(machinelearningservices.AllowedContentLevelLow),
						Blocking:            pulumi.Bool(false),
						Enabled:             pulumi.Bool(false),
						Name:                pulumi.String("policyName"),
						Source:              pulumi.String(machinelearningservices.RaiPolicyContentSourcePrompt),
					},
				},
				Mode: pulumi.String(machinelearningservices.RaiPolicyModeBlocking),
				PromptBlocklists: machinelearningservices.RaiBlocklistConfigArray{
					&machinelearningservices.RaiBlocklistConfigArgs{
						Blocking:      pulumi.Bool(false),
						BlocklistName: pulumi.String("blocklistName"),
					},
				},
				Type: pulumi.String(machinelearningservices.RaiPolicyTypeSystemManaged),
			},
			RaiPolicyName:     pulumi.String("raiPolicyName"),
			ResourceGroupName: pulumi.String("test-rg"),
			WorkspaceName:     pulumi.String("aml-workspace-name"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.machinelearningservices.ConnectionRaiPolicy;
import com.pulumi.azurenative.machinelearningservices.ConnectionRaiPolicyArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.RaiPolicyPropertiesArgs;
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 connectionRaiPolicy = new ConnectionRaiPolicy("connectionRaiPolicy", ConnectionRaiPolicyArgs.builder()
            .connectionName("testConnection")
            .properties(RaiPolicyPropertiesArgs.builder()
                .basePolicyName("112")
                .completionBlocklists(RaiBlocklistConfigArgs.builder()
                    .blocking(false)
                    .blocklistName("blocklistName")
                    .build())
                .contentFilters(RaiPolicyContentFilterArgs.builder()
                    .allowedContentLevel("Low")
                    .blocking(false)
                    .enabled(false)
                    .name("policyName")
                    .source("Prompt")
                    .build())
                .mode("Blocking")
                .promptBlocklists(RaiBlocklistConfigArgs.builder()
                    .blocking(false)
                    .blocklistName("blocklistName")
                    .build())
                .type("SystemManaged")
                .build())
            .raiPolicyName("raiPolicyName")
            .resourceGroupName("test-rg")
            .workspaceName("aml-workspace-name")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const connectionRaiPolicy = new azure_native.machinelearningservices.ConnectionRaiPolicy("connectionRaiPolicy", {
    connectionName: "testConnection",
    properties: {
        basePolicyName: "112",
        completionBlocklists: [{
            blocking: false,
            blocklistName: "blocklistName",
        }],
        contentFilters: [{
            allowedContentLevel: azure_native.machinelearningservices.AllowedContentLevel.Low,
            blocking: false,
            enabled: false,
            name: "policyName",
            source: azure_native.machinelearningservices.RaiPolicyContentSource.Prompt,
        }],
        mode: azure_native.machinelearningservices.RaiPolicyMode.Blocking,
        promptBlocklists: [{
            blocking: false,
            blocklistName: "blocklistName",
        }],
        type: azure_native.machinelearningservices.RaiPolicyType.SystemManaged,
    },
    raiPolicyName: "raiPolicyName",
    resourceGroupName: "test-rg",
    workspaceName: "aml-workspace-name",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

connection_rai_policy = azure_native.machinelearningservices.ConnectionRaiPolicy("connectionRaiPolicy",
    connection_name="testConnection",
    properties={
        "base_policy_name": "112",
        "completion_blocklists": [{
            "blocking": False,
            "blocklist_name": "blocklistName",
        }],
        "content_filters": [{
            "allowed_content_level": azure_native.machinelearningservices.AllowedContentLevel.LOW,
            "blocking": False,
            "enabled": False,
            "name": "policyName",
            "source": azure_native.machinelearningservices.RaiPolicyContentSource.PROMPT,
        }],
        "mode": azure_native.machinelearningservices.RaiPolicyMode.BLOCKING,
        "prompt_blocklists": [{
            "blocking": False,
            "blocklist_name": "blocklistName",
        }],
        "type": azure_native.machinelearningservices.RaiPolicyType.SYSTEM_MANAGED,
    },
    rai_policy_name="raiPolicyName",
    resource_group_name="test-rg",
    workspace_name="aml-workspace-name")
Copy
resources:
  connectionRaiPolicy:
    type: azure-native:machinelearningservices:ConnectionRaiPolicy
    properties:
      connectionName: testConnection
      properties:
        basePolicyName: '112'
        completionBlocklists:
          - blocking: false
            blocklistName: blocklistName
        contentFilters:
          - allowedContentLevel: Low
            blocking: false
            enabled: false
            name: policyName
            source: Prompt
        mode: Blocking
        promptBlocklists:
          - blocking: false
            blocklistName: blocklistName
        type: SystemManaged
      raiPolicyName: raiPolicyName
      resourceGroupName: test-rg
      workspaceName: aml-workspace-name
Copy

Create ConnectionRaiPolicy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ConnectionRaiPolicy(name: string, args: ConnectionRaiPolicyArgs, opts?: CustomResourceOptions);
@overload
def ConnectionRaiPolicy(resource_name: str,
                        args: ConnectionRaiPolicyArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def ConnectionRaiPolicy(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        connection_name: Optional[str] = None,
                        properties: Optional[RaiPolicyPropertiesArgs] = None,
                        resource_group_name: Optional[str] = None,
                        workspace_name: Optional[str] = None,
                        proxy_api_version: Optional[str] = None,
                        rai_policy_name: Optional[str] = None)
func NewConnectionRaiPolicy(ctx *Context, name string, args ConnectionRaiPolicyArgs, opts ...ResourceOption) (*ConnectionRaiPolicy, error)
public ConnectionRaiPolicy(string name, ConnectionRaiPolicyArgs args, CustomResourceOptions? opts = null)
public ConnectionRaiPolicy(String name, ConnectionRaiPolicyArgs args)
public ConnectionRaiPolicy(String name, ConnectionRaiPolicyArgs args, CustomResourceOptions options)
type: azure-native:machinelearningservices:ConnectionRaiPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ConnectionRaiPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ConnectionRaiPolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ConnectionRaiPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ConnectionRaiPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ConnectionRaiPolicyArgs
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 connectionRaiPolicyResource = new AzureNative.MachineLearningServices.ConnectionRaiPolicy("connectionRaiPolicyResource", new()
{
    ConnectionName = "string",
    Properties = new AzureNative.MachineLearningServices.Inputs.RaiPolicyPropertiesArgs
    {
        BasePolicyName = "string",
        CompletionBlocklists = new[]
        {
            new AzureNative.MachineLearningServices.Inputs.RaiBlocklistConfigArgs
            {
                Blocking = false,
                BlocklistName = "string",
            },
        },
        ContentFilters = new[]
        {
            new AzureNative.MachineLearningServices.Inputs.RaiPolicyContentFilterArgs
            {
                AllowedContentLevel = "string",
                Blocking = false,
                Enabled = false,
                Name = "string",
                Source = "string",
            },
        },
        Mode = "string",
        PromptBlocklists = new[]
        {
            new AzureNative.MachineLearningServices.Inputs.RaiBlocklistConfigArgs
            {
                Blocking = false,
                BlocklistName = "string",
            },
        },
        Type = "string",
    },
    ResourceGroupName = "string",
    WorkspaceName = "string",
    ProxyApiVersion = "string",
    RaiPolicyName = "string",
});
Copy
example, err := machinelearningservices.NewConnectionRaiPolicy(ctx, "connectionRaiPolicyResource", &machinelearningservices.ConnectionRaiPolicyArgs{
	ConnectionName: pulumi.String("string"),
	Properties: &machinelearningservices.RaiPolicyPropertiesArgs{
		BasePolicyName: pulumi.String("string"),
		CompletionBlocklists: machinelearningservices.RaiBlocklistConfigArray{
			&machinelearningservices.RaiBlocklistConfigArgs{
				Blocking:      pulumi.Bool(false),
				BlocklistName: pulumi.String("string"),
			},
		},
		ContentFilters: machinelearningservices.RaiPolicyContentFilterArray{
			&machinelearningservices.RaiPolicyContentFilterArgs{
				AllowedContentLevel: pulumi.String("string"),
				Blocking:            pulumi.Bool(false),
				Enabled:             pulumi.Bool(false),
				Name:                pulumi.String("string"),
				Source:              pulumi.String("string"),
			},
		},
		Mode: pulumi.String("string"),
		PromptBlocklists: machinelearningservices.RaiBlocklistConfigArray{
			&machinelearningservices.RaiBlocklistConfigArgs{
				Blocking:      pulumi.Bool(false),
				BlocklistName: pulumi.String("string"),
			},
		},
		Type: pulumi.String("string"),
	},
	ResourceGroupName: pulumi.String("string"),
	WorkspaceName:     pulumi.String("string"),
	ProxyApiVersion:   pulumi.String("string"),
	RaiPolicyName:     pulumi.String("string"),
})
Copy
var connectionRaiPolicyResource = new ConnectionRaiPolicy("connectionRaiPolicyResource", ConnectionRaiPolicyArgs.builder()
    .connectionName("string")
    .properties(RaiPolicyPropertiesArgs.builder()
        .basePolicyName("string")
        .completionBlocklists(RaiBlocklistConfigArgs.builder()
            .blocking(false)
            .blocklistName("string")
            .build())
        .contentFilters(RaiPolicyContentFilterArgs.builder()
            .allowedContentLevel("string")
            .blocking(false)
            .enabled(false)
            .name("string")
            .source("string")
            .build())
        .mode("string")
        .promptBlocklists(RaiBlocklistConfigArgs.builder()
            .blocking(false)
            .blocklistName("string")
            .build())
        .type("string")
        .build())
    .resourceGroupName("string")
    .workspaceName("string")
    .proxyApiVersion("string")
    .raiPolicyName("string")
    .build());
Copy
connection_rai_policy_resource = azure_native.machinelearningservices.ConnectionRaiPolicy("connectionRaiPolicyResource",
    connection_name="string",
    properties={
        "base_policy_name": "string",
        "completion_blocklists": [{
            "blocking": False,
            "blocklist_name": "string",
        }],
        "content_filters": [{
            "allowed_content_level": "string",
            "blocking": False,
            "enabled": False,
            "name": "string",
            "source": "string",
        }],
        "mode": "string",
        "prompt_blocklists": [{
            "blocking": False,
            "blocklist_name": "string",
        }],
        "type": "string",
    },
    resource_group_name="string",
    workspace_name="string",
    proxy_api_version="string",
    rai_policy_name="string")
Copy
const connectionRaiPolicyResource = new azure_native.machinelearningservices.ConnectionRaiPolicy("connectionRaiPolicyResource", {
    connectionName: "string",
    properties: {
        basePolicyName: "string",
        completionBlocklists: [{
            blocking: false,
            blocklistName: "string",
        }],
        contentFilters: [{
            allowedContentLevel: "string",
            blocking: false,
            enabled: false,
            name: "string",
            source: "string",
        }],
        mode: "string",
        promptBlocklists: [{
            blocking: false,
            blocklistName: "string",
        }],
        type: "string",
    },
    resourceGroupName: "string",
    workspaceName: "string",
    proxyApiVersion: "string",
    raiPolicyName: "string",
});
Copy
type: azure-native:machinelearningservices:ConnectionRaiPolicy
properties:
    connectionName: string
    properties:
        basePolicyName: string
        completionBlocklists:
            - blocking: false
              blocklistName: string
        contentFilters:
            - allowedContentLevel: string
              blocking: false
              enabled: false
              name: string
              source: string
        mode: string
        promptBlocklists:
            - blocking: false
              blocklistName: string
        type: string
    proxyApiVersion: string
    raiPolicyName: string
    resourceGroupName: string
    workspaceName: string
Copy

ConnectionRaiPolicy 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 ConnectionRaiPolicy resource accepts the following input properties:

ConnectionName
This property is required.
Changes to this property will trigger replacement.
string
Friendly name of the workspace connection
Properties This property is required. Pulumi.AzureNative.MachineLearningServices.Inputs.RaiPolicyProperties
Azure OpenAI Content Filters properties.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
Azure Machine Learning Workspace Name
ProxyApiVersion string
Api version used by proxy call
RaiPolicyName Changes to this property will trigger replacement. string
Name of the Rai Policy.
ConnectionName
This property is required.
Changes to this property will trigger replacement.
string
Friendly name of the workspace connection
Properties This property is required. RaiPolicyPropertiesArgs
Azure OpenAI Content Filters properties.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
Azure Machine Learning Workspace Name
ProxyApiVersion string
Api version used by proxy call
RaiPolicyName Changes to this property will trigger replacement. string
Name of the Rai Policy.
connectionName
This property is required.
Changes to this property will trigger replacement.
String
Friendly name of the workspace connection
properties This property is required. RaiPolicyProperties
Azure OpenAI Content Filters properties.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
Azure Machine Learning Workspace Name
proxyApiVersion String
Api version used by proxy call
raiPolicyName Changes to this property will trigger replacement. String
Name of the Rai Policy.
connectionName
This property is required.
Changes to this property will trigger replacement.
string
Friendly name of the workspace connection
properties This property is required. RaiPolicyProperties
Azure OpenAI Content Filters properties.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
workspaceName
This property is required.
Changes to this property will trigger replacement.
string
Azure Machine Learning Workspace Name
proxyApiVersion string
Api version used by proxy call
raiPolicyName Changes to this property will trigger replacement. string
Name of the Rai Policy.
connection_name
This property is required.
Changes to this property will trigger replacement.
str
Friendly name of the workspace connection
properties This property is required. RaiPolicyPropertiesArgs
Azure OpenAI Content Filters properties.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
workspace_name
This property is required.
Changes to this property will trigger replacement.
str
Azure Machine Learning Workspace Name
proxy_api_version str
Api version used by proxy call
rai_policy_name Changes to this property will trigger replacement. str
Name of the Rai Policy.
connectionName
This property is required.
Changes to this property will trigger replacement.
String
Friendly name of the workspace connection
properties This property is required. Property Map
Azure OpenAI Content Filters properties.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
Azure Machine Learning Workspace Name
proxyApiVersion String
Api version used by proxy call
raiPolicyName Changes to this property will trigger replacement. String
Name of the Rai Policy.

Outputs

All input properties are implicitly available as output properties. Additionally, the ConnectionRaiPolicy resource produces the following output properties:

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
SystemData Pulumi.AzureNative.MachineLearningServices.Outputs.SystemDataResponse
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"
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
SystemData SystemDataResponse
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"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
systemData SystemDataResponse
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"
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
systemData SystemDataResponse
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_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
system_data SystemDataResponse
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"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
systemData 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

AllowedContentLevel
, AllowedContentLevelArgs

Low
Low
Medium
Medium
High
High
AllowedContentLevelLow
Low
AllowedContentLevelMedium
Medium
AllowedContentLevelHigh
High
Low
Low
Medium
Medium
High
High
Low
Low
Medium
Medium
High
High
LOW
Low
MEDIUM
Medium
HIGH
High
"Low"
Low
"Medium"
Medium
"High"
High

RaiBlocklistConfig
, RaiBlocklistConfigArgs

Blocking bool
If blocking would occur.
BlocklistName string
Name of ContentFilter.
Blocking bool
If blocking would occur.
BlocklistName string
Name of ContentFilter.
blocking Boolean
If blocking would occur.
blocklistName String
Name of ContentFilter.
blocking boolean
If blocking would occur.
blocklistName string
Name of ContentFilter.
blocking bool
If blocking would occur.
blocklist_name str
Name of ContentFilter.
blocking Boolean
If blocking would occur.
blocklistName String
Name of ContentFilter.

RaiBlocklistConfigResponse
, RaiBlocklistConfigResponseArgs

Blocking bool
If blocking would occur.
BlocklistName string
Name of ContentFilter.
Blocking bool
If blocking would occur.
BlocklistName string
Name of ContentFilter.
blocking Boolean
If blocking would occur.
blocklistName String
Name of ContentFilter.
blocking boolean
If blocking would occur.
blocklistName string
Name of ContentFilter.
blocking bool
If blocking would occur.
blocklist_name str
Name of ContentFilter.
blocking Boolean
If blocking would occur.
blocklistName String
Name of ContentFilter.

RaiPolicyContentFilter
, RaiPolicyContentFilterArgs

AllowedContentLevel string | Pulumi.AzureNative.MachineLearningServices.AllowedContentLevel
Level at which content is filtered.
Blocking bool
If blocking would occur.
Enabled bool
If the ContentFilter is enabled.
Name string
Name of ContentFilter.
Source string | Pulumi.AzureNative.MachineLearningServices.RaiPolicyContentSource
Content source to apply the Content Filters.
AllowedContentLevel string | AllowedContentLevel
Level at which content is filtered.
Blocking bool
If blocking would occur.
Enabled bool
If the ContentFilter is enabled.
Name string
Name of ContentFilter.
Source string | RaiPolicyContentSource
Content source to apply the Content Filters.
allowedContentLevel String | AllowedContentLevel
Level at which content is filtered.
blocking Boolean
If blocking would occur.
enabled Boolean
If the ContentFilter is enabled.
name String
Name of ContentFilter.
source String | RaiPolicyContentSource
Content source to apply the Content Filters.
allowedContentLevel string | AllowedContentLevel
Level at which content is filtered.
blocking boolean
If blocking would occur.
enabled boolean
If the ContentFilter is enabled.
name string
Name of ContentFilter.
source string | RaiPolicyContentSource
Content source to apply the Content Filters.
allowed_content_level str | AllowedContentLevel
Level at which content is filtered.
blocking bool
If blocking would occur.
enabled bool
If the ContentFilter is enabled.
name str
Name of ContentFilter.
source str | RaiPolicyContentSource
Content source to apply the Content Filters.
allowedContentLevel String | "Low" | "Medium" | "High"
Level at which content is filtered.
blocking Boolean
If blocking would occur.
enabled Boolean
If the ContentFilter is enabled.
name String
Name of ContentFilter.
source String | "Prompt" | "Completion"
Content source to apply the Content Filters.

RaiPolicyContentFilterResponse
, RaiPolicyContentFilterResponseArgs

AllowedContentLevel string
Level at which content is filtered.
Blocking bool
If blocking would occur.
Enabled bool
If the ContentFilter is enabled.
Name string
Name of ContentFilter.
Source string
Content source to apply the Content Filters.
AllowedContentLevel string
Level at which content is filtered.
Blocking bool
If blocking would occur.
Enabled bool
If the ContentFilter is enabled.
Name string
Name of ContentFilter.
Source string
Content source to apply the Content Filters.
allowedContentLevel String
Level at which content is filtered.
blocking Boolean
If blocking would occur.
enabled Boolean
If the ContentFilter is enabled.
name String
Name of ContentFilter.
source String
Content source to apply the Content Filters.
allowedContentLevel string
Level at which content is filtered.
blocking boolean
If blocking would occur.
enabled boolean
If the ContentFilter is enabled.
name string
Name of ContentFilter.
source string
Content source to apply the Content Filters.
allowed_content_level str
Level at which content is filtered.
blocking bool
If blocking would occur.
enabled bool
If the ContentFilter is enabled.
name str
Name of ContentFilter.
source str
Content source to apply the Content Filters.
allowedContentLevel String
Level at which content is filtered.
blocking Boolean
If blocking would occur.
enabled Boolean
If the ContentFilter is enabled.
name String
Name of ContentFilter.
source String
Content source to apply the Content Filters.

RaiPolicyContentSource
, RaiPolicyContentSourceArgs

Prompt
Prompt
Completion
Completion
RaiPolicyContentSourcePrompt
Prompt
RaiPolicyContentSourceCompletion
Completion
Prompt
Prompt
Completion
Completion
Prompt
Prompt
Completion
Completion
PROMPT
Prompt
COMPLETION
Completion
"Prompt"
Prompt
"Completion"
Completion

RaiPolicyMode
, RaiPolicyModeArgs

Default
Default
Deferred
Deferred
Blocking
Blocking
RaiPolicyModeDefault
Default
RaiPolicyModeDeferred
Deferred
RaiPolicyModeBlocking
Blocking
Default
Default
Deferred
Deferred
Blocking
Blocking
Default
Default
Deferred
Deferred
Blocking
Blocking
DEFAULT
Default
DEFERRED
Deferred
BLOCKING
Blocking
"Default"
Default
"Deferred"
Deferred
"Blocking"
Blocking

RaiPolicyProperties
, RaiPolicyPropertiesArgs

BasePolicyName string
Name of the base Content Filters.
CompletionBlocklists []RaiBlocklistConfig
ContentFilters []RaiPolicyContentFilter
Mode string | RaiPolicyMode
Content Filters mode.
PromptBlocklists []RaiBlocklistConfig
Type string | RaiPolicyType
Content Filters policy type.
basePolicyName string
Name of the base Content Filters.
completionBlocklists RaiBlocklistConfig[]
contentFilters RaiPolicyContentFilter[]
mode string | RaiPolicyMode
Content Filters mode.
promptBlocklists RaiBlocklistConfig[]
type string | RaiPolicyType
Content Filters policy type.

RaiPolicyPropertiesResponse
, RaiPolicyPropertiesResponseArgs

basePolicyName String
Name of the base Content Filters.
completionBlocklists List<Property Map>
contentFilters List<Property Map>
mode String
Content Filters mode.
promptBlocklists List<Property Map>
type String
Content Filters policy type.

RaiPolicyType
, RaiPolicyTypeArgs

UserManaged
UserManaged
SystemManaged
SystemManaged
RaiPolicyTypeUserManaged
UserManaged
RaiPolicyTypeSystemManaged
SystemManaged
UserManaged
UserManaged
SystemManaged
SystemManaged
UserManaged
UserManaged
SystemManaged
SystemManaged
USER_MANAGED
UserManaged
SYSTEM_MANAGED
SystemManaged
"UserManaged"
UserManaged
"SystemManaged"
SystemManaged

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
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_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
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:machinelearningservices:ConnectionRaiPolicy raiPolicyName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}/raiPolicies/{raiPolicyName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi