Bedrock / Client / put_model_invocation_logging_configuration

put_model_invocation_logging_configuration#

Bedrock.Client.put_model_invocation_logging_configuration(**kwargs)#

Set the configuration values for model invocation logging.

See also: AWS API Documentation

Request Syntax

response = client.put_model_invocation_logging_configuration(
    loggingConfig={
        'cloudWatchConfig': {
            'logGroupName': 'string',
            'roleArn': 'string',
            'largeDataDeliveryS3Config': {
                'bucketName': 'string',
                'keyPrefix': 'string'
            }
        },
        's3Config': {
            'bucketName': 'string',
            'keyPrefix': 'string'
        },
        'textDataDeliveryEnabled': True|False,
        'imageDataDeliveryEnabled': True|False,
        'embeddingDataDeliveryEnabled': True|False
    }
)
Parameters:

loggingConfig (dict) –

[REQUIRED]

The logging configuration values to set.

  • cloudWatchConfig (dict) –

    CloudWatch logging configuration.

    • logGroupName (string) – [REQUIRED]

      The log group name.

    • roleArn (string) – [REQUIRED]

      The role Amazon Resource Name (ARN).

    • largeDataDeliveryS3Config (dict) –

      S3 configuration for delivering a large amount of data.

      • bucketName (string) – [REQUIRED]

        S3 bucket name.

      • keyPrefix (string) –

        S3 prefix.

  • s3Config (dict) –

    S3 configuration for storing log data.

    • bucketName (string) – [REQUIRED]

      S3 bucket name.

    • keyPrefix (string) –

      S3 prefix.

  • textDataDeliveryEnabled (boolean) –

    Set to include text data in the log delivery.

  • imageDataDeliveryEnabled (boolean) –

    Set to include image data in the log delivery.

  • embeddingDataDeliveryEnabled (boolean) –

    Set to include embeddings data in the log delivery.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • Bedrock.Client.exceptions.AccessDeniedException

  • Bedrock.Client.exceptions.ValidationException

  • Bedrock.Client.exceptions.InternalServerException

  • Bedrock.Client.exceptions.ThrottlingException