blib/lib/Paws/Transcribe/CreateVocabulary.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::CreateVocabulary;
3 use Moose;
4 has LanguageCode => (is => 'ro', isa => 'Str', required => 1);
5 has Phrases => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
6 has VocabularyFileUri => (is => 'ro', isa => 'Str');
7 has VocabularyName => (is => 'ro', isa => 'Str', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateVocabulary');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Transcribe::CreateVocabularyResponse');
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::CreateVocabulary - Arguments for method CreateVocabulary on L<Paws::Transcribe>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreateVocabulary on the
25 L<Amazon Transcribe Service|Paws::Transcribe> service. Use the attributes of this class
26 as arguments to method CreateVocabulary.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateVocabulary.
29  
30 =head1 SYNOPSIS
31  
32 my $transcribe = Paws->service('Transcribe');
33 my $CreateVocabularyResponse = $transcribe->CreateVocabulary(
34 LanguageCode => 'af-ZA',
35 VocabularyName => 'MyVocabularyName',
36 Phrases => [
37 'MyPhrase', ... # max: 256
38 ], # OPTIONAL
39 VocabularyFileUri => 'MyUri', # OPTIONAL
40 );
41  
42 # Results:
43 my $FailureReason = $CreateVocabularyResponse->FailureReason;
44 my $LanguageCode = $CreateVocabularyResponse->LanguageCode;
45 my $LastModifiedTime = $CreateVocabularyResponse->LastModifiedTime;
46 my $VocabularyName = $CreateVocabularyResponse->VocabularyName;
47 my $VocabularyState = $CreateVocabularyResponse->VocabularyState;
48  
49 # Returns a L<Paws::Transcribe::CreateVocabularyResponse> object.
50  
51 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.
52 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/transcribe/CreateVocabulary>
53  
54 =head1 ATTRIBUTES
55  
56  
57 =head2 B<REQUIRED> LanguageCode => Str
58  
59 The language code of the vocabulary entries. For a list of languages
60 and their corresponding language codes, see what-is-transcribe.
61  
62 Valid values are: C<"af-ZA">, C<"ar-AE">, C<"ar-SA">, C<"cy-GB">, C<"da-DK">, C<"de-CH">, C<"de-DE">, C<"en-AB">, C<"en-AU">, C<"en-GB">, C<"en-IE">, C<"en-IN">, C<"en-US">, C<"en-WL">, C<"es-ES">, C<"es-US">, C<"fa-IR">, C<"fr-CA">, C<"fr-FR">, C<"ga-IE">, C<"gd-GB">, C<"he-IL">, C<"hi-IN">, C<"id-ID">, C<"it-IT">, C<"ja-JP">, C<"ko-KR">, C<"ms-MY">, C<"nl-NL">, C<"pt-BR">, C<"pt-PT">, C<"ru-RU">, C<"ta-IN">, C<"te-IN">, C<"tr-TR">, C<"zh-CN">
63  
64 =head2 Phrases => ArrayRef[Str|Undef]
65  
66 An array of strings that contains the vocabulary entries.
67  
68  
69  
70 =head2 VocabularyFileUri => Str
71  
72 The S3 location of the text file that contains the definition of the
73 custom vocabulary. The URI must be in the same region as the API
74 endpoint that you are calling. The general form is
75  
76 For more information about S3 object names, see Object Keys
77 (http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#object-keys)
78 in the I<Amazon S3 Developer Guide>.
79  
80 For more information about custom vocabularies, see Custom Vocabularies
81 (http://docs.aws.amazon.com/transcribe/latest/dg/how-vocabulary).
82  
83  
84  
85 =head2 B<REQUIRED> VocabularyName => Str
86  
87 The name of the vocabulary. The name must be unique within an AWS
88 account. The name is case sensitive. If you try to create a vocabulary
89 with the same name as a previous vocabulary you will receive a
90 C<ConflictException> error.
91  
92  
93  
94  
95 =head1 SEE ALSO
96  
97 This class forms part of L<Paws>, documenting arguments for method CreateVocabulary in L<Paws::Transcribe>
98  
99 =head1 BUGS and CONTRIBUTIONS
100  
101 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
102  
103 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
104  
105 =cut
106