blib/lib/Paws/RDS/AddSourceIdentifierToSubscription.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::RDS::AddSourceIdentifierToSubscription;
3 use Moose;
4 has SourceIdentifier => (is => 'ro', isa => 'Str', required => 1);
5 has SubscriptionName => (is => 'ro', isa => 'Str', required => 1);
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AddSourceIdentifierToSubscription');
10 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RDS::AddSourceIdentifierToSubscriptionResult');
11 class_has _result_key => (isa => 'Str', is => 'ro', default => 'AddSourceIdentifierToSubscriptionResult');
12 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::RDS::AddSourceIdentifierToSubscription - Arguments for method AddSourceIdentifierToSubscription on L<Paws::RDS>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method AddSourceIdentifierToSubscription on the
23 L<Amazon Relational Database Service|Paws::RDS> service. Use the attributes of this class
24 as arguments to method AddSourceIdentifierToSubscription.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AddSourceIdentifierToSubscription.
27  
28 =head1 SYNOPSIS
29  
30 my $rds = Paws->service('RDS');
31 # To add a source identifier to an event notification subscription
32 # This example add a source identifier to an event notification subscription.
33 my $AddSourceIdentifierToSubscriptionResult =
34 $rds->AddSourceIdentifierToSubscription(
35 'SourceIdentifier' => 'mymysqlinstance',
36 'SubscriptionName' => 'mymysqleventsubscription'
37 );
38  
39 # Results:
40 my $EventSubscription =
41 $AddSourceIdentifierToSubscriptionResult->EventSubscription;
42  
43 # Returns a L<Paws::RDS::AddSourceIdentifierToSubscriptionResult> object.
44  
45 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.
46 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/rds/AddSourceIdentifierToSubscription>
47  
48 =head1 ATTRIBUTES
49  
50  
51 =head2 B<REQUIRED> SourceIdentifier => Str
52  
53 The identifier of the event source to be added.
54  
55 Constraints:
56  
57 =over
58  
59 =item *
60  
61 If the source type is a DB instance, a C<DBInstanceIdentifier> value
62 must be supplied.
63  
64 =item *
65  
66 If the source type is a DB cluster, a C<DBClusterIdentifier> value must
67 be supplied.
68  
69 =item *
70  
71 If the source type is a DB parameter group, a C<DBParameterGroupName>
72 value must be supplied.
73  
74 =item *
75  
76 If the source type is a DB security group, a C<DBSecurityGroupName>
77 value must be supplied.
78  
79 =item *
80  
81 If the source type is a DB snapshot, a C<DBSnapshotIdentifier> value
82 must be supplied.
83  
84 =item *
85  
86 If the source type is a DB cluster snapshot, a
87 C<DBClusterSnapshotIdentifier> value must be supplied.
88  
89 =back
90  
91  
92  
93  
94 =head2 B<REQUIRED> SubscriptionName => Str
95  
96 The name of the RDS event notification subscription you want to add a
97 source identifier to.
98  
99  
100  
101  
102 =head1 SEE ALSO
103  
104 This class forms part of L<Paws>, documenting arguments for method AddSourceIdentifierToSubscription in L<Paws::RDS>
105  
106 =head1 BUGS and CONTRIBUTIONS
107  
108 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
109  
110 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
111  
112 =cut
113