blib/lib/Paws/Lightsail/DeleteRelationalDatabase.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Lightsail::DeleteRelationalDatabase;
3 use Moose;
4 has FinalRelationalDatabaseSnapshotName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'finalRelationalDatabaseSnapshotName' );
5 has RelationalDatabaseName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'relationalDatabaseName' , required => 1);
6 has SkipFinalSnapshot => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'skipFinalSnapshot' );
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'DeleteRelationalDatabase');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lightsail::DeleteRelationalDatabaseResult');
12 class_has _result_key => (isa => 'Str', is => 'ro');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::Lightsail::DeleteRelationalDatabase - Arguments for method DeleteRelationalDatabase on L<Paws::Lightsail>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method DeleteRelationalDatabase on the
24 L<Amazon Lightsail|Paws::Lightsail> service. Use the attributes of this class
25 as arguments to method DeleteRelationalDatabase.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DeleteRelationalDatabase.
28  
29 =head1 SYNOPSIS
30  
31 my $lightsail = Paws->service('Lightsail');
32 my $DeleteRelationalDatabaseResult = $lightsail->DeleteRelationalDatabase(
33 RelationalDatabaseName => 'MyResourceName',
34 FinalRelationalDatabaseSnapshotName => 'MyResourceName', # OPTIONAL
35 SkipFinalSnapshot => 1, # OPTIONAL
36 );
37  
38 # Results:
39 my $Operations = $DeleteRelationalDatabaseResult->Operations;
40  
41 # Returns a L<Paws::Lightsail::DeleteRelationalDatabaseResult> object.
42  
43 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.
44 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lightsail/DeleteRelationalDatabase>
45  
46 =head1 ATTRIBUTES
47  
48  
49 =head2 FinalRelationalDatabaseSnapshotName => Str
50  
51 The name of the database snapshot created if C<skip final snapshot> is
52 C<false>, which is the default value for that parameter.
53  
54 Specifying this parameter and also specifying the C<skip final
55 snapshot> parameter to C<true> results in an error.
56  
57 Constraints:
58  
59 =over
60  
61 =item *
62  
63 Must contain from 2 to 255 alphanumeric characters, or hyphens.
64  
65 =item *
66  
67 The first and last character must be a letter or number.
68  
69 =back
70  
71  
72  
73  
74 =head2 B<REQUIRED> RelationalDatabaseName => Str
75  
76 The name of the database that you are deleting.
77  
78  
79  
80 =head2 SkipFinalSnapshot => Bool
81  
82 Determines whether a final database snapshot is created before your
83 database is deleted. If C<true> is specified, no database snapshot is
84 created. If C<false> is specified, a database snapshot is created
85 before your database is deleted.
86  
87 You must specify the C<final relational database snapshot name>
88 parameter if the C<skip final snapshot> parameter is C<false>.
89  
90 Default: C<false>
91  
92  
93  
94  
95 =head1 SEE ALSO
96  
97 This class forms part of L<Paws>, documenting arguments for method DeleteRelationalDatabase in L<Paws::Lightsail>
98  
99 =head1 BUGS and CONTRIBUTIONS
100  
101 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
102  
103 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
104  
105 =cut
106