blib/lib/Paws/Transcribe/CreateLanguageModel.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Transcribe::CreateLanguageModel;
3 use Moose;
4 has BaseModelName => (is => 'ro', isa => 'Str', required => 1);
5 has InputDataConfig => (is => 'ro', isa => 'Paws::Transcribe::InputDataConfig', required => 1);
6 has LanguageCode => (is => 'ro', isa => 'Str', required => 1);
7 has ModelName => (is => 'ro', isa => 'Str', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLanguageModel');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Transcribe::CreateLanguageModelResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::Transcribe::CreateLanguageModel - Arguments for method CreateLanguageModel on L<Paws::Transcribe>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreateLanguageModel on the
25 L<Amazon Transcribe Service|Paws::Transcribe> service. Use the attributes of this class
26 as arguments to method CreateLanguageModel.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLanguageModel.
29  
30 =head1 SYNOPSIS
31  
32 my $transcribe = Paws->service('Transcribe');
33 my $CreateLanguageModelResponse = $transcribe->CreateLanguageModel(
34 BaseModelName => 'NarrowBand',
35 InputDataConfig => {
36 DataAccessRoleArn => 'MyDataAccessRoleArn', # min: 20, max: 2048
37 S3Uri => 'MyUri', # min: 1, max: 2000
38 TuningDataS3Uri => 'MyUri', # min: 1, max: 2000
39 },
40 LanguageCode => 'en-US',
41 ModelName => 'MyModelName',
42  
43 );
44  
45 # Results:
46 my $BaseModelName = $CreateLanguageModelResponse->BaseModelName;
47 my $InputDataConfig = $CreateLanguageModelResponse->InputDataConfig;
48 my $LanguageCode = $CreateLanguageModelResponse->LanguageCode;
49 my $ModelName = $CreateLanguageModelResponse->ModelName;
50 my $ModelStatus = $CreateLanguageModelResponse->ModelStatus;
51  
52 # Returns a L<Paws::Transcribe::CreateLanguageModelResponse> object.
53  
54 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.
55 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/transcribe/CreateLanguageModel>
56  
57 =head1 ATTRIBUTES
58  
59  
60 =head2 B<REQUIRED> BaseModelName => Str
61  
62 The Amazon Transcribe standard language model, or base model used to
63 create your custom language model.
64  
65 If you want to use your custom language model to transcribe audio with
66 a sample rate of 16 kHz or greater, choose C<Wideband>.
67  
68 If you want to use your custom language model to transcribe audio with
69 a sample rate that is less than 16 kHz, choose C<Narrowband>.
70  
71 Valid values are: C<"NarrowBand">, C<"WideBand">
72  
73 =head2 B<REQUIRED> InputDataConfig => L<Paws::Transcribe::InputDataConfig>
74  
75 Contains the data access role and the Amazon S3 prefixes to read the
76 required input files to create a custom language model.
77  
78  
79  
80 =head2 B<REQUIRED> LanguageCode => Str
81  
82 The language of the input text you're using to train your custom
83 language model.
84  
85 Valid values are: C<"en-US">, C<"hi-IN">, C<"es-US">, C<"en-GB">, C<"en-AU">
86  
87 =head2 B<REQUIRED> ModelName => Str
88  
89 The name you choose for your custom language model when you create it.
90  
91  
92  
93  
94 =head1 SEE ALSO
95  
96 This class forms part of L<Paws>, documenting arguments for method CreateLanguageModel in L<Paws::Transcribe>
97  
98 =head1 BUGS and CONTRIBUTIONS
99  
100 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
101  
102 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
103  
104 =cut
105