blib/lib/Paws/CloudWatchEvents/PutRule.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CloudWatchEvents::PutRule;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str');
5 has EventBusName => (is => 'ro', isa => 'Str');
6 has EventPattern => (is => 'ro', isa => 'Str');
7 has Name => (is => 'ro', isa => 'Str', required => 1);
8 has RoleArn => (is => 'ro', isa => 'Str');
9 has ScheduleExpression => (is => 'ro', isa => 'Str');
10 has State => (is => 'ro', isa => 'Str');
11 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::CloudWatchEvents::Tag]');
12  
13 use MooseX::ClassAttribute;
14  
15 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutRule');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudWatchEvents::PutRuleResponse');
17 class_has _result_key => (isa => 'Str', is => 'ro');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::CloudWatchEvents::PutRule - Arguments for method PutRule on L<Paws::CloudWatchEvents>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method PutRule on the
29 L<Amazon EventBridge|Paws::CloudWatchEvents> service. Use the attributes of this class
30 as arguments to method PutRule.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutRule.
33  
34 =head1 SYNOPSIS
35  
36 my $events = Paws->service('CloudWatchEvents');
37 my $PutRuleResponse = $events->PutRule(
38 Name => 'MyRuleName',
39 Description => 'MyRuleDescription', # OPTIONAL
40 EventBusName => 'MyEventBusNameOrArn', # OPTIONAL
41 EventPattern => 'MyEventPattern', # OPTIONAL
42 RoleArn => 'MyRoleArn', # OPTIONAL
43 ScheduleExpression => 'MyScheduleExpression', # OPTIONAL
44 State => 'ENABLED', # OPTIONAL
45 Tags => [
46 {
47 Key => 'MyTagKey', # min: 1, max: 128
48 Value => 'MyTagValue', # max: 256
49  
50 },
51 ...
52 ], # OPTIONAL
53 );
54  
55 # Results:
56 my $RuleArn = $PutRuleResponse->RuleArn;
57  
58 # Returns a L<Paws::CloudWatchEvents::PutRuleResponse> object.
59  
60 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.
61 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/events/PutRule>
62  
63 =head1 ATTRIBUTES
64  
65  
66 =head2 Description => Str
67  
68 A description of the rule.
69  
70  
71  
72 =head2 EventBusName => Str
73  
74 The name or ARN of the event bus to associate with this rule. If you
75 omit this, the default event bus is used.
76  
77  
78  
79 =head2 EventPattern => Str
80  
81 The event pattern. For more information, see Events and Event Patterns
82 (https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html)
83 in the I<Amazon EventBridge User Guide>.
84  
85  
86  
87 =head2 B<REQUIRED> Name => Str
88  
89 The name of the rule that you are creating or updating.
90  
91  
92  
93 =head2 RoleArn => Str
94  
95 The Amazon Resource Name (ARN) of the IAM role associated with the
96 rule.
97  
98  
99  
100 =head2 ScheduleExpression => Str
101  
102 The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5
103 minutes)".
104  
105  
106  
107 =head2 State => Str
108  
109 Indicates whether the rule is enabled or disabled.
110  
111 Valid values are: C<"ENABLED">, C<"DISABLED">
112  
113 =head2 Tags => ArrayRef[L<Paws::CloudWatchEvents::Tag>]
114  
115 The list of key-value pairs to associate with the rule.
116  
117  
118  
119  
120 =head1 SEE ALSO
121  
122 This class forms part of L<Paws>, documenting arguments for method PutRule in L<Paws::CloudWatchEvents>
123  
124 =head1 BUGS and CONTRIBUTIONS
125  
126 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
127  
128 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
129  
130 =cut
131