blib/lib/Paws/Route53/AssociateVPCWithHostedZone.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Route53::AssociateVPCWithHostedZone;
3 use Moose;
4 has Comment => (is => 'ro', isa => 'Str');
5 has HostedZoneId => (is => 'ro', isa => 'Str', uri_name => 'Id', traits => ['ParamInURI'], required => 1);
6 has VPC => (is => 'ro', isa => 'Paws::Route53::VPC', required => 1);
7  
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AssociateVPCWithHostedZone');
12 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2013-04-01/hostedzone/{Id}/associatevpc');
13 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53::AssociateVPCWithHostedZoneResponse');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 class_has _top_level_element => (isa => 'Str', is => 'ro', default => 'AssociateVPCWithHostedZoneRequest');
17 class_has _top_level_namespace => (isa => 'Str', is => 'ro', default => 'https://route53.amazonaws.com/doc/2013-04-01/');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::Route53::AssociateVPCWithHostedZone - Arguments for method AssociateVPCWithHostedZone on L<Paws::Route53>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method AssociateVPCWithHostedZone on the
29 L<Amazon Route 53|Paws::Route53> service. Use the attributes of this class
30 as arguments to method AssociateVPCWithHostedZone.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AssociateVPCWithHostedZone.
33  
34 =head1 SYNOPSIS
35  
36 my $route53 = Paws->service('Route53');
37 # To associate a VPC with a hosted zone
38 # The following example associates the VPC with ID vpc-1a2b3c4d with the hosted
39 # zone with ID Z3M3LMPEXAMPLE.
40 my $AssociateVPCWithHostedZoneResponse =
41 $route53->AssociateVPCWithHostedZone(
42 'Comment' => '',
43 'HostedZoneId' => 'Z3M3LMPEXAMPLE',
44 'VPC' => {
45 'VPCId' => 'vpc-1a2b3c4d',
46 'VPCRegion' => 'us-east-2'
47 }
48 );
49  
50 # Results:
51 my $ChangeInfo = $AssociateVPCWithHostedZoneResponse->ChangeInfo;
52  
53 # Returns a L<Paws::Route53::AssociateVPCWithHostedZoneResponse> object.
54  
55 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.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/route53/AssociateVPCWithHostedZone>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 Comment => Str
62  
63 I<Optional:> A comment about the association request.
64  
65  
66  
67 =head2 B<REQUIRED> HostedZoneId => Str
68  
69 The ID of the private hosted zone that you want to associate an Amazon
70 VPC with.
71  
72 Note that you can't associate a VPC with a hosted zone that doesn't
73 have an existing VPC association.
74  
75  
76  
77 =head2 B<REQUIRED> VPC => L<Paws::Route53::VPC>
78  
79 A complex type that contains information about the VPC that you want to
80 associate with a private hosted zone.
81  
82  
83  
84  
85 =head1 SEE ALSO
86  
87 This class forms part of L<Paws>, documenting arguments for method AssociateVPCWithHostedZone in L<Paws::Route53>
88  
89 =head1 BUGS and CONTRIBUTIONS
90  
91 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
92  
93 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
94  
95 =cut
96