File Coverage

blib/lib/Cfn/Resource/AWS/Greengrass/ResourceDefinition.pm
Criterion Covered Total %
statement 68 68 100.0
branch n/a
condition n/a
subroutine 24 24 100.0
pod 0 2 0.0
total 92 94 97.8


line stmt bran cond sub pod time code
1             # AWS::Greengrass::ResourceDefinition generated from spec 6.3.0
2 1     1   719 use Moose::Util::TypeConstraints;
  1         3  
  1         11  
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   2063 use Moose;
  1         3  
  1         9  
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 1071 [ '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::GroupOwnerSetting',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::GroupOwnerSetting',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::GroupOwnerSettingValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::GroupOwnerSettingValue {
37 1     1   7028 use Moose;
  1         5  
  1         5  
38 1     1   6529 use MooseX::StrictConstructor;
  1         3  
  1         8  
39             extends 'Cfn::Value::TypedValue';
40            
41             has AutoAddGroupOwner => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
42             has GroupOwner => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
43             }
44              
45             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SecretsManagerSecretResourceData',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SecretsManagerSecretResourceData',
49             from 'HashRef',
50             via {
51             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SecretsManagerSecretResourceDataValue->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SecretsManagerSecretResourceDataValue {
59 1     1   3447 use Moose;
  1         12  
  1         7  
60 1     1   6445 use MooseX::StrictConstructor;
  1         3  
  1         6  
61             extends 'Cfn::Value::TypedValue';
62            
63             has AdditionalStagingLabelsToDownload => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
64             has ARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
65             }
66              
67             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SageMakerMachineLearningModelResourceData',
68             as 'Cfn::Value';
69              
70             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SageMakerMachineLearningModelResourceData',
71             from 'HashRef',
72             via {
73             if (my $f = Cfn::TypeLibrary::try_function($_)) {
74             return $f
75             } else {
76             return Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SageMakerMachineLearningModelResourceDataValue->new( %$_ );
77             }
78             };
79              
80             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SageMakerMachineLearningModelResourceDataValue {
81 1     1   3340 use Moose;
  1         2  
  1         5  
82 1     1   6541 use MooseX::StrictConstructor;
  1         3  
  1         5  
83             extends 'Cfn::Value::TypedValue';
84            
85             has DestinationPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
86             has SageMakerJobArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
87             }
88              
89             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::S3MachineLearningModelResourceData',
90             as 'Cfn::Value';
91              
92             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::S3MachineLearningModelResourceData',
93             from 'HashRef',
94             via {
95             if (my $f = Cfn::TypeLibrary::try_function($_)) {
96             return $f
97             } else {
98             return Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::S3MachineLearningModelResourceDataValue->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::S3MachineLearningModelResourceDataValue {
103 1     1   3301 use Moose;
  1         2  
  1         16  
104 1     1   6441 use MooseX::StrictConstructor;
  1         2  
  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 S3Uri => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
109             }
110              
111             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalVolumeResourceData',
112             as 'Cfn::Value';
113              
114             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalVolumeResourceData',
115             from 'HashRef',
116             via {
117             if (my $f = Cfn::TypeLibrary::try_function($_)) {
118             return $f
119             } else {
120             return Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalVolumeResourceDataValue->new( %$_ );
121             }
122             };
123              
124             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalVolumeResourceDataValue {
125 1     1   3350 use Moose;
  1         3  
  1         7  
126 1     1   6476 use MooseX::StrictConstructor;
  1         2  
  1         5  
127             extends 'Cfn::Value::TypedValue';
128            
129             has DestinationPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
130             has GroupOwnerSetting => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::GroupOwnerSetting', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
131             has SourcePath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
132             }
133              
134             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalDeviceResourceData',
135             as 'Cfn::Value';
136              
137             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalDeviceResourceData',
138             from 'HashRef',
139             via {
140             if (my $f = Cfn::TypeLibrary::try_function($_)) {
141             return $f
142             } else {
143             return Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalDeviceResourceDataValue->new( %$_ );
144             }
145             };
146              
147             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalDeviceResourceDataValue {
148 1     1   3333 use Moose;
  1         4  
  1         5  
149 1     1   6585 use MooseX::StrictConstructor;
  1         2  
  1         6  
150             extends 'Cfn::Value::TypedValue';
151            
152             has GroupOwnerSetting => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::GroupOwnerSetting', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
153             has SourcePath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
154             }
155              
156             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDataContainer',
157             as 'Cfn::Value';
158              
159             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDataContainer',
160             from 'HashRef',
161             via {
162             if (my $f = Cfn::TypeLibrary::try_function($_)) {
163             return $f
164             } else {
165             return Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDataContainerValue->new( %$_ );
166             }
167             };
168              
169             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDataContainerValue {
170 1     1   3339 use Moose;
  1         3  
  1         6  
171 1     1   6849 use MooseX::StrictConstructor;
  1         3  
  1         6  
172             extends 'Cfn::Value::TypedValue';
173            
174             has LocalDeviceResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalDeviceResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
175             has LocalVolumeResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::LocalVolumeResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
176             has S3MachineLearningModelResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::S3MachineLearningModelResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
177             has SageMakerMachineLearningModelResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SageMakerMachineLearningModelResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
178             has SecretsManagerSecretResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::SecretsManagerSecretResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
179             }
180             subtype 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstance',
181             as 'Cfn::Value',
182             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
183             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
184              
185             coerce 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstance',
186             from 'HashRef',
187             via {
188             if (my $f = Cfn::TypeLibrary::try_function($_)) {
189             return $f
190             } else {
191             die 'Only accepts functions';
192             }
193             },
194             from 'ArrayRef',
195             via {
196             Cfn::Value::Array->new(Value => [
197             map {
198             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstance')->coerce($_)
199             } @$_
200             ]);
201             };
202              
203             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstance',
204             as 'Cfn::Value';
205              
206             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstance',
207             from 'HashRef',
208             via {
209             if (my $f = Cfn::TypeLibrary::try_function($_)) {
210             return $f
211             } else {
212             return Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstanceValue->new( %$_ );
213             }
214             };
215              
216             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstanceValue {
217 1     1   3596 use Moose;
  1         3  
  1         7  
218 1     1   6511 use MooseX::StrictConstructor;
  1         2  
  1         6  
219             extends 'Cfn::Value::TypedValue';
220            
221             has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
222             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
223             has ResourceDataContainer => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDataContainer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
224             }
225              
226             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDefinitionVersion',
227             as 'Cfn::Value';
228              
229             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDefinitionVersion',
230             from 'HashRef',
231             via {
232             if (my $f = Cfn::TypeLibrary::try_function($_)) {
233             return $f
234             } else {
235             return Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDefinitionVersionValue->new( %$_ );
236             }
237             };
238              
239             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDefinitionVersionValue {
240 1     1   3423 use Moose;
  1         5  
  1         6  
241 1     1   6469 use MooseX::StrictConstructor;
  1         3  
  1         5  
242             extends 'Cfn::Value::TypedValue';
243            
244             has Resources => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceInstance', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
245             }
246              
247             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition {
248 1     1   3201 use Moose;
  1         3  
  1         6  
249 1     1   6469 use MooseX::StrictConstructor;
  1         3  
  1         6  
250             extends 'Cfn::Resource::Properties';
251            
252             has InitialVersion => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinition::ResourceDefinitionVersion', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
253             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
254             has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
255             }
256              
257             1;