File Coverage

blib/lib/Cfn/Resource/AWS/EC2/ClientVpnEndpoint.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::EC2::ClientVpnEndpoint generated from spec 21.0.0
2 1     1   657 use Moose::Util::TypeConstraints;
  1         3  
  1         8  
3              
4             coerce 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::EC2::ClientVpnEndpoint {
9 1     1   2050 use Moose;
  1         3  
  1         8  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1158 [ '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' ]
18             }
19             }
20              
21              
22              
23             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::FederatedAuthenticationRequest->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::FederatedAuthenticationRequest {
37 1     1   7065 use Moose;
  1         3  
  1         7  
38 1     1   6648 use MooseX::StrictConstructor;
  1         3  
  1         10  
39             extends 'Cfn::Value::TypedValue';
40            
41             has SAMLProviderArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has SelfServiceSAMLProviderArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             }
44              
45             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::DirectoryServiceAuthenticationRequest->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::DirectoryServiceAuthenticationRequest {
59 1     1   3551 use Moose;
  1         4  
  1         6  
60 1     1   6532 use MooseX::StrictConstructor;
  1         3  
  1         6  
61             extends 'Cfn::Value::TypedValue';
62            
63             has DirectoryId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             }
65              
66             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
73             return $f
74             } else {
75             return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::CertificateAuthenticationRequest->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::CertificateAuthenticationRequest {
80 1     1   3401 use Moose;
  1         15  
  1         7  
81 1     1   6592 use MooseX::StrictConstructor;
  1         2  
  1         7  
82             extends 'Cfn::Value::TypedValue';
83            
84             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
89             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
90              
91             coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::TagSpecification',
92             from 'HashRef',
93             via {
94             if (my $f = Cfn::TypeLibrary::try_function($_)) {
95             return $f
96             } else {
97             die 'Only accepts functions';
98             }
99             },
100             from 'ArrayRef',
101             via {
102             Cfn::Value::Array->new(Value => [
103             map {
104             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::TagSpecification')->coerce($_)
105             } @$_
106             ]);
107             };
108              
109             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
116             return $f
117             } else {
118             return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::TagSpecification->new( %$_ );
119             }
120             };
121              
122             package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::TagSpecification {
123 1     1   3594 use Moose;
  1         2  
  1         7  
124 1     1   6524 use MooseX::StrictConstructor;
  1         2  
  1         6  
125             extends 'Cfn::Value::TypedValue';
126            
127             has ResourceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
128             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
129             }
130              
131             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
138             return $f
139             } else {
140             return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::ConnectionLogOptions->new( %$_ );
141             }
142             };
143              
144             package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::ConnectionLogOptions {
145 1     1   3428 use Moose;
  1         3  
  1         7  
146 1     1   6630 use MooseX::StrictConstructor;
  1         5  
  1         5  
147             extends 'Cfn::Value::TypedValue';
148            
149             has CloudwatchLogGroup => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150             has CloudwatchLogStream => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151             has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
152             }
153              
154             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
161             return $f
162             } else {
163             return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::ClientConnectOptions->new( %$_ );
164             }
165             };
166              
167             package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::ClientConnectOptions {
168 1     1   3430 use Moose;
  1         2  
  1         5  
169 1     1   6537 use MooseX::StrictConstructor;
  1         3  
  1         6  
170             extends 'Cfn::Value::TypedValue';
171            
172             has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
173             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
178             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
179              
180             coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ClientAuthenticationRequest',
181             from 'HashRef',
182             via {
183             if (my $f = Cfn::TypeLibrary::try_function($_)) {
184             return $f
185             } else {
186             die 'Only accepts functions';
187             }
188             },
189             from 'ArrayRef',
190             via {
191             Cfn::Value::Array->new(Value => [
192             map {
193             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ClientAuthenticationRequest')->coerce($_)
194             } @$_
195             ]);
196             };
197              
198             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
205             return $f
206             } else {
207             return Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::ClientAuthenticationRequest->new( %$_ );
208             }
209             };
210              
211             package Cfn::Resource::Properties::Object::AWS::EC2::ClientVpnEndpoint::ClientAuthenticationRequest {
212 1     1   3643 use Moose;
  1         2  
  1         7  
213 1     1   6572 use MooseX::StrictConstructor;
  1         4  
  1         5  
214             extends 'Cfn::Value::TypedValue';
215            
216             has ActiveDirectory => (isa => 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::DirectoryServiceAuthenticationRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
217             has FederatedAuthentication => (isa => 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::FederatedAuthenticationRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
218             has MutualAuthentication => (isa => 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::CertificateAuthenticationRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
219             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
220             }
221              
222             package Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint {
223 1     1   3336 use Moose;
  1         2  
  1         6  
224 1     1   6555 use MooseX::StrictConstructor;
  1         3  
  1         5  
225             extends 'Cfn::Resource::Properties';
226            
227             has AuthenticationOptions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ClientAuthenticationRequest', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
228             has ClientCidrBlock => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
229             has ClientConnectOptions => (isa => 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ClientConnectOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
230             has ConnectionLogOptions => (isa => 'Cfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::ConnectionLogOptions', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
231             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
232             has DnsServers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
233             has SecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
234             has SelfServicePortal => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
235             has ServerCertificateArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
236             has SplitTunnel => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
237             has TagSpecifications => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::ClientVpnEndpoint::TagSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
238             has TransportProtocol => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
239             has VpcId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
240             has VpnPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
241             }
242              
243             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