libZSservicesZSamazonka-comprehendZSamazonka-comprehend
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Comprehend.StartTopicsDetectionJob

Description

Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob operation to track the status of a job.

Synopsis

Creating a Request

data StartTopicsDetectionJob Source #

See: newStartTopicsDetectionJob smart constructor.

Constructors

StartTopicsDetectionJob' 

Fields

  • jobName :: Maybe Text

    The identifier of the job.

  • vpcConfig :: Maybe VpcConfig

    Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your topic detection job. For more information, see Amazon VPC.

  • volumeKmsKeyId :: Maybe Text

    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"
  • numberOfTopics :: Maybe Natural

    The number of topics to detect.

  • clientRequestToken :: Maybe Text

    A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.

  • tags :: Maybe [Tag]

    Tags to be associated with the topics detection job. A tag is a key-value pair that adds 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.

  • inputDataConfig :: InputDataConfig

    Specifies the format and location of the input data for the job.

  • outputDataConfig :: OutputDataConfig

    Specifies where to send the output files. The output is a compressed archive with two files, topic-terms.csv that lists the terms associated with each topic, and doc-topics.csv that lists the documents associated with each topic

  • dataAccessRoleArn :: Text

    The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.

Instances

Instances details
Eq StartTopicsDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

Read StartTopicsDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

Show StartTopicsDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

Generic StartTopicsDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

Associated Types

type Rep StartTopicsDetectionJob :: Type -> Type #

NFData StartTopicsDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

Methods

rnf :: StartTopicsDetectionJob -> () #

Hashable StartTopicsDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

ToJSON StartTopicsDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

AWSRequest StartTopicsDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

ToHeaders StartTopicsDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

ToPath StartTopicsDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

ToQuery StartTopicsDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

type Rep StartTopicsDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

type Rep StartTopicsDetectionJob = D1 ('MetaData "StartTopicsDetectionJob" "Amazonka.Comprehend.StartTopicsDetectionJob" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "StartTopicsDetectionJob'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "jobName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "vpcConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcConfig))) :*: (S1 ('MetaSel ('Just "volumeKmsKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "numberOfTopics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: ((S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "inputDataConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InputDataConfig) :*: (S1 ('MetaSel ('Just "outputDataConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 OutputDataConfig) :*: S1 ('MetaSel ('Just "dataAccessRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))
type AWSResponse StartTopicsDetectionJob Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

newStartTopicsDetectionJob Source #

Create a value of StartTopicsDetectionJob 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:jobName:StartTopicsDetectionJob', startTopicsDetectionJob_jobName - The identifier of the job.

$sel:vpcConfig:StartTopicsDetectionJob', startTopicsDetectionJob_vpcConfig - Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your topic detection job. For more information, see Amazon VPC.

$sel:volumeKmsKeyId:StartTopicsDetectionJob', startTopicsDetectionJob_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:numberOfTopics:StartTopicsDetectionJob', startTopicsDetectionJob_numberOfTopics - The number of topics to detect.

$sel:clientRequestToken:StartTopicsDetectionJob', startTopicsDetectionJob_clientRequestToken - A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.

$sel:tags:StartTopicsDetectionJob', startTopicsDetectionJob_tags - Tags to be associated with the topics detection job. A tag is a key-value pair that adds 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:inputDataConfig:StartTopicsDetectionJob', startTopicsDetectionJob_inputDataConfig - Specifies the format and location of the input data for the job.

$sel:outputDataConfig:StartTopicsDetectionJob', startTopicsDetectionJob_outputDataConfig - Specifies where to send the output files. The output is a compressed archive with two files, topic-terms.csv that lists the terms associated with each topic, and doc-topics.csv that lists the documents associated with each topic

$sel:dataAccessRoleArn:StartTopicsDetectionJob', startTopicsDetectionJob_dataAccessRoleArn - The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.

Request Lenses

startTopicsDetectionJob_vpcConfig :: Lens' StartTopicsDetectionJob (Maybe VpcConfig) Source #

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your topic detection job. For more information, see Amazon VPC.

startTopicsDetectionJob_volumeKmsKeyId :: Lens' StartTopicsDetectionJob (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"

startTopicsDetectionJob_clientRequestToken :: Lens' StartTopicsDetectionJob (Maybe Text) Source #

A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.

startTopicsDetectionJob_tags :: Lens' StartTopicsDetectionJob (Maybe [Tag]) Source #

Tags to be associated with the topics detection job. A tag is a key-value pair that adds 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.

startTopicsDetectionJob_inputDataConfig :: Lens' StartTopicsDetectionJob InputDataConfig Source #

Specifies the format and location of the input data for the job.

startTopicsDetectionJob_outputDataConfig :: Lens' StartTopicsDetectionJob OutputDataConfig Source #

Specifies where to send the output files. The output is a compressed archive with two files, topic-terms.csv that lists the terms associated with each topic, and doc-topics.csv that lists the documents associated with each topic

startTopicsDetectionJob_dataAccessRoleArn :: Lens' StartTopicsDetectionJob Text Source #

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.

Destructuring the Response

data StartTopicsDetectionJobResponse Source #

See: newStartTopicsDetectionJobResponse smart constructor.

Constructors

StartTopicsDetectionJobResponse' 

Fields

  • jobId :: Maybe Text

    The identifier generated for the job. To get the status of the job, use this identifier with the DescribeTopicDetectionJob operation.

  • jobArn :: Maybe Text

    The Amazon Resource Name (ARN) of the topics detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, Region, and the job ID. The format of the ARN is as follows:

    arn:<partition>:comprehend:<region>:<account-id>:topics-detection-job/<job-id>

    The following is an example job ARN:

    arn:aws:comprehend:us-west-2:111122223333:document-classification-job/1234abcd12ab34cd56ef1234567890ab
  • jobStatus :: Maybe JobStatus

    The status of the job:

    • SUBMITTED - The job has been received and is queued for processing.
    • IN_PROGRESS - Amazon Comprehend is processing the job.
    • COMPLETED - The job was successfully completed and the output is available.
    • FAILED - The job did not complete. To get details, use the DescribeTopicDetectionJob operation.
  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq StartTopicsDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

Read StartTopicsDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

Show StartTopicsDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

Generic StartTopicsDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

Associated Types

type Rep StartTopicsDetectionJobResponse :: Type -> Type #

NFData StartTopicsDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

type Rep StartTopicsDetectionJobResponse Source # 
Instance details

Defined in Amazonka.Comprehend.StartTopicsDetectionJob

type Rep StartTopicsDetectionJobResponse = D1 ('MetaData "StartTopicsDetectionJobResponse" "Amazonka.Comprehend.StartTopicsDetectionJob" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "StartTopicsDetectionJobResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "jobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "jobStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newStartTopicsDetectionJobResponse Source #

Create a value of StartTopicsDetectionJobResponse 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:jobId:StartTopicsDetectionJobResponse', startTopicsDetectionJobResponse_jobId - The identifier generated for the job. To get the status of the job, use this identifier with the DescribeTopicDetectionJob operation.

$sel:jobArn:StartTopicsDetectionJobResponse', startTopicsDetectionJobResponse_jobArn - The Amazon Resource Name (ARN) of the topics detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:topics-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:document-classification-job/1234abcd12ab34cd56ef1234567890ab

$sel:jobStatus:StartTopicsDetectionJobResponse', startTopicsDetectionJobResponse_jobStatus - The status of the job:

  • SUBMITTED - The job has been received and is queued for processing.
  • IN_PROGRESS - Amazon Comprehend is processing the job.
  • COMPLETED - The job was successfully completed and the output is available.
  • FAILED - The job did not complete. To get details, use the DescribeTopicDetectionJob operation.

$sel:httpStatus:StartTopicsDetectionJobResponse', startTopicsDetectionJobResponse_httpStatus - The response's http status code.

Response Lenses

startTopicsDetectionJobResponse_jobId :: Lens' StartTopicsDetectionJobResponse (Maybe Text) Source #

The identifier generated for the job. To get the status of the job, use this identifier with the DescribeTopicDetectionJob operation.

startTopicsDetectionJobResponse_jobArn :: Lens' StartTopicsDetectionJobResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the topics detection job. It is a unique, fully qualified identifier for the job. It includes the AWS account, Region, and the job ID. The format of the ARN is as follows:

arn:<partition>:comprehend:<region>:<account-id>:topics-detection-job/<job-id>

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:document-classification-job/1234abcd12ab34cd56ef1234567890ab

startTopicsDetectionJobResponse_jobStatus :: Lens' StartTopicsDetectionJobResponse (Maybe JobStatus) Source #

The status of the job:

  • SUBMITTED - The job has been received and is queued for processing.
  • IN_PROGRESS - Amazon Comprehend is processing the job.
  • COMPLETED - The job was successfully completed and the output is available.
  • FAILED - The job did not complete. To get details, use the DescribeTopicDetectionJob operation.