File Coverage

blib/lib/Cfn/Resource/AWS/MSK/Cluster.pm
Criterion Covered Total %
statement 68 68 100.0
branch n/a
condition n/a
subroutine 24 24 100.0
pod 0 2 0.0
total 92 94 97.8


line stmt bran cond sub pod time code
1             # AWS::MSK::Cluster generated from spec 7.1.0
2 1     1   658 use Moose::Util::TypeConstraints;
  1         3  
  1         9  
3              
4             coerce 'Cfn::Resource::Properties::AWS::MSK::Cluster',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::MSK::Cluster->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::MSK::Cluster {
9 1     1   2114 use Moose;
  1         4  
  1         8  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::MSK::Cluster', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 13 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1532 [ 'ap-east-1','ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::MSK::Cluster::EBSStorageInfo',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::MSK::Cluster::EBSStorageInfo',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::MSK::Cluster::EBSStorageInfoValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::MSK::Cluster::EBSStorageInfoValue {
37 1     1   6998 use Moose;
  1         9  
  1         7  
38 1     1   7013 use MooseX::StrictConstructor;
  1         2  
  1         10  
39             extends 'Cfn::Value::TypedValue';
40            
41             has VolumeSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
42             }
43              
44             subtype 'Cfn::Resource::Properties::AWS::MSK::Cluster::Tls',
45             as 'Cfn::Value';
46              
47             coerce 'Cfn::Resource::Properties::AWS::MSK::Cluster::Tls',
48             from 'HashRef',
49             via {
50             if (my $f = Cfn::TypeLibrary::try_function($_)) {
51             return $f
52             } else {
53             return Cfn::Resource::Properties::AWS::MSK::Cluster::TlsValue->new( %$_ );
54             }
55             };
56              
57             package Cfn::Resource::Properties::AWS::MSK::Cluster::TlsValue {
58 1     1   3600 use Moose;
  1         2  
  1         5  
59 1     1   6622 use MooseX::StrictConstructor;
  1         2  
  1         4  
60             extends 'Cfn::Value::TypedValue';
61            
62             has CertificateAuthorityArnList => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
63             }
64              
65             subtype 'Cfn::Resource::Properties::AWS::MSK::Cluster::StorageInfo',
66             as 'Cfn::Value';
67              
68             coerce 'Cfn::Resource::Properties::AWS::MSK::Cluster::StorageInfo',
69             from 'HashRef',
70             via {
71             if (my $f = Cfn::TypeLibrary::try_function($_)) {
72             return $f
73             } else {
74             return Cfn::Resource::Properties::AWS::MSK::Cluster::StorageInfoValue->new( %$_ );
75             }
76             };
77              
78             package Cfn::Resource::Properties::AWS::MSK::Cluster::StorageInfoValue {
79 1     1   3322 use Moose;
  1         3  
  1         6  
80 1     1   6567 use MooseX::StrictConstructor;
  1         2  
  1         6  
81             extends 'Cfn::Value::TypedValue';
82            
83             has EBSStorageInfo => (isa => 'Cfn::Resource::Properties::AWS::MSK::Cluster::EBSStorageInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
84             }
85              
86             subtype 'Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionInTransit',
87             as 'Cfn::Value';
88              
89             coerce 'Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionInTransit',
90             from 'HashRef',
91             via {
92             if (my $f = Cfn::TypeLibrary::try_function($_)) {
93             return $f
94             } else {
95             return Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionInTransitValue->new( %$_ );
96             }
97             };
98              
99             package Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionInTransitValue {
100 1     1   3360 use Moose;
  1         3  
  1         5  
101 1     1   7147 use MooseX::StrictConstructor;
  1         3  
  1         5  
102             extends 'Cfn::Value::TypedValue';
103            
104             has ClientBroker => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
105             has InCluster => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
106             }
107              
108             subtype 'Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionAtRest',
109             as 'Cfn::Value';
110              
111             coerce 'Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionAtRest',
112             from 'HashRef',
113             via {
114             if (my $f = Cfn::TypeLibrary::try_function($_)) {
115             return $f
116             } else {
117             return Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionAtRestValue->new( %$_ );
118             }
119             };
120              
121             package Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionAtRestValue {
122 1     1   3370 use Moose;
  1         4  
  1         7  
123 1     1   6522 use MooseX::StrictConstructor;
  1         3  
  1         6  
124             extends 'Cfn::Value::TypedValue';
125            
126             has DataVolumeKMSKeyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
127             }
128              
129             subtype 'Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionInfo',
130             as 'Cfn::Value';
131              
132             coerce 'Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionInfo',
133             from 'HashRef',
134             via {
135             if (my $f = Cfn::TypeLibrary::try_function($_)) {
136             return $f
137             } else {
138             return Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionInfoValue->new( %$_ );
139             }
140             };
141              
142             package Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionInfoValue {
143 1     1   3471 use Moose;
  1         4  
  1         6  
144 1     1   6588 use MooseX::StrictConstructor;
  1         4  
  1         5  
145             extends 'Cfn::Value::TypedValue';
146            
147             has EncryptionAtRest => (isa => 'Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionAtRest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
148             has EncryptionInTransit => (isa => 'Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionInTransit', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
149             }
150              
151             subtype 'Cfn::Resource::Properties::AWS::MSK::Cluster::ConfigurationInfo',
152             as 'Cfn::Value';
153              
154             coerce 'Cfn::Resource::Properties::AWS::MSK::Cluster::ConfigurationInfo',
155             from 'HashRef',
156             via {
157             if (my $f = Cfn::TypeLibrary::try_function($_)) {
158             return $f
159             } else {
160             return Cfn::Resource::Properties::AWS::MSK::Cluster::ConfigurationInfoValue->new( %$_ );
161             }
162             };
163              
164             package Cfn::Resource::Properties::AWS::MSK::Cluster::ConfigurationInfoValue {
165 1     1   3368 use Moose;
  1         2  
  1         7  
166 1     1   6507 use MooseX::StrictConstructor;
  1         4  
  1         6  
167             extends 'Cfn::Value::TypedValue';
168            
169             has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
170             has Revision => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
171             }
172              
173             subtype 'Cfn::Resource::Properties::AWS::MSK::Cluster::ClientAuthentication',
174             as 'Cfn::Value';
175              
176             coerce 'Cfn::Resource::Properties::AWS::MSK::Cluster::ClientAuthentication',
177             from 'HashRef',
178             via {
179             if (my $f = Cfn::TypeLibrary::try_function($_)) {
180             return $f
181             } else {
182             return Cfn::Resource::Properties::AWS::MSK::Cluster::ClientAuthenticationValue->new( %$_ );
183             }
184             };
185              
186             package Cfn::Resource::Properties::AWS::MSK::Cluster::ClientAuthenticationValue {
187 1     1   3353 use Moose;
  1         2  
  1         6  
188 1     1   6555 use MooseX::StrictConstructor;
  1         2  
  1         5  
189             extends 'Cfn::Value::TypedValue';
190            
191             has Tls => (isa => 'Cfn::Resource::Properties::AWS::MSK::Cluster::Tls', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
192             }
193              
194             subtype 'Cfn::Resource::Properties::AWS::MSK::Cluster::BrokerNodeGroupInfo',
195             as 'Cfn::Value';
196              
197             coerce 'Cfn::Resource::Properties::AWS::MSK::Cluster::BrokerNodeGroupInfo',
198             from 'HashRef',
199             via {
200             if (my $f = Cfn::TypeLibrary::try_function($_)) {
201             return $f
202             } else {
203             return Cfn::Resource::Properties::AWS::MSK::Cluster::BrokerNodeGroupInfoValue->new( %$_ );
204             }
205             };
206              
207             package Cfn::Resource::Properties::AWS::MSK::Cluster::BrokerNodeGroupInfoValue {
208 1     1   3373 use Moose;
  1         1  
  1         6  
209 1     1   6499 use MooseX::StrictConstructor;
  1         5  
  1         5  
210             extends 'Cfn::Value::TypedValue';
211            
212             has BrokerAZDistribution => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
213             has ClientSubnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
214             has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
215             has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
216             has StorageInfo => (isa => 'Cfn::Resource::Properties::AWS::MSK::Cluster::StorageInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
217             }
218              
219             package Cfn::Resource::Properties::AWS::MSK::Cluster {
220 1     1   3404 use Moose;
  1         3  
  1         5  
221 1     1   6560 use MooseX::StrictConstructor;
  1         3  
  1         8  
222             extends 'Cfn::Resource::Properties';
223            
224             has BrokerNodeGroupInfo => (isa => 'Cfn::Resource::Properties::AWS::MSK::Cluster::BrokerNodeGroupInfo', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
225             has ClientAuthentication => (isa => 'Cfn::Resource::Properties::AWS::MSK::Cluster::ClientAuthentication', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
226             has ClusterName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
227             has ConfigurationInfo => (isa => 'Cfn::Resource::Properties::AWS::MSK::Cluster::ConfigurationInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
228             has EncryptionInfo => (isa => 'Cfn::Resource::Properties::AWS::MSK::Cluster::EncryptionInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
229             has EnhancedMonitoring => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
230             has KafkaVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
231             has NumberOfBrokerNodes => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
232             has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
233             }
234              
235             1;