File Coverage

blib/lib/Paws/MachineLearning/CreateDataSourceFromRDS.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::CreateDataSourceFromRDS;
3 1     1   577 use Moose;
  1         6  
  1         13  
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 RDSData => (is => 'ro', isa => 'Paws::MachineLearning::RDSDataSpec', required => 1);
8             has RoleARN => (is => 'ro', isa => 'Str', required => 1);
9              
10 1     1   6721 use MooseX::ClassAttribute;
  1         3  
  1         11  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDataSourceFromRDS');
13             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::MachineLearning::CreateDataSourceFromRDSOutput');
14             class_has _result_key => (isa => 'Str', is => 'ro');
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::MachineLearning::CreateDataSourceFromRDS - Arguments for method CreateDataSourceFromRDS on Paws::MachineLearning
22              
23             =head1 DESCRIPTION
24              
25             This class represents the parameters used for calling the method CreateDataSourceFromRDS on the
26             Amazon Machine Learning service. Use the attributes of this class
27             as arguments to method CreateDataSourceFromRDS.
28              
29             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDataSourceFromRDS.
30              
31             As an example:
32              
33             $service_obj->CreateDataSourceFromRDS(Att1 => $value1, Att2 => $value2, ...);
34              
35             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.
36              
37             =head1 ATTRIBUTES
38              
39              
40             =head2 ComputeStatistics => Bool
41              
42             The compute statistics for a C<DataSource>. The statistics are
43             generated from the observation data referenced by a C<DataSource>.
44             Amazon ML uses the statistics internally during C<MLModel> training.
45             This parameter must be set to C<true> if the C<>DataSourceC<> needs to
46             be used for C<MLModel> training.
47              
48              
49              
50             =head2 B<REQUIRED> DataSourceId => Str
51              
52             A user-supplied ID that uniquely identifies the C<DataSource>.
53             Typically, an Amazon Resource Number (ARN) becomes the ID for a
54             C<DataSource>.
55              
56              
57              
58             =head2 DataSourceName => Str
59              
60             A user-supplied name or description of the C<DataSource>.
61              
62              
63              
64             =head2 B<REQUIRED> RDSData => L<Paws::MachineLearning::RDSDataSpec>
65              
66             The data specification of an Amazon RDS C<DataSource>:
67              
68             =over
69              
70             =item *
71              
72             DatabaseInformation -
73              
74             =over
75              
76             =item * C<DatabaseName> - The name of the Amazon RDS database.
77              
78             =item * C<InstanceIdentifier > - A unique identifier for the Amazon RDS
79             database instance.
80              
81             =back
82              
83             =item *
84              
85             DatabaseCredentials - AWS Identity and Access Management (IAM)
86             credentials that are used to connect to the Amazon RDS database.
87              
88             =item *
89              
90             ResourceRole - A role (DataPipelineDefaultResourceRole) assumed by an
91             EC2 instance to carry out the copy task from Amazon RDS to Amazon
92             Simple Storage Service (Amazon S3). For more information, see Role
93             templates for data pipelines.
94              
95             =item *
96              
97             ServiceRole - A role (DataPipelineDefaultRole) assumed by the AWS Data
98             Pipeline service to monitor the progress of the copy task from Amazon
99             RDS to Amazon S3. For more information, see Role templates for data
100             pipelines.
101              
102             =item *
103              
104             SecurityInfo - The security information to use to access an RDS DB
105             instance. You need to set up appropriate ingress rules for the security
106             entity IDs provided to allow access to the Amazon RDS instance. Specify
107             a [C<SubnetId>, C<SecurityGroupIds>] pair for a VPC-based RDS DB
108             instance.
109              
110             =item *
111              
112             SelectSqlQuery - A query that is used to retrieve the observation data
113             for the C<Datasource>.
114              
115             =item *
116              
117             S3StagingLocation - The Amazon S3 location for staging Amazon RDS data.
118             The data retrieved from Amazon RDS using C<SelectSqlQuery> is stored in
119             this location.
120              
121             =item *
122              
123             DataSchemaUri - The Amazon S3 location of the C<DataSchema>.
124              
125             =item *
126              
127             DataSchema - A JSON string representing the schema. This is not
128             required if C<DataSchemaUri> is specified.
129              
130             =item *
131              
132             DataRearrangement - A JSON string that represents the splitting and
133             rearrangement requirements for the C<Datasource>.
134              
135             Sample - C< "{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}">
136              
137             =back
138              
139              
140              
141              
142             =head2 B<REQUIRED> RoleARN => Str
143              
144             The role that Amazon ML assumes on behalf of the user to create and
145             activate a data pipeline in the user's account and copy data using the
146             C<SelectSqlQuery> query from Amazon RDS to Amazon S3.
147              
148              
149              
150              
151             =head1 SEE ALSO
152              
153             This class forms part of L<Paws>, documenting arguments for method CreateDataSourceFromRDS in L<Paws::MachineLearning>
154              
155             =head1 BUGS and CONTRIBUTIONS
156              
157             The source code is located here: https://github.com/pplu/aws-sdk-perl
158              
159             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
160              
161             =cut
162