Cfn/Resource/AWS/EC2/ClientVpnEndpoint.pm

filter: Statementstmt 77.5% 124 / 160 Branchbran 0.0% 0 / 22 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 55.5% 20 / 36 Podpod 0.0% 0 / 2 totaltotal 65.4% 144 / 220 CC 12 SCAR 12.2
CC
12
Cov
68%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.4
« Cfn/Resource/AWS/Greengrass/FunctionDefinition.pm ↑ Summary Cfn/Resource/AWS/Glue/Partition.pm »
1 # AWS::EC2::ClientVpnEndpoint generated from spec 21.0.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::EC2::ClientVpnEndpoint {
9 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 extends 'Cfn::Resource';
11 1 has Properties => (isa => 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 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','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22  
23 1 subtype 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::FederatedAuthenticationRequest',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::FederatedAuthenticationRequest',
27 from 'HashRef',
28 via {
29 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
30 0 return $f
31 } else {
32 0 return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::FederatedAuthenticationRequest->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::FederatedAuthenticationRequest {
37 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 extends 'Cfn::Value::TypedValue';
40
41 1 has SAMLProviderArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 1 has SelfServiceSAMLProviderArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 }
44  
45 1 subtype 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::DirectoryServiceAuthenticationRequest',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::DirectoryServiceAuthenticationRequest',
49 from 'HashRef',
50 via {
51 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
52 0 return $f
53 } else {
54 0 return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::DirectoryServiceAuthenticationRequest->new( %$_ );
55 }
56 1 };
57  
58 1 package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::DirectoryServiceAuthenticationRequest {
59 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 1 extends 'Cfn::Value::TypedValue';
62
63 1 has DirectoryId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 }
65  
66 1 subtype 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::CertificateAuthenticationRequest',
67 as 'Cfn::Value';
68  
69 coerce 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::CertificateAuthenticationRequest',
70 from 'HashRef',
71 via {
72 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
73 0 return $f
74 } else {
75 0 return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::CertificateAuthenticationRequest->new( %$_ );
76 }
77 1 };
78  
79 1 package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::CertificateAuthenticationRequest {
80 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
81 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
82 1 extends 'Cfn::Value::TypedValue';
83
84 1 has ClientRootCertificateChainArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85 }
86 subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::TagSpecification',
87 as 'Cfn::Value',
88 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
89 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
90  
91 coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::TagSpecification',
92 from 'HashRef',
93 via {
94 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
95 0 return $f
96 } else {
97 0 die 'Only accepts functions';
98 }
99 },
100 from 'ArrayRef',
101 via {
102 Cfn::Value::Array->new(Value => [
103 map {
104 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::TagSpecification')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
105 } @$_
106 ]);
107 1 };
108  
109 1 subtype 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::TagSpecification',
110 as 'Cfn::Value';
111  
112 coerce 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::TagSpecification',
113 from 'HashRef',
114 via {
115 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
116 0 return $f
117 } else {
118 0 return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::TagSpecification->new( %$_ );
119 }
120 1 };
121  
122 1 package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::TagSpecification {
123 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
124 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
125 1 extends 'Cfn::Value::TypedValue';
126
127 1 has ResourceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
128 1 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
129 }
130  
131 1 subtype 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ConnectionLogOptions',
132 as 'Cfn::Value';
133  
134 coerce 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ConnectionLogOptions',
135 from 'HashRef',
136 via {
137 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
138 0 return $f
139 } else {
140 0 return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::ConnectionLogOptions->new( %$_ );
141 }
142 1 };
143  
144 1 package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::ConnectionLogOptions {
145 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
146 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
147 1 extends 'Cfn::Value::TypedValue';
148
149 1 has CloudwatchLogGroup => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150 1 has CloudwatchLogStream => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151 1 has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
152 }
153  
154 1 subtype 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ClientConnectOptions',
155 as 'Cfn::Value';
156  
157 coerce 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ClientConnectOptions',
158 from 'HashRef',
159 via {
160 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
161 0 return $f
162 } else {
163 0 return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::ClientConnectOptions->new( %$_ );
164 }
165 1 };
166  
167 1 package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::ClientConnectOptions {
168 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
169 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
170 1 extends 'Cfn::Value::TypedValue';
171
172 1 has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173 1 has LambdaFunctionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174 }
175 subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ClientAuthenticationRequest',
176 as 'Cfn::Value',
177 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
178 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
179  
180 coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ClientAuthenticationRequest',
181 from 'HashRef',
182 via {
183 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
184 0 return $f
185 } else {
186 0 die 'Only accepts functions';
187 }
188 },
189 from 'ArrayRef',
190 via {
191 Cfn::Value::Array->new(Value => [
192 map {
193 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ClientAuthenticationRequest')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
194 } @$_
195 ]);
196 1 };
197  
198 1 subtype 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ClientAuthenticationRequest',
199 as 'Cfn::Value';
200  
201 coerce 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ClientAuthenticationRequest',
202 from 'HashRef',
203 via {
204 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
205 0 return $f
206 } else {
207 0 return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::ClientAuthenticationRequest->new( %$_ );
208 }
209 1 };
210  
211 1 package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::ClientAuthenticationRequest {
212 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
213 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
214 1 extends 'Cfn::Value::TypedValue';
215
216 1 has ActiveDirectory => (isa => 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::DirectoryServiceAuthenticationRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
217 1 has FederatedAuthentication => (isa => 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::FederatedAuthenticationRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
218 1 has MutualAuthentication => (isa => 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::CertificateAuthenticationRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
219 1 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
220 }
221  
222 1 package Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint {
223 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
224 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
225 1 extends 'Cfn::Resource::Properties';
226
227 1 has AuthenticationOptions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ClientAuthenticationRequest', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
228 1 has ClientCidrBlock => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
229 1 has ClientConnectOptions => (isa => 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ClientConnectOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
230 1 has ConnectionLogOptions => (isa => 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ConnectionLogOptions', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
231 1 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
232 1 has DnsServers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
233 1 has SecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
234 1 has SelfServicePortal => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
235 1 has ServerCertificateArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
236 1 has SplitTunnel => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
237 1 has TagSpecifications => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::TagSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
238 1 has TransportProtocol => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
239 1 has VpcId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
240 1 has VpnPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
241 }
242  
243 1 1;
244 ### main pod documentation begin ###
245  
246 =encoding UTF-8
247  
248 =head1 NAME
249  
250 Cfn::Resource::AWS::EC2::ClientVpnEndpoint - Cfn resource for AWS::EC2::ClientVpnEndpoint
251  
252 =head1 DESCRIPTION
253  
254 This module implements a Perl module that represents the CloudFormation object AWS::EC2::ClientVpnEndpoint.
255  
256 See L<Cfn> for more information on how to use it.
257  
258 =head1 AUTHOR
259  
260 Jose Luis Martinez
261 CAPSiDE
262 jlmartinez@capside.com
263  
264 =head1 COPYRIGHT and LICENSE
265  
266 Copyright (c) 2013 by CAPSiDE
267 This code is distributed under the Apache 2 License. The full text of the
268 license can be found in the LICENSE file included with this module.
269  
270 =cut
« Cfn/Resource/AWS/Greengrass/FunctionDefinition.pm ↑ Summary Cfn/Resource/AWS/Glue/Partition.pm »