Cfn/Resource/AWS/SageMaker/Model.pm untested

filter: Statementstmt 0.0% 0 / 139 Branchbran 0.0% 0 / 12 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 16 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 174 CC 1 SCAR 6.9
CC
1
Cov
0%
AttributeList
2.0
supported_regions
2.0
BEGIN
2.0
CRAP 2.0
1 # AWS::SageMaker::Model generated from spec 34.0.0
2 use Moose::Util::TypeConstraints;
3  
4 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Model',
5 from 'HashRef',
6 via { Cfn::Resource::Properties::AWS::SageMaker::Model->new( %$_ ) };
7  
8 package Cfn::Resource::AWS::SageMaker::Model {
9 use Moose;
10 extends 'Cfn::Resource';
11 has Properties => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Model', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 [ 'ModelName' ]
15 }
16 sub supported_regions {
17 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-west-1','eu-west-2','us-east-1','us-east-2','us-west-2' ]
18 }
19 }
20  
21  
22  
23 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Model::MultiModelConfig',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Model::MultiModelConfig',
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::SageMaker::Model::MultiModelConfig->new( %$_ );
33 }
34 };
35  
36 package Cfn::Resource::Properties::Object::AWS::SageMaker::Model::MultiModelConfig {
37 use Moose;
38 use MooseX::StrictConstructor;
39 extends 'Cfn::Value::TypedValue';
40
41 has ModelCacheSetting => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
42 }
43  
44 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Model::ImageConfig',
45 as 'Cfn::Value';
46  
47 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Model::ImageConfig',
48 from 'HashRef',
49 via {
50 if (my $f = Cfn::TypeLibrary::try_function($_)) {
51 return $f
52 } else {
53 return Cfn::Resource::Properties::Object::AWS::SageMaker::Model::ImageConfig->new( %$_ );
54 }
55 };
56  
57 package Cfn::Resource::Properties::Object::AWS::SageMaker::Model::ImageConfig {
58 use Moose;
59 use MooseX::StrictConstructor;
60 extends 'Cfn::Value::TypedValue';
61
62 has RepositoryAccessMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
63 }
64  
65 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Model::VpcConfig',
66 as 'Cfn::Value';
67  
68 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Model::VpcConfig',
69 from 'HashRef',
70 via {
71 if (my $f = Cfn::TypeLibrary::try_function($_)) {
72 return $f
73 } else {
74 return Cfn::Resource::Properties::Object::AWS::SageMaker::Model::VpcConfig->new( %$_ );
75 }
76 };
77  
78 package Cfn::Resource::Properties::Object::AWS::SageMaker::Model::VpcConfig {
79 use Moose;
80 use MooseX::StrictConstructor;
81 extends 'Cfn::Value::TypedValue';
82
83 has SecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
84 has Subnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
85 }
86  
87 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Model::InferenceExecutionConfig',
88 as 'Cfn::Value';
89  
90 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Model::InferenceExecutionConfig',
91 from 'HashRef',
92 via {
93 if (my $f = Cfn::TypeLibrary::try_function($_)) {
94 return $f
95 } else {
96 return Cfn::Resource::Properties::Object::AWS::SageMaker::Model::InferenceExecutionConfig->new( %$_ );
97 }
98 };
99  
100 package Cfn::Resource::Properties::Object::AWS::SageMaker::Model::InferenceExecutionConfig {
101 use Moose;
102 use MooseX::StrictConstructor;
103 extends 'Cfn::Value::TypedValue';
104
105 has Mode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
106 }
107 subtype 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Model::ContainerDefinition',
108 as 'Cfn::Value',
109 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
110 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
111  
112 coerce 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Model::ContainerDefinition',
113 from 'HashRef',
114 via {
115 if (my $f = Cfn::TypeLibrary::try_function($_)) {
116 return $f
117 } else {
118 die 'Only accepts functions';
119 }
120 },
121 from 'ArrayRef',
122 via {
123 Cfn::Value::Array->new(Value => [
124 map {
125 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SageMaker::Model::ContainerDefinition')->coerce($_)
126 } @$_
127 ]);
128 };
129  
130 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Model::ContainerDefinition',
131 as 'Cfn::Value';
132  
133 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Model::ContainerDefinition',
134 from 'HashRef',
135 via {
136 if (my $f = Cfn::TypeLibrary::try_function($_)) {
137 return $f
138 } else {
139 return Cfn::Resource::Properties::Object::AWS::SageMaker::Model::ContainerDefinition->new( %$_ );
140 }
141 };
142  
143 package Cfn::Resource::Properties::Object::AWS::SageMaker::Model::ContainerDefinition {
144 use Moose;
145 use MooseX::StrictConstructor;
146 extends 'Cfn::Value::TypedValue';
147
148 has ContainerHostname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
149 has Environment => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
150 has Image => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
151 has ImageConfig => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Model::ImageConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
152 has Mode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
153 has ModelDataUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
154 has ModelPackageName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
155 has MultiModelConfig => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Model::MultiModelConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
156 }
157  
158 package Cfn::Resource::Properties::AWS::SageMaker::Model {
159 use Moose;
160 use MooseX::StrictConstructor;
161 extends 'Cfn::Resource::Properties';
162
163 has Containers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Model::ContainerDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
164 has EnableNetworkIsolation => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
165 has ExecutionRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
166 has InferenceExecutionConfig => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Model::InferenceExecutionConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
167 has ModelName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
168 has PrimaryContainer => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Model::ContainerDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
169 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
170 has VpcConfig => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Model::VpcConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
171 }
172  
173 1;
174 ### main pod documentation begin ###
175  
176 =encoding UTF-8
177  
178 =head1 NAME
179  
180 Cfn::Resource::AWS::SageMaker::Model - Cfn resource for AWS::SageMaker::Model
181  
182 =head1 DESCRIPTION
183  
184 This module implements a Perl module that represents the CloudFormation object AWS::SageMaker::Model.
185  
186 See L<Cfn> for more information on how to use it.
187  
188 =head1 AUTHOR
189  
190 Jose Luis Martinez
191 CAPSiDE
192 jlmartinez@capside.com
193  
194 =head1 COPYRIGHT and LICENSE
195  
196 Copyright (c) 2013 by CAPSiDE
197 This code is distributed under the Apache 2 License. The full text of the
198 license can be found in the LICENSE file included with this module.
199  
200 =cut