Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new document classifier that you can use to categorize documents. To create a classifier, you provide a set of training documents that labeled with the categories that you want to use. After the classifier is trained you can use it to categorize a set of labeled documents into the categories. For more information, see how-document-classification.
Synopsis
- data CreateDocumentClassifier = CreateDocumentClassifier' {
- versionName :: Maybe Text
- modelKmsKeyId :: Maybe Text
- mode :: Maybe DocumentClassifierMode
- vpcConfig :: Maybe VpcConfig
- volumeKmsKeyId :: Maybe Text
- outputDataConfig :: Maybe DocumentClassifierOutputDataConfig
- clientRequestToken :: Maybe Text
- tags :: Maybe [Tag]
- documentClassifierName :: Text
- dataAccessRoleArn :: Text
- inputDataConfig :: DocumentClassifierInputDataConfig
- languageCode :: LanguageCode
- newCreateDocumentClassifier :: Text -> Text -> DocumentClassifierInputDataConfig -> LanguageCode -> CreateDocumentClassifier
- createDocumentClassifier_versionName :: Lens' CreateDocumentClassifier (Maybe Text)
- createDocumentClassifier_modelKmsKeyId :: Lens' CreateDocumentClassifier (Maybe Text)
- createDocumentClassifier_mode :: Lens' CreateDocumentClassifier (Maybe DocumentClassifierMode)
- createDocumentClassifier_vpcConfig :: Lens' CreateDocumentClassifier (Maybe VpcConfig)
- createDocumentClassifier_volumeKmsKeyId :: Lens' CreateDocumentClassifier (Maybe Text)
- createDocumentClassifier_outputDataConfig :: Lens' CreateDocumentClassifier (Maybe DocumentClassifierOutputDataConfig)
- createDocumentClassifier_clientRequestToken :: Lens' CreateDocumentClassifier (Maybe Text)
- createDocumentClassifier_tags :: Lens' CreateDocumentClassifier (Maybe [Tag])
- createDocumentClassifier_documentClassifierName :: Lens' CreateDocumentClassifier Text
- createDocumentClassifier_dataAccessRoleArn :: Lens' CreateDocumentClassifier Text
- createDocumentClassifier_inputDataConfig :: Lens' CreateDocumentClassifier DocumentClassifierInputDataConfig
- createDocumentClassifier_languageCode :: Lens' CreateDocumentClassifier LanguageCode
- data CreateDocumentClassifierResponse = CreateDocumentClassifierResponse' {}
- newCreateDocumentClassifierResponse :: Int -> CreateDocumentClassifierResponse
- createDocumentClassifierResponse_documentClassifierArn :: Lens' CreateDocumentClassifierResponse (Maybe Text)
- createDocumentClassifierResponse_httpStatus :: Lens' CreateDocumentClassifierResponse Int
Creating a Request
data CreateDocumentClassifier Source #
See: newCreateDocumentClassifier
smart constructor.
CreateDocumentClassifier' | |
|
Instances
newCreateDocumentClassifier Source #
Create a value of CreateDocumentClassifier
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:versionName:CreateDocumentClassifier'
, createDocumentClassifier_versionName
- The version name given to the newly created classifier. Version names
can have a maximum of 256 characters. Alphanumeric characters, hyphens
(-) and underscores (_) are allowed. The version name must be unique
among all models with the same classifier name in the account/AWS
Region.
$sel:modelKmsKeyId:CreateDocumentClassifier'
, createDocumentClassifier_modelKmsKeyId
- ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
uses to encrypt trained custom models. The ModelKmsKeyId can be either
of the following formats:
- KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
- Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
$sel:mode:CreateDocumentClassifier'
, createDocumentClassifier_mode
- Indicates the mode in which the classifier will be trained. The
classifier can be trained in multi-class mode, which identifies one and
only one class for each document, or multi-label mode, which identifies
one or more labels for each document. In multi-label mode, multiple
labels for an individual document are separated by a delimiter. The
default delimiter between labels is a pipe (|).
$sel:vpcConfig:CreateDocumentClassifier'
, createDocumentClassifier_vpcConfig
- Configuration parameters for an optional private Virtual Private Cloud
(VPC) containing the resources you are using for your custom classifier.
For more information, see
Amazon VPC.
$sel:volumeKmsKeyId:CreateDocumentClassifier'
, createDocumentClassifier_volumeKmsKeyId
- ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
uses to encrypt data on the storage volume attached to the ML compute
instance(s) that process the analysis job. The VolumeKmsKeyId can be
either of the following formats:
- KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
- Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
$sel:outputDataConfig:CreateDocumentClassifier'
, createDocumentClassifier_outputDataConfig
- Enables the addition of output results configuration parameters for
custom classifier jobs.
$sel:clientRequestToken:CreateDocumentClassifier'
, createDocumentClassifier_clientRequestToken
- A unique identifier for the request. If you don't set the client
request token, Amazon Comprehend generates one.
$sel:tags:CreateDocumentClassifier'
, createDocumentClassifier_tags
- Tags to be associated with the document classifier being created. 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.
$sel:documentClassifierName:CreateDocumentClassifier'
, createDocumentClassifier_documentClassifierName
- The name of the document classifier.
$sel:dataAccessRoleArn:CreateDocumentClassifier'
, createDocumentClassifier_dataAccessRoleArn
- The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM)
role that grants Amazon Comprehend read access to your input data.
$sel:inputDataConfig:CreateDocumentClassifier'
, createDocumentClassifier_inputDataConfig
- Specifies the format and location of the input data for the job.
$sel:languageCode:CreateDocumentClassifier'
, createDocumentClassifier_languageCode
- The language of the input documents. You can specify any of the
following languages supported by Amazon Comprehend: German ("de"),
English ("en"), Spanish ("es"), French ("fr"), Italian ("it"),
or Portuguese ("pt"). All documents must be in the same language.
Request Lenses
createDocumentClassifier_versionName :: Lens' CreateDocumentClassifier (Maybe Text) Source #
The version name given to the newly created classifier. Version names can have a maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores (_) are allowed. The version name must be unique among all models with the same classifier name in the account/AWS Region.
createDocumentClassifier_modelKmsKeyId :: Lens' CreateDocumentClassifier (Maybe Text) Source #
ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:
- KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
- Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
createDocumentClassifier_mode :: Lens' CreateDocumentClassifier (Maybe DocumentClassifierMode) Source #
Indicates the mode in which the classifier will be trained. The classifier can be trained in multi-class mode, which identifies one and only one class for each document, or multi-label mode, which identifies one or more labels for each document. In multi-label mode, multiple labels for an individual document are separated by a delimiter. The default delimiter between labels is a pipe (|).
createDocumentClassifier_vpcConfig :: Lens' CreateDocumentClassifier (Maybe VpcConfig) Source #
Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.
createDocumentClassifier_volumeKmsKeyId :: Lens' CreateDocumentClassifier (Maybe Text) Source #
ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:
- KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
- Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
createDocumentClassifier_outputDataConfig :: Lens' CreateDocumentClassifier (Maybe DocumentClassifierOutputDataConfig) Source #
Enables the addition of output results configuration parameters for custom classifier jobs.
createDocumentClassifier_clientRequestToken :: Lens' CreateDocumentClassifier (Maybe Text) Source #
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
createDocumentClassifier_tags :: Lens' CreateDocumentClassifier (Maybe [Tag]) Source #
Tags to be associated with the document classifier being created. 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.
createDocumentClassifier_documentClassifierName :: Lens' CreateDocumentClassifier Text Source #
The name of the document classifier.
createDocumentClassifier_dataAccessRoleArn :: Lens' CreateDocumentClassifier Text Source #
The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read access to your input data.
createDocumentClassifier_inputDataConfig :: Lens' CreateDocumentClassifier DocumentClassifierInputDataConfig Source #
Specifies the format and location of the input data for the job.
createDocumentClassifier_languageCode :: Lens' CreateDocumentClassifier LanguageCode Source #
The language of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt"). All documents must be in the same language.
Destructuring the Response
data CreateDocumentClassifierResponse Source #
See: newCreateDocumentClassifierResponse
smart constructor.
CreateDocumentClassifierResponse' | |
|
Instances
Eq CreateDocumentClassifierResponse Source # | |
Read CreateDocumentClassifierResponse Source # | |
Show CreateDocumentClassifierResponse Source # | |
Generic CreateDocumentClassifierResponse Source # | |
NFData CreateDocumentClassifierResponse Source # | |
Defined in Amazonka.Comprehend.CreateDocumentClassifier rnf :: CreateDocumentClassifierResponse -> () # | |
type Rep CreateDocumentClassifierResponse Source # | |
Defined in Amazonka.Comprehend.CreateDocumentClassifier type Rep CreateDocumentClassifierResponse = D1 ('MetaData "CreateDocumentClassifierResponse" "Amazonka.Comprehend.CreateDocumentClassifier" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "CreateDocumentClassifierResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "documentClassifierArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateDocumentClassifierResponse Source #
Create a value of CreateDocumentClassifierResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:documentClassifierArn:CreateDocumentClassifierResponse'
, createDocumentClassifierResponse_documentClassifierArn
- The Amazon Resource Name (ARN) that identifies the document classifier.
$sel:httpStatus:CreateDocumentClassifierResponse'
, createDocumentClassifierResponse_httpStatus
- The response's http status code.
Response Lenses
createDocumentClassifierResponse_documentClassifierArn :: Lens' CreateDocumentClassifierResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) that identifies the document classifier.
createDocumentClassifierResponse_httpStatus :: Lens' CreateDocumentClassifierResponse Int Source #
The response's http status code.