blib/lib/Paws/LexModelsV2/DeleteSlotType.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::LexModelsV2::DeleteSlotType;
3 use Moose;
4 has BotId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botId', required => 1);
5 has BotVersion => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botVersion', required => 1);
6 has LocaleId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'localeId', required => 1);
7 has SkipResourceInUseCheck => (is => 'ro', isa => 'Bool', traits => ['ParamInQuery'], query_name => 'skipResourceInUseCheck');
8 has SlotTypeId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'slotTypeId', required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'DeleteSlotType');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}/');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'DELETE');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::LexModelsV2::DeleteSlotType - Arguments for method DeleteSlotType on L<Paws::LexModelsV2>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method DeleteSlotType on the
27 L<Amazon Lex Model Building V2|Paws::LexModelsV2> service. Use the attributes of this class
28 as arguments to method DeleteSlotType.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DeleteSlotType.
31  
32 =head1 SYNOPSIS
33  
34 my $models-v2-lex = Paws->service('LexModelsV2');
35 $models - v2 -lex->DeleteSlotType(
36 BotId => 'MyId',
37 BotVersion => 'MyDraftBotVersion',
38 LocaleId => 'MyLocaleId',
39 SlotTypeId => 'MyId',
40 SkipResourceInUseCheck => 1, # OPTIONAL
41 );
42  
43 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.
44 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/models-v2-lex/DeleteSlotType>
45  
46 =head1 ATTRIBUTES
47  
48  
49 =head2 B<REQUIRED> BotId => Str
50  
51 The identifier of the bot associated with the slot type.
52  
53  
54  
55 =head2 B<REQUIRED> BotVersion => Str
56  
57 The version of the bot associated with the slot type.
58  
59  
60  
61 =head2 B<REQUIRED> LocaleId => Str
62  
63 The identifier of the language and locale that the slot type will be
64 deleted from. The string must match one of the supported locales. For
65 more information, see Supported languages
66 (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html).
67  
68  
69  
70 =head2 SkipResourceInUseCheck => Bool
71  
72 By default, the C<DeleteSlotType> operations throws a
73 C<ResourceInUseException> exception if you try to delete a slot type
74 used by a slot. Set the C<skipResourceInUseCheck> parameter to C<true>
75 to skip this check and remove the slot type even if a slot uses it.
76  
77  
78  
79 =head2 B<REQUIRED> SlotTypeId => Str
80  
81 The identifier of the slot type to delete.
82  
83  
84  
85  
86 =head1 SEE ALSO
87  
88 This class forms part of L<Paws>, documenting arguments for method DeleteSlotType in L<Paws::LexModelsV2>
89  
90 =head1 BUGS and CONTRIBUTIONS
91  
92 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
93  
94 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
95  
96 =cut
97