blib/lib/Paws/MachineLearning/CreateDataSourceFromS3.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::MachineLearning::CreateDataSourceFromS3;
3 use Moose;
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 use MooseX::ClassAttribute;
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 L<Paws::MachineLearning>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreateDataSourceFromS3 on the
25 L<Amazon Machine Learning|Paws::MachineLearning> 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 =head1 SYNOPSIS
31  
32 my $machinelearning = Paws->service('MachineLearning');
33 my $CreateDataSourceFromS3Output = $machinelearning->CreateDataSourceFromS3(
34 DataSourceId => 'MyEntityId',
35 DataSpec => {
36 DataLocationS3 => 'MyS3Url', # max: 2048
37 DataRearrangement => 'MyDataRearrangement', # OPTIONAL
38 DataSchema => 'MyDataSchema', # max: 131071; OPTIONAL
39 DataSchemaLocationS3 => 'MyS3Url', # max: 2048
40 },
41 ComputeStatistics => 1, # OPTIONAL
42 DataSourceName => 'MyEntityName', # OPTIONAL
43 );
44  
45 # Results:
46 my $DataSourceId = $CreateDataSourceFromS3Output->DataSourceId;
47  
48 # Returns a L<Paws::MachineLearning::CreateDataSourceFromS3Output> object.
49  
50 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.
51 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/machinelearning/CreateDataSourceFromS3>
52  
53 =head1 ATTRIBUTES
54  
55  
56 =head2 ComputeStatistics => Bool
57  
58 The compute statistics for a C<DataSource>. The statistics are
59 generated from the observation data referenced by a C<DataSource>.
60 Amazon ML uses the statistics internally during C<MLModel> training.
61 This parameter must be set to C<true> if the C<DataSourceC< needs to be
62 used for C<MLModel> training.>>
63  
64  
65  
66 =head2 B<REQUIRED> DataSourceId => Str
67  
68 A user-supplied identifier that uniquely identifies the C<DataSource>.
69  
70  
71  
72 =head2 DataSourceName => Str
73  
74 A user-supplied name or description of the C<DataSource>.
75  
76  
77  
78 =head2 B<REQUIRED> DataSpec => L<Paws::MachineLearning::S3DataSpec>
79  
80 The data specification of a C<DataSource>:
81  
82 =over
83  
84 =item *
85  
86 DataLocationS3 - The Amazon S3 location of the observation data.
87  
88 =item *
89  
90 DataSchemaLocationS3 - The Amazon S3 location of the C<DataSchema>.
91  
92 =item *
93  
94 DataSchema - A JSON string representing the schema. This is not
95 required if C<DataSchemaUri> is specified.
96  
97 =item *
98  
99 DataRearrangement - A JSON string that represents the splitting and
100 rearrangement requirements for the C<Datasource>.
101  
102 Sample - C< "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}">
103  
104 =back
105  
106  
107  
108  
109  
110 =head1 SEE ALSO
111  
112 This class forms part of L<Paws>, documenting arguments for method CreateDataSourceFromS3 in L<Paws::MachineLearning>
113  
114 =head1 BUGS and CONTRIBUTIONS
115  
116 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
117  
118 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
119  
120 =cut
121