A Resource Classifier Configuration is a configuration for a resource classifier.
Create ResourceClassifierConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResourceClassifierConfiguration(name: string, args: ResourceClassifierConfigurationArgs, opts?: CustomResourceOptions);@overload
def ResourceClassifierConfiguration(resource_name: str,
args: ResourceClassifierConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ResourceClassifierConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
ai_analysis_scope: Optional[str] = None,
ai_analysis_timeout_seconds: Optional[int] = None,
preference: Optional[str] = None,
resource_id: Optional[str] = None,
enforce_strict_classifier_result_count: Optional[bool] = None)func NewResourceClassifierConfiguration(ctx *Context, name string, args ResourceClassifierConfigurationArgs, opts ...ResourceOption) (*ResourceClassifierConfiguration, error)public ResourceClassifierConfiguration(string name, ResourceClassifierConfigurationArgs args, CustomResourceOptions? opts = null)
public ResourceClassifierConfiguration(String name, ResourceClassifierConfigurationArgs args)
public ResourceClassifierConfiguration(String name, ResourceClassifierConfigurationArgs args, CustomResourceOptions options)
type: formal:ResourceClassifierConfiguration
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 ResourceClassifierConfigurationArgs
- 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 ResourceClassifierConfigurationArgs
- 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 ResourceClassifierConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceClassifierConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResourceClassifierConfigurationArgs
- 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 resourceClassifierConfigurationResource = new Pulumi.ResourceClassifierConfiguration("resourceClassifierConfigurationResource", new()
{
AiAnalysisScope = "string",
AiAnalysisTimeoutSeconds = 0,
Preference = "string",
ResourceId = "string",
EnforceStrictClassifierResultCount = false,
});
example, err := formal.NewResourceClassifierConfiguration(ctx, "resourceClassifierConfigurationResource", &formal.ResourceClassifierConfigurationArgs{
AiAnalysisScope: pulumi.String("string"),
AiAnalysisTimeoutSeconds: pulumi.Int(0),
Preference: pulumi.String("string"),
ResourceId: pulumi.String("string"),
EnforceStrictClassifierResultCount: pulumi.Bool(false),
})
var resourceClassifierConfigurationResource = new ResourceClassifierConfiguration("resourceClassifierConfigurationResource", ResourceClassifierConfigurationArgs.builder()
.aiAnalysisScope("string")
.aiAnalysisTimeoutSeconds(0)
.preference("string")
.resourceId("string")
.enforceStrictClassifierResultCount(false)
.build());
resource_classifier_configuration_resource = formal.ResourceClassifierConfiguration("resourceClassifierConfigurationResource",
ai_analysis_scope="string",
ai_analysis_timeout_seconds=0,
preference="string",
resource_id="string",
enforce_strict_classifier_result_count=False)
const resourceClassifierConfigurationResource = new formal.ResourceClassifierConfiguration("resourceClassifierConfigurationResource", {
aiAnalysisScope: "string",
aiAnalysisTimeoutSeconds: 0,
preference: "string",
resourceId: "string",
enforceStrictClassifierResultCount: false,
});
type: formal:ResourceClassifierConfiguration
properties:
aiAnalysisScope: string
aiAnalysisTimeoutSeconds: 0
enforceStrictClassifierResultCount: false
preference: string
resourceId: string
ResourceClassifierConfiguration 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 ResourceClassifierConfiguration resource accepts the following input properties:
- Ai
Analysis stringScope - Which direction to apply AI analysis. Required. Supported values are
requestorresponse. Use preference=none to disable AI analysis entirely. - Ai
Analysis intTimeout Seconds - The timeout for the AI analysis in seconds.
- Preference string
- The preference. Supported values are
nlp,llm,both, andnone. - Resource
Id string - The ID of the Resource.
- Enforce
Strict boolClassifier Result Count - Whether to fail requests if the number of results from the classifier is not equal to the number of key-value pairs sent to it.
- Ai
Analysis stringScope - Which direction to apply AI analysis. Required. Supported values are
requestorresponse. Use preference=none to disable AI analysis entirely. - Ai
Analysis intTimeout Seconds - The timeout for the AI analysis in seconds.
- Preference string
- The preference. Supported values are
nlp,llm,both, andnone. - Resource
Id string - The ID of the Resource.
- Enforce
Strict boolClassifier Result Count - Whether to fail requests if the number of results from the classifier is not equal to the number of key-value pairs sent to it.
- ai
Analysis StringScope - Which direction to apply AI analysis. Required. Supported values are
requestorresponse. Use preference=none to disable AI analysis entirely. - ai
Analysis IntegerTimeout Seconds - The timeout for the AI analysis in seconds.
- preference String
- The preference. Supported values are
nlp,llm,both, andnone. - resource
Id String - The ID of the Resource.
- enforce
Strict BooleanClassifier Result Count - Whether to fail requests if the number of results from the classifier is not equal to the number of key-value pairs sent to it.
- ai
Analysis stringScope - Which direction to apply AI analysis. Required. Supported values are
requestorresponse. Use preference=none to disable AI analysis entirely. - ai
Analysis numberTimeout Seconds - The timeout for the AI analysis in seconds.
- preference string
- The preference. Supported values are
nlp,llm,both, andnone. - resource
Id string - The ID of the Resource.
- enforce
Strict booleanClassifier Result Count - Whether to fail requests if the number of results from the classifier is not equal to the number of key-value pairs sent to it.
- ai_
analysis_ strscope - Which direction to apply AI analysis. Required. Supported values are
requestorresponse. Use preference=none to disable AI analysis entirely. - ai_
analysis_ inttimeout_ seconds - The timeout for the AI analysis in seconds.
- preference str
- The preference. Supported values are
nlp,llm,both, andnone. - resource_
id str - The ID of the Resource.
- enforce_
strict_ boolclassifier_ result_ count - Whether to fail requests if the number of results from the classifier is not equal to the number of key-value pairs sent to it.
- ai
Analysis StringScope - Which direction to apply AI analysis. Required. Supported values are
requestorresponse. Use preference=none to disable AI analysis entirely. - ai
Analysis NumberTimeout Seconds - The timeout for the AI analysis in seconds.
- preference String
- The preference. Supported values are
nlp,llm,both, andnone. - resource
Id String - The ID of the Resource.
- enforce
Strict BooleanClassifier Result Count - Whether to fail requests if the number of results from the classifier is not equal to the number of key-value pairs sent to it.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceClassifierConfiguration resource produces the following output properties:
- created_
at int - The timestamp of the Resource Classifier Preference creation.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at int - The timestamp of the Resource Classifier Preference update.
Look up Existing ResourceClassifierConfiguration Resource
Get an existing ResourceClassifierConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ResourceClassifierConfigurationState, opts?: CustomResourceOptions): ResourceClassifierConfiguration@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ai_analysis_scope: Optional[str] = None,
ai_analysis_timeout_seconds: Optional[int] = None,
created_at: Optional[int] = None,
enforce_strict_classifier_result_count: Optional[bool] = None,
preference: Optional[str] = None,
resource_id: Optional[str] = None,
updated_at: Optional[int] = None) -> ResourceClassifierConfigurationfunc GetResourceClassifierConfiguration(ctx *Context, name string, id IDInput, state *ResourceClassifierConfigurationState, opts ...ResourceOption) (*ResourceClassifierConfiguration, error)public static ResourceClassifierConfiguration Get(string name, Input<string> id, ResourceClassifierConfigurationState? state, CustomResourceOptions? opts = null)public static ResourceClassifierConfiguration get(String name, Output<String> id, ResourceClassifierConfigurationState state, CustomResourceOptions options)resources: _: type: formal:ResourceClassifierConfiguration get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Ai
Analysis stringScope - Which direction to apply AI analysis. Required. Supported values are
requestorresponse. Use preference=none to disable AI analysis entirely. - Ai
Analysis intTimeout Seconds - The timeout for the AI analysis in seconds.
- Created
At int - The timestamp of the Resource Classifier Preference creation.
- Enforce
Strict boolClassifier Result Count - Whether to fail requests if the number of results from the classifier is not equal to the number of key-value pairs sent to it.
- Preference string
- The preference. Supported values are
nlp,llm,both, andnone. - Resource
Id string - The ID of the Resource.
- Updated
At int - The timestamp of the Resource Classifier Preference update.
- Ai
Analysis stringScope - Which direction to apply AI analysis. Required. Supported values are
requestorresponse. Use preference=none to disable AI analysis entirely. - Ai
Analysis intTimeout Seconds - The timeout for the AI analysis in seconds.
- Created
At int - The timestamp of the Resource Classifier Preference creation.
- Enforce
Strict boolClassifier Result Count - Whether to fail requests if the number of results from the classifier is not equal to the number of key-value pairs sent to it.
- Preference string
- The preference. Supported values are
nlp,llm,both, andnone. - Resource
Id string - The ID of the Resource.
- Updated
At int - The timestamp of the Resource Classifier Preference update.
- ai
Analysis StringScope - Which direction to apply AI analysis. Required. Supported values are
requestorresponse. Use preference=none to disable AI analysis entirely. - ai
Analysis IntegerTimeout Seconds - The timeout for the AI analysis in seconds.
- created
At Integer - The timestamp of the Resource Classifier Preference creation.
- enforce
Strict BooleanClassifier Result Count - Whether to fail requests if the number of results from the classifier is not equal to the number of key-value pairs sent to it.
- preference String
- The preference. Supported values are
nlp,llm,both, andnone. - resource
Id String - The ID of the Resource.
- updated
At Integer - The timestamp of the Resource Classifier Preference update.
- ai
Analysis stringScope - Which direction to apply AI analysis. Required. Supported values are
requestorresponse. Use preference=none to disable AI analysis entirely. - ai
Analysis numberTimeout Seconds - The timeout for the AI analysis in seconds.
- created
At number - The timestamp of the Resource Classifier Preference creation.
- enforce
Strict booleanClassifier Result Count - Whether to fail requests if the number of results from the classifier is not equal to the number of key-value pairs sent to it.
- preference string
- The preference. Supported values are
nlp,llm,both, andnone. - resource
Id string - The ID of the Resource.
- updated
At number - The timestamp of the Resource Classifier Preference update.
- ai_
analysis_ strscope - Which direction to apply AI analysis. Required. Supported values are
requestorresponse. Use preference=none to disable AI analysis entirely. - ai_
analysis_ inttimeout_ seconds - The timeout for the AI analysis in seconds.
- created_
at int - The timestamp of the Resource Classifier Preference creation.
- enforce_
strict_ boolclassifier_ result_ count - Whether to fail requests if the number of results from the classifier is not equal to the number of key-value pairs sent to it.
- preference str
- The preference. Supported values are
nlp,llm,both, andnone. - resource_
id str - The ID of the Resource.
- updated_
at int - The timestamp of the Resource Classifier Preference update.
- ai
Analysis StringScope - Which direction to apply AI analysis. Required. Supported values are
requestorresponse. Use preference=none to disable AI analysis entirely. - ai
Analysis NumberTimeout Seconds - The timeout for the AI analysis in seconds.
- created
At Number - The timestamp of the Resource Classifier Preference creation.
- enforce
Strict BooleanClassifier Result Count - Whether to fail requests if the number of results from the classifier is not equal to the number of key-value pairs sent to it.
- preference String
- The preference. Supported values are
nlp,llm,both, andnone. - resource
Id String - The ID of the Resource.
- updated
At Number - The timestamp of the Resource Classifier Preference update.
Package Details
- Repository
- formal formalco/pulumi-formal
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
formalTerraform Provider.
