blib/lib/Paws/EC2/ModifyVpcAttribute.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::ModifyVpcAttribute;
3 use Moose;
4 has EnableDnsHostnames => (is => 'ro', isa => 'Paws::EC2::AttributeBooleanValue');
5 has EnableDnsSupport => (is => 'ro', isa => 'Paws::EC2::AttributeBooleanValue');
6 has VpcId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'vpcId' , required => 1);
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyVpcAttribute');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
12 class_has _result_key => (isa => 'Str', is => 'ro');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::EC2::ModifyVpcAttribute - Arguments for method ModifyVpcAttribute on L<Paws::EC2>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method ModifyVpcAttribute on the
24 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
25 as arguments to method ModifyVpcAttribute.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyVpcAttribute.
28  
29 =head1 SYNOPSIS
30  
31 my $ec2 = Paws->service('EC2');
32 # To modify the enableDnsSupport attribute
33 # This example modifies the enableDnsSupport attribute. This attribute indicates
34 # whether DNS resolution is enabled for the VPC. If this attribute is true, the
35 # Amazon DNS server resolves DNS hostnames for instances in the VPC to their
36 # corresponding IP addresses; otherwise, it does not.
37 $ec2->ModifyVpcAttribute(
38 'EnableDnsSupport' => {
39 'Value' => 0
40 },
41 'VpcId' => 'vpc-a01106c2'
42 );
43  
44 # To modify the enableDnsHostnames attribute
45 # This example modifies the enableDnsHostnames attribute. This attribute
46 # indicates whether instances launched in the VPC get DNS hostnames. If this
47 # attribute is true, instances in the VPC get DNS hostnames; otherwise, they do
48 # not.
49 $ec2->ModifyVpcAttribute(
50 'EnableDnsHostnames' => {
51 'Value' => 0
52 },
53 'VpcId' => 'vpc-a01106c2'
54 );
55  
56  
57 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.
58 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/ModifyVpcAttribute>
59  
60 =head1 ATTRIBUTES
61  
62  
63 =head2 EnableDnsHostnames => L<Paws::EC2::AttributeBooleanValue>
64  
65 Indicates whether the instances launched in the VPC get DNS hostnames.
66 If enabled, instances in the VPC get DNS hostnames; otherwise, they do
67 not.
68  
69 You cannot modify the DNS resolution and DNS hostnames attributes in
70 the same request. Use separate requests for each attribute. You can
71 only enable DNS hostnames if you've enabled DNS support.
72  
73  
74  
75 =head2 EnableDnsSupport => L<Paws::EC2::AttributeBooleanValue>
76  
77 Indicates whether the DNS resolution is supported for the VPC. If
78 enabled, queries to the Amazon provided DNS server at the
79 169.254.169.253 IP address, or the reserved IP address at the base of
80 the VPC network range "plus two" succeed. If disabled, the Amazon
81 provided DNS service in the VPC that resolves public DNS hostnames to
82 IP addresses is not enabled.
83  
84 You cannot modify the DNS resolution and DNS hostnames attributes in
85 the same request. Use separate requests for each attribute.
86  
87  
88  
89 =head2 B<REQUIRED> VpcId => Str
90  
91 The ID of the VPC.
92  
93  
94  
95  
96 =head1 SEE ALSO
97  
98 This class forms part of L<Paws>, documenting arguments for method ModifyVpcAttribute in L<Paws::EC2>
99  
100 =head1 BUGS and CONTRIBUTIONS
101  
102 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
103  
104 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
105  
106 =cut
107