File Coverage

blib/lib/Paws/DMS/CreateEventSubscription.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::DMS::CreateEventSubscription;
3 1     1   367 use Moose;
  1         3  
  1         7  
4             has Enabled => (is => 'ro', isa => 'Bool');
5             has EventCategories => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
6             has SnsTopicArn => (is => 'ro', isa => 'Str', required => 1);
7             has SourceIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
8             has SourceType => (is => 'ro', isa => 'Str');
9             has SubscriptionName => (is => 'ro', isa => 'Str', required => 1);
10             has Tags => (is => 'ro', isa => 'ArrayRef[Paws::DMS::Tag]');
11              
12 1     1   7388 use MooseX::ClassAttribute;
  1         2  
  1         12  
13              
14             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateEventSubscription');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::DMS::CreateEventSubscriptionResponse');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::DMS::CreateEventSubscription - Arguments for method CreateEventSubscription on Paws::DMS
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method CreateEventSubscription on the
28             AWS Database Migration Service service. Use the attributes of this class
29             as arguments to method CreateEventSubscription.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateEventSubscription.
32              
33             As an example:
34              
35             $service_obj->CreateEventSubscription(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 Enabled => Bool
43              
44             A Boolean value; set to B<true> to activate the subscription, or set to
45             B<false> to create the subscription but not activate it.
46              
47              
48              
49             =head2 EventCategories => ArrayRef[Str|Undef]
50              
51             A list of event categories for a source type that you want to subscribe
52             to. You can see a list of the categories for a given source type by
53             calling the B<DescribeEventCategories> action or in the topic Working
54             with Events and Notifications in the AWS Database Migration Service
55             User Guide.
56              
57              
58              
59             =head2 B<REQUIRED> SnsTopicArn => Str
60              
61             The Amazon Resource Name (ARN) of the Amazon SNS topic created for
62             event notification. The ARN is created by Amazon SNS when you create a
63             topic and subscribe to it.
64              
65              
66              
67             =head2 SourceIds => ArrayRef[Str|Undef]
68              
69             The list of identifiers of the event sources for which events will be
70             returned. If not specified, then all sources are included in the
71             response. An identifier must begin with a letter and must contain only
72             ASCII letters, digits, and hyphens; it cannot end with a hyphen or
73             contain two consecutive hyphens.
74              
75              
76              
77             =head2 SourceType => Str
78              
79             The type of AWS DMS resource that generates the events. For example, if
80             you want to be notified of events generated by a replication instance,
81             you set this parameter to C<replication-instance>. If this value is not
82             specified, all events are returned.
83              
84             Valid values: replication-instance | migration-task
85              
86              
87              
88             =head2 B<REQUIRED> SubscriptionName => Str
89              
90             The name of the DMS event notification subscription.
91              
92             Constraints: The name must be less than 255 characters.
93              
94              
95              
96             =head2 Tags => ArrayRef[L<Paws::DMS::Tag>]
97              
98             A tag to be attached to the event subscription.
99              
100              
101              
102              
103             =head1 SEE ALSO
104              
105             This class forms part of L<Paws>, documenting arguments for method CreateEventSubscription in L<Paws::DMS>
106              
107             =head1 BUGS and CONTRIBUTIONS
108              
109             The source code is located here: https://github.com/pplu/aws-sdk-perl
110              
111             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
112              
113             =cut
114