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

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::AttachNetworkInterface;
3 use Moose;
4 has DeviceIndex => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'deviceIndex' , required => 1);
5 has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
6 has InstanceId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'instanceId' , required => 1);
7 has NetworkCardIndex => (is => 'ro', isa => 'Int');
8 has NetworkInterfaceId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'networkInterfaceId' , required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AttachNetworkInterface');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::AttachNetworkInterfaceResult');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::EC2::AttachNetworkInterface - Arguments for method AttachNetworkInterface on L<Paws::EC2>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method AttachNetworkInterface on the
26 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
27 as arguments to method AttachNetworkInterface.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AttachNetworkInterface.
30  
31 =head1 SYNOPSIS
32  
33 my $ec2 = Paws->service('EC2');
34 # To attach a network interface to an instance
35 # This example attaches the specified network interface to the specified
36 # instance.
37 my $AttachNetworkInterfaceResult = $ec2->AttachNetworkInterface(
38 'DeviceIndex' => 1,
39 'InstanceId' => 'i-1234567890abcdef0',
40 'NetworkInterfaceId' => 'eni-e5aa89a3'
41 );
42  
43 # Results:
44 my $AttachmentId = $AttachNetworkInterfaceResult->AttachmentId;
45  
46 # Returns a L<Paws::EC2::AttachNetworkInterfaceResult> object.
47  
48 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.
49 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/AttachNetworkInterface>
50  
51 =head1 ATTRIBUTES
52  
53  
54 =head2 B<REQUIRED> DeviceIndex => Int
55  
56 The index of the device for the network interface attachment.
57  
58  
59  
60 =head2 DryRun => Bool
61  
62 Checks whether you have the required permissions for the action,
63 without actually making the request, and provides an error response. If
64 you have the required permissions, the error response is
65 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
66  
67  
68  
69 =head2 B<REQUIRED> InstanceId => Str
70  
71 The ID of the instance.
72  
73  
74  
75 =head2 NetworkCardIndex => Int
76  
77 The index of the network card. Some instance types support multiple
78 network cards. The primary network interface must be assigned to
79 network card index 0. The default is network card index 0.
80  
81  
82  
83 =head2 B<REQUIRED> NetworkInterfaceId => Str
84  
85 The ID of the network interface.
86  
87  
88  
89  
90 =head1 SEE ALSO
91  
92 This class forms part of L<Paws>, documenting arguments for method AttachNetworkInterface in L<Paws::EC2>
93  
94 =head1 BUGS and CONTRIBUTIONS
95  
96 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
97  
98 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
99  
100 =cut
101