blib/lib/Paws/SageMaker/CreateDataQualityJobDefinition.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SageMaker::CreateDataQualityJobDefinition;
3 use Moose;
4 has DataQualityAppSpecification => (is => 'ro', isa => 'Paws::SageMaker::DataQualityAppSpecification', required => 1);
5 has DataQualityBaselineConfig => (is => 'ro', isa => 'Paws::SageMaker::DataQualityBaselineConfig');
6 has DataQualityJobInput => (is => 'ro', isa => 'Paws::SageMaker::DataQualityJobInput', required => 1);
7 has DataQualityJobOutputConfig => (is => 'ro', isa => 'Paws::SageMaker::MonitoringOutputConfig', required => 1);
8 has JobDefinitionName => (is => 'ro', isa => 'Str', required => 1);
9 has JobResources => (is => 'ro', isa => 'Paws::SageMaker::MonitoringResources', required => 1);
10 has NetworkConfig => (is => 'ro', isa => 'Paws::SageMaker::MonitoringNetworkConfig');
11 has RoleArn => (is => 'ro', isa => 'Str', required => 1);
12 has StoppingCondition => (is => 'ro', isa => 'Paws::SageMaker::MonitoringStoppingCondition');
13 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::SageMaker::Tag]');
14  
15 use MooseX::ClassAttribute;
16  
17 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDataQualityJobDefinition');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SageMaker::CreateDataQualityJobDefinitionResponse');
19 class_has _result_key => (isa => 'Str', is => 'ro');
20 1;
21  
22 ### main pod documentation begin ###
23  
24 =head1 NAME
25  
26 Paws::SageMaker::CreateDataQualityJobDefinition - Arguments for method CreateDataQualityJobDefinition on L<Paws::SageMaker>
27  
28 =head1 DESCRIPTION
29  
30 This class represents the parameters used for calling the method CreateDataQualityJobDefinition on the
31 L<Amazon SageMaker Service|Paws::SageMaker> service. Use the attributes of this class
32 as arguments to method CreateDataQualityJobDefinition.
33  
34 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDataQualityJobDefinition.
35  
36 =head1 SYNOPSIS
37  
38 my $api.sagemaker = Paws->service('SageMaker');
39 my $CreateDataQualityJobDefinitionResponse =
40 $api . sagemaker->CreateDataQualityJobDefinition(
41 DataQualityAppSpecification => {
42 ImageUri => 'MyImageUri', # max: 255
43 ContainerArguments => [
44 'MyContainerArgument', ... # max: 256
45 ], # min: 1, max: 50; OPTIONAL
46 ContainerEntrypoint => [
47 'MyContainerEntrypointString', ... # max: 256
48 ], # min: 1, max: 100; OPTIONAL
49 Environment => {
50 'MyProcessingEnvironmentKey' =>
51 'MyProcessingEnvironmentValue', # key: max: 256, value: max: 256
52 }, # max: 50; OPTIONAL
53 PostAnalyticsProcessorSourceUri => 'MyS3Uri', # max: 1024; OPTIONAL
54 RecordPreprocessorSourceUri => 'MyS3Uri', # max: 1024; OPTIONAL
55 },
56 DataQualityJobInput => {
57 EndpointInput => {
58 EndpointName => 'MyEndpointName', # max: 63
59 LocalPath => 'MyProcessingLocalPath', # max: 256
60 EndTimeOffset =>
61 'MyMonitoringTimeOffsetString', # min: 1, max: 15; OPTIONAL
62 FeaturesAttribute => 'MyString', # OPTIONAL
63 InferenceAttribute => 'MyString', # OPTIONAL
64 ProbabilityAttribute => 'MyString', # OPTIONAL
65 ProbabilityThresholdAttribute => 1, # OPTIONAL
66 S3DataDistributionType => 'FullyReplicated'
67 , # values: FullyReplicated, ShardedByS3Key; OPTIONAL
68 S3InputMode => 'Pipe', # values: Pipe, File; OPTIONAL
69 StartTimeOffset =>
70 'MyMonitoringTimeOffsetString', # min: 1, max: 15; OPTIONAL
71 },
72  
73 },
74 DataQualityJobOutputConfig => {
75 MonitoringOutputs => [
76 {
77 S3Output => {
78 LocalPath => 'MyProcessingLocalPath', # max: 256
79 S3Uri => 'MyMonitoringS3Uri', # max: 512
80 S3UploadMode =>
81 'Continuous', # values: Continuous, EndOfJob; OPTIONAL
82 },
83  
84 },
85 ...
86 ], # min: 1, max: 1
87 KmsKeyId => 'MyKmsKeyId', # max: 2048; OPTIONAL
88 },
89 JobDefinitionName => 'MyMonitoringJobDefinitionName',
90 JobResources => {
91 ClusterConfig => {
92 InstanceCount => 1, # min: 1, max: 100
93 InstanceType => 'ml.t3.medium'
94 , # values: ml.t3.medium, ml.t3.large, ml.t3.xlarge, ml.t3.2xlarge, ml.m4.xlarge, ml.m4.2xlarge, ml.m4.4xlarge, ml.m4.10xlarge, ml.m4.16xlarge, ml.c4.xlarge, ml.c4.2xlarge, ml.c4.4xlarge, ml.c4.8xlarge, ml.p2.xlarge, ml.p2.8xlarge, ml.p2.16xlarge, ml.p3.2xlarge, ml.p3.8xlarge, ml.p3.16xlarge, ml.c5.xlarge, ml.c5.2xlarge, ml.c5.4xlarge, ml.c5.9xlarge, ml.c5.18xlarge, ml.m5.large, ml.m5.xlarge, ml.m5.2xlarge, ml.m5.4xlarge, ml.m5.12xlarge, ml.m5.24xlarge, ml.r5.large, ml.r5.xlarge, ml.r5.2xlarge, ml.r5.4xlarge, ml.r5.8xlarge, ml.r5.12xlarge, ml.r5.16xlarge, ml.r5.24xlarge, ml.g4dn.xlarge, ml.g4dn.2xlarge, ml.g4dn.4xlarge, ml.g4dn.8xlarge, ml.g4dn.12xlarge, ml.g4dn.16xlarge
95 VolumeSizeInGB => 1, # min: 1, max: 16384
96 VolumeKmsKeyId => 'MyKmsKeyId', # max: 2048; OPTIONAL
97 },
98  
99 },
100 RoleArn => 'MyRoleArn',
101 DataQualityBaselineConfig => {
102 BaseliningJobName => 'MyProcessingJobName', # min: 1, max: 63; OPTIONAL
103 ConstraintsResource => {
104 S3Uri => 'MyS3Uri', # max: 1024; OPTIONAL
105 }, # OPTIONAL
106 StatisticsResource => {
107 S3Uri => 'MyS3Uri', # max: 1024; OPTIONAL
108 }, # OPTIONAL
109 }, # OPTIONAL
110 NetworkConfig => {
111 EnableInterContainerTrafficEncryption => 1, # OPTIONAL
112 EnableNetworkIsolation => 1, # OPTIONAL
113 VpcConfig => {
114 SecurityGroupIds => [
115 'MySecurityGroupId', ... # max: 32
116 ], # min: 1, max: 5
117 Subnets => [
118 'MySubnetId', ... # max: 32
119 ], # min: 1, max: 16
120  
121 }, # OPTIONAL
122 }, # OPTIONAL
123 StoppingCondition => {
124 MaxRuntimeInSeconds => 1, # min: 1, max: 86400
125  
126 }, # OPTIONAL
127 Tags => [
128 {
129 Key => 'MyTagKey', # min: 1, max: 128
130 Value => 'MyTagValue', # max: 256
131  
132 },
133 ...
134 ], # OPTIONAL
135 );
136  
137 # Results:
138 my $JobDefinitionArn =
139 $CreateDataQualityJobDefinitionResponse->JobDefinitionArn;
140  
141 # Returns a L<Paws::SageMaker::CreateDataQualityJobDefinitionResponse> object.
142  
143 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.
144 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.sagemaker/CreateDataQualityJobDefinition>
145  
146 =head1 ATTRIBUTES
147  
148  
149 =head2 B<REQUIRED> DataQualityAppSpecification => L<Paws::SageMaker::DataQualityAppSpecification>
150  
151 Specifies the container that runs the monitoring job.
152  
153  
154  
155 =head2 DataQualityBaselineConfig => L<Paws::SageMaker::DataQualityBaselineConfig>
156  
157 Configures the constraints and baselines for the monitoring job.
158  
159  
160  
161 =head2 B<REQUIRED> DataQualityJobInput => L<Paws::SageMaker::DataQualityJobInput>
162  
163 A list of inputs for the monitoring job. Currently endpoints are
164 supported as monitoring inputs.
165  
166  
167  
168 =head2 B<REQUIRED> DataQualityJobOutputConfig => L<Paws::SageMaker::MonitoringOutputConfig>
169  
170  
171  
172  
173  
174 =head2 B<REQUIRED> JobDefinitionName => Str
175  
176 The name for the monitoring job definition.
177  
178  
179  
180 =head2 B<REQUIRED> JobResources => L<Paws::SageMaker::MonitoringResources>
181  
182  
183  
184  
185  
186 =head2 NetworkConfig => L<Paws::SageMaker::MonitoringNetworkConfig>
187  
188 Specifies networking configuration for the monitoring job.
189  
190  
191  
192 =head2 B<REQUIRED> RoleArn => Str
193  
194 The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can
195 assume to perform tasks on your behalf.
196  
197  
198  
199 =head2 StoppingCondition => L<Paws::SageMaker::MonitoringStoppingCondition>
200  
201  
202  
203  
204  
205 =head2 Tags => ArrayRef[L<Paws::SageMaker::Tag>]
206  
207 (Optional) An array of key-value pairs. For more information, see Using
208 Cost Allocation Tags
209 (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL)
210 in the I<Amazon Web Services Billing and Cost Management User Guide>.
211  
212  
213  
214  
215 =head1 SEE ALSO
216  
217 This class forms part of L<Paws>, documenting arguments for method CreateDataQualityJobDefinition in L<Paws::SageMaker>
218  
219 =head1 BUGS and CONTRIBUTIONS
220  
221 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
222  
223 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
224  
225 =cut
226