blib/lib/Paws/Amplify/CustomRule.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 12 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::Amplify::CustomRule;
3 use Moose;
4 has Condition => (is => 'ro', isa => 'Str', request_name => 'condition', traits => ['NameInRequest']);
5 has Source => (is => 'ro', isa => 'Str', request_name => 'source', traits => ['NameInRequest'], required => 1);
6 has Status => (is => 'ro', isa => 'Str', request_name => 'status', traits => ['NameInRequest']);
7 has Target => (is => 'ro', isa => 'Str', request_name => 'target', traits => ['NameInRequest'], required => 1);
8  
9 1;
10  
11 ### main pod documentation begin ###
12  
13 =head1 NAME
14  
15 Paws::Amplify::CustomRule
16  
17 =head1 USAGE
18  
19 This class represents one of two things:
20  
21 =head3 Arguments in a call to a service
22  
23 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
24 Each attribute should be used as a named argument in the calls that expect this type of object.
25  
26 As an example, if Att1 is expected to be a Paws::Amplify::CustomRule object:
27  
28 $service_obj->Method(Att1 => { Condition => $value, ..., Target => $value });
29  
30 =head3 Results returned from an API call
31  
32 Use accessors for each attribute. If Att1 is expected to be an Paws::Amplify::CustomRule object:
33  
34 $result = $service_obj->Method(...);
35 $result->Att1->Condition
36  
37 =head1 DESCRIPTION
38  
39 Describes a custom rewrite or redirect rule.
40  
41 =head1 ATTRIBUTES
42  
43  
44 =head2 Condition => Str
45  
46 The condition for a URL rewrite or redirect rule, such as a country
47 code.
48  
49  
50 =head2 B<REQUIRED> Source => Str
51  
52 The source pattern for a URL rewrite or redirect rule.
53  
54  
55 =head2 Status => Str
56  
57 The status code for a URL rewrite or redirect rule.
58  
59 =over
60  
61 =item * 200: Represents a 200 rewrite rule.
62  
63 =item * 301: Represents a 301 (moved pemanently) redirect rule. This
64 and all future requests should be directed to the target URL.
65  
66 =item * 302: Represents a 302 temporary redirect rule.
67  
68 =item * 404: Represents a 404 redirect rule.
69  
70 =item * 404-200: Represents a 404 rewrite rule.
71  
72 =back
73  
74  
75  
76 =head2 B<REQUIRED> Target => Str
77  
78 The target pattern for a URL rewrite or redirect rule.
79  
80  
81  
82 =head1 SEE ALSO
83  
84 This class forms part of L<Paws>, describing an object used in L<Paws::Amplify>
85  
86 =head1 BUGS and CONTRIBUTIONS
87  
88 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
89  
90 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
91  
92 =cut
93