blib/lib/Paws/PersonalizeRuntime.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 7 totaltotal 0.0% 0 / 34 CC 1 SCAR 6.9
CC
1
Cov
0%
service
2.0
signing_name
2.0
version
2.0
CRAP 2.0
1 package Paws::PersonalizeRuntime;
2 use Moose;
3 sub service { 'personalize-runtime' }
4 sub signing_name { 'personalize' }
5 sub version { '2018-05-22' }
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 GetPersonalizedRanking {
18 my $self = shift;
19 my $call_object = $self->new_with_coercions('Paws::PersonalizeRuntime::GetPersonalizedRanking', @_);
20 return $self->caller->do_call($self, $call_object);
21 }
22 sub GetRecommendations {
23 my $self = shift;
24 my $call_object = $self->new_with_coercions('Paws::PersonalizeRuntime::GetRecommendations', @_);
25 return $self->caller->do_call($self, $call_object);
26 }
27
28  
29  
30 sub operations { qw/GetPersonalizedRanking GetRecommendations / }
31  
32 1;
33  
34 ### main pod documentation begin ###
35  
36 =head1 NAME
37  
38 Paws::PersonalizeRuntime - Perl Interface to AWS Amazon Personalize Runtime
39  
40 =head1 SYNOPSIS
41  
42 use Paws;
43  
44 my $obj = Paws->service('PersonalizeRuntime');
45 my $res = $obj->Method(
46 Arg1 => $val1,
47 Arg2 => [ 'V1', 'V2' ],
48 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
49 # of the arguments type
50 Arg3 => { Att1 => 'Val1' },
51 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
52 # the constructor of the arguments type
53 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
54 );
55  
56 =head1 DESCRIPTION
57  
58  
59  
60 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22>
61  
62  
63 =head1 METHODS
64  
65 =head2 GetPersonalizedRanking
66  
67 =over
68  
69 =item CampaignArn => Str
70  
71 =item InputList => ArrayRef[Str|Undef]
72  
73 =item UserId => Str
74  
75 =item [Context => L<Paws::PersonalizeRuntime::Context>]
76  
77 =item [FilterArn => Str]
78  
79 =item [FilterValues => L<Paws::PersonalizeRuntime::FilterValues>]
80  
81  
82 =back
83  
84 Each argument is described in detail in: L<Paws::PersonalizeRuntime::GetPersonalizedRanking>
85  
86 Returns: a L<Paws::PersonalizeRuntime::GetPersonalizedRankingResponse> instance
87  
88 Re-ranks a list of recommended items for the given user. The first item
89 in the list is deemed the most likely item to be of interest to the
90 user.
91  
92 The solution backing the campaign must have been created using a recipe
93 of type PERSONALIZED_RANKING.
94  
95  
96 =head2 GetRecommendations
97  
98 =over
99  
100 =item CampaignArn => Str
101  
102 =item [Context => L<Paws::PersonalizeRuntime::Context>]
103  
104 =item [FilterArn => Str]
105  
106 =item [FilterValues => L<Paws::PersonalizeRuntime::FilterValues>]
107  
108 =item [ItemId => Str]
109  
110 =item [NumResults => Int]
111  
112 =item [UserId => Str]
113  
114  
115 =back
116  
117 Each argument is described in detail in: L<Paws::PersonalizeRuntime::GetRecommendations>
118  
119 Returns: a L<Paws::PersonalizeRuntime::GetRecommendationsResponse> instance
120  
121 Returns a list of recommended items. The required input depends on the
122 recipe type used to create the solution backing the campaign, as
123 follows:
124  
125 =over
126  
127 =item *
128  
129 RELATED_ITEMS - C<itemId> required, C<userId> not used
130  
131 =item *
132  
133 USER_PERSONALIZATION - C<itemId> optional, C<userId> required
134  
135 =back
136  
137 Campaigns that are backed by a solution created using a recipe of type
138 PERSONALIZED_RANKING use the API.
139  
140  
141  
142  
143 =head1 PAGINATORS
144  
145 Paginator methods are helpers that repetively call methods that return partial results
146  
147  
148  
149  
150 =head1 SEE ALSO
151  
152 This service class forms part of L<Paws>
153  
154 =head1 BUGS and CONTRIBUTIONS
155  
156 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
157  
158 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
159  
160 =cut
161