File Coverage

blib/lib/Paws/MachineLearning/CreateDataSourceFromS3.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::MachineLearning::CreateDataSourceFromS3;
3 1     1   377 use Moose;
  1         3  
  1         8  
4             has ComputeStatistics => (is => 'ro', isa => 'Bool');
5             has DataSourceId => (is => 'ro', isa => 'Str', required => 1);
6             has DataSourceName => (is => 'ro', isa => 'Str');
7             has DataSpec => (is => 'ro', isa => 'Paws::MachineLearning::S3DataSpec', required => 1);
8              
9 1     1   5530 use MooseX::ClassAttribute;
  1         3  
  1         11  
10              
11             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDataSourceFromS3');
12             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::MachineLearning::CreateDataSourceFromS3Output');
13             class_has _result_key => (isa => 'Str', is => 'ro');
14             1;
15              
16             ### main pod documentation begin ###
17              
18             =head1 NAME
19              
20             Paws::MachineLearning::CreateDataSourceFromS3 - Arguments for method CreateDataSourceFromS3 on Paws::MachineLearning
21              
22             =head1 DESCRIPTION
23              
24             This class represents the parameters used for calling the method CreateDataSourceFromS3 on the
25             Amazon Machine Learning service. Use the attributes of this class
26             as arguments to method CreateDataSourceFromS3.
27              
28             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDataSourceFromS3.
29              
30             As an example:
31              
32             $service_obj->CreateDataSourceFromS3(Att1 => $value1, Att2 => $value2, ...);
33              
34             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.
35              
36             =head1 ATTRIBUTES
37              
38              
39             =head2 ComputeStatistics => Bool
40              
41             The compute statistics for a C<DataSource>. The statistics are
42             generated from the observation data referenced by a C<DataSource>.
43             Amazon ML uses the statistics internally during C<MLModel> training.
44             This parameter must be set to C<true> if the C<>DataSourceC<> needs to
45             be used for C<MLModel> training.
46              
47              
48              
49             =head2 B<REQUIRED> DataSourceId => Str
50              
51             A user-supplied identifier that uniquely identifies the C<DataSource>.
52              
53              
54              
55             =head2 DataSourceName => Str
56              
57             A user-supplied name or description of the C<DataSource>.
58              
59              
60              
61             =head2 B<REQUIRED> DataSpec => L<Paws::MachineLearning::S3DataSpec>
62              
63             The data specification of a C<DataSource>:
64              
65             =over
66              
67             =item *
68              
69             DataLocationS3 - The Amazon S3 location of the observation data.
70              
71             =item *
72              
73             DataSchemaLocationS3 - The Amazon S3 location of the C<DataSchema>.
74              
75             =item *
76              
77             DataSchema - A JSON string representing the schema. This is not
78             required if C<DataSchemaUri> is specified.
79              
80             =item *
81              
82             DataRearrangement - A JSON string that represents the splitting and
83             rearrangement requirements for the C<Datasource>.
84              
85             Sample - C< "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}">
86              
87             =back
88              
89              
90              
91              
92              
93             =head1 SEE ALSO
94              
95             This class forms part of L<Paws>, documenting arguments for method CreateDataSourceFromS3 in L<Paws::MachineLearning>
96              
97             =head1 BUGS and CONTRIBUTIONS
98              
99             The source code is located here: https://github.com/pplu/aws-sdk-perl
100              
101             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
102              
103             =cut
104