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

filter: Statementstmt 0.0% 0 / 172 Branchbran 0.0% 0 / 18 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 0.0% 0 / 20 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 222 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::Endpoint generated from spec 22.0.0
2 use Moose::Util::TypeConstraints;
3  
4 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint',
5 from 'HashRef',
6 via { Cfn::Resource::Properties::AWS::SageMaker::Endpoint->new( %$_ ) };
7  
8 package Cfn::Resource::AWS::SageMaker::Endpoint {
9 use Moose;
10 extends 'Cfn::Resource';
11 has Properties => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 [ 'EndpointName' ]
15 }
16 sub supported_regions {
17 [ 'ap-northeast-1','eu-west-1','us-east-1','us-east-2','us-west-2' ]
18 }
19 }
20  
21  
22  
23 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::CapacitySize',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::CapacitySize',
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::Endpoint::CapacitySize->new( %$_ );
33 }
34 };
35  
36 package Cfn::Resource::Properties::Object::AWS::SageMaker::Endpoint::CapacitySize {
37 use Moose;
38 use MooseX::StrictConstructor;
39 extends 'Cfn::Value::TypedValue';
40
41 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 has Value => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 }
44  
45 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::TrafficRoutingConfig',
46 as 'Cfn::Value';
47  
48 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::TrafficRoutingConfig',
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::SageMaker::Endpoint::TrafficRoutingConfig->new( %$_ );
55 }
56 };
57  
58 package Cfn::Resource::Properties::Object::AWS::SageMaker::Endpoint::TrafficRoutingConfig {
59 use Moose;
60 use MooseX::StrictConstructor;
61 extends 'Cfn::Value::TypedValue';
62
63 has CanarySize => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::CapacitySize', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 has WaitIntervalInSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 }
67 subtype 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Endpoint::Alarm',
68 as 'Cfn::Value',
69 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
70 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
71  
72 coerce 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Endpoint::Alarm',
73 from 'HashRef',
74 via {
75 if (my $f = Cfn::TypeLibrary::try_function($_)) {
76 return $f
77 } else {
78 die 'Only accepts functions';
79 }
80 },
81 from 'ArrayRef',
82 via {
83 Cfn::Value::Array->new(Value => [
84 map {
85 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SageMaker::Endpoint::Alarm')->coerce($_)
86 } @$_
87 ]);
88 };
89  
90 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::Alarm',
91 as 'Cfn::Value';
92  
93 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::Alarm',
94 from 'HashRef',
95 via {
96 if (my $f = Cfn::TypeLibrary::try_function($_)) {
97 return $f
98 } else {
99 return Cfn::Resource::Properties::Object::AWS::SageMaker::Endpoint::Alarm->new( %$_ );
100 }
101 };
102  
103 package Cfn::Resource::Properties::Object::AWS::SageMaker::Endpoint::Alarm {
104 use Moose;
105 use MooseX::StrictConstructor;
106 extends 'Cfn::Value::TypedValue';
107
108 has AlarmName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109 }
110  
111 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::BlueGreenUpdatePolicy',
112 as 'Cfn::Value';
113  
114 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::BlueGreenUpdatePolicy',
115 from 'HashRef',
116 via {
117 if (my $f = Cfn::TypeLibrary::try_function($_)) {
118 return $f
119 } else {
120 return Cfn::Resource::Properties::Object::AWS::SageMaker::Endpoint::BlueGreenUpdatePolicy->new( %$_ );
121 }
122 };
123  
124 package Cfn::Resource::Properties::Object::AWS::SageMaker::Endpoint::BlueGreenUpdatePolicy {
125 use Moose;
126 use MooseX::StrictConstructor;
127 extends 'Cfn::Value::TypedValue';
128
129 has MaximumExecutionTimeoutInSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130 has TerminationWaitInSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
131 has TrafficRoutingConfiguration => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::TrafficRoutingConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132 }
133  
134 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::AutoRollbackConfig',
135 as 'Cfn::Value';
136  
137 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::AutoRollbackConfig',
138 from 'HashRef',
139 via {
140 if (my $f = Cfn::TypeLibrary::try_function($_)) {
141 return $f
142 } else {
143 return Cfn::Resource::Properties::Object::AWS::SageMaker::Endpoint::AutoRollbackConfig->new( %$_ );
144 }
145 };
146  
147 package Cfn::Resource::Properties::Object::AWS::SageMaker::Endpoint::AutoRollbackConfig {
148 use Moose;
149 use MooseX::StrictConstructor;
150 extends 'Cfn::Value::TypedValue';
151
152 has Alarms => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Endpoint::Alarm', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
153 }
154 subtype 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Endpoint::VariantProperty',
155 as 'Cfn::Value',
156 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
157 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
158  
159 coerce 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Endpoint::VariantProperty',
160 from 'HashRef',
161 via {
162 if (my $f = Cfn::TypeLibrary::try_function($_)) {
163 return $f
164 } else {
165 die 'Only accepts functions';
166 }
167 },
168 from 'ArrayRef',
169 via {
170 Cfn::Value::Array->new(Value => [
171 map {
172 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SageMaker::Endpoint::VariantProperty')->coerce($_)
173 } @$_
174 ]);
175 };
176  
177 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::VariantProperty',
178 as 'Cfn::Value';
179  
180 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::VariantProperty',
181 from 'HashRef',
182 via {
183 if (my $f = Cfn::TypeLibrary::try_function($_)) {
184 return $f
185 } else {
186 return Cfn::Resource::Properties::Object::AWS::SageMaker::Endpoint::VariantProperty->new( %$_ );
187 }
188 };
189  
190 package Cfn::Resource::Properties::Object::AWS::SageMaker::Endpoint::VariantProperty {
191 use Moose;
192 use MooseX::StrictConstructor;
193 extends 'Cfn::Value::TypedValue';
194
195 has VariantPropertyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196 }
197  
198 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::DeploymentConfig',
199 as 'Cfn::Value';
200  
201 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::DeploymentConfig',
202 from 'HashRef',
203 via {
204 if (my $f = Cfn::TypeLibrary::try_function($_)) {
205 return $f
206 } else {
207 return Cfn::Resource::Properties::Object::AWS::SageMaker::Endpoint::DeploymentConfig->new( %$_ );
208 }
209 };
210  
211 package Cfn::Resource::Properties::Object::AWS::SageMaker::Endpoint::DeploymentConfig {
212 use Moose;
213 use MooseX::StrictConstructor;
214 extends 'Cfn::Value::TypedValue';
215
216 has AutoRollbackConfiguration => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::AutoRollbackConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
217 has BlueGreenUpdatePolicy => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::BlueGreenUpdatePolicy', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
218 }
219  
220 package Cfn::Resource::Properties::AWS::SageMaker::Endpoint {
221 use Moose;
222 use MooseX::StrictConstructor;
223 extends 'Cfn::Resource::Properties';
224
225 has DeploymentConfig => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Endpoint::DeploymentConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
226 has EndpointConfigName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
227 has EndpointName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
228 has ExcludeRetainedVariantProperties => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Endpoint::VariantProperty', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
229 has RetainAllVariantProperties => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
230 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
231 }
232  
233 1;
234 ### main pod documentation begin ###
235  
236 =encoding UTF-8
237  
238 =head1 NAME
239  
240 Cfn::Resource::AWS::SageMaker::Endpoint - Cfn resource for AWS::SageMaker::Endpoint
241  
242 =head1 DESCRIPTION
243  
244 This module implements a Perl module that represents the CloudFormation object AWS::SageMaker::Endpoint.
245  
246 See L<Cfn> for more information on how to use it.
247  
248 =head1 AUTHOR
249  
250 Jose Luis Martinez
251 CAPSiDE
252 jlmartinez@capside.com
253  
254 =head1 COPYRIGHT and LICENSE
255  
256 Copyright (c) 2013 by CAPSiDE
257 This code is distributed under the Apache 2 License. The full text of the
258 license can be found in the LICENSE file included with this module.
259  
260 =cut