« blib/lib/Paws/Rekognition/CreateProjectResponse.pm
↑ Summary
blib/lib/Paws/Rekognition/CreateProjectVersionResponse.pm »
| 1 | |||
| 2 | package Paws::Rekognition::CreateProjectVersion; | ||
| 3 | use Moose; | ||
| 4 | has KmsKeyId => (is => 'ro', isa => 'Str'); | ||
| 5 | has OutputConfig => (is => 'ro', isa => 'Paws::Rekognition::OutputConfig', required => 1); | ||
| 6 | has ProjectArn => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has Tags => (is => 'ro', isa => 'Paws::Rekognition::TagMap'); | ||
| 8 | has TestingData => (is => 'ro', isa => 'Paws::Rekognition::TestingData', required => 1); | ||
| 9 | has TrainingData => (is => 'ro', isa => 'Paws::Rekognition::TrainingData', required => 1); | ||
| 10 | has VersionName => (is => 'ro', isa => 'Str', required => 1); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateProjectVersion'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Rekognition::CreateProjectVersionResponse'); | ||
| 16 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::Rekognition::CreateProjectVersion - Arguments for method CreateProjectVersion on L<Paws::Rekognition> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method CreateProjectVersion on the | ||
| 28 | L<Amazon Rekognition|Paws::Rekognition> service. Use the attributes of this class | ||
| 29 | as arguments to method CreateProjectVersion. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateProjectVersion. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $rekognition = Paws->service('Rekognition'); | ||
| 36 | my $CreateProjectVersionResponse = $rekognition->CreateProjectVersion( | ||
| 37 | OutputConfig => { | ||
| 38 | S3Bucket => 'MyS3Bucket', # min: 3, max: 255; OPTIONAL | ||
| 39 | S3KeyPrefix => 'MyS3KeyPrefix', # max: 1024; OPTIONAL | ||
| 40 | }, | ||
| 41 | ProjectArn => 'MyProjectArn', | ||
| 42 | TestingData => { | ||
| 43 | Assets => [ | ||
| 44 | { | ||
| 45 | GroundTruthManifest => { | ||
| 46 | S3Object => { | ||
| 47 | Bucket => 'MyS3Bucket', # min: 3, max: 255; OPTIONAL | ||
| 48 | Name => 'MyS3ObjectName', # min: 1, max: 1024; OPTIONAL | ||
| 49 | Version => 'MyS3ObjectVersion', # min: 1, max: 1024; OPTIONAL | ||
| 50 | }, # OPTIONAL | ||
| 51 | }, # OPTIONAL | ||
| 52 | }, | ||
| 53 | ... | ||
| 54 | ], # OPTIONAL | ||
| 55 | AutoCreate => 1, # OPTIONAL | ||
| 56 | }, | ||
| 57 | TrainingData => { | ||
| 58 | Assets => [ | ||
| 59 | { | ||
| 60 | GroundTruthManifest => { | ||
| 61 | S3Object => { | ||
| 62 | Bucket => 'MyS3Bucket', # min: 3, max: 255; OPTIONAL | ||
| 63 | Name => 'MyS3ObjectName', # min: 1, max: 1024; OPTIONAL | ||
| 64 | Version => 'MyS3ObjectVersion', # min: 1, max: 1024; OPTIONAL | ||
| 65 | }, # OPTIONAL | ||
| 66 | }, # OPTIONAL | ||
| 67 | }, | ||
| 68 | ... | ||
| 69 | ], # OPTIONAL | ||
| 70 | }, | ||
| 71 | VersionName => 'MyVersionName', | ||
| 72 | KmsKeyId => 'MyKmsKeyId', # OPTIONAL | ||
| 73 | Tags => { | ||
| 74 | 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256 | ||
| 75 | }, # OPTIONAL | ||
| 76 | ); | ||
| 77 | |||
| 78 | # Results: | ||
| 79 | my $ProjectVersionArn = $CreateProjectVersionResponse->ProjectVersionArn; | ||
| 80 | |||
| 81 | # Returns a L<Paws::Rekognition::CreateProjectVersionResponse> object. | ||
| 82 | |||
| 83 | 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. | ||
| 84 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/rekognition/CreateProjectVersion> | ||
| 85 | |||
| 86 | =head1 ATTRIBUTES | ||
| 87 | |||
| 88 | |||
| 89 | =head2 KmsKeyId => Str | ||
| 90 | |||
| 91 | The identifier for your AWS Key Management Service (AWS KMS) customer | ||
| 92 | master key (CMK). You can supply the Amazon Resource Name (ARN) of your | ||
| 93 | CMK, the ID of your CMK, or an alias for your CMK. The key is used to | ||
| 94 | encrypt training and test images copied into the service for model | ||
| 95 | training. Your source images are unaffected. The key is also used to | ||
| 96 | encrypt training results and manifest files written to the output | ||
| 97 | Amazon S3 bucket (C<OutputConfig>). | ||
| 98 | |||
| 99 | If you don't specify a value for C<KmsKeyId>, images copied into the | ||
| 100 | service are encrypted using a key that AWS owns and manages. | ||
| 101 | |||
| 102 | |||
| 103 | |||
| 104 | =head2 B<REQUIRED> OutputConfig => L<Paws::Rekognition::OutputConfig> | ||
| 105 | |||
| 106 | The Amazon S3 location to store the results of training. | ||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | =head2 B<REQUIRED> ProjectArn => Str | ||
| 111 | |||
| 112 | The ARN of the Amazon Rekognition Custom Labels project that manages | ||
| 113 | the model that you want to train. | ||
| 114 | |||
| 115 | |||
| 116 | |||
| 117 | =head2 Tags => L<Paws::Rekognition::TagMap> | ||
| 118 | |||
| 119 | A set of tags (key-value pairs) that you want to attach to the model. | ||
| 120 | |||
| 121 | |||
| 122 | |||
| 123 | =head2 B<REQUIRED> TestingData => L<Paws::Rekognition::TestingData> | ||
| 124 | |||
| 125 | The dataset to use for testing. | ||
| 126 | |||
| 127 | |||
| 128 | |||
| 129 | =head2 B<REQUIRED> TrainingData => L<Paws::Rekognition::TrainingData> | ||
| 130 | |||
| 131 | The dataset to use for training. | ||
| 132 | |||
| 133 | |||
| 134 | |||
| 135 | =head2 B<REQUIRED> VersionName => Str | ||
| 136 | |||
| 137 | A name for the version of the model. This value must be unique. | ||
| 138 | |||
| 139 | |||
| 140 | |||
| 141 | |||
| 142 | =head1 SEE ALSO | ||
| 143 | |||
| 144 | This class forms part of L<Paws>, documenting arguments for method CreateProjectVersion in L<Paws::Rekognition> | ||
| 145 | |||
| 146 | =head1 BUGS and CONTRIBUTIONS | ||
| 147 | |||
| 148 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 149 | |||
| 150 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 151 | |||
| 152 | =cut | ||
| 153 |