Textract / Client / create_blueprint

create_blueprint

Textract.Client.create_blueprint(**kwargs)

Creates a blueprint that defines the schema Amazon Textract uses to extract structured data from a document during a document insights job. A blueprint describes the fields to extract and how to normalize them.

See also: AWS API Documentation

Request Syntax

response = client.create_blueprint(
    ClientRequestToken='string',
    BlueprintName='string',
    Schema='string',
    EncryptionConfiguration={
        'KmsKeyId': 'string',
        'KmsEncryptionContext': {
            'string': 'string'
        }
    },
    Tags={
        'string': 'string'
    }
)
Parameters:
  • ClientRequestToken (string) –

    A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you use the same token for a request that matches a previous request, the service ignores the request, but does not return an error.

    This field is autopopulated if not provided.

  • BlueprintName (string) –

    [REQUIRED]

    A unique name for the blueprint.

  • Schema (string) –

    [REQUIRED]

    The 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) –

  • Tags (dict) –

    A set of tags (key-value pairs) to assign to the blueprint.

    • (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 created.

Exceptions