blib/lib/Paws/Personalize/CreateSolutionVersion.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Personalize::CreateSolutionVersion;
3 use Moose;
4 has SolutionArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'solutionArn' , required => 1);
5 has TrainingMode => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'trainingMode' );
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateSolutionVersion');
10 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Personalize::CreateSolutionVersionResponse');
11 class_has _result_key => (isa => 'Str', is => 'ro');
12 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::Personalize::CreateSolutionVersion - Arguments for method CreateSolutionVersion on L<Paws::Personalize>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method CreateSolutionVersion on the
23 L<Amazon Personalize|Paws::Personalize> service. Use the attributes of this class
24 as arguments to method CreateSolutionVersion.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateSolutionVersion.
27  
28 =head1 SYNOPSIS
29  
30 my $personalize = Paws->service('Personalize');
31 my $CreateSolutionVersionResponse = $personalize->CreateSolutionVersion(
32 SolutionArn => 'MyArn',
33 TrainingMode => 'FULL', # OPTIONAL
34 );
35  
36 # Results:
37 my $SolutionVersionArn = $CreateSolutionVersionResponse->SolutionVersionArn;
38  
39 # Returns a L<Paws::Personalize::CreateSolutionVersionResponse> object.
40  
41 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
42 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/personalize/CreateSolutionVersion>
43  
44 =head1 ATTRIBUTES
45  
46  
47 =head2 B<REQUIRED> SolutionArn => Str
48  
49 The Amazon Resource Name (ARN) of the solution containing the training
50 configuration information.
51  
52  
53  
54 =head2 TrainingMode => Str
55  
56 The scope of training to be performed when creating the solution
57 version. The C<FULL> option trains the solution version based on the
58 entirety of the input solution's training data, while the C<UPDATE>
59 option processes only the data that has changed in comparison to the
60 input solution. Choose C<UPDATE> when you want to incrementally update
61 your solution version instead of creating an entirely new one.
62  
63 The C<UPDATE> option can only be used when you already have an active
64 solution version created from the input solution using the C<FULL>
65 option and the input solution was trained with the User-Personalization
66 (https://docs.aws.amazon.com/personalize/latest/dg/native-recipe-new-item-USER_PERSONALIZATION.html)
67 recipe or the HRNN-Coldstart
68 (https://docs.aws.amazon.com/personalize/latest/dg/native-recipe-hrnn-coldstart.html)
69 recipe.
70  
71 Valid values are: C<"FULL">, C<"UPDATE">
72  
73  
74 =head1 SEE ALSO
75  
76 This class forms part of L<Paws>, documenting arguments for method CreateSolutionVersion in L<Paws::Personalize>
77  
78 =head1 BUGS and CONTRIBUTIONS
79  
80 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
81  
82 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
83  
84 =cut
85