File Coverage

blib/lib/Paws/EC2/DetachVolume.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::EC2::DetachVolume;
3 1     1   553 use Moose;
  1     1   2  
  1         8  
  1         545  
  1         3  
  1         7  
4             has Device => (is => 'ro', isa => 'Str');
5             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
6             has Force => (is => 'ro', isa => 'Bool');
7             has InstanceId => (is => 'ro', isa => 'Str');
8             has VolumeId => (is => 'ro', isa => 'Str', required => 1);
9              
10 1     1   6369 use MooseX::ClassAttribute;
  1     1   2  
  1         11  
  1         6699  
  1         3  
  1         7  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'DetachVolume');
13             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::VolumeAttachment');
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::DetachVolume - Arguments for method DetachVolume on Paws::EC2
22              
23             =head1 DESCRIPTION
24              
25             This class represents the parameters used for calling the method DetachVolume on the
26             Amazon Elastic Compute Cloud service. Use the attributes of this class
27             as arguments to method DetachVolume.
28              
29             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DetachVolume.
30              
31             As an example:
32              
33             $service_obj->DetachVolume(Att1 => $value1, Att2 => $value2, ...);
34              
35             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.
36              
37             =head1 ATTRIBUTES
38              
39              
40             =head2 Device => Str
41              
42             The device name.
43              
44              
45              
46             =head2 DryRun => Bool
47              
48             Checks whether you have the required permissions for the action,
49             without actually making the request, and provides an error response. If
50             you have the required permissions, the error response is
51             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
52              
53              
54              
55             =head2 Force => Bool
56              
57             Forces detachment if the previous detachment attempt did not occur
58             cleanly (for example, logging into an instance, unmounting the volume,
59             and detaching normally). This option can lead to data loss or a
60             corrupted file system. Use this option only as a last resort to detach
61             a volume from a failed instance. The instance won't have an opportunity
62             to flush file system caches or file system metadata. If you use this
63             option, you must perform file system check and repair procedures.
64              
65              
66              
67             =head2 InstanceId => Str
68              
69             The ID of the instance.
70              
71              
72              
73             =head2 B<REQUIRED> VolumeId => Str
74              
75             The ID of the volume.
76              
77              
78              
79              
80             =head1 SEE ALSO
81              
82             This class forms part of L<Paws>, documenting arguments for method DetachVolume in L<Paws::EC2>
83              
84             =head1 BUGS and CONTRIBUTIONS
85              
86             The source code is located here: https://github.com/pplu/aws-sdk-perl
87              
88             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
89              
90             =cut
91