This page documents the language specification for the azure package. If you're looking for help working with the inputs, outputs, or functions of azure resources in a Pulumi program, please see the resource documentation for examples and API reference.
cognitive¶
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azure repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azurerm repo.
- class
pulumi_azure.cognitive.Account(resource_name, opts=None, kind=None, location=None, name=None, qna_runtime_endpoint=None, resource_group_name=None, sku_name=None, tags=None, __props__=None, __name__=None, __opts__=None)¶ Manages a Cognitive Services Account.
import pulumi import pulumi_azure as azure example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe") example_account = azure.cognitive.Account("exampleAccount", location=example_resource_group.location, resource_group_name=example_resource_group.name, kind="Face", sku_name="S0", tags={ "Acceptance": "Test", })
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
kind (pulumi.Input[str]) – Specifies the type of Cognitive Service Account that should be created. Possible values are
Academic,Bing.Autosuggest,Bing.Autosuggest.v7,Bing.CustomSearch,Bing.Search,Bing.Search.v7,Bing.Speech,Bing.SpellCheck,Bing.SpellCheck.v7,CognitiveServices,ComputerVision,ContentModerator,CustomSpeech,CustomVision.Prediction,CustomVision.Training,Emotion,Face,FormRecognizer,ImmersiveReader,LUIS,LUIS.Authoring,QnAMaker,Recommendations,SpeakerRecognition,Speech,SpeechServices,SpeechTranslation,TextAnalytics,TextTranslationandWebLM. Changing this forces a new resource to be created.location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
name (pulumi.Input[str]) – Specifies the name of the Cognitive Service Account. Changing this forces a new resource to be created.
qna_runtime_endpoint (pulumi.Input[str]) – A URL to link a QnAMaker cognitive account to a QnA runtime.
resource_group_name (pulumi.Input[str]) – The name of the resource group in which the Cognitive Service Account is created. Changing this forces a new resource to be created.
sku_name (pulumi.Input[str]) – Specifies the SKU Name for this Cognitive Service Account. Possible values are
F0,F1,S0,S1,S2,S3,S4,S5,S6,P0,P1, andP2.tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.
endpoint: pulumi.Output[str] = None¶The endpoint used to connect to the Cognitive Service Account.
kind: pulumi.Output[str] = None¶Specifies the type of Cognitive Service Account that should be created. Possible values are
Academic,Bing.Autosuggest,Bing.Autosuggest.v7,Bing.CustomSearch,Bing.Search,Bing.Search.v7,Bing.Speech,Bing.SpellCheck,Bing.SpellCheck.v7,CognitiveServices,ComputerVision,ContentModerator,CustomSpeech,CustomVision.Prediction,CustomVision.Training,Emotion,Face,FormRecognizer,ImmersiveReader,LUIS,LUIS.Authoring,QnAMaker,Recommendations,SpeakerRecognition,Speech,SpeechServices,SpeechTranslation,TextAnalytics,TextTranslationandWebLM. Changing this forces a new resource to be created.
location: pulumi.Output[str] = None¶Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
name: pulumi.Output[str] = None¶Specifies the name of the Cognitive Service Account. Changing this forces a new resource to be created.
primary_access_key: pulumi.Output[str] = None¶A primary access key which can be used to connect to the Cognitive Service Account.
qna_runtime_endpoint: pulumi.Output[str] = None¶A URL to link a QnAMaker cognitive account to a QnA runtime.
resource_group_name: pulumi.Output[str] = None¶The name of the resource group in which the Cognitive Service Account is created. Changing this forces a new resource to be created.
secondary_access_key: pulumi.Output[str] = None¶The secondary access key which can be used to connect to the Cognitive Service Account.
sku_name: pulumi.Output[str] = None¶Specifies the SKU Name for this Cognitive Service Account. Possible values are
F0,F1,S0,S1,S2,S3,S4,S5,S6,P0,P1, andP2.
A mapping of tags to assign to the resource.
- static
get(resource_name, id, opts=None, endpoint=None, kind=None, location=None, name=None, primary_access_key=None, qna_runtime_endpoint=None, resource_group_name=None, secondary_access_key=None, sku_name=None, tags=None)¶ Get an existing Account resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
endpoint (pulumi.Input[str]) – The endpoint used to connect to the Cognitive Service Account.
kind (pulumi.Input[str]) – Specifies the type of Cognitive Service Account that should be created. Possible values are
Academic,Bing.Autosuggest,Bing.Autosuggest.v7,Bing.CustomSearch,Bing.Search,Bing.Search.v7,Bing.Speech,Bing.SpellCheck,Bing.SpellCheck.v7,CognitiveServices,ComputerVision,ContentModerator,CustomSpeech,CustomVision.Prediction,CustomVision.Training,Emotion,Face,FormRecognizer,ImmersiveReader,LUIS,LUIS.Authoring,QnAMaker,Recommendations,SpeakerRecognition,Speech,SpeechServices,SpeechTranslation,TextAnalytics,TextTranslationandWebLM. Changing this forces a new resource to be created.location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
name (pulumi.Input[str]) – Specifies the name of the Cognitive Service Account. Changing this forces a new resource to be created.
primary_access_key (pulumi.Input[str]) – A primary access key which can be used to connect to the Cognitive Service Account.
qna_runtime_endpoint (pulumi.Input[str]) – A URL to link a QnAMaker cognitive account to a QnA runtime.
resource_group_name (pulumi.Input[str]) – The name of the resource group in which the Cognitive Service Account is created. Changing this forces a new resource to be created.
secondary_access_key (pulumi.Input[str]) – The secondary access key which can be used to connect to the Cognitive Service Account.
sku_name (pulumi.Input[str]) – Specifies the SKU Name for this Cognitive Service Account. Possible values are
F0,F1,S0,S1,S2,S3,S4,S5,S6,P0,P1, andP2.tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str