File Coverage

blib/lib/Cfn/Resource/AWS/Greengrass/ResourceDefinitionVersion.pm
Criterion Covered Total %
statement 62 62 100.0
branch n/a
condition n/a
subroutine 22 22 100.0
pod 0 2 0.0
total 84 86 97.6


line stmt bran cond sub pod time code
1             # AWS::Greengrass::ResourceDefinitionVersion generated from spec 6.3.0
2 1     1   733 use Moose::Util::TypeConstraints;
  1         3  
  1         12  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Greengrass::ResourceDefinitionVersion {
9 1     1   2253 use Moose;
  1         3  
  1         8  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1127 [ '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::ResourceDefinitionVersion::GroupOwnerSetting',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::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::ResourceDefinitionVersion::GroupOwnerSettingValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::GroupOwnerSettingValue {
37 1     1   7388 use Moose;
  1         3  
  1         28  
38 1     1   7126 use MooseX::StrictConstructor;
  1         3  
  1         10  
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::ResourceDefinitionVersion::SecretsManagerSecretResourceData',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::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::ResourceDefinitionVersion::SecretsManagerSecretResourceDataValue->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::SecretsManagerSecretResourceDataValue {
59 1     1   3601 use Moose;
  1         3  
  1         5  
60 1     1   6732 use MooseX::StrictConstructor;
  1         2  
  1         7  
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::ResourceDefinitionVersion::SageMakerMachineLearningModelResourceData',
68             as 'Cfn::Value';
69              
70             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::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::ResourceDefinitionVersion::SageMakerMachineLearningModelResourceDataValue->new( %$_ );
77             }
78             };
79              
80             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::SageMakerMachineLearningModelResourceDataValue {
81 1     1   3421 use Moose;
  1         5  
  1         7  
82 1     1   6637 use MooseX::StrictConstructor;
  1         2  
  1         6  
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::ResourceDefinitionVersion::S3MachineLearningModelResourceData',
90             as 'Cfn::Value';
91              
92             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::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::ResourceDefinitionVersion::S3MachineLearningModelResourceDataValue->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::S3MachineLearningModelResourceDataValue {
103 1     1   3415 use Moose;
  1         2  
  1         6  
104 1     1   6588 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 S3Uri => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
109             }
110              
111             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::LocalVolumeResourceData',
112             as 'Cfn::Value';
113              
114             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::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::ResourceDefinitionVersion::LocalVolumeResourceDataValue->new( %$_ );
121             }
122             };
123              
124             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::LocalVolumeResourceDataValue {
125 1     1   3432 use Moose;
  1         3  
  1         6  
126 1     1   6726 use MooseX::StrictConstructor;
  1         2  
  1         6  
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::ResourceDefinitionVersion::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::ResourceDefinitionVersion::LocalDeviceResourceData',
135             as 'Cfn::Value';
136              
137             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::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::ResourceDefinitionVersion::LocalDeviceResourceDataValue->new( %$_ );
144             }
145             };
146              
147             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::LocalDeviceResourceDataValue {
148 1     1   3468 use Moose;
  1         3  
  1         5  
149 1     1   6697 use MooseX::StrictConstructor;
  1         4  
  1         5  
150             extends 'Cfn::Value::TypedValue';
151            
152             has GroupOwnerSetting => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::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::ResourceDefinitionVersion::ResourceDataContainer',
157             as 'Cfn::Value';
158              
159             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::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::ResourceDefinitionVersion::ResourceDataContainerValue->new( %$_ );
166             }
167             };
168              
169             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::ResourceDataContainerValue {
170 1     1   3352 use Moose;
  1         3  
  1         7  
171 1     1   6517 use MooseX::StrictConstructor;
  1         3  
  1         4  
172             extends 'Cfn::Value::TypedValue';
173            
174             has LocalDeviceResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::LocalDeviceResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
175             has LocalVolumeResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::LocalVolumeResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
176             has S3MachineLearningModelResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::S3MachineLearningModelResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
177             has SageMakerMachineLearningModelResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::SageMakerMachineLearningModelResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
178             has SecretsManagerSecretResourceData => (isa => 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::SecretsManagerSecretResourceData', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
179             }
180             subtype 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::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::ResourceDefinitionVersion::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::ResourceDefinitionVersion::ResourceInstance')->coerce($_)
199             } @$_
200             ]);
201             };
202              
203             subtype 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::ResourceInstance',
204             as 'Cfn::Value';
205              
206             coerce 'Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::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::ResourceDefinitionVersion::ResourceInstanceValue->new( %$_ );
213             }
214             };
215              
216             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::ResourceInstanceValue {
217 1     1   3609 use Moose;
  1         2  
  1         8  
218 1     1   6970 use MooseX::StrictConstructor;
  1         2  
  1         7  
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::ResourceDefinitionVersion::ResourceDataContainer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
224             }
225              
226             package Cfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion {
227 1     1   3323 use Moose;
  1         2  
  1         6  
228 1     1   6544 use MooseX::StrictConstructor;
  1         4  
  1         5  
229             extends 'Cfn::Resource::Properties';
230            
231             has ResourceDefinitionId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
232             has Resources => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Greengrass::ResourceDefinitionVersion::ResourceInstance', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
233             }
234              
235             1;