Textract / Client / update_blueprint

update_blueprint

Textract.Client.update_blueprint(**kwargs)

Updates an existing blueprint, replacing its schema and, optionally, its encryption configuration.

See also: AWS API Documentation

Request Syntax

response = client.update_blueprint(
    BlueprintArn='string',
    Schema='string',
    EncryptionConfiguration={
        'KmsKeyId': 'string',
        'KmsEncryptionContext': {
            'string': 'string'
        }
    }
)
Parameters:
  • BlueprintArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the blueprint to update.

  • Schema (string) – The updated schema of the blueprint, which defines the fields to extract and their expected structure.

  • EncryptionConfiguration (dict) –

    The AWS KMS encryption configuration used to encrypt the blueprint at rest.

    • KmsKeyId (string) – [REQUIRED]

      The identifier of the AWS KMS key to use for encryption. This can be a key ID, key ARN, alias name, or alias ARN.

    • KmsEncryptionContext (dict) –

      A set of key-value pairs that Amazon Textract includes as the AWS KMS encryption context when encrypting and decrypting the resource.

      On UpdateProject and UpdateBlueprint, this member is the one exception to replacing a supplied configuration whole. If you omit it, the stored encryption context is kept. To clear a custom encryption context, specify an empty map ( {}).

      • (string) –

        • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'BlueprintArn': 'string'
}

Response Structure

  • (dict) –

    • BlueprintArn (string) –

      The Amazon Resource Name (ARN) of the blueprint that was updated.

Exceptions

  • Textract.Client.exceptions.ResourceNotFoundException

  • Textract.Client.exceptions.InvalidParameterException

  • Textract.Client.exceptions.ValidationException

  • Textract.Client.exceptions.ConflictException

  • Textract.Client.exceptions.AccessDeniedException

  • Textract.Client.exceptions.ProvisionedThroughputExceededException

  • Textract.Client.exceptions.InternalServerError