File Coverage

blib/lib/Cfn/Resource/AWS/Greengrass/ResourceDefinition.pm
Criterion Covered Total %
statement 74 74 100.0
branch n/a
condition n/a
subroutine 26 26 100.0
pod 0 2 0.0
total 100 102 98.0


line stmt bran cond sub pod time code
1             # AWS::Greengrass::ResourceDefinition generated from spec 18.4.0
2 1     1   1173 use Moose::Util::TypeConstraints;
  1         3  
  1         16  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Greengrass::ResourceDefinition {
9 1     1   2330 use Moose;
  1         2  
  1         10  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ 'Arn','Id','LatestVersionArn','Name' ]
15             }
16             sub supported_regions {
17 1     1 0 1186 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','cn-north-1','eu-central-1','eu-west-1','eu-west-2','us-east-1','us-east-2','us-gov-west-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDownloadOwnerSetting',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDownloadOwnerSetting',
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::Greengrass::ResourceDefinition::ResourceDownloadOwnerSetting->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::ResourceDownloadOwnerSetting {
37 1     1   7634 use Moose;
  1         4  
  1         6  
38 1     1   6826 use MooseX::StrictConstructor;
  1         3  
  1         10  
39             extends 'Cfn::Value::TypedValue';
40            
41             has GroupOwner => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
42             has GroupPermission => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
43             }
44              
45             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::GroupOwnerSetting',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::GroupOwnerSetting',
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::Greengrass::ResourceDefinition::GroupOwnerSetting->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::GroupOwnerSetting {
59 1     1   3681 use Moose;
  1         4  
  1         6  
60 1     1   6932 use MooseX::StrictConstructor;
  1         4  
  1         8  
61             extends 'Cfn::Value::TypedValue';
62            
63             has AutoAddGroupOwner => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
64             has GroupOwner => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
65             }
66              
67             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SecretsManagerSecretResourceData',
68             as 'Cfn::Value';
69              
70             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SecretsManagerSecretResourceData',
71             from 'HashRef',
72             via {
73             if (my $f = Cfn::TypeLibrary::try_function($_)) {
74             return $f
75             } else {
76             return Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::SecretsManagerSecretResourceData->new( %$_ );
77             }
78             };
79              
80             package Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::SecretsManagerSecretResourceData {
81 1     1   3510 use Moose;
  1         4  
  1         7  
82 1     1   6749 use MooseX::StrictConstructor;
  1         3  
  1         6  
83             extends 'Cfn::Value::TypedValue';
84            
85             has AdditionalStagingLabelsToDownload => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
86             has ARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
87             }
88              
89             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SageMakerMachineLearningModelResourceData',
90             as 'Cfn::Value';
91              
92             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SageMakerMachineLearningModelResourceData',
93             from 'HashRef',
94             via {
95             if (my $f = Cfn::TypeLibrary::try_function($_)) {
96             return $f
97             } else {
98             return Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::SageMakerMachineLearningModelResourceData->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::SageMakerMachineLearningModelResourceData {
103 1     1   3504 use Moose;
  1         4  
  1         6  
104 1     1   6683 use MooseX::StrictConstructor;
  1         3  
  1         5  
105             extends 'Cfn::Value::TypedValue';
106            
107             has DestinationPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
108             has OwnerSetting => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDownloadOwnerSetting', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
109             has SageMakerJobArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
110             }
111              
112             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::S3MachineLearningModelResourceData',
113             as 'Cfn::Value';
114              
115             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::S3MachineLearningModelResourceData',
116             from 'HashRef',
117             via {
118             if (my $f = Cfn::TypeLibrary::try_function($_)) {
119             return $f
120             } else {
121             return Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::S3MachineLearningModelResourceData->new( %$_ );
122             }
123             };
124              
125             package Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::S3MachineLearningModelResourceData {
126 1     1   3470 use Moose;
  1         4  
  1         7  
127 1     1   6968 use MooseX::StrictConstructor;
  1         4  
  1         7  
128             extends 'Cfn::Value::TypedValue';
129            
130             has DestinationPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
131             has OwnerSetting => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDownloadOwnerSetting', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
132             has S3Uri => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
133             }
134              
135             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalVolumeResourceData',
136             as 'Cfn::Value';
137              
138             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalVolumeResourceData',
139             from 'HashRef',
140             via {
141             if (my $f = Cfn::TypeLibrary::try_function($_)) {
142             return $f
143             } else {
144             return Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::LocalVolumeResourceData->new( %$_ );
145             }
146             };
147              
148             package Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::LocalVolumeResourceData {
149 1     1   3454 use Moose;
  1         3  
  1         5  
150 1     1   6979 use MooseX::StrictConstructor;
  1         5  
  1         5  
151             extends 'Cfn::Value::TypedValue';
152            
153             has DestinationPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
154             has GroupOwnerSetting => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::GroupOwnerSetting', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
155             has SourcePath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
156             }
157              
158             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalDeviceResourceData',
159             as 'Cfn::Value';
160              
161             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalDeviceResourceData',
162             from 'HashRef',
163             via {
164             if (my $f = Cfn::TypeLibrary::try_function($_)) {
165             return $f
166             } else {
167             return Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::LocalDeviceResourceData->new( %$_ );
168             }
169             };
170              
171             package Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::LocalDeviceResourceData {
172 1     1   3402 use Moose;
  1         3  
  1         7  
173 1     1   6635 use MooseX::StrictConstructor;
  1         6  
  1         7  
174             extends 'Cfn::Value::TypedValue';
175            
176             has GroupOwnerSetting => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::GroupOwnerSetting', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
177             has SourcePath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
178             }
179              
180             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDataContainer',
181             as 'Cfn::Value';
182              
183             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDataContainer',
184             from 'HashRef',
185             via {
186             if (my $f = Cfn::TypeLibrary::try_function($_)) {
187             return $f
188             } else {
189             return Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::ResourceDataContainer->new( %$_ );
190             }
191             };
192              
193             package Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::ResourceDataContainer {
194 1     1   3477 use Moose;
  1         4  
  1         6  
195 1     1   6637 use MooseX::StrictConstructor;
  1         7  
  1         7  
196             extends 'Cfn::Value::TypedValue';
197            
198             has LocalDeviceResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalDeviceResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
199             has LocalVolumeResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalVolumeResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
200             has S3MachineLearningModelResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::S3MachineLearningModelResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
201             has SageMakerMachineLearningModelResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SageMakerMachineLearningModelResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
202             has SecretsManagerSecretResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SecretsManagerSecretResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
203             }
204             subtype 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstance',
205             as 'Cfn::Value',
206             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
207             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
208              
209             coerce 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstance',
210             from 'HashRef',
211             via {
212             if (my $f = Cfn::TypeLibrary::try_function($_)) {
213             return $f
214             } else {
215             die 'Only accepts functions';
216             }
217             },
218             from 'ArrayRef',
219             via {
220             Cfn::Value::Array->new(Value => [
221             map {
222             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstance')->coerce($_)
223             } @$_
224             ]);
225             };
226              
227             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstance',
228             as 'Cfn::Value';
229              
230             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstance',
231             from 'HashRef',
232             via {
233             if (my $f = Cfn::TypeLibrary::try_function($_)) {
234             return $f
235             } else {
236             return Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::ResourceInstance->new( %$_ );
237             }
238             };
239              
240             package Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::ResourceInstance {
241 1     1   3695 use Moose;
  1         3  
  1         6  
242 1     1   6711 use MooseX::StrictConstructor;
  1         5  
  1         6  
243             extends 'Cfn::Value::TypedValue';
244            
245             has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
246             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
247             has ResourceDataContainer => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDataContainer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
248             }
249              
250             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDefinitionVersion',
251             as 'Cfn::Value';
252              
253             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDefinitionVersion',
254             from 'HashRef',
255             via {
256             if (my $f = Cfn::TypeLibrary::try_function($_)) {
257             return $f
258             } else {
259             return Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::ResourceDefinitionVersion->new( %$_ );
260             }
261             };
262              
263             package Cfn::Resource::Properties::Object::AWS::Greengrass::ResourceDefinition::ResourceDefinitionVersion {
264 1     1   3518 use Moose;
  1         3  
  1         6  
265 1     1   6767 use MooseX::StrictConstructor;
  1         2  
  1         5  
266             extends 'Cfn::Value::TypedValue';
267            
268             has Resources => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstance', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
269             }
270              
271             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition {
272 1     1   3385 use Moose;
  1         3  
  1         17  
273 1     1   6589 use MooseX::StrictConstructor;
  1         2  
  1         7  
274             extends 'Cfn::Resource::Properties';
275            
276             has InitialVersion => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDefinitionVersion', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
277             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
278             has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
279             }
280              
281             1;
282             ### main pod documentation begin ###
283              
284             =encoding UTF-8
285              
286             =head1 NAME
287              
288             Cfn::Resource::AWS::Greengrass::ResourceDefinition - Cfn resource for AWS::Greengrass::ResourceDefinition
289              
290             =head1 DESCRIPTION
291              
292             This module implements a Perl module that represents the CloudFormation object AWS::Greengrass::ResourceDefinition.
293              
294             See L<Cfn> for more information on how to use it.
295              
296             =head1 AUTHOR
297              
298             Jose Luis Martinez
299             CAPSiDE
300             jlmartinez@capside.com
301              
302             =head1 COPYRIGHT and LICENSE
303              
304             Copyright (c) 2013 by CAPSiDE
305             This code is distributed under the Apache 2 License. The full text of the
306             license can be found in the LICENSE file included with this module.
307              
308             =cut