File Coverage

blib/lib/Paws/Route53/TrafficPolicy.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::Route53::TrafficPolicy;
2 1     1   483 use Moose;
  1         3  
  1         8  
3             has Comment => (is => 'ro', isa => 'Str');
4             has Document => (is => 'ro', isa => 'Str', required => 1);
5             has Id => (is => 'ro', isa => 'Str', required => 1);
6             has Name => (is => 'ro', isa => 'Str', required => 1);
7             has Type => (is => 'ro', isa => 'Str', required => 1);
8             has Version => (is => 'ro', isa => 'Int', required => 1);
9             1;
10              
11             ### main pod documentation begin ###
12              
13             =head1 NAME
14              
15             Paws::Route53::TrafficPolicy
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::Route53::TrafficPolicy object:
27              
28             $service_obj->Method(Att1 => { Comment => $value, ..., Version => $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::Route53::TrafficPolicy object:
33              
34             $result = $service_obj->Method(...);
35             $result->Att1->Comment
36              
37             =head1 DESCRIPTION
38              
39             A complex type that contains settings for a traffic policy.
40              
41             =head1 ATTRIBUTES
42              
43              
44             =head2 Comment => Str
45              
46             The comment that you specify in the C<CreateTrafficPolicy> request, if
47             any.
48              
49              
50             =head2 B<REQUIRED> Document => Str
51              
52             The definition of a traffic policy in JSON format. You specify the JSON
53             document to use for a new traffic policy in the C<CreateTrafficPolicy>
54             request. For more information about the JSON format, see Traffic Policy
55             Document Format.
56              
57              
58             =head2 B<REQUIRED> Id => Str
59              
60             The ID that Amazon Route 53 assigned to a traffic policy when you
61             created it.
62              
63              
64             =head2 B<REQUIRED> Name => Str
65              
66             The name that you specified when you created the traffic policy.
67              
68              
69             =head2 B<REQUIRED> Type => Str
70              
71             The DNS type of the resource record sets that Amazon Route 53 creates
72             when you use a traffic policy to create a traffic policy instance.
73              
74              
75             =head2 B<REQUIRED> Version => Int
76              
77             The version number that Amazon Route 53 assigns to a traffic policy.
78             For a new traffic policy, the value of C<Version> is always 1.
79              
80              
81              
82             =head1 SEE ALSO
83              
84             This class forms part of L<Paws>, describing an object used in L<Paws::Route53>
85              
86             =head1 BUGS and CONTRIBUTIONS
87              
88             The source code is located here: https://github.com/pplu/aws-sdk-perl
89              
90             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
91              
92             =cut
93