blib/lib/Paws/SageMakerRuntime/InvokeEndpointOutput.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SageMakerRuntime::InvokeEndpointOutput;
3 use Moose;
4 has Body => (is => 'ro', isa => 'Str', required => 1);
5 has ContentType => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'Content-Type');
6 has CustomAttributes => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'X-Amzn-SageMaker-Custom-Attributes');
7 has InvokedProductionVariant => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-Amzn-Invoked-Production-Variant');
8 use MooseX::ClassAttribute;
9 class_has _stream_param => (is => 'ro', default => 'Body');
10 has _request_id => (is => 'ro', isa => 'Str');
11 1;
12  
13 ### main pod documentation begin ###
14  
15 =head1 NAME
16  
17 Paws::SageMakerRuntime::InvokeEndpointOutput
18  
19 =head1 ATTRIBUTES
20  
21  
22 =head2 B<REQUIRED> Body => Str
23  
24 Includes the inference provided by the model.
25  
26 For information about the format of the response body, see Common Data
27 Formats-Inference
28 (https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html).
29  
30  
31 =head2 ContentType => Str
32  
33 The MIME type of the inference returned in the response body.
34  
35  
36 =head2 CustomAttributes => Str
37  
38 Provides additional information in the response about the inference
39 returned by a model hosted at an Amazon SageMaker endpoint. The
40 information is an opaque value that is forwarded verbatim. You could
41 use this value, for example, to return an ID received in the
42 C<CustomAttributes> header of a request or other metadata that a
43 service endpoint was programmed to produce. The value must consist of
44 no more than 1024 visible US-ASCII characters as specified in Section
45 3.3.6. Field Value Components
46 (https://tools.ietf.org/html/rfc7230#section-3.2.6) of the Hypertext
47 Transfer Protocol (HTTP/1.1). If the customer wants the custom
48 attribute returned, the model must set the custom attribute to be
49 included on the way back.
50  
51 The code in your model is responsible for setting or updating any
52 custom attributes in the response. If your code does not set this value
53 in the response, an empty value is returned. For example, if a custom
54 attribute represents the trace ID, your model can prepend the custom
55 attribute with C<Trace ID:> in your post-processing function.
56  
57 This feature is currently supported in the AWS SDKs but not in the
58 Amazon SageMaker Python SDK.
59  
60  
61 =head2 InvokedProductionVariant => Str
62  
63 Identifies the production variant that was invoked.
64  
65  
66 =head2 _request_id => Str
67  
68  
69 =cut
70