Skip to content

Create Adapter Version

textract_create_adapter_version R Documentation

Creates a new version of an adapter

Description

Creates a new version of an adapter. Operates on a provided AdapterId and a specified dataset provided via the DatasetConfig argument. Requires that you specify an Amazon S3 bucket with the OutputConfig argument. You can provide an optional KMSKeyId, an optional ClientRequestToken, and optional tags.

Usage

textract_create_adapter_version(AdapterId, ClientRequestToken,
  DatasetConfig, KMSKeyId, OutputConfig, Tags)

Arguments

AdapterId

[required] A string containing a unique ID for the adapter that will receive a new version.

ClientRequestToken

Idempotent token is used to recognize the request. If the same token is used with multiple CreateAdapterVersion requests, the same session is returned. This token is employed to avoid unintentionally creating the same session multiple times.

DatasetConfig

[required] Specifies a dataset used to train a new adapter version. Takes a ManifestS3Object as the value.

KMSKeyId

The identifier for your AWS Key Management Service key (AWS KMS key). Used to encrypt your documents.

OutputConfig

[required]

Tags

A set of tags (key-value pairs) that you want to attach to the adapter version.

Value

A list with the following syntax:

list(
  AdapterId = "string",
  AdapterVersion = "string"
)

Request syntax

svc$create_adapter_version(
  AdapterId = "string",
  ClientRequestToken = "string",
  DatasetConfig = list(
    ManifestS3Object = list(
      Bucket = "string",
      Name = "string",
      Version = "string"
    )
  ),
  KMSKeyId = "string",
  OutputConfig = list(
    S3Bucket = "string",
    S3Prefix = "string"
  ),
  Tags = list(
    "string"
  )
)