Cfn/Resource/AWS/EFS/AccessPoint.pm untested

filter: Statementstmt 0.0% 0 / 114 Branchbran 0.0% 0 / 10 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 14 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 145 CC 1 SCAR 6.9
CC
1
Cov
0%
AttributeList
2.0
supported_regions
2.0
BEGIN
2.0
CRAP 2.0
1 # AWS::EFS::AccessPoint generated from spec 34.0.0
2 use Moose::Util::TypeConstraints;
3  
4 coerce 'Cfn::Resource::Properties::AWS::EFS::AccessPoint',
5 from 'HashRef',
6 via { Cfn::Resource::Properties::AWS::EFS::AccessPoint->new( %$_ ) };
7  
8 package Cfn::Resource::AWS::EFS::AccessPoint {
9 use Moose;
10 extends 'Cfn::Resource';
11 has Properties => (isa => 'Cfn::Resource::Properties::AWS::EFS::AccessPoint', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 [ 'AccessPointId','Arn' ]
15 }
16 sub supported_regions {
17 [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','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' ]
18 }
19 }
20  
21  
22  
23 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 if (my $f = Cfn::TypeLibrary::try_function($_)) {
30 return $f
31 } else {
32 return Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::CreationInfo->new( %$_ );
33 }
34 };
35  
36 package Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::CreationInfo {
37 use Moose;
38 use MooseX::StrictConstructor;
39 extends 'Cfn::Value::TypedValue';
40
41 has OwnerGid => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
42 has OwnerUid => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
43 has Permissions => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
44 }
45  
46 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 if (my $f = Cfn::TypeLibrary::try_function($_)) {
53 return $f
54 } else {
55 return Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::RootDirectory->new( %$_ );
56 }
57 };
58  
59 package Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::RootDirectory {
60 use Moose;
61 use MooseX::StrictConstructor;
62 extends 'Cfn::Value::TypedValue';
63
64 has CreationInfo => (isa => 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::CreationInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
65 has Path => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
66 }
67  
68 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 if (my $f = Cfn::TypeLibrary::try_function($_)) {
75 return $f
76 } else {
77 return Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::PosixUser->new( %$_ );
78 }
79 };
80  
81 package Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::PosixUser {
82 use Moose;
83 use MooseX::StrictConstructor;
84 extends 'Cfn::Value::TypedValue';
85
86 has Gid => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
87 has SecondaryGids => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
88 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 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
93 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
94  
95 coerce 'ArrayOfCfn::Resource::Properties::AWS::EFS::AccessPoint::AccessPointTag',
96 from 'HashRef',
97 via {
98 if (my $f = Cfn::TypeLibrary::try_function($_)) {
99 return $f
100 } else {
101 die 'Only accepts functions';
102 }
103 },
104 from 'ArrayRef',
105 via {
106 Cfn::Value::Array->new(Value => [
107 map {
108 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EFS::AccessPoint::AccessPointTag')->coerce($_)
109 } @$_
110 ]);
111 };
112  
113 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 if (my $f = Cfn::TypeLibrary::try_function($_)) {
120 return $f
121 } else {
122 return Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::AccessPointTag->new( %$_ );
123 }
124 };
125  
126 package Cfn::Resource::Properties::Object::AWS::EFS::AccessPoint::AccessPointTag {
127 use Moose;
128 use MooseX::StrictConstructor;
129 extends 'Cfn::Value::TypedValue';
130
131 has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132 has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
133 }
134  
135 package Cfn::Resource::Properties::AWS::EFS::AccessPoint {
136 use Moose;
137 use MooseX::StrictConstructor;
138 extends 'Cfn::Resource::Properties';
139
140 has AccessPointTags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EFS::AccessPoint::AccessPointTag', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
141 has ClientToken => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
142 has FileSystemId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
143 has PosixUser => (isa => 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::PosixUser', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
144 has RootDirectory => (isa => 'Cfn::Resource::Properties::AWS::EFS::AccessPoint::RootDirectory', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
145 }
146  
147 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