File Coverage

blib/lib/Paws/Route53/TrafficPolicyInstance.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::TrafficPolicyInstance;
2 1     1   739 use Moose;
  1         3  
  1         10  
3             has HostedZoneId => (is => 'ro', isa => 'Str', required => 1);
4             has Id => (is => 'ro', isa => 'Str', required => 1);
5             has Message => (is => 'ro', isa => 'Str', required => 1);
6             has Name => (is => 'ro', isa => 'Str', required => 1);
7             has State => (is => 'ro', isa => 'Str', required => 1);
8             has TrafficPolicyId => (is => 'ro', isa => 'Str', required => 1);
9             has TrafficPolicyType => (is => 'ro', isa => 'Str', required => 1);
10             has TrafficPolicyVersion => (is => 'ro', isa => 'Int', required => 1);
11             has TTL => (is => 'ro', isa => 'Int', required => 1);
12             1;
13              
14             ### main pod documentation begin ###
15              
16             =head1 NAME
17              
18             Paws::Route53::TrafficPolicyInstance
19              
20             =head1 USAGE
21              
22             This class represents one of two things:
23              
24             =head3 Arguments in a call to a service
25              
26             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
27             Each attribute should be used as a named argument in the calls that expect this type of object.
28              
29             As an example, if Att1 is expected to be a Paws::Route53::TrafficPolicyInstance object:
30              
31             $service_obj->Method(Att1 => { HostedZoneId => $value, ..., TTL => $value });
32              
33             =head3 Results returned from an API call
34              
35             Use accessors for each attribute. If Att1 is expected to be an Paws::Route53::TrafficPolicyInstance object:
36              
37             $result = $service_obj->Method(...);
38             $result->Att1->HostedZoneId
39              
40             =head1 DESCRIPTION
41              
42             A complex type that contains settings for the new traffic policy
43             instance.
44              
45             =head1 ATTRIBUTES
46              
47              
48             =head2 B<REQUIRED> HostedZoneId => Str
49              
50             The ID of the hosted zone that Amazon Route 53 created resource record
51             sets in.
52              
53              
54             =head2 B<REQUIRED> Id => Str
55              
56             The ID that Amazon Route 53 assigned to the new traffic policy
57             instance.
58              
59              
60             =head2 B<REQUIRED> Message => Str
61              
62             If C<State> is C<Failed>, an explanation of the reason for the failure.
63             If C<State> is another value, C<Message> is empty.
64              
65              
66             =head2 B<REQUIRED> Name => Str
67              
68             The DNS name, such as www.example.com, for which Amazon Route 53
69             responds to queries by using the resource record sets that are
70             associated with this traffic policy instance.
71              
72              
73             =head2 B<REQUIRED> State => Str
74              
75             The value of C<State> is one of the following values:
76              
77             =over
78              
79             =item Applied
80              
81             Amazon Route 53 has finished creating resource record sets, and changes
82             have propagated to all Amazon Route 53 edge locations.
83              
84             =item Creating
85              
86             Amazon Route 53 is creating the resource record sets. Use
87             C<GetTrafficPolicyInstance> to confirm that the
88             C<CreateTrafficPolicyInstance> request completed successfully.
89              
90             =item Failed
91              
92             Amazon Route 53 wasn't able to create or update the resource record
93             sets. When the value of C<State> is C<Failed>, see C<Message> for an
94             explanation of what caused the request to fail.
95              
96             =back
97              
98              
99              
100             =head2 B<REQUIRED> TrafficPolicyId => Str
101              
102             The ID of the traffic policy that Amazon Route 53 used to create
103             resource record sets in the specified hosted zone.
104              
105              
106             =head2 B<REQUIRED> TrafficPolicyType => Str
107              
108             The DNS type that Amazon Route 53 assigned to all of the resource
109             record sets that it created for this traffic policy instance.
110              
111              
112             =head2 B<REQUIRED> TrafficPolicyVersion => Int
113              
114             The version of the traffic policy that Amazon Route 53 used to create
115             resource record sets in the specified hosted zone.
116              
117              
118             =head2 B<REQUIRED> TTL => Int
119              
120             The TTL that Amazon Route 53 assigned to all of the resource record
121             sets that it created in the specified hosted zone.
122              
123              
124              
125             =head1 SEE ALSO
126              
127             This class forms part of L<Paws>, describing an object used in L<Paws::Route53>
128              
129             =head1 BUGS and CONTRIBUTIONS
130              
131             The source code is located here: https://github.com/pplu/aws-sdk-perl
132              
133             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
134              
135             =cut
136