Cfn/Resource/AWS/Transfer/Server.pm

filter: Statementstmt 75.0% 81 / 108 Branchbran 0.0% 0 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 51.8% 14 / 27 Podpod 0.0% 0 / 2 totaltotal 62.0% 95 / 153 CC 9 SCAR 12.1
CC
9
Cov
65%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.4
« Cfn/Resource/AWS/Cassandra/Table.pm ↑ Summary Cfn/Resource/AWS/SageMaker/EndpointConfig.pm »
1 # AWS::Transfer::Server generated from spec 20.1.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::Transfer::Server',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::Transfer::Server->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::Transfer::Server {
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::Transfer::Server', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'Arn','ServerId' ]
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','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' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22 subtype 'ArrayOfCfn::Resource::Properties::AWS::Transfer::Server::SecurityGroupId',
23 as 'Cfn::Value',
24 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
25 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
26  
27 coerce 'ArrayOfCfn::Resource::Properties::AWS::Transfer::Server::SecurityGroupId',
28 from 'HashRef',
29 via {
30 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
31 0 return $f
32 } else {
33 0 die 'Only accepts functions';
34 }
35 },
36 from 'ArrayRef',
37 via {
38 Cfn::Value::Array->new(Value => [
39 map {
40 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Transfer::Server::SecurityGroupId')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
41 } @$_
42 ]);
43 1 };
44  
45 1 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 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::Transfer::Server::SecurityGroupId->new( %$_ );
55 }
56 1 };
57  
58 1 package Cfn::Resource::Properties::Object::AWS::Transfer::Server::SecurityGroupId {
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 }
64 subtype 'ArrayOfCfn::Resource::Properties::AWS::Transfer::Server::Protocol',
65 as 'Cfn::Value',
66 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
67 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
68  
69 coerce 'ArrayOfCfn::Resource::Properties::AWS::Transfer::Server::Protocol',
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 die 'Only accepts functions';
76 }
77 },
78 from 'ArrayRef',
79 via {
80 Cfn::Value::Array->new(Value => [
81 map {
82 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Transfer::Server::Protocol')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
83 } @$_
84 ]);
85 1 };
86  
87 1 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 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
94 0 return $f
95 } else {
96 0 return Cfn::Resource::Properties::Object::AWS::Transfer::Server::Protocol->new( %$_ );
97 }
98 1 };
99  
100 1 package Cfn::Resource::Properties::Object::AWS::Transfer::Server::Protocol {
101 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
102 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
103 1 extends 'Cfn::Value::TypedValue';
104
105 }
106  
107 1 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 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
114 0 return $f
115 } else {
116 0 return Cfn::Resource::Properties::Object::AWS::Transfer::Server::IdentityProviderDetails->new( %$_ );
117 }
118 1 };
119  
120 1 package Cfn::Resource::Properties::Object::AWS::Transfer::Server::IdentityProviderDetails {
121 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
122 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
123 1 extends 'Cfn::Value::TypedValue';
124
125 1 has InvocationRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
126 1 has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
127 }
128  
129 1 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 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
136 0 return $f
137 } else {
138 0 return Cfn::Resource::Properties::Object::AWS::Transfer::Server::EndpointDetails->new( %$_ );
139 }
140 1 };
141  
142 1 package Cfn::Resource::Properties::Object::AWS::Transfer::Server::EndpointDetails {
143 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
144 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
145 1 extends 'Cfn::Value::TypedValue';
146
147 1 has AddressAllocationIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Conditional');
148 1 has SecurityGroupIds => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Transfer::Server::SecurityGroupId', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
149 1 has SubnetIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150 1 has VpcEndpointId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151 1 has VpcId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
152 }
153  
154 1 package Cfn::Resource::Properties::AWS::Transfer::Server {
155 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
156 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
157 1 extends 'Cfn::Resource::Properties';
158
159 1 has Certificate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
160 1 has EndpointDetails => (isa => 'Cfn::Resource::Properties::AWS::Transfer::Server::EndpointDetails', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
161 1 has EndpointType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
162 1 has IdentityProviderDetails => (isa => 'Cfn::Resource::Properties::AWS::Transfer::Server::IdentityProviderDetails', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
163 1 has IdentityProviderType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
164 1 has LoggingRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
165 1 has Protocols => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Transfer::Server::Protocol', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
166 1 has SecurityPolicyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
167 1 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
168 }
169  
170 1 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
« Cfn/Resource/AWS/Cassandra/Table.pm ↑ Summary Cfn/Resource/AWS/SageMaker/EndpointConfig.pm »