blib/lib/Paws/SES/SetIdentityNotificationTopic.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SES::SetIdentityNotificationTopic;
3 use Moose;
4 has Identity => (is => 'ro', isa => 'Str', required => 1);
5 has NotificationType => (is => 'ro', isa => 'Str', required => 1);
6 has SnsTopic => (is => 'ro', isa => 'Str');
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'SetIdentityNotificationTopic');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SES::SetIdentityNotificationTopicResponse');
12 class_has _result_key => (isa => 'Str', is => 'ro', default => 'SetIdentityNotificationTopicResult');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::SES::SetIdentityNotificationTopic - Arguments for method SetIdentityNotificationTopic on L<Paws::SES>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method SetIdentityNotificationTopic on the
24 L<Amazon Simple Email Service|Paws::SES> service. Use the attributes of this class
25 as arguments to method SetIdentityNotificationTopic.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SetIdentityNotificationTopic.
28  
29 =head1 SYNOPSIS
30  
31 my $email = Paws->service('SES');
32 # SetIdentityNotificationTopic
33 # The following example sets the Amazon SNS topic to which Amazon SES will
34 # publish bounce, complaint, and/or delivery notifications for emails sent with
35 # the specified identity as the Source:
36 my $SetIdentityNotificationTopicResponse =
37 $email->SetIdentityNotificationTopic(
38 'Identity' => 'user@example.com',
39 'NotificationType' => 'Bounce',
40 'SnsTopic' => 'arn:aws:sns:us-west-2:111122223333:MyTopic'
41 );
42  
43  
44 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.
45 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/email/SetIdentityNotificationTopic>
46  
47 =head1 ATTRIBUTES
48  
49  
50 =head2 B<REQUIRED> Identity => Str
51  
52 The identity (email address or domain) that you want to set the Amazon
53 SNS topic for.
54  
55 You can only specify a verified identity for this parameter.
56  
57 You can specify an identity by using its name or by using its Amazon
58 Resource Name (ARN). The following examples are all valid identities:
59 C<sender@example.com>, C<example.com>,
60 C<arn:aws:ses:us-east-1:123456789012:identity/example.com>.
61  
62  
63  
64 =head2 B<REQUIRED> NotificationType => Str
65  
66 The type of notifications that will be published to the specified
67 Amazon SNS topic.
68  
69 Valid values are: C<"Bounce">, C<"Complaint">, C<"Delivery">
70  
71 =head2 SnsTopic => Str
72  
73 The Amazon Resource Name (ARN) of the Amazon SNS topic. If the
74 parameter is omitted from the request or a null value is passed,
75 C<SnsTopic> is cleared and publishing is disabled.
76  
77  
78  
79  
80 =head1 SEE ALSO
81  
82 This class forms part of L<Paws>, documenting arguments for method SetIdentityNotificationTopic in L<Paws::SES>
83  
84 =head1 BUGS and CONTRIBUTIONS
85  
86 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
87  
88 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
89  
90 =cut
91