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

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::ModifyNetworkInterfaceAttribute;
3 use Moose;
4 has Attachment => (is => 'ro', isa => 'Paws::EC2::NetworkInterfaceAttachmentChanges', traits => ['NameInRequest'], request_name => 'attachment' );
5 has Description => (is => 'ro', isa => 'Paws::EC2::AttributeValue', traits => ['NameInRequest'], request_name => 'description' );
6 has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
7 has Groups => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'SecurityGroupId' );
8 has NetworkInterfaceId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'networkInterfaceId' , required => 1);
9 has SourceDestCheck => (is => 'ro', isa => 'Paws::EC2::AttributeBooleanValue', traits => ['NameInRequest'], request_name => 'sourceDestCheck' );
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyNetworkInterfaceAttribute');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::EC2::ModifyNetworkInterfaceAttribute - Arguments for method ModifyNetworkInterfaceAttribute on L<Paws::EC2>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method ModifyNetworkInterfaceAttribute on the
27 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
28 as arguments to method ModifyNetworkInterfaceAttribute.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyNetworkInterfaceAttribute.
31  
32 =head1 SYNOPSIS
33  
34 my $ec2 = Paws->service('EC2');
35 # To modify the attachment attribute of a network interface
36 # This example modifies the attachment attribute of the specified network
37 # interface.
38 $ec2->ModifyNetworkInterfaceAttribute(
39 'Attachment' => {
40 'AttachmentId' => 'eni-attach-43348162',
41 'DeleteOnTermination' => 0
42 },
43 'NetworkInterfaceId' => 'eni-686ea200'
44 );
45  
46 # To modify the description attribute of a network interface
47 # This example modifies the description attribute of the specified network
48 # interface.
49 $ec2->ModifyNetworkInterfaceAttribute(
50 'Description' => {
51 'Value' => 'My description'
52 },
53 'NetworkInterfaceId' => 'eni-686ea200'
54 );
55  
56 # To modify the groupSet attribute of a network interface
57 # This example command modifies the groupSet attribute of the specified network
58 # interface.
59 $ec2->ModifyNetworkInterfaceAttribute(
60 'Groups' => [ 'sg-903004f8', 'sg-1a2b3c4d' ],
61 'NetworkInterfaceId' => 'eni-686ea200'
62 );
63  
64 # To modify the sourceDestCheck attribute of a network interface
65 # This example command modifies the sourceDestCheck attribute of the specified
66 # network interface.
67 $ec2->ModifyNetworkInterfaceAttribute(
68 'NetworkInterfaceId' => 'eni-686ea200',
69 'SourceDestCheck' => {
70 'Value' => 0
71 }
72 );
73  
74  
75 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.
76 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/ModifyNetworkInterfaceAttribute>
77  
78 =head1 ATTRIBUTES
79  
80  
81 =head2 Attachment => L<Paws::EC2::NetworkInterfaceAttachmentChanges>
82  
83 Information about the interface attachment. If modifying the 'delete on
84 termination' attribute, you must specify the ID of the interface
85 attachment.
86  
87  
88  
89 =head2 Description => L<Paws::EC2::AttributeValue>
90  
91 A description for the network interface.
92  
93  
94  
95 =head2 DryRun => Bool
96  
97 Checks whether you have the required permissions for the action,
98 without actually making the request, and provides an error response. If
99 you have the required permissions, the error response is
100 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
101  
102  
103  
104 =head2 Groups => ArrayRef[Str|Undef]
105  
106 Changes the security groups for the network interface. The new set of
107 groups you specify replaces the current set. You must specify at least
108 one group, even if it's just the default security group in the VPC. You
109 must specify the ID of the security group, not the name.
110  
111  
112  
113 =head2 B<REQUIRED> NetworkInterfaceId => Str
114  
115 The ID of the network interface.
116  
117  
118  
119 =head2 SourceDestCheck => L<Paws::EC2::AttributeBooleanValue>
120  
121 Enable or disable source/destination checks, which ensure that the
122 instance is either the source or the destination of any traffic that it
123 receives. If the value is C<true>, source/destination checks are
124 enabled; otherwise, they are disabled. The default value is C<true>.
125 You must disable source/destination checks if the instance runs
126 services such as network address translation, routing, or firewalls.
127  
128  
129  
130  
131 =head1 SEE ALSO
132  
133 This class forms part of L<Paws>, documenting arguments for method ModifyNetworkInterfaceAttribute in L<Paws::EC2>
134  
135 =head1 BUGS and CONTRIBUTIONS
136  
137 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
138  
139 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
140  
141 =cut
142