The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Paws::Kendra::BatchPutDocument - Arguments for method BatchPutDocument on Paws::Kendra

DESCRIPTION

This class represents the parameters used for calling the method BatchPutDocument on the AWSKendraFrontendService service. Use the attributes of this class as arguments to method BatchPutDocument.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to BatchPutDocument.

SYNOPSIS

    my $kendra = Paws->service('Kendra');
    my $BatchPutDocumentResponse = $kendra->BatchPutDocument(
      Documents => [
        {
          Id                => 'MyDocumentId',    # min: 1, max: 2048
          AccessControlList => [
            {
              Access => 'ALLOW',                  # values: ALLOW, DENY
              Name   => 'MyPrincipalName',        # min: 1, max: 200
              Type   => 'USER',                   # values: USER, GROUP

            },
            ...
          ],                                      # min: 1, max: 200; OPTIONAL
          Attributes => [
            {
              Key   => 'MyDocumentAttributeKey',    # min: 1, max: 200
              Value => {
                DateValue       => '1970-01-01T01:00:00',    # OPTIONAL
                LongValue       => 1,                        # OPTIONAL
                StringListValue => [
                  'MyString', ...                            # min: 1, max: 2048
                ],    # min: 1, max: 5; OPTIONAL
                StringValue => 'MyDocumentAttributeStringValue'
                ,     # min: 1, max: 2048; OPTIONAL
              },

            },
            ...
          ],          # min: 1, max: 100; OPTIONAL
          Blob => 'BlobBlob',    # min: 1, max: 153600; OPTIONAL
          ContentType =>
            'PDF',    # values: PDF, HTML, MS_WORD, PLAIN_TEXT, PPT; OPTIONAL
          S3Path => {
            Bucket => 'MyS3BucketName',    # min: 3, max: 63
            Key    => 'MyS3ObjectKey',     # min: 1, max: 1024

          },    # OPTIONAL
          Title => 'MyTitle',    # min: 1, max: 1024; OPTIONAL
        },
        ...
      ],
      IndexId => 'MyIndexId',
      RoleArn => 'MyRoleArn',    # OPTIONAL
    );

    # Results:
    my $FailedDocuments = $BatchPutDocumentResponse->FailedDocuments;

    # Returns a L<Paws::Kendra::BatchPutDocumentResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/kendra/BatchPutDocument

ATTRIBUTES

REQUIRED Documents => ArrayRef[Paws::Kendra::Document]

One or more documents to add to the index.

Each document is limited to 5 Mb, the total size of the list is limited to 50 Mb.

REQUIRED IndexId => Str

The identifier of the index to add the documents to. You need to create the index first using the CreateIndex operation.

RoleArn => Str

The Amazon Resource Name (ARN) of a role that is allowed to run the BatchPutDocument operation. For more information, see IAM Roles for Amazon Kendra (https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html).

SEE ALSO

This class forms part of Paws, documenting arguments for method BatchPutDocument in Paws::Kendra

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues