Cognitive Services Rai Topic.
Uses Azure REST API version 2025-07-01-preview.
Other available API versions: 2025-09-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native cognitiveservices [ApiVersion]. See the version guide for details.
Example Usage
PutRaiTopic
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var raiTopic = new AzureNative.CognitiveServices.RaiTopic("raiTopic", new()
{
AccountName = "accountName",
Properties = new AzureNative.CognitiveServices.Inputs.RaiTopicPropertiesArgs
{
Description = "This is a sample topic.",
SampleBlobUrl = "https://example.blob.core.windows.net/sampleblob",
TopicName = "raiTopicName",
},
RaiTopicName = "raiTopicName",
ResourceGroupName = "resourceGroupName",
});
});
package main
import (
cognitiveservices "github.com/pulumi/pulumi-azure-native-sdk/cognitiveservices/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cognitiveservices.NewRaiTopic(ctx, "raiTopic", &cognitiveservices.RaiTopicArgs{
AccountName: pulumi.String("accountName"),
Properties: &cognitiveservices.RaiTopicPropertiesArgs{
Description: pulumi.String("This is a sample topic."),
SampleBlobUrl: pulumi.String("https://example.blob.core.windows.net/sampleblob"),
TopicName: pulumi.String("raiTopicName"),
},
RaiTopicName: pulumi.String("raiTopicName"),
ResourceGroupName: pulumi.String("resourceGroupName"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cognitiveservices.RaiTopic;
import com.pulumi.azurenative.cognitiveservices.RaiTopicArgs;
import com.pulumi.azurenative.cognitiveservices.inputs.RaiTopicPropertiesArgs;
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 raiTopic = new RaiTopic("raiTopic", RaiTopicArgs.builder()
.accountName("accountName")
.properties(RaiTopicPropertiesArgs.builder()
.description("This is a sample topic.")
.sampleBlobUrl("https://example.blob.core.windows.net/sampleblob")
.topicName("raiTopicName")
.build())
.raiTopicName("raiTopicName")
.resourceGroupName("resourceGroupName")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const raiTopic = new azure_native.cognitiveservices.RaiTopic("raiTopic", {
accountName: "accountName",
properties: {
description: "This is a sample topic.",
sampleBlobUrl: "https://example.blob.core.windows.net/sampleblob",
topicName: "raiTopicName",
},
raiTopicName: "raiTopicName",
resourceGroupName: "resourceGroupName",
});
import pulumi
import pulumi_azure_native as azure_native
rai_topic = azure_native.cognitiveservices.RaiTopic("raiTopic",
account_name="accountName",
properties={
"description": "This is a sample topic.",
"sample_blob_url": "https://example.blob.core.windows.net/sampleblob",
"topic_name": "raiTopicName",
},
rai_topic_name="raiTopicName",
resource_group_name="resourceGroupName")
resources:
raiTopic:
type: azure-native:cognitiveservices:RaiTopic
properties:
accountName: accountName
properties:
description: This is a sample topic.
sampleBlobUrl: https://example.blob.core.windows.net/sampleblob
topicName: raiTopicName
raiTopicName: raiTopicName
resourceGroupName: resourceGroupName
Create RaiTopic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RaiTopic(name: string, args: RaiTopicArgs, opts?: CustomResourceOptions);@overload
def RaiTopic(resource_name: str,
args: RaiTopicArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RaiTopic(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
properties: Optional[RaiTopicPropertiesArgs] = None,
rai_topic_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)func NewRaiTopic(ctx *Context, name string, args RaiTopicArgs, opts ...ResourceOption) (*RaiTopic, error)public RaiTopic(string name, RaiTopicArgs args, CustomResourceOptions? opts = null)
public RaiTopic(String name, RaiTopicArgs args)
public RaiTopic(String name, RaiTopicArgs args, CustomResourceOptions options)
type: azure-native:cognitiveservices:RaiTopic
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 RaiTopicArgs
- 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 RaiTopicArgs
- 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 RaiTopicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RaiTopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RaiTopicArgs
- 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 raiTopicResource = new AzureNative.CognitiveServices.RaiTopic("raiTopicResource", new()
{
AccountName = "string",
ResourceGroupName = "string",
Properties = new AzureNative.CognitiveServices.Inputs.RaiTopicPropertiesArgs
{
CreatedAt = "string",
Description = "string",
FailedReason = "string",
LastModifiedAt = "string",
SampleBlobUrl = "string",
Status = "string",
TopicId = "string",
TopicName = "string",
},
RaiTopicName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := cognitiveservices.NewRaiTopic(ctx, "raiTopicResource", &cognitiveservices.RaiTopicArgs{
AccountName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Properties: &cognitiveservices.RaiTopicPropertiesArgs{
CreatedAt: pulumi.String("string"),
Description: pulumi.String("string"),
FailedReason: pulumi.String("string"),
LastModifiedAt: pulumi.String("string"),
SampleBlobUrl: pulumi.String("string"),
Status: pulumi.String("string"),
TopicId: pulumi.String("string"),
TopicName: pulumi.String("string"),
},
RaiTopicName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var raiTopicResource = new RaiTopic("raiTopicResource", RaiTopicArgs.builder()
.accountName("string")
.resourceGroupName("string")
.properties(RaiTopicPropertiesArgs.builder()
.createdAt("string")
.description("string")
.failedReason("string")
.lastModifiedAt("string")
.sampleBlobUrl("string")
.status("string")
.topicId("string")
.topicName("string")
.build())
.raiTopicName("string")
.tags(Map.of("string", "string"))
.build());
rai_topic_resource = azure_native.cognitiveservices.RaiTopic("raiTopicResource",
account_name="string",
resource_group_name="string",
properties={
"created_at": "string",
"description": "string",
"failed_reason": "string",
"last_modified_at": "string",
"sample_blob_url": "string",
"status": "string",
"topic_id": "string",
"topic_name": "string",
},
rai_topic_name="string",
tags={
"string": "string",
})
const raiTopicResource = new azure_native.cognitiveservices.RaiTopic("raiTopicResource", {
accountName: "string",
resourceGroupName: "string",
properties: {
createdAt: "string",
description: "string",
failedReason: "string",
lastModifiedAt: "string",
sampleBlobUrl: "string",
status: "string",
topicId: "string",
topicName: "string",
},
raiTopicName: "string",
tags: {
string: "string",
},
});
type: azure-native:cognitiveservices:RaiTopic
properties:
accountName: string
properties:
createdAt: string
description: string
failedReason: string
lastModifiedAt: string
sampleBlobUrl: string
status: string
topicId: string
topicName: string
raiTopicName: string
resourceGroupName: string
tags:
string: string
RaiTopic 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 RaiTopic resource accepts the following input properties:
- Account
Name string - The name of Cognitive Services account.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Properties
Pulumi.
Azure Native. Cognitive Services. Inputs. Rai Topic Properties - Properties of Cognitive Services Rai Topic.
- Rai
Topic stringName - The name of the Rai Topic associated with the Cognitive Services Account
- Dictionary<string, string>
- Resource tags.
- Account
Name string - The name of Cognitive Services account.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Properties
Rai
Topic Properties Args - Properties of Cognitive Services Rai Topic.
- Rai
Topic stringName - The name of the Rai Topic associated with the Cognitive Services Account
- map[string]string
- Resource tags.
- account
Name String - The name of Cognitive Services account.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- properties
Rai
Topic Properties - Properties of Cognitive Services Rai Topic.
- rai
Topic StringName - The name of the Rai Topic associated with the Cognitive Services Account
- Map<String,String>
- Resource tags.
- account
Name string - The name of Cognitive Services account.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- properties
Rai
Topic Properties - Properties of Cognitive Services Rai Topic.
- rai
Topic stringName - The name of the Rai Topic associated with the Cognitive Services Account
- {[key: string]: string}
- Resource tags.
- account_
name str - The name of Cognitive Services account.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- properties
Rai
Topic Properties Args - Properties of Cognitive Services Rai Topic.
- rai_
topic_ strname - The name of the Rai Topic associated with the Cognitive Services Account
- Mapping[str, str]
- Resource tags.
- account
Name String - The name of Cognitive Services account.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- properties Property Map
- Properties of Cognitive Services Rai Topic.
- rai
Topic StringName - The name of the Rai Topic associated with the Cognitive Services Account
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the RaiTopic 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
RaiTopicProperties, RaiTopicPropertiesArgs
RAI Custom Topic properties.- Created
At string - Creation time of the custom topic.
- Description string
- Description of the custom topic.
- Failed
Reason string - Failed reason if the status is Failed.
- Last
Modified stringAt - Last modified time of the custom topic.
- Sample
Blob stringUrl - Sample blob url for the custom topic.
- Status string
- Status of the custom topic.
- Topic
Id string - The unique identifier of the custom topic.
- Topic
Name string - The name of the custom topic.
- Created
At string - Creation time of the custom topic.
- Description string
- Description of the custom topic.
- Failed
Reason string - Failed reason if the status is Failed.
- Last
Modified stringAt - Last modified time of the custom topic.
- Sample
Blob stringUrl - Sample blob url for the custom topic.
- Status string
- Status of the custom topic.
- Topic
Id string - The unique identifier of the custom topic.
- Topic
Name string - The name of the custom topic.
- created
At String - Creation time of the custom topic.
- description String
- Description of the custom topic.
- failed
Reason String - Failed reason if the status is Failed.
- last
Modified StringAt - Last modified time of the custom topic.
- sample
Blob StringUrl - Sample blob url for the custom topic.
- status String
- Status of the custom topic.
- topic
Id String - The unique identifier of the custom topic.
- topic
Name String - The name of the custom topic.
- created
At string - Creation time of the custom topic.
- description string
- Description of the custom topic.
- failed
Reason string - Failed reason if the status is Failed.
- last
Modified stringAt - Last modified time of the custom topic.
- sample
Blob stringUrl - Sample blob url for the custom topic.
- status string
- Status of the custom topic.
- topic
Id string - The unique identifier of the custom topic.
- topic
Name string - The name of the custom topic.
- created_
at str - Creation time of the custom topic.
- description str
- Description of the custom topic.
- failed_
reason str - Failed reason if the status is Failed.
- last_
modified_ strat - Last modified time of the custom topic.
- sample_
blob_ strurl - Sample blob url for the custom topic.
- status str
- Status of the custom topic.
- topic_
id str - The unique identifier of the custom topic.
- topic_
name str - The name of the custom topic.
- created
At String - Creation time of the custom topic.
- description String
- Description of the custom topic.
- failed
Reason String - Failed reason if the status is Failed.
- last
Modified StringAt - Last modified time of the custom topic.
- sample
Blob StringUrl - Sample blob url for the custom topic.
- status String
- Status of the custom topic.
- topic
Id String - The unique identifier of the custom topic.
- topic
Name String - The name of the custom topic.
RaiTopicPropertiesResponse, RaiTopicPropertiesResponseArgs
RAI Custom Topic properties.- Created
At string - Creation time of the custom topic.
- Description string
- Description of the custom topic.
- Failed
Reason string - Failed reason if the status is Failed.
- Last
Modified stringAt - Last modified time of the custom topic.
- Sample
Blob stringUrl - Sample blob url for the custom topic.
- Status string
- Status of the custom topic.
- Topic
Id string - The unique identifier of the custom topic.
- Topic
Name string - The name of the custom topic.
- Created
At string - Creation time of the custom topic.
- Description string
- Description of the custom topic.
- Failed
Reason string - Failed reason if the status is Failed.
- Last
Modified stringAt - Last modified time of the custom topic.
- Sample
Blob stringUrl - Sample blob url for the custom topic.
- Status string
- Status of the custom topic.
- Topic
Id string - The unique identifier of the custom topic.
- Topic
Name string - The name of the custom topic.
- created
At String - Creation time of the custom topic.
- description String
- Description of the custom topic.
- failed
Reason String - Failed reason if the status is Failed.
- last
Modified StringAt - Last modified time of the custom topic.
- sample
Blob StringUrl - Sample blob url for the custom topic.
- status String
- Status of the custom topic.
- topic
Id String - The unique identifier of the custom topic.
- topic
Name String - The name of the custom topic.
- created
At string - Creation time of the custom topic.
- description string
- Description of the custom topic.
- failed
Reason string - Failed reason if the status is Failed.
- last
Modified stringAt - Last modified time of the custom topic.
- sample
Blob stringUrl - Sample blob url for the custom topic.
- status string
- Status of the custom topic.
- topic
Id string - The unique identifier of the custom topic.
- topic
Name string - The name of the custom topic.
- created_
at str - Creation time of the custom topic.
- description str
- Description of the custom topic.
- failed_
reason str - Failed reason if the status is Failed.
- last_
modified_ strat - Last modified time of the custom topic.
- sample_
blob_ strurl - Sample blob url for the custom topic.
- status str
- Status of the custom topic.
- topic_
id str - The unique identifier of the custom topic.
- topic_
name str - The name of the custom topic.
- created
At String - Creation time of the custom topic.
- description String
- Description of the custom topic.
- failed
Reason String - Failed reason if the status is Failed.
- last
Modified StringAt - Last modified time of the custom topic.
- sample
Blob StringUrl - Sample blob url for the custom topic.
- status String
- Status of the custom topic.
- topic
Id String - The unique identifier of the custom topic.
- topic
Name String - The name of the custom topic.
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:RaiTopic raiTopicName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raitopics/{raiTopicName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
