Bedrock / Client / get_model_invocation_logging_configuration

get_model_invocation_logging_configuration#

Bedrock.Client.get_model_invocation_logging_configuration()#

Get the current configuration values for model invocation logging.

See also: AWS API Documentation

Request Syntax

response = client.get_model_invocation_logging_configuration()
Return type:

dict

Returns:

Response Syntax

{
    '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
    }
}

Response Structure

  • (dict) –

    • loggingConfig (dict) –

      The current configuration values.

      • cloudWatchConfig (dict) –

        CloudWatch logging configuration.

        • logGroupName (string) –

          The log group name.

        • roleArn (string) –

          The role ARN.

        • largeDataDeliveryS3Config (dict) –

          S3 configuration for delivering a large amount of data.

          • bucketName (string) –

            S3 bucket name.

          • keyPrefix (string) –

            S3 prefix.

      • s3Config (dict) –

        S3 configuration for storing log data.

        • bucketName (string) –

          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.

Exceptions

  • Bedrock.Client.exceptions.AccessDeniedException

  • Bedrock.Client.exceptions.InternalServerException

  • Bedrock.Client.exceptions.ThrottlingException