UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

45 lines (44 loc) 2.15 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Document Classifier enables training document classifier models. */ export declare function getDocumentClassifier(args: GetDocumentClassifierArgs, opts?: pulumi.InvokeOptions): Promise<GetDocumentClassifierResult>; export interface GetDocumentClassifierArgs { /** * The Amazon Resource Name (ARN) of the document classifier. */ arn: string; } export interface GetDocumentClassifierResult { /** * The Amazon Resource Name (ARN) of the document classifier. */ readonly arn?: string; /** * The resource-based policy to attach to your custom document classifier model. You can use this policy to allow another AWS account to import your custom model. * * Provide your policy as a JSON body that you enter as a UTF-8 encoded string without line breaks. To provide valid JSON, enclose the attribute names and values in double quotes. If the JSON body is also enclosed in double quotes, then you must escape the double quotes that are inside the policy: * * `"{\"attribute\": \"value\", \"attribute\": [\"value\"]}"` * * To avoid escaping quotes, you can use single quotes to enclose the policy and double quotes to enclose the JSON names and values: * * `'{"attribute": "value", "attribute": ["value"]}'` */ readonly modelPolicy?: string; /** * Tags to associate with the document classifier. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department. */ readonly tags?: outputs.Tag[]; } /** * Document Classifier enables training document classifier models. */ export declare function getDocumentClassifierOutput(args: GetDocumentClassifierOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDocumentClassifierResult>; export interface GetDocumentClassifierOutputArgs { /** * The Amazon Resource Name (ARN) of the document classifier. */ arn: pulumi.Input<string>; }