File Coverage

blib/lib/Cfn/Resource/AWS/AmazonMQ/Broker.pm
Criterion Covered Total %
statement 56 56 100.0
branch n/a
condition n/a
subroutine 20 20 100.0
pod 0 2 0.0
total 76 78 97.4


line stmt bran cond sub pod time code
1             # AWS::AmazonMQ::Broker generated from spec 20.1.0
2 1     1   847 use Moose::Util::TypeConstraints;
  1         2  
  1         11  
3              
4             coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::AmazonMQ::Broker->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::AmazonMQ::Broker {
9 1     1   2215 use Moose;
  1         3  
  1         9  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 8 [ 'AmqpEndpoints','Arn','ConfigurationId','ConfigurationRevision','IpAddresses','MqttEndpoints','OpenWireEndpoints','StompEndpoints','WssEndpoints' ]
15             }
16             sub supported_regions {
17 1     1 0 1162 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-south-1','eu-west-1','eu-west-3','us-east-1','us-east-2','us-west-1','us-west-2' ]
18             }
19             }
20              
21              
22             subtype 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::User',
23             as 'Cfn::Value',
24             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
25             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
26              
27             coerce 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::User',
28             from 'HashRef',
29             via {
30             if (my $f = Cfn::TypeLibrary::try_function($_)) {
31             return $f
32             } else {
33             die 'Only accepts functions';
34             }
35             },
36             from 'ArrayRef',
37             via {
38             Cfn::Value::Array->new(Value => [
39             map {
40             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AmazonMQ::Broker::User')->coerce($_)
41             } @$_
42             ]);
43             };
44              
45             subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::User',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::User',
49             from 'HashRef',
50             via {
51             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::User->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::User {
59 1     1   7936 use Moose;
  1         3  
  1         5  
60 1     1   7258 use MooseX::StrictConstructor;
  1         2  
  1         10  
61             extends 'Cfn::Value::TypedValue';
62            
63             has ConsoleAccess => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             has Groups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has Password => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             has Username => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67             }
68             subtype 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntry',
69             as 'Cfn::Value',
70             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
71             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
72              
73             coerce 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntry',
74             from 'HashRef',
75             via {
76             if (my $f = Cfn::TypeLibrary::try_function($_)) {
77             return $f
78             } else {
79             die 'Only accepts functions';
80             }
81             },
82             from 'ArrayRef',
83             via {
84             Cfn::Value::Array->new(Value => [
85             map {
86             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntry')->coerce($_)
87             } @$_
88             ]);
89             };
90              
91             subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntry',
92             as 'Cfn::Value';
93              
94             coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntry',
95             from 'HashRef',
96             via {
97             if (my $f = Cfn::TypeLibrary::try_function($_)) {
98             return $f
99             } else {
100             return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::TagsEntry->new( %$_ );
101             }
102             };
103              
104             package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::TagsEntry {
105 1     1   3955 use Moose;
  1         3  
  1         7  
106 1     1   6816 use MooseX::StrictConstructor;
  1         3  
  1         7  
107             extends 'Cfn::Value::TypedValue';
108            
109             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110             has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             }
112              
113             subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::MaintenanceWindow',
114             as 'Cfn::Value';
115              
116             coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::MaintenanceWindow',
117             from 'HashRef',
118             via {
119             if (my $f = Cfn::TypeLibrary::try_function($_)) {
120             return $f
121             } else {
122             return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::MaintenanceWindow->new( %$_ );
123             }
124             };
125              
126             package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::MaintenanceWindow {
127 1     1   3395 use Moose;
  1         3  
  1         8  
128 1     1   6776 use MooseX::StrictConstructor;
  1         2  
  1         7  
129             extends 'Cfn::Value::TypedValue';
130            
131             has DayOfWeek => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132             has TimeOfDay => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
133             has TimeZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134             }
135              
136             subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LogList',
137             as 'Cfn::Value';
138              
139             coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LogList',
140             from 'HashRef',
141             via {
142             if (my $f = Cfn::TypeLibrary::try_function($_)) {
143             return $f
144             } else {
145             return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::LogList->new( %$_ );
146             }
147             };
148              
149             package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::LogList {
150 1     1   3639 use Moose;
  1         5  
  1         6  
151 1     1   7013 use MooseX::StrictConstructor;
  1         2  
  1         9  
152             extends 'Cfn::Value::TypedValue';
153            
154             has Audit => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
155             has General => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156             }
157              
158             subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LdapServerMetadata',
159             as 'Cfn::Value';
160              
161             coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LdapServerMetadata',
162             from 'HashRef',
163             via {
164             if (my $f = Cfn::TypeLibrary::try_function($_)) {
165             return $f
166             } else {
167             return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::LdapServerMetadata->new( %$_ );
168             }
169             };
170              
171             package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::LdapServerMetadata {
172 1     1   3877 use Moose;
  1         5  
  1         9  
173 1     1   6674 use MooseX::StrictConstructor;
  1         4  
  1         5  
174             extends 'Cfn::Value::TypedValue';
175            
176             has Hosts => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
177             has RoleBase => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
178             has RoleName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
179             has RoleSearchMatching => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
180             has RoleSearchSubtree => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
181             has ServiceAccountPassword => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
182             has ServiceAccountUsername => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
183             has UserBase => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
184             has UserRoleName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
185             has UserSearchMatching => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
186             has UserSearchSubtree => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
187             }
188              
189             subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::EncryptionOptions',
190             as 'Cfn::Value';
191              
192             coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::EncryptionOptions',
193             from 'HashRef',
194             via {
195             if (my $f = Cfn::TypeLibrary::try_function($_)) {
196             return $f
197             } else {
198             return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::EncryptionOptions->new( %$_ );
199             }
200             };
201              
202             package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::EncryptionOptions {
203 1     1   3681 use Moose;
  1         6  
  1         6  
204 1     1   6728 use MooseX::StrictConstructor;
  1         4  
  1         6  
205             extends 'Cfn::Value::TypedValue';
206            
207             has KmsKeyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
208             has UseAwsOwnedKey => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
209             }
210              
211             subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::ConfigurationId',
212             as 'Cfn::Value';
213              
214             coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::ConfigurationId',
215             from 'HashRef',
216             via {
217             if (my $f = Cfn::TypeLibrary::try_function($_)) {
218             return $f
219             } else {
220             return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::ConfigurationId->new( %$_ );
221             }
222             };
223              
224             package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::ConfigurationId {
225 1     1   3593 use Moose;
  1         4  
  1         6  
226 1     1   6894 use MooseX::StrictConstructor;
  1         3  
  1         8  
227             extends 'Cfn::Value::TypedValue';
228            
229             has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
230             has Revision => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
231             }
232              
233             package Cfn::Resource::Properties::AWS::AmazonMQ::Broker {
234 1     1   3391 use Moose;
  1         4  
  1         5  
235 1     1   6618 use MooseX::StrictConstructor;
  1         2  
  1         5  
236             extends 'Cfn::Resource::Properties';
237            
238             has AuthenticationStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
239             has AutoMinorVersionUpgrade => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
240             has BrokerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
241             has Configuration => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::ConfigurationId', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
242             has DeploymentMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
243             has EncryptionOptions => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::EncryptionOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
244             has EngineType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
245             has EngineVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
246             has HostInstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
247             has LdapServerMetadata => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LdapServerMetadata', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
248             has Logs => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LogList', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
249             has MaintenanceWindowStartTime => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::MaintenanceWindow', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
250             has PubliclyAccessible => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
251             has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
252             has StorageType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
253             has SubnetIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
254             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
255             has Users => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::User', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
256             }
257              
258             1;
259             ### main pod documentation begin ###
260              
261             =encoding UTF-8
262              
263             =head1 NAME
264              
265             Cfn::Resource::AWS::AmazonMQ::Broker - Cfn resource for AWS::AmazonMQ::Broker
266              
267             =head1 DESCRIPTION
268              
269             This module implements a Perl module that represents the CloudFormation object AWS::AmazonMQ::Broker.
270              
271             See L<Cfn> for more information on how to use it.
272              
273             =head1 AUTHOR
274              
275             Jose Luis Martinez
276             CAPSiDE
277             jlmartinez@capside.com
278              
279             =head1 COPYRIGHT and LICENSE
280              
281             Copyright (c) 2013 by CAPSiDE
282             This code is distributed under the Apache 2 License. The full text of the
283             license can be found in the LICENSE file included with this module.
284              
285             =cut