azure-native.machinelearningservices.ConnectionRaiPolicy
Explore with Pulumi AI
Azure OpenAI Content Filters resource. Azure REST API version: 2024-04-01-preview.
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",
});
});
package main
import (
machinelearningservices "github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices/v2"
"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
})
}
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());
}
}
import pulumi
import pulumi_azure_native as azure_native
connection_rai_policy = azure_native.machinelearningservices.ConnectionRaiPolicy("connectionRaiPolicy",
connection_name="testConnection",
properties=azure_native.machinelearningservices.RaiPolicyPropertiesArgs(
base_policy_name="112",
completion_blocklists=[azure_native.machinelearningservices.RaiBlocklistConfigArgs(
blocking=False,
blocklist_name="blocklistName",
)],
content_filters=[azure_native.machinelearningservices.RaiPolicyContentFilterArgs(
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=[azure_native.machinelearningservices.RaiBlocklistConfigArgs(
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")
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",
});
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
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,
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 string
- The unique name of the resource.
- args ConnectionRaiPolicyArgs
- 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 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 string
- The unique name of the resource.
- args ConnectionRaiPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectionRaiPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
RaiPolicyName = "string",
});
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"),
RaiPolicyName: pulumi.String("string"),
})
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")
.raiPolicyName("string")
.build());
connection_rai_policy_resource = azure_native.machinelearningservices.ConnectionRaiPolicy("connectionRaiPolicyResource",
connection_name="string",
properties=azure_native.machinelearningservices.RaiPolicyPropertiesArgs(
base_policy_name="string",
completion_blocklists=[azure_native.machinelearningservices.RaiBlocklistConfigArgs(
blocking=False,
blocklist_name="string",
)],
content_filters=[azure_native.machinelearningservices.RaiPolicyContentFilterArgs(
allowed_content_level="string",
blocking=False,
enabled=False,
name="string",
source="string",
)],
mode="string",
prompt_blocklists=[azure_native.machinelearningservices.RaiBlocklistConfigArgs(
blocking=False,
blocklist_name="string",
)],
type="string",
),
resource_group_name="string",
workspace_name="string",
rai_policy_name="string")
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",
raiPolicyName: "string",
});
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
raiPolicyName: string
resourceGroupName: string
workspaceName: string
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
The ConnectionRaiPolicy resource accepts the following input properties:
- Connection
Name string - Friendly name of the workspace connection
- Properties
Pulumi.
Azure Native. Machine Learning Services. Inputs. Rai Policy Properties - Azure OpenAI Content Filters properties.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Workspace
Name string - Azure Machine Learning Workspace Name
- Rai
Policy stringName - Name of the Rai Policy.
- Connection
Name string - Friendly name of the workspace connection
- Properties
Rai
Policy Properties Args - Azure OpenAI Content Filters properties.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Workspace
Name string - Azure Machine Learning Workspace Name
- Rai
Policy stringName - Name of the Rai Policy.
- connection
Name String - Friendly name of the workspace connection
- properties
Rai
Policy Properties - Azure OpenAI Content Filters properties.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- workspace
Name String - Azure Machine Learning Workspace Name
- rai
Policy StringName - Name of the Rai Policy.
- connection
Name string - Friendly name of the workspace connection
- properties
Rai
Policy Properties - Azure OpenAI Content Filters properties.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- workspace
Name string - Azure Machine Learning Workspace Name
- rai
Policy stringName - Name of the Rai Policy.
- connection_
name str - Friendly name of the workspace connection
- properties
Rai
Policy Properties Args - Azure OpenAI Content Filters properties.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- workspace_
name str - Azure Machine Learning Workspace Name
- rai_
policy_ strname - Name of the Rai Policy.
- connection
Name String - Friendly name of the workspace connection
- properties Property Map
- Azure OpenAI Content Filters properties.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- workspace
Name String - Azure Machine Learning Workspace Name
- rai
Policy StringName - Name of the Rai Policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConnectionRaiPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Machine Learning 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"
- 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"
- 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"
- 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"
- 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"
- 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
AllowedContentLevel, AllowedContentLevelArgs
- Low
- Low
- Medium
- Medium
- High
- High
- Allowed
Content Level Low - Low
- Allowed
Content Level Medium - Medium
- Allowed
Content Level High - 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.
- Blocklist
Name string - Name of ContentFilter.
- Blocking bool
- If blocking would occur.
- Blocklist
Name string - Name of ContentFilter.
- blocking Boolean
- If blocking would occur.
- blocklist
Name String - Name of ContentFilter.
- blocking boolean
- If blocking would occur.
- blocklist
Name string - Name of ContentFilter.
- blocking bool
- If blocking would occur.
- blocklist_
name str - Name of ContentFilter.
- blocking Boolean
- If blocking would occur.
- blocklist
Name String - Name of ContentFilter.
RaiBlocklistConfigResponse, RaiBlocklistConfigResponseArgs
- Blocking bool
- If blocking would occur.
- Blocklist
Name string - Name of ContentFilter.
- Blocking bool
- If blocking would occur.
- Blocklist
Name string - Name of ContentFilter.
- blocking Boolean
- If blocking would occur.
- blocklist
Name String - Name of ContentFilter.
- blocking boolean
- If blocking would occur.
- blocklist
Name string - Name of ContentFilter.
- blocking bool
- If blocking would occur.
- blocklist_
name str - Name of ContentFilter.
- blocking Boolean
- If blocking would occur.
- blocklist
Name String - Name of ContentFilter.
RaiPolicyContentFilter, RaiPolicyContentFilterArgs
- Allowed
Content string | Pulumi.Level Azure Native. Machine Learning Services. Allowed Content Level - 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.
Azure Native. Machine Learning Services. Rai Policy Content Source - Content source to apply the Content Filters.
- Allowed
Content string | AllowedLevel Content Level - 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 | Rai
Policy Content Source - Content source to apply the Content Filters.
- allowed
Content String | AllowedLevel Content Level - 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 | Rai
Policy Content Source - Content source to apply the Content Filters.
- allowed
Content string | AllowedLevel Content Level - 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 | Rai
Policy Content Source - Content source to apply the Content Filters.
- allowed_
content_ str | Allowedlevel Content Level - 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 | Rai
Policy Content Source - Content source to apply the Content Filters.
- allowed
Content String | "Low" | "Medium" | "High"Level - 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
- Allowed
Content stringLevel - 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.
- Allowed
Content stringLevel - 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.
- allowed
Content StringLevel - 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 stringLevel - 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_ strlevel - 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.
- allowed
Content StringLevel - 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
- Rai
Policy Content Source Prompt - Prompt
- Rai
Policy Content Source Completion - 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
- Rai
Policy Mode Default - Default
- Rai
Policy Mode Deferred - Deferred
- Rai
Policy Mode Blocking - 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
- Base
Policy stringName - Name of the base Content Filters.
- Completion
Blocklists List<Pulumi.Azure Native. Machine Learning Services. Inputs. Rai Blocklist Config> - Content
Filters List<Pulumi.Azure Native. Machine Learning Services. Inputs. Rai Policy Content Filter> - Mode
string | Pulumi.
Azure Native. Machine Learning Services. Rai Policy Mode - Content Filters mode.
- Prompt
Blocklists List<Pulumi.Azure Native. Machine Learning Services. Inputs. Rai Blocklist Config> - Type
string | Pulumi.
Azure Native. Machine Learning Services. Rai Policy Type - Content Filters policy type.
- Base
Policy stringName - Name of the base Content Filters.
- Completion
Blocklists []RaiBlocklist Config - Content
Filters []RaiPolicy Content Filter - Mode
string | Rai
Policy Mode - Content Filters mode.
- Prompt
Blocklists []RaiBlocklist Config - Type
string | Rai
Policy Type - Content Filters policy type.
- base
Policy StringName - Name of the base Content Filters.
- completion
Blocklists List<RaiBlocklist Config> - content
Filters List<RaiPolicy Content Filter> - mode
String | Rai
Policy Mode - Content Filters mode.
- prompt
Blocklists List<RaiBlocklist Config> - type
String | Rai
Policy Type - Content Filters policy type.
- base
Policy stringName - Name of the base Content Filters.
- completion
Blocklists RaiBlocklist Config[] - content
Filters RaiPolicy Content Filter[] - mode
string | Rai
Policy Mode - Content Filters mode.
- prompt
Blocklists RaiBlocklist Config[] - type
string | Rai
Policy Type - Content Filters policy type.
- base_
policy_ strname - Name of the base Content Filters.
- completion_
blocklists Sequence[RaiBlocklist Config] - content_
filters Sequence[RaiPolicy Content Filter] - mode
str | Rai
Policy Mode - Content Filters mode.
- prompt_
blocklists Sequence[RaiBlocklist Config] - type
str | Rai
Policy Type - Content Filters policy type.
- base
Policy StringName - Name of the base Content Filters.
- completion
Blocklists List<Property Map> - content
Filters List<Property Map> - mode String | "Default" | "Deferred" | "Blocking"
- Content Filters mode.
- prompt
Blocklists List<Property Map> - type
String | "User
Managed" | "System Managed" - Content Filters policy type.
RaiPolicyPropertiesResponse, RaiPolicyPropertiesResponseArgs
- Base
Policy stringName - Name of the base Content Filters.
- Completion
Blocklists List<Pulumi.Azure Native. Machine Learning Services. Inputs. Rai Blocklist Config Response> - Content
Filters List<Pulumi.Azure Native. Machine Learning Services. Inputs. Rai Policy Content Filter Response> - Mode string
- Content Filters mode.
- Prompt
Blocklists List<Pulumi.Azure Native. Machine Learning Services. Inputs. Rai Blocklist Config Response> - Type string
- Content Filters policy type.
- Base
Policy stringName - Name of the base Content Filters.
- Completion
Blocklists []RaiBlocklist Config Response - Content
Filters []RaiPolicy Content Filter Response - Mode string
- Content Filters mode.
- Prompt
Blocklists []RaiBlocklist Config Response - Type string
- Content Filters policy type.
- base
Policy StringName - Name of the base Content Filters.
- completion
Blocklists List<RaiBlocklist Config Response> - content
Filters List<RaiPolicy Content Filter Response> - mode String
- Content Filters mode.
- prompt
Blocklists List<RaiBlocklist Config Response> - type String
- Content Filters policy type.
- base
Policy stringName - Name of the base Content Filters.
- completion
Blocklists RaiBlocklist Config Response[] - content
Filters RaiPolicy Content Filter Response[] - mode string
- Content Filters mode.
- prompt
Blocklists RaiBlocklist Config Response[] - type string
- Content Filters policy type.
- base_
policy_ strname - Name of the base Content Filters.
- completion_
blocklists Sequence[RaiBlocklist Config Response] - content_
filters Sequence[RaiPolicy Content Filter Response] - mode str
- Content Filters mode.
- prompt_
blocklists Sequence[RaiBlocklist Config Response] - type str
- Content Filters policy type.
- base
Policy StringName - Name of the base Content Filters.
- completion
Blocklists List<Property Map> - content
Filters List<Property Map> - mode String
- Content Filters mode.
- prompt
Blocklists List<Property Map> - type String
- Content Filters policy type.
RaiPolicyType, RaiPolicyTypeArgs
- User
Managed - UserManaged
- System
Managed - SystemManaged
- Rai
Policy Type User Managed - UserManaged
- Rai
Policy Type System Managed - SystemManaged
- User
Managed - UserManaged
- System
Managed - SystemManaged
- User
Managed - UserManaged
- System
Managed - SystemManaged
- USER_MANAGED
- UserManaged
- SYSTEM_MANAGED
- SystemManaged
- "User
Managed" - UserManaged
- "System
Managed" - SystemManaged
SystemDataResponse, SystemDataResponseArgs
- 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:machinelearningservices:ConnectionRaiPolicy raiPolicyName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}/raiPolicies/{raiPolicyName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0