blib/lib/Paws/AppMesh/HttpRetryPolicy.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::AppMesh::HttpRetryPolicy;
3 use Moose;
4 has HttpRetryEvents => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'httpRetryEvents', traits => ['NameInRequest']);
5 has MaxRetries => (is => 'ro', isa => 'Int', request_name => 'maxRetries', traits => ['NameInRequest'], required => 1);
6 has PerRetryTimeout => (is => 'ro', isa => 'Paws::AppMesh::Duration', request_name => 'perRetryTimeout', traits => ['NameInRequest'], required => 1);
7 has TcpRetryEvents => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'tcpRetryEvents', traits => ['NameInRequest']);
8  
9 1;
10  
11 ### main pod documentation begin ###
12  
13 =head1 NAME
14  
15 Paws::AppMesh::HttpRetryPolicy
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::AppMesh::HttpRetryPolicy object:
27  
28 $service_obj->Method(Att1 => { HttpRetryEvents => $value, ..., TcpRetryEvents => $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::AppMesh::HttpRetryPolicy object:
33  
34 $result = $service_obj->Method(...);
35 $result->Att1->HttpRetryEvents
36  
37 =head1 DESCRIPTION
38  
39 An object that represents a retry policy. Specify at least one value
40 for at least one of the types of C<RetryEvents>, a value for
41 C<maxRetries>, and a value for C<perRetryTimeout>. Both C<server-error>
42 and C<gateway-error> under C<httpRetryEvents> include the Envoy
43 C<reset> policy. For more information on the C<reset> policy, see the
44 Envoy documentation
45 (https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on).
46  
47 =head1 ATTRIBUTES
48  
49  
50 =head2 HttpRetryEvents => ArrayRef[Str|Undef]
51  
52 Specify at least one of the following values.
53  
54 =over
55  
56 =item *
57  
58 B<server-error> E<ndash> HTTP status codes 500, 501, 502, 503, 504,
59 505, 506, 507, 508, 510, and 511
60  
61 =item *
62  
63 B<gateway-error> E<ndash> HTTP status codes 502, 503, and 504
64  
65 =item *
66  
67 B<client-error> E<ndash> HTTP status code 409
68  
69 =item *
70  
71 B<stream-error> E<ndash> Retry on refused stream
72  
73 =back
74  
75  
76  
77 =head2 B<REQUIRED> MaxRetries => Int
78  
79 The maximum number of retry attempts.
80  
81  
82 =head2 B<REQUIRED> PerRetryTimeout => L<Paws::AppMesh::Duration>
83  
84 The timeout for each retry attempt.
85  
86  
87 =head2 TcpRetryEvents => ArrayRef[Str|Undef]
88  
89 Specify a valid value. The event occurs before any processing of a
90 request has started and is encountered when the upstream is temporarily
91 or permanently unavailable.
92  
93  
94  
95 =head1 SEE ALSO
96  
97 This class forms part of L<Paws>, describing an object used in L<Paws::AppMesh>
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