File Coverage

blib/lib/Cfn/Resource/AWS/EFS/AccessPoint.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::EFS::AccessPoint generated from spec 20.1.0
2 1     1   805 use Moose::Util::TypeConstraints;
  1         4  
  1         10  
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 1     1   2290 use Moose;
  1         4  
  1         7  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::EFS::AccessPoint', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ 'AccessPointId','Arn' ]
15             }
16             sub supported_regions {
17 1     1 0 1226 [ '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' ]
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 1     1   7511 use Moose;
  1         13  
  1         11  
38 1     1   6706 use MooseX::StrictConstructor;
  1         4  
  1         11  
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 1     1   3822 use Moose;
  1         2  
  1         7  
61 1     1   6834 use MooseX::StrictConstructor;
  1         2  
  1         6  
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 1     1   3659 use Moose;
  1         4  
  1         8  
83 1     1   6816 use MooseX::StrictConstructor;
  1         5  
  1         5  
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 1     1   3737 use Moose;
  1         3  
  1         6  
128 1     1   6749 use MooseX::StrictConstructor;
  1         3  
  1         6  
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 1     1   3364 use Moose;
  1         4  
  1         6  
137 1     1   6719 use MooseX::StrictConstructor;
  1         3  
  1         7  
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