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

filter: Statementstmt 0.0% 0 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 7 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::CloudWatchEvents::Condition;
3 use Moose;
4 has Key => (is => 'ro', isa => 'Str', required => 1);
5 has Type => (is => 'ro', isa => 'Str', required => 1);
6 has Value => (is => 'ro', isa => 'Str', required => 1);
7  
8 1;
9  
10 ### main pod documentation begin ###
11  
12 =head1 NAME
13  
14 Paws::CloudWatchEvents::Condition
15  
16 =head1 USAGE
17  
18 This class represents one of two things:
19  
20 =head3 Arguments in a call to a service
21  
22 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
23 Each attribute should be used as a named argument in the calls that expect this type of object.
24  
25 As an example, if Att1 is expected to be a Paws::CloudWatchEvents::Condition object:
26  
27 $service_obj->Method(Att1 => { Key => $value, ..., Value => $value });
28  
29 =head3 Results returned from an API call
30  
31 Use accessors for each attribute. If Att1 is expected to be an Paws::CloudWatchEvents::Condition object:
32  
33 $result = $service_obj->Method(...);
34 $result->Att1->Key
35  
36 =head1 DESCRIPTION
37  
38 A JSON string which you can use to limit the event bus permissions you
39 are granting to only accounts that fulfill the condition. Currently,
40 the only supported condition is membership in a certain AWS
41 organization. The string must contain C<Type>, C<Key>, and C<Value>
42 fields. The C<Value> field specifies the ID of the AWS organization.
43 Following is an example value for C<Condition>:
44  
45 C<'{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value":
46 "o-1234567890"}'>
47  
48 =head1 ATTRIBUTES
49  
50  
51 =head2 B<REQUIRED> Key => Str
52  
53 Specifies the key for the condition. Currently the only supported key
54 is C<aws:PrincipalOrgID>.
55  
56  
57 =head2 B<REQUIRED> Type => Str
58  
59 Specifies the type of condition. Currently the only supported value is
60 C<StringEquals>.
61  
62  
63 =head2 B<REQUIRED> Value => Str
64  
65 Specifies the value for the key. Currently, this must be the ID of the
66 organization.
67  
68  
69  
70 =head1 SEE ALSO
71  
72 This class forms part of L<Paws>, describing an object used in L<Paws::CloudWatchEvents>
73  
74 =head1 BUGS and CONTRIBUTIONS
75  
76 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
77  
78 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
79  
80 =cut
81