File Coverage

blib/lib/Paws/LexModels/PutSlotType.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::LexModels::PutSlotType;
3 1     1   353 use Moose;
  1         3  
  1         6  
4             has Checksum => (is => 'ro', isa => 'Str');
5             has Description => (is => 'ro', isa => 'Str');
6             has EnumerationValues => (is => 'ro', isa => 'ArrayRef[Paws::LexModels::EnumerationValue]');
7             has Name => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'name' , required => 1);
8             has ValueSelectionStrategy => (is => 'ro', isa => 'Str');
9              
10 1     1   5452 use MooseX::ClassAttribute;
  1         3  
  1         7  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutSlotType');
13             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/slottypes/{name}/versions/$LATEST');
14             class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModels::PutSlotTypeResponse');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::LexModels::PutSlotType - Arguments for method PutSlotType on Paws::LexModels
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method PutSlotType on the
28             Amazon Lex Model Building Service service. Use the attributes of this class
29             as arguments to method PutSlotType.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutSlotType.
32              
33             As an example:
34              
35             $service_obj->PutSlotType(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 Checksum => Str
43              
44             Identifies a specific revision of the C<$LATEST> version.
45              
46             When you create a new slot type, leave the C<checksum> field blank. If
47             you specify a checksum you get a C<BadRequestException> exception.
48              
49             When you want to update a slot type, set the C<checksum> field to the
50             checksum of the most recent revision of the C<$LATEST> version. If you
51             don't specify the C< checksum> field, or if the checksum does not match
52             the C<$LATEST> version, you get a C<PreconditionFailedException>
53             exception.
54              
55              
56              
57             =head2 Description => Str
58              
59             A description of the slot type.
60              
61              
62              
63             =head2 EnumerationValues => ArrayRef[L<Paws::LexModels::EnumerationValue>]
64              
65             A list of C<EnumerationValue> objects that defines the values that the
66             slot type can take. Each value can have a list of C<synonyms>, which
67             are additional values that help train the machine learning model about
68             the values that it resolves for a slot.
69              
70             When Amazon Lex resolves a slot value, it generates a resolution list
71             that contains up to five possible values for the slot. If you are using
72             a Lambda function, this resolution list is passed to the function. If
73             you are not using a Lambda function you can choose to return the value
74             that the user entered or the first value in the resolution list as the
75             slot value. The C<valueSelectionStrategy> field indicates the option to
76             use.
77              
78              
79              
80             =head2 B<REQUIRED> Name => Str
81              
82             The name of the slot type. The name is I<not> case sensitive.
83              
84             The name can't match a built-in slot type name, or a built-in slot type
85             name with "AMAZON." removed. For example, because there is a built-in
86             slot type called C<AMAZON.DATE>, you can't create a custom slot type
87             called C<DATE>.
88              
89             For a list of built-in slot types, see Slot Type Reference in the
90             I<Alexa Skills Kit>.
91              
92              
93              
94             =head2 ValueSelectionStrategy => Str
95              
96             Determines the slot resolution strategy that Amazon Lex uses to return
97             slot type values. The field can be set to one of the following values:
98              
99             =over
100              
101             =item *
102              
103             C<ORIGINAL_VALUE> - Returns the value entered by the user, if the user
104             value is similar to the slot value.
105              
106             =item *
107              
108             C<TOP_RESOLUTION> - If there is a resolution list for the slot, return
109             the first value in the resolution list as the slot type value. If there
110             is no resolution list, null is returned.
111              
112             =back
113              
114             If you don't specify the C<valueSelectionStrategy>, the default is
115             C<ORIGINAL_VALUE>.
116              
117             Valid values are: C<"ORIGINAL_VALUE">, C<"TOP_RESOLUTION">
118              
119              
120             =head1 SEE ALSO
121              
122             This class forms part of L<Paws>, documenting arguments for method PutSlotType in L<Paws::LexModels>
123              
124             =head1 BUGS and CONTRIBUTIONS
125              
126             The source code is located here: https://github.com/pplu/aws-sdk-perl
127              
128             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
129              
130             =cut
131