« blib/lib/Paws/FraudDetector/CreateModelResult.pm
↑ Summary
blib/lib/Paws/FraudDetector/CreateModelVersionResult.pm »
| 1 | |||
| 2 | package Paws::FraudDetector::CreateModelVersion; | ||
| 3 | use Moose; | ||
| 4 | has ExternalEventsDetail => (is => 'ro', isa => 'Paws::FraudDetector::ExternalEventsDetail', traits => ['NameInRequest'], request_name => 'externalEventsDetail' ); | ||
| 5 | has ModelId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'modelId' , required => 1); | ||
| 6 | has ModelType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'modelType' , required => 1); | ||
| 7 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::FraudDetector::Tag]', traits => ['NameInRequest'], request_name => 'tags' ); | ||
| 8 | has TrainingDataSchema => (is => 'ro', isa => 'Paws::FraudDetector::TrainingDataSchema', traits => ['NameInRequest'], request_name => 'trainingDataSchema' , required => 1); | ||
| 9 | has TrainingDataSource => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'trainingDataSource' , required => 1); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateModelVersion'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::FraudDetector::CreateModelVersionResult'); | ||
| 15 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 16 | 1; | ||
| 17 | |||
| 18 | ### main pod documentation begin ### | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Paws::FraudDetector::CreateModelVersion - Arguments for method CreateModelVersion on L<Paws::FraudDetector> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method CreateModelVersion on the | ||
| 27 | L<Amazon Fraud Detector|Paws::FraudDetector> service. Use the attributes of this class | ||
| 28 | as arguments to method CreateModelVersion. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateModelVersion. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $frauddetector = Paws->service('FraudDetector'); | ||
| 35 | my $CreateModelVersionResult = $frauddetector->CreateModelVersion( | ||
| 36 | ModelId => 'MymodelIdentifier', | ||
| 37 | ModelType => 'ONLINE_FRAUD_INSIGHTS', | ||
| 38 | TrainingDataSchema => { | ||
| 39 | LabelSchema => { | ||
| 40 | LabelMapper => { 'Mystring' => [ 'Mystring', ... ], }, | ||
| 41 | |||
| 42 | }, | ||
| 43 | ModelVariables => [ 'Mystring', ... ], | ||
| 44 | |||
| 45 | }, | ||
| 46 | TrainingDataSource => 'EXTERNAL_EVENTS', | ||
| 47 | ExternalEventsDetail => { | ||
| 48 | DataAccessRoleArn => 'MyiamRoleArn', # min: 1, max: 256 | ||
| 49 | DataLocation => 'Mys3BucketLocation', # min: 1, max: 512 | ||
| 50 | |||
| 51 | }, # OPTIONAL | ||
| 52 | Tags => [ | ||
| 53 | { | ||
| 54 | Key => 'MytagKey', # min: 1, max: 128 | ||
| 55 | Value => 'MytagValue', # max: 256 | ||
| 56 | |||
| 57 | }, | ||
| 58 | ... | ||
| 59 | ], # OPTIONAL | ||
| 60 | ); | ||
| 61 | |||
| 62 | # Results: | ||
| 63 | my $ModelId = $CreateModelVersionResult->ModelId; | ||
| 64 | my $ModelType = $CreateModelVersionResult->ModelType; | ||
| 65 | my $ModelVersionNumber = $CreateModelVersionResult->ModelVersionNumber; | ||
| 66 | my $Status = $CreateModelVersionResult->Status; | ||
| 67 | |||
| 68 | # Returns a L<Paws::FraudDetector::CreateModelVersionResult> object. | ||
| 69 | |||
| 70 | 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. | ||
| 71 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/frauddetector/CreateModelVersion> | ||
| 72 | |||
| 73 | =head1 ATTRIBUTES | ||
| 74 | |||
| 75 | |||
| 76 | =head2 ExternalEventsDetail => L<Paws::FraudDetector::ExternalEventsDetail> | ||
| 77 | |||
| 78 | Details for the external events data used for model version training. | ||
| 79 | Required if C<trainingDataSource> is C<EXTERNAL_EVENTS>. | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | =head2 B<REQUIRED> ModelId => Str | ||
| 84 | |||
| 85 | The model ID. | ||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | =head2 B<REQUIRED> ModelType => Str | ||
| 90 | |||
| 91 | The model type. | ||
| 92 | |||
| 93 | Valid values are: C<"ONLINE_FRAUD_INSIGHTS"> | ||
| 94 | |||
| 95 | =head2 Tags => ArrayRef[L<Paws::FraudDetector::Tag>] | ||
| 96 | |||
| 97 | A collection of key and value pairs. | ||
| 98 | |||
| 99 | |||
| 100 | |||
| 101 | =head2 B<REQUIRED> TrainingDataSchema => L<Paws::FraudDetector::TrainingDataSchema> | ||
| 102 | |||
| 103 | The training data schema. | ||
| 104 | |||
| 105 | |||
| 106 | |||
| 107 | =head2 B<REQUIRED> TrainingDataSource => Str | ||
| 108 | |||
| 109 | The training data source location in Amazon S3. | ||
| 110 | |||
| 111 | Valid values are: C<"EXTERNAL_EVENTS"> | ||
| 112 | |||
| 113 | |||
| 114 | =head1 SEE ALSO | ||
| 115 | |||
| 116 | This class forms part of L<Paws>, documenting arguments for method CreateModelVersion in L<Paws::FraudDetector> | ||
| 117 | |||
| 118 | =head1 BUGS and CONTRIBUTIONS | ||
| 119 | |||
| 120 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 121 | |||
| 122 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 123 | |||
| 124 | =cut | ||
| 125 |