File Coverage

blib/lib/Paws/Route53/CreateHealthCheck.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::Route53::CreateHealthCheck;
3 1     1   419 use Moose;
  1         3  
  1         7  
4             has CallerReference => (is => 'ro', isa => 'Str', required => 1);
5             has HealthCheckConfig => (is => 'ro', isa => 'Paws::Route53::HealthCheckConfig', required => 1);
6              
7 1     1   6293 use MooseX::ClassAttribute;
  1         3  
  1         9  
8              
9             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateHealthCheck');
10             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2013-04-01/healthcheck');
11             class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
12             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53::CreateHealthCheckResponse');
13             class_has _result_key => (isa => 'Str', is => 'ro');
14            
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::Route53::CreateHealthCheck - Arguments for method CreateHealthCheck on Paws::Route53
22              
23             =head1 DESCRIPTION
24              
25             This class represents the parameters used for calling the method CreateHealthCheck on the
26             Amazon Route 53 service. Use the attributes of this class
27             as arguments to method CreateHealthCheck.
28              
29             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateHealthCheck.
30              
31             As an example:
32              
33             $service_obj->CreateHealthCheck(Att1 => $value1, Att2 => $value2, ...);
34              
35             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.
36              
37             =head1 ATTRIBUTES
38              
39              
40             =head2 B<REQUIRED> CallerReference => Str
41              
42             A unique string that identifies the request and that allows you to
43             retry a failed C<CreateHealthCheck> request without the risk of
44             creating two identical health checks:
45              
46             =over
47              
48             =item *
49              
50             If you send a C<CreateHealthCheck> request with the same
51             C<CallerReference> and settings as a previous request, and if the
52             health check doesn't exist, Amazon Route 53 creates the health check.
53             If the health check does exist, Amazon Route 53 returns the settings
54             for the existing health check.
55              
56             =item *
57              
58             If you send a C<CreateHealthCheck> request with the same
59             C<CallerReference> as a deleted health check, regardless of the
60             settings, Amazon Route 53 returns a C<HealthCheckAlreadyExists> error.
61              
62             =item *
63              
64             If you send a C<CreateHealthCheck> request with the same
65             C<CallerReference> as an existing health check but with different
66             settings, Amazon Route 53 returns a C<HealthCheckAlreadyExists> error.
67              
68             =item *
69              
70             If you send a C<CreateHealthCheck> request with a unique
71             C<CallerReference> but settings identical to an existing health check,
72             Amazon Route 53 creates the health check.
73              
74             =back
75              
76              
77              
78              
79             =head2 B<REQUIRED> HealthCheckConfig => L<Paws::Route53::HealthCheckConfig>
80              
81             A complex type that contains the response to a C<CreateHealthCheck>
82             request.
83              
84              
85              
86              
87             =head1 SEE ALSO
88              
89             This class forms part of L<Paws>, documenting arguments for method CreateHealthCheck in L<Paws::Route53>
90              
91             =head1 BUGS and CONTRIBUTIONS
92              
93             The source code is located here: https://github.com/pplu/aws-sdk-perl
94              
95             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
96              
97             =cut
98