blib/lib/Paws/Translate/ImportTerminology.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Translate::ImportTerminology;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str');
5 has EncryptionKey => (is => 'ro', isa => 'Paws::Translate::EncryptionKey');
6 has MergeStrategy => (is => 'ro', isa => 'Str', required => 1);
7 has Name => (is => 'ro', isa => 'Str', required => 1);
8 has TerminologyData => (is => 'ro', isa => 'Paws::Translate::TerminologyData', required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ImportTerminology');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Translate::ImportTerminologyResponse');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::Translate::ImportTerminology - Arguments for method ImportTerminology on L<Paws::Translate>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method ImportTerminology on the
26 L<Amazon Translate|Paws::Translate> service. Use the attributes of this class
27 as arguments to method ImportTerminology.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ImportTerminology.
30  
31 =head1 SYNOPSIS
32  
33 my $translate = Paws->service('Translate');
34 my $ImportTerminologyResponse = $translate->ImportTerminology(
35 MergeStrategy => 'OVERWRITE',
36 Name => 'MyResourceName',
37 TerminologyData => {
38 File => 'BlobTerminologyFile', # max: 10485760
39 Format => 'CSV', # values: CSV, TMX
40  
41 },
42 Description => 'MyDescription', # OPTIONAL
43 EncryptionKey => {
44 Id => 'MyEncryptionKeyID', # min: 1, max: 400
45 Type => 'KMS', # values: KMS
46  
47 }, # OPTIONAL
48 );
49  
50 # Results:
51 my $TerminologyProperties =
52 $ImportTerminologyResponse->TerminologyProperties;
53  
54 # Returns a L<Paws::Translate::ImportTerminologyResponse> object.
55  
56 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.
57 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/translate/ImportTerminology>
58  
59 =head1 ATTRIBUTES
60  
61  
62 =head2 Description => Str
63  
64 The description of the custom terminology being imported.
65  
66  
67  
68 =head2 EncryptionKey => L<Paws::Translate::EncryptionKey>
69  
70 The encryption key for the custom terminology being imported.
71  
72  
73  
74 =head2 B<REQUIRED> MergeStrategy => Str
75  
76 The merge strategy of the custom terminology being imported. Currently,
77 only the OVERWRITE merge strategy is supported. In this case, the
78 imported terminology will overwrite an existing terminology of the same
79 name.
80  
81 Valid values are: C<"OVERWRITE">
82  
83 =head2 B<REQUIRED> Name => Str
84  
85 The name of the custom terminology being imported.
86  
87  
88  
89 =head2 B<REQUIRED> TerminologyData => L<Paws::Translate::TerminologyData>
90  
91 The terminology data for the custom terminology being imported.
92  
93  
94  
95  
96 =head1 SEE ALSO
97  
98 This class forms part of L<Paws>, documenting arguments for method ImportTerminology in L<Paws::Translate>
99  
100 =head1 BUGS and CONTRIBUTIONS
101  
102 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
103  
104 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
105  
106 =cut
107