« blib/lib/Paws/SageMakerFeatureStoreRuntime/PutRecord.pm
↑ Summary
blib/lib/Paws/SageMakerRuntime/InvokeEndpoint.pm »
| 1 | package Paws::SageMakerRuntime; | ||
| 2 | use Moose; | ||
| 3 | sub service { 'runtime.sagemaker' } | ||
| 4 | sub signing_name { 'sagemaker' } | ||
| 5 | sub version { '2017-05-13' } | ||
| 6 | sub flattened_arrays { 0 } | ||
| 7 | has max_attempts => (is => 'ro', isa => 'Int', default => 5); | ||
| 8 | has retry => (is => 'ro', isa => 'HashRef', default => sub { | ||
| 9 | { base => 'rand', type => 'exponential', growth_factor => 2 } | ||
| 10 | }); | ||
| 11 | has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [ | ||
| 12 | ] }); | ||
| 13 | |||
| 14 | with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller'; | ||
| 15 | |||
| 16 | |||
| 17 | sub InvokeEndpoint { | ||
| 18 | my $self = shift; | ||
| 19 | my $call_object = $self->new_with_coercions('Paws::SageMakerRuntime::InvokeEndpoint', @_); | ||
| 20 | return $self->caller->do_call($self, $call_object); | ||
| 21 | } | ||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | sub operations { qw/InvokeEndpoint / } | ||
| 26 | |||
| 27 | 1; | ||
| 28 | |||
| 29 | ### main pod documentation begin ### | ||
| 30 | |||
| 31 | =head1 NAME | ||
| 32 | |||
| 33 | Paws::SageMakerRuntime - Perl Interface to AWS Amazon SageMaker Runtime | ||
| 34 | |||
| 35 | =head1 SYNOPSIS | ||
| 36 | |||
| 37 | use Paws; | ||
| 38 | |||
| 39 | my $obj = Paws->service('SageMakerRuntime'); | ||
| 40 | my $res = $obj->Method( | ||
| 41 | Arg1 => $val1, | ||
| 42 | Arg2 => [ 'V1', 'V2' ], | ||
| 43 | # if Arg3 is an object, the HashRef will be used as arguments to the constructor | ||
| 44 | # of the arguments type | ||
| 45 | Arg3 => { Att1 => 'Val1' }, | ||
| 46 | # if Arg4 is an array of objects, the HashRefs will be passed as arguments to | ||
| 47 | # the constructor of the arguments type | ||
| 48 | Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ], | ||
| 49 | ); | ||
| 50 | |||
| 51 | =head1 DESCRIPTION | ||
| 52 | |||
| 53 | The Amazon SageMaker runtime API. | ||
| 54 | |||
| 55 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/runtime.sagemaker-2017-05-13> | ||
| 56 | |||
| 57 | |||
| 58 | =head1 METHODS | ||
| 59 | |||
| 60 | =head2 InvokeEndpoint | ||
| 61 | |||
| 62 | =over | ||
| 63 | |||
| 64 | =item Body => Str | ||
| 65 | |||
| 66 | =item EndpointName => Str | ||
| 67 | |||
| 68 | =item [Accept => Str] | ||
| 69 | |||
| 70 | =item [ContentType => Str] | ||
| 71 | |||
| 72 | =item [CustomAttributes => Str] | ||
| 73 | |||
| 74 | =item [InferenceId => Str] | ||
| 75 | |||
| 76 | =item [TargetContainerHostname => Str] | ||
| 77 | |||
| 78 | =item [TargetModel => Str] | ||
| 79 | |||
| 80 | =item [TargetVariant => Str] | ||
| 81 | |||
| 82 | |||
| 83 | =back | ||
| 84 | |||
| 85 | Each argument is described in detail in: L<Paws::SageMakerRuntime::InvokeEndpoint> | ||
| 86 | |||
| 87 | Returns: a L<Paws::SageMakerRuntime::InvokeEndpointOutput> instance | ||
| 88 | |||
| 89 | After you deploy a model into production using Amazon SageMaker hosting | ||
| 90 | services, your client applications use this API to get inferences from | ||
| 91 | the model hosted at the specified endpoint. | ||
| 92 | |||
| 93 | For an overview of Amazon SageMaker, see How It Works | ||
| 94 | (https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html). | ||
| 95 | |||
| 96 | Amazon SageMaker strips all POST headers except those supported by the | ||
| 97 | API. Amazon SageMaker might add additional headers. You should not rely | ||
| 98 | on the behavior of headers outside those enumerated in the request | ||
| 99 | syntax. | ||
| 100 | |||
| 101 | Calls to C<InvokeEndpoint> are authenticated by using AWS Signature | ||
| 102 | Version 4. For information, see Authenticating Requests (AWS Signature | ||
| 103 | Version 4) | ||
| 104 | (https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html) | ||
| 105 | in the I<Amazon S3 API Reference>. | ||
| 106 | |||
| 107 | A customer's model containers must respond to requests within 60 | ||
| 108 | seconds. The model itself can have a maximum processing time of 60 | ||
| 109 | seconds before responding to invocations. If your model is going to | ||
| 110 | take 50-60 seconds of processing time, the SDK socket timeout should be | ||
| 111 | set to be 70 seconds. | ||
| 112 | |||
| 113 | Endpoints are scoped to an individual account, and are not public. The | ||
| 114 | URL does not contain the account ID, but Amazon SageMaker determines | ||
| 115 | the account ID from the authentication token that is supplied by the | ||
| 116 | caller. | ||
| 117 | |||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | =head1 PAGINATORS | ||
| 122 | |||
| 123 | Paginator methods are helpers that repetively call methods that return partial results | ||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | |||
| 128 | =head1 SEE ALSO | ||
| 129 | |||
| 130 | This service class forms part of L<Paws> | ||
| 131 | |||
| 132 | =head1 BUGS and CONTRIBUTIONS | ||
| 133 | |||
| 134 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 135 | |||
| 136 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 137 | |||
| 138 | =cut | ||
| 139 |