File Coverage

blib/lib/Cfn/Resource/AWS/Transfer/Server.pm
Criterion Covered Total %
statement 38 38 100.0
branch n/a
condition n/a
subroutine 14 14 100.0
pod 0 2 0.0
total 52 54 96.3


line stmt bran cond sub pod time code
1             # AWS::Transfer::Server generated from spec 20.1.0
2 1     1   756 use Moose::Util::TypeConstraints;
  1         4  
  1         10  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Transfer::Server',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Transfer::Server->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Transfer::Server {
9 1     1   2130 use Moose;
  1         3  
  1         10  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Transfer::Server', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ 'Arn','ServerId' ]
15             }
16             sub supported_regions {
17 1     1 0 1059 [ '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-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ]
18             }
19             }
20              
21              
22             subtype 'ArrayOfCfn::Resource::Properties::AWS::Transfer::Server::SecurityGroupId',
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::Transfer::Server::SecurityGroupId',
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::Transfer::Server::SecurityGroupId')->coerce($_)
41             } @$_
42             ]);
43             };
44              
45             subtype 'Cfn::Resource::Properties::AWS::Transfer::Server::SecurityGroupId',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::Transfer::Server::SecurityGroupId',
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::Transfer::Server::SecurityGroupId->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::Transfer::Server::SecurityGroupId {
59 1     1   7740 use Moose;
  1         3  
  1         5  
60 1     1   6761 use MooseX::StrictConstructor;
  1         4  
  1         9  
61             extends 'Cfn::Value::TypedValue';
62            
63             }
64             subtype 'ArrayOfCfn::Resource::Properties::AWS::Transfer::Server::Protocol',
65             as 'Cfn::Value',
66             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
67             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
68              
69             coerce 'ArrayOfCfn::Resource::Properties::AWS::Transfer::Server::Protocol',
70             from 'HashRef',
71             via {
72             if (my $f = Cfn::TypeLibrary::try_function($_)) {
73             return $f
74             } else {
75             die 'Only accepts functions';
76             }
77             },
78             from 'ArrayRef',
79             via {
80             Cfn::Value::Array->new(Value => [
81             map {
82             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Transfer::Server::Protocol')->coerce($_)
83             } @$_
84             ]);
85             };
86              
87             subtype 'Cfn::Resource::Properties::AWS::Transfer::Server::Protocol',
88             as 'Cfn::Value';
89              
90             coerce 'Cfn::Resource::Properties::AWS::Transfer::Server::Protocol',
91             from 'HashRef',
92             via {
93             if (my $f = Cfn::TypeLibrary::try_function($_)) {
94             return $f
95             } else {
96             return Cfn::Resource::Properties::Object::AWS::Transfer::Server::Protocol->new( %$_ );
97             }
98             };
99              
100             package Cfn::Resource::Properties::Object::AWS::Transfer::Server::Protocol {
101 1     1   3810 use Moose;
  1         3  
  1         7  
102 1     1   6524 use MooseX::StrictConstructor;
  1         3  
  1         6  
103             extends 'Cfn::Value::TypedValue';
104            
105             }
106              
107             subtype 'Cfn::Resource::Properties::AWS::Transfer::Server::IdentityProviderDetails',
108             as 'Cfn::Value';
109              
110             coerce 'Cfn::Resource::Properties::AWS::Transfer::Server::IdentityProviderDetails',
111             from 'HashRef',
112             via {
113             if (my $f = Cfn::TypeLibrary::try_function($_)) {
114             return $f
115             } else {
116             return Cfn::Resource::Properties::Object::AWS::Transfer::Server::IdentityProviderDetails->new( %$_ );
117             }
118             };
119              
120             package Cfn::Resource::Properties::Object::AWS::Transfer::Server::IdentityProviderDetails {
121 1     1   3287 use Moose;
  1         4  
  1         5  
122 1     1   6645 use MooseX::StrictConstructor;
  1         2  
  1         6  
123             extends 'Cfn::Value::TypedValue';
124            
125             has InvocationRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
126             has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
127             }
128              
129             subtype 'Cfn::Resource::Properties::AWS::Transfer::Server::EndpointDetails',
130             as 'Cfn::Value';
131              
132             coerce 'Cfn::Resource::Properties::AWS::Transfer::Server::EndpointDetails',
133             from 'HashRef',
134             via {
135             if (my $f = Cfn::TypeLibrary::try_function($_)) {
136             return $f
137             } else {
138             return Cfn::Resource::Properties::Object::AWS::Transfer::Server::EndpointDetails->new( %$_ );
139             }
140             };
141              
142             package Cfn::Resource::Properties::Object::AWS::Transfer::Server::EndpointDetails {
143 1     1   3376 use Moose;
  1         3  
  1         5  
144 1     1   6513 use MooseX::StrictConstructor;
  1         2  
  1         6  
145             extends 'Cfn::Value::TypedValue';
146            
147             has AddressAllocationIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Conditional');
148             has SecurityGroupIds => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Transfer::Server::SecurityGroupId', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
149             has SubnetIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150             has VpcEndpointId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151             has VpcId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
152             }
153              
154             package Cfn::Resource::Properties::AWS::Transfer::Server {
155 1     1   3306 use Moose;
  1         3  
  1         6  
156 1     1   6627 use MooseX::StrictConstructor;
  1         2  
  1         5  
157             extends 'Cfn::Resource::Properties';
158            
159             has Certificate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
160             has EndpointDetails => (isa => 'Cfn::Resource::Properties::AWS::Transfer::Server::EndpointDetails', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
161             has EndpointType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
162             has IdentityProviderDetails => (isa => 'Cfn::Resource::Properties::AWS::Transfer::Server::IdentityProviderDetails', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
163             has IdentityProviderType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
164             has LoggingRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
165             has Protocols => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Transfer::Server::Protocol', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
166             has SecurityPolicyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
167             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
168             }
169              
170             1;
171             ### main pod documentation begin ###
172              
173             =encoding UTF-8
174              
175             =head1 NAME
176              
177             Cfn::Resource::AWS::Transfer::Server - Cfn resource for AWS::Transfer::Server
178              
179             =head1 DESCRIPTION
180              
181             This module implements a Perl module that represents the CloudFormation object AWS::Transfer::Server.
182              
183             See L<Cfn> for more information on how to use it.
184              
185             =head1 AUTHOR
186              
187             Jose Luis Martinez
188             CAPSiDE
189             jlmartinez@capside.com
190              
191             =head1 COPYRIGHT and LICENSE
192              
193             Copyright (c) 2013 by CAPSiDE
194             This code is distributed under the Apache 2 License. The full text of the
195             license can be found in the LICENSE file included with this module.
196              
197             =cut