Cfn/Resource/AWS/EFS/AccessPoint.pm

filter: Statementstmt 79.5% 78 / 98 Branchbran 0.0% 0 / 12 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.8% 14 / 23 Podpod 0.0% 0 / 2 totaltotal 68.1% 92 / 135 CC 7 SCAR 11.4
CC
7
Cov
71%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.1
« Cfn/Resource/AWS/SES/ConfigurationSetEventDestination.pm ↑ Summary Cfn/Resource/AWS/OpsWorks/App.pm »
1 # AWS::EFS::AccessPoint 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::EFS::AccessPoint',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::EFS::AccessPoint->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::EFS::AccessPoint {
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::EFS::AccessPoint', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'AccessPointId','Arn' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','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  
23 1 subtype 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::CreationInfo',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::CreationInfo',
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::EFS::AccessPoint::CreationInfo->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::CreationInfo {
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 OwnerGid => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
42 1 has OwnerUid => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
43 1 has Permissions => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
44 }
45  
46 1 subtype 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::RootDirectory',
47 as 'Cfn::Value';
48  
49 coerce 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::RootDirectory',
50 from 'HashRef',
51 via {
52 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
53 0 return $f
54 } else {
55 0 return Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::RootDirectory->new( %$_ );
56 }
57 1 };
58  
59 1 package Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::RootDirectory {
60 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
62 1 extends 'Cfn::Value::TypedValue';
63
64 1 has CreationInfo => (isa => 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::CreationInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
65 1 has Path => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
66 }
67  
68 1 subtype 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::PosixUser',
69 as 'Cfn::Value';
70  
71 coerce 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::PosixUser',
72 from 'HashRef',
73 via {
74 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
75 0 return $f
76 } else {
77 0 return Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::PosixUser->new( %$_ );
78 }
79 1 };
80  
81 1 package Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::PosixUser {
82 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
84 1 extends 'Cfn::Value::TypedValue';
85
86 1 has Gid => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
87 1 has SecondaryGids => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
88 1 has Uid => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
89 }
90 subtype 'ArrayOfCfn::Resource::Properties::AWS::EFS::AccessPoint::AccessPointTag',
91 as 'Cfn::Value',
92 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
93 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
94  
95 coerce 'ArrayOfCfn::Resource::Properties::AWS::EFS::AccessPoint::AccessPointTag',
96 from 'HashRef',
97 via {
98 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
99 0 return $f
100 } else {
101 0 die 'Only accepts functions';
102 }
103 },
104 from 'ArrayRef',
105 via {
106 Cfn::Value::Array->new(Value => [
107 map {
108 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EFS::AccessPoint::AccessPointTag')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
109 } @$_
110 ]);
111 1 };
112  
113 1 subtype 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::AccessPointTag',
114 as 'Cfn::Value';
115  
116 coerce 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::AccessPointTag',
117 from 'HashRef',
118 via {
119 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
120 0 return $f
121 } else {
122 0 return Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::AccessPointTag->new( %$_ );
123 }
124 1 };
125  
126 1 package Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::AccessPointTag {
127 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
128 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
129 1 extends 'Cfn::Value::TypedValue';
130
131 1 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132 1 has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
133 }
134  
135 1 package Cfn::Resource::Properties::AWS::EFS::AccessPoint {
136 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
137 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
138 1 extends 'Cfn::Resource::Properties';
139
140 1 has AccessPointTags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EFS::AccessPoint::AccessPointTag', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
141 1 has ClientToken => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
142 1 has FileSystemId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
143 1 has PosixUser => (isa => 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::PosixUser', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
144 1 has RootDirectory => (isa => 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::RootDirectory', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
145 }
146  
147 1 1;
148 ### main pod documentation begin ###
149  
150 =encoding UTF-8
151  
152 =head1 NAME
153  
154 Cfn::Resource::AWS::EFS::AccessPoint - Cfn resource for AWS::EFS::AccessPoint
155  
156 =head1 DESCRIPTION
157  
158 This module implements a Perl module that represents the CloudFormation object AWS::EFS::AccessPoint.
159  
160 See L<Cfn> for more information on how to use it.
161  
162 =head1 AUTHOR
163  
164 Jose Luis Martinez
165 CAPSiDE
166 jlmartinez@capside.com
167  
168 =head1 COPYRIGHT and LICENSE
169  
170 Copyright (c) 2013 by CAPSiDE
171 This code is distributed under the Apache 2 License. The full text of the
172 license can be found in the LICENSE file included with this module.
173  
174 =cut
« Cfn/Resource/AWS/SES/ConfigurationSetEventDestination.pm ↑ Summary Cfn/Resource/AWS/OpsWorks/App.pm »