« blib/lib/Paws/SageMaker/CreateModel.pm
↑ Summary
blib/lib/Paws/SageMaker/CreateModelBiasJobDefinitionResponse.pm »
| 1 | |||
| 2 | package Paws::SageMaker::CreateModelBiasJobDefinition; | ||
| 3 | use Moose; | ||
| 4 | has JobDefinitionName => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has JobResources => (is => 'ro', isa => 'Paws::SageMaker::MonitoringResources', required => 1); | ||
| 6 | has ModelBiasAppSpecification => (is => 'ro', isa => 'Paws::SageMaker::ModelBiasAppSpecification', required => 1); | ||
| 7 | has ModelBiasBaselineConfig => (is => 'ro', isa => 'Paws::SageMaker::ModelBiasBaselineConfig'); | ||
| 8 | has ModelBiasJobInput => (is => 'ro', isa => 'Paws::SageMaker::ModelBiasJobInput', required => 1); | ||
| 9 | has ModelBiasJobOutputConfig => (is => 'ro', isa => 'Paws::SageMaker::MonitoringOutputConfig', 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 => 'CreateModelBiasJobDefinition'); | ||
| 18 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SageMaker::CreateModelBiasJobDefinitionResponse'); | ||
| 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::CreateModelBiasJobDefinition - Arguments for method CreateModelBiasJobDefinition on L<Paws::SageMaker> | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | This class represents the parameters used for calling the method CreateModelBiasJobDefinition on the | ||
| 31 | L<Amazon SageMaker Service|Paws::SageMaker> service. Use the attributes of this class | ||
| 32 | as arguments to method CreateModelBiasJobDefinition. | ||
| 33 | |||
| 34 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateModelBiasJobDefinition. | ||
| 35 | |||
| 36 | =head1 SYNOPSIS | ||
| 37 | |||
| 38 | my $api.sagemaker = Paws->service('SageMaker'); | ||
| 39 | my $CreateModelBiasJobDefinitionResponse = | ||
| 40 | $api . sagemaker->CreateModelBiasJobDefinition( | ||
| 41 | JobDefinitionName => 'MyMonitoringJobDefinitionName', | ||
| 42 | JobResources => { | ||
| 43 | ClusterConfig => { | ||
| 44 | InstanceCount => 1, # min: 1, max: 100 | ||
| 45 | InstanceType => 'ml.t3.medium' | ||
| 46 | , # 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 | ||
| 47 | VolumeSizeInGB => 1, # min: 1, max: 16384 | ||
| 48 | VolumeKmsKeyId => 'MyKmsKeyId', # max: 2048; OPTIONAL | ||
| 49 | }, | ||
| 50 | |||
| 51 | }, | ||
| 52 | ModelBiasAppSpecification => { | ||
| 53 | ConfigUri => 'MyS3Uri', # max: 1024 | ||
| 54 | ImageUri => 'MyImageUri', # max: 255 | ||
| 55 | Environment => { | ||
| 56 | 'MyProcessingEnvironmentKey' => | ||
| 57 | 'MyProcessingEnvironmentValue', # key: max: 256, value: max: 256 | ||
| 58 | }, # max: 50; OPTIONAL | ||
| 59 | }, | ||
| 60 | ModelBiasJobInput => { | ||
| 61 | EndpointInput => { | ||
| 62 | EndpointName => 'MyEndpointName', # max: 63 | ||
| 63 | LocalPath => 'MyProcessingLocalPath', # max: 256 | ||
| 64 | EndTimeOffset => | ||
| 65 | 'MyMonitoringTimeOffsetString', # min: 1, max: 15; OPTIONAL | ||
| 66 | FeaturesAttribute => 'MyString', # OPTIONAL | ||
| 67 | InferenceAttribute => 'MyString', # OPTIONAL | ||
| 68 | ProbabilityAttribute => 'MyString', # OPTIONAL | ||
| 69 | ProbabilityThresholdAttribute => 1, # OPTIONAL | ||
| 70 | S3DataDistributionType => 'FullyReplicated' | ||
| 71 | , # values: FullyReplicated, ShardedByS3Key; OPTIONAL | ||
| 72 | S3InputMode => 'Pipe', # values: Pipe, File; OPTIONAL | ||
| 73 | StartTimeOffset => | ||
| 74 | 'MyMonitoringTimeOffsetString', # min: 1, max: 15; OPTIONAL | ||
| 75 | }, | ||
| 76 | GroundTruthS3Input => { | ||
| 77 | S3Uri => 'MyMonitoringS3Uri', # max: 512; OPTIONAL | ||
| 78 | }, | ||
| 79 | |||
| 80 | }, | ||
| 81 | ModelBiasJobOutputConfig => { | ||
| 82 | MonitoringOutputs => [ | ||
| 83 | { | ||
| 84 | S3Output => { | ||
| 85 | LocalPath => 'MyProcessingLocalPath', # max: 256 | ||
| 86 | S3Uri => 'MyMonitoringS3Uri', # max: 512; OPTIONAL | ||
| 87 | S3UploadMode => | ||
| 88 | 'Continuous', # values: Continuous, EndOfJob; OPTIONAL | ||
| 89 | }, | ||
| 90 | |||
| 91 | }, | ||
| 92 | ... | ||
| 93 | ], # min: 1, max: 1 | ||
| 94 | KmsKeyId => 'MyKmsKeyId', # max: 2048; OPTIONAL | ||
| 95 | }, | ||
| 96 | RoleArn => 'MyRoleArn', | ||
| 97 | ModelBiasBaselineConfig => { | ||
| 98 | BaseliningJobName => 'MyProcessingJobName', # min: 1, max: 63; OPTIONAL | ||
| 99 | ConstraintsResource => { | ||
| 100 | S3Uri => 'MyS3Uri', # max: 1024 | ||
| 101 | }, # OPTIONAL | ||
| 102 | }, # OPTIONAL | ||
| 103 | NetworkConfig => { | ||
| 104 | EnableInterContainerTrafficEncryption => 1, # OPTIONAL | ||
| 105 | EnableNetworkIsolation => 1, # OPTIONAL | ||
| 106 | VpcConfig => { | ||
| 107 | SecurityGroupIds => [ | ||
| 108 | 'MySecurityGroupId', ... # max: 32 | ||
| 109 | ], # min: 1, max: 5 | ||
| 110 | Subnets => [ | ||
| 111 | 'MySubnetId', ... # max: 32 | ||
| 112 | ], # min: 1, max: 16 | ||
| 113 | |||
| 114 | }, # OPTIONAL | ||
| 115 | }, # OPTIONAL | ||
| 116 | StoppingCondition => { | ||
| 117 | MaxRuntimeInSeconds => 1, # min: 1, max: 86400 | ||
| 118 | |||
| 119 | }, # OPTIONAL | ||
| 120 | Tags => [ | ||
| 121 | { | ||
| 122 | Key => 'MyTagKey', # min: 1, max: 128 | ||
| 123 | Value => 'MyTagValue', # max: 256 | ||
| 124 | |||
| 125 | }, | ||
| 126 | ... | ||
| 127 | ], # OPTIONAL | ||
| 128 | ); | ||
| 129 | |||
| 130 | # Results: | ||
| 131 | my $JobDefinitionArn = | ||
| 132 | $CreateModelBiasJobDefinitionResponse->JobDefinitionArn; | ||
| 133 | |||
| 134 | # Returns a L<Paws::SageMaker::CreateModelBiasJobDefinitionResponse> object. | ||
| 135 | |||
| 136 | 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. | ||
| 137 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.sagemaker/CreateModelBiasJobDefinition> | ||
| 138 | |||
| 139 | =head1 ATTRIBUTES | ||
| 140 | |||
| 141 | |||
| 142 | =head2 B<REQUIRED> JobDefinitionName => Str | ||
| 143 | |||
| 144 | The name of the bias job definition. The name must be unique within an | ||
| 145 | Amazon Web Services Region in the Amazon Web Services account. | ||
| 146 | |||
| 147 | |||
| 148 | |||
| 149 | =head2 B<REQUIRED> JobResources => L<Paws::SageMaker::MonitoringResources> | ||
| 150 | |||
| 151 | |||
| 152 | |||
| 153 | |||
| 154 | |||
| 155 | =head2 B<REQUIRED> ModelBiasAppSpecification => L<Paws::SageMaker::ModelBiasAppSpecification> | ||
| 156 | |||
| 157 | Configures the model bias job to run a specified Docker container | ||
| 158 | image. | ||
| 159 | |||
| 160 | |||
| 161 | |||
| 162 | =head2 ModelBiasBaselineConfig => L<Paws::SageMaker::ModelBiasBaselineConfig> | ||
| 163 | |||
| 164 | The baseline configuration for a model bias job. | ||
| 165 | |||
| 166 | |||
| 167 | |||
| 168 | =head2 B<REQUIRED> ModelBiasJobInput => L<Paws::SageMaker::ModelBiasJobInput> | ||
| 169 | |||
| 170 | Inputs for the model bias job. | ||
| 171 | |||
| 172 | |||
| 173 | |||
| 174 | =head2 B<REQUIRED> ModelBiasJobOutputConfig => L<Paws::SageMaker::MonitoringOutputConfig> | ||
| 175 | |||
| 176 | |||
| 177 | |||
| 178 | |||
| 179 | |||
| 180 | =head2 NetworkConfig => L<Paws::SageMaker::MonitoringNetworkConfig> | ||
| 181 | |||
| 182 | Networking options for a model bias job. | ||
| 183 | |||
| 184 | |||
| 185 | |||
| 186 | =head2 B<REQUIRED> RoleArn => Str | ||
| 187 | |||
| 188 | The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can | ||
| 189 | assume to perform tasks on your behalf. | ||
| 190 | |||
| 191 | |||
| 192 | |||
| 193 | =head2 StoppingCondition => L<Paws::SageMaker::MonitoringStoppingCondition> | ||
| 194 | |||
| 195 | |||
| 196 | |||
| 197 | |||
| 198 | |||
| 199 | =head2 Tags => ArrayRef[L<Paws::SageMaker::Tag>] | ||
| 200 | |||
| 201 | (Optional) An array of key-value pairs. For more information, see Using | ||
| 202 | Cost Allocation Tags | ||
| 203 | (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-whatURL) | ||
| 204 | in the I<Amazon Web Services Billing and Cost Management User Guide>. | ||
| 205 | |||
| 206 | |||
| 207 | |||
| 208 | |||
| 209 | =head1 SEE ALSO | ||
| 210 | |||
| 211 | This class forms part of L<Paws>, documenting arguments for method CreateModelBiasJobDefinition in L<Paws::SageMaker> | ||
| 212 | |||
| 213 | =head1 BUGS and CONTRIBUTIONS | ||
| 214 | |||
| 215 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 216 | |||
| 217 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 218 | |||
| 219 | =cut | ||
| 220 |