Cfn/Resource/AWS/SageMaker/EndpointConfig.pm

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