File Coverage

blib/lib/Paws/Route53/CreateHostedZone.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::CreateHostedZone;
3 1     1   281 use Moose;
  1         2  
  1         6  
4             has CallerReference => (is => 'ro', isa => 'Str', required => 1);
5             has DelegationSetId => (is => 'ro', isa => 'Str');
6             has HostedZoneConfig => (is => 'ro', isa => 'Paws::Route53::HostedZoneConfig');
7             has Name => (is => 'ro', isa => 'Str', required => 1);
8             has VPC => (is => 'ro', isa => 'Paws::Route53::VPC');
9              
10 1     1   5676 use MooseX::ClassAttribute;
  1         3  
  1         6  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateHostedZone');
13             class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2013-04-01/hostedzone');
14             class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53::CreateHostedZoneResponse');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17            
18             1;
19              
20             ### main pod documentation begin ###
21              
22             =head1 NAME
23              
24             Paws::Route53::CreateHostedZone - Arguments for method CreateHostedZone on Paws::Route53
25              
26             =head1 DESCRIPTION
27              
28             This class represents the parameters used for calling the method CreateHostedZone on the
29             Amazon Route 53 service. Use the attributes of this class
30             as arguments to method CreateHostedZone.
31              
32             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateHostedZone.
33              
34             As an example:
35              
36             $service_obj->CreateHostedZone(Att1 => $value1, Att2 => $value2, ...);
37              
38             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.
39              
40             =head1 ATTRIBUTES
41              
42              
43             =head2 B<REQUIRED> CallerReference => Str
44              
45             A unique string that identifies the request and that allows failed
46             C<CreateHostedZone> requests to be retried without the risk of
47             executing the operation twice. You must use a unique C<CallerReference>
48             string every time you submit a C<CreateHostedZone> request.
49             C<CallerReference> can be any unique string, for example, a date/time
50             stamp.
51              
52              
53              
54             =head2 DelegationSetId => Str
55              
56             If you want to associate a reusable delegation set with this hosted
57             zone, the ID that Amazon Route 53 assigned to the reusable delegation
58             set when you created it. For more information about reusable delegation
59             sets, see CreateReusableDelegationSet.
60              
61              
62              
63             =head2 HostedZoneConfig => L<Paws::Route53::HostedZoneConfig>
64              
65             (Optional) A complex type that contains the following optional values:
66              
67             =over
68              
69             =item *
70              
71             For public and private hosted zones, an optional comment
72              
73             =item *
74              
75             For private hosted zones, an optional C<PrivateZone> element
76              
77             =back
78              
79             If you don't specify a comment or the C<PrivateZone> element, omit
80             C<HostedZoneConfig> and the other elements.
81              
82              
83              
84             =head2 B<REQUIRED> Name => Str
85              
86             The name of the domain. For resource record types that include a domain
87             name, specify a fully qualified domain name, for example,
88             I<www.example.com>. The trailing dot is optional; Amazon Route 53
89             assumes that the domain name is fully qualified. This means that Amazon
90             Route 53 treats I<www.example.com> (without a trailing dot) and
91             I<www.example.com.> (with a trailing dot) as identical.
92              
93             If you're creating a public hosted zone, this is the name you have
94             registered with your DNS registrar. If your domain name is registered
95             with a registrar other than Amazon Route 53, change the name servers
96             for your domain to the set of C<NameServers> that C<CreateHostedZone>
97             returns in C<DelegationSet>.
98              
99              
100              
101             =head2 VPC => L<Paws::Route53::VPC>
102              
103             (Private hosted zones only) A complex type that contains information
104             about the Amazon VPC that you're associating with this hosted zone.
105              
106             You can specify only one Amazon VPC when you create a private hosted
107             zone. To associate additional Amazon VPCs with the hosted zone, use
108             AssociateVPCWithHostedZone after you create a hosted zone.
109              
110              
111              
112              
113             =head1 SEE ALSO
114              
115             This class forms part of L<Paws>, documenting arguments for method CreateHostedZone in L<Paws::Route53>
116              
117             =head1 BUGS and CONTRIBUTIONS
118              
119             The source code is located here: https://github.com/pplu/aws-sdk-perl
120              
121             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
122              
123             =cut
124