File Coverage

blib/lib/Cfn/Resource/AWS/AmazonMQ/Broker.pm
Criterion Covered Total %
statement 50 50 100.0
branch n/a
condition n/a
subroutine 18 18 100.0
pod 0 2 0.0
total 68 70 97.1


line stmt bran cond sub pod time code
1             # AWS::AmazonMQ::Broker generated from spec 9.1.0
2 1     1   754 use Moose::Util::TypeConstraints;
  1         2  
  1         9  
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   2135 use Moose;
  1         3  
  1         8  
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 6 [ 'AmqpEndpoints','Arn','ConfigurationId','ConfigurationRevision','IpAddresses','MqttEndpoints','OpenWireEndpoints','StompEndpoints','WssEndpoints' ]
15             }
16             sub supported_regions {
17 1     1 0 1103 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-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::AWS::AmazonMQ::Broker::UserValue->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::AWS::AmazonMQ::Broker::UserValue {
59 1     1   7047 use Moose;
  1         3  
  1         5  
60 1     1   6477 use MooseX::StrictConstructor;
  1         3  
  1         9  
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::AWS::AmazonMQ::Broker::TagsEntryValue->new( %$_ );
101             }
102             };
103              
104             package Cfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntryValue {
105 1     1   3725 use Moose;
  1         4  
  1         5  
106 1     1   6547 use MooseX::StrictConstructor;
  1         3  
  1         5  
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::AWS::AmazonMQ::Broker::MaintenanceWindowValue->new( %$_ );
123             }
124             };
125              
126             package Cfn::Resource::Properties::AWS::AmazonMQ::Broker::MaintenanceWindowValue {
127 1     1   3294 use Moose;
  1         2  
  1         7  
128 1     1   6490 use MooseX::StrictConstructor;
  1         3  
  1         5  
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::AWS::AmazonMQ::Broker::LogListValue->new( %$_ );
146             }
147             };
148              
149             package Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LogListValue {
150 1     1   3677 use Moose;
  1         3  
  1         6  
151 1     1   6565 use MooseX::StrictConstructor;
  1         4  
  1         7  
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::EncryptionOptions',
159             as 'Cfn::Value';
160              
161             coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::EncryptionOptions',
162             from 'HashRef',
163             via {
164             if (my $f = Cfn::TypeLibrary::try_function($_)) {
165             return $f
166             } else {
167             return Cfn::Resource::Properties::AWS::AmazonMQ::Broker::EncryptionOptionsValue->new( %$_ );
168             }
169             };
170              
171             package Cfn::Resource::Properties::AWS::AmazonMQ::Broker::EncryptionOptionsValue {
172 1     1   3250 use Moose;
  1         3  
  1         15  
173 1     1   6495 use MooseX::StrictConstructor;
  1         4  
  1         4  
174             extends 'Cfn::Value::TypedValue';
175            
176             has KmsKeyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
177             has UseAwsOwnedKey => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
178             }
179              
180             subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::ConfigurationId',
181             as 'Cfn::Value';
182              
183             coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::ConfigurationId',
184             from 'HashRef',
185             via {
186             if (my $f = Cfn::TypeLibrary::try_function($_)) {
187             return $f
188             } else {
189             return Cfn::Resource::Properties::AWS::AmazonMQ::Broker::ConfigurationIdValue->new( %$_ );
190             }
191             };
192              
193             package Cfn::Resource::Properties::AWS::AmazonMQ::Broker::ConfigurationIdValue {
194 1     1   3424 use Moose;
  1         6  
  1         8  
195 1     1   6495 use MooseX::StrictConstructor;
  1         7  
  1         4  
196             extends 'Cfn::Value::TypedValue';
197            
198             has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
199             has Revision => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
200             }
201              
202             package Cfn::Resource::Properties::AWS::AmazonMQ::Broker {
203 1     1   3216 use Moose;
  1         4  
  1         6  
204 1     1   6484 use MooseX::StrictConstructor;
  1         4  
  1         5  
205             extends 'Cfn::Resource::Properties';
206            
207             has AutoMinorVersionUpgrade => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
208             has BrokerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
209             has Configuration => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::ConfigurationId', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
210             has DeploymentMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
211             has EncryptionOptions => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::EncryptionOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
212             has EngineType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
213             has EngineVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
214             has HostInstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
215             has Logs => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LogList', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
216             has MaintenanceWindowStartTime => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::MaintenanceWindow', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
217             has PubliclyAccessible => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
218             has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
219             has StorageType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
220             has SubnetIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
221             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
222             has Users => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::User', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
223             }
224              
225             1;