File Coverage

blib/lib/Cfn/Resource/AWS/SageMaker/EndpointConfig.pm
Criterion Covered Total %
statement 38 38 100.0
branch n/a
condition n/a
subroutine 14 14 100.0
pod 0 2 0.0
total 52 54 96.3


line stmt bran cond sub pod time code
1             # AWS::SageMaker::EndpointConfig generated from spec 18.4.0
2 1     1   738 use Moose::Util::TypeConstraints;
  1         3  
  1         12  
3              
4             coerce 'Cfn::Resource::Properties::AWS::SageMaker::EndpointConfig',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::SageMaker::EndpointConfig->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::SageMaker::EndpointConfig {
9 1     1   2289 use Moose;
  1         3  
  1         8  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::EndpointConfig', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ 'EndpointConfigName' ]
15             }
16             sub supported_regions {
17 1     1 0 1106 [ 'ap-northeast-1','eu-west-1','us-east-1','us-east-2','us-west-2' ]
18             }
19             }
20              
21              
22             subtype 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::EndpointConfig::CaptureOption',
23             as 'Cfn::Value',
24             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
25             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
26              
27             coerce 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::EndpointConfig::CaptureOption',
28             from 'HashRef',
29             via {
30             if (my $f = Cfn::TypeLibrary::try_function($_)) {
31             return $f
32             } else {
33             die 'Only accepts functions';
34             }
35             },
36             from 'ArrayRef',
37             via {
38             Cfn::Value::Array->new(Value => [
39             map {
40             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SageMaker::EndpointConfig::CaptureOption')->coerce($_)
41             } @$_
42             ]);
43             };
44              
45             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::Object::AWS::SageMaker::EndpointConfig::CaptureOption->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::SageMaker::EndpointConfig::CaptureOption {
59 1     1   7748 use Moose;
  1         4  
  1         13  
60 1     1   6623 use MooseX::StrictConstructor;
  1         2  
  1         11  
61             extends 'Cfn::Value::TypedValue';
62            
63             has CaptureMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
64             }
65              
66             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
73             return $f
74             } else {
75             return Cfn::Resource::Properties::Object::AWS::SageMaker::EndpointConfig::CaptureContentTypeHeader->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::Object::AWS::SageMaker::EndpointConfig::CaptureContentTypeHeader {
80 1     1   3673 use Moose;
  1         3  
  1         5  
81 1     1   6607 use MooseX::StrictConstructor;
  1         7  
  1         7  
82             extends 'Cfn::Value::TypedValue';
83            
84             has CsvContentTypes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
85             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
90             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
91              
92             coerce 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::EndpointConfig::ProductionVariant',
93             from 'HashRef',
94             via {
95             if (my $f = Cfn::TypeLibrary::try_function($_)) {
96             return $f
97             } else {
98             die 'Only accepts functions';
99             }
100             },
101             from 'ArrayRef',
102             via {
103             Cfn::Value::Array->new(Value => [
104             map {
105             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SageMaker::EndpointConfig::ProductionVariant')->coerce($_)
106             } @$_
107             ]);
108             };
109              
110             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
117             return $f
118             } else {
119             return Cfn::Resource::Properties::Object::AWS::SageMaker::EndpointConfig::ProductionVariant->new( %$_ );
120             }
121             };
122              
123             package Cfn::Resource::Properties::Object::AWS::SageMaker::EndpointConfig::ProductionVariant {
124 1     1   3595 use Moose;
  1         3  
  1         5  
125 1     1   6837 use MooseX::StrictConstructor;
  1         3  
  1         12  
126             extends 'Cfn::Value::TypedValue';
127            
128             has AcceleratorType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
129             has InitialInstanceCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
130             has InitialVariantWeight => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
131             has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
132             has ModelName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
133             has VariantName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
134             }
135              
136             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
143             return $f
144             } else {
145             return Cfn::Resource::Properties::Object::AWS::SageMaker::EndpointConfig::DataCaptureConfig->new( %$_ );
146             }
147             };
148              
149             package Cfn::Resource::Properties::Object::AWS::SageMaker::EndpointConfig::DataCaptureConfig {
150 1     1   3430 use Moose;
  1         4  
  1         7  
151 1     1   6571 use MooseX::StrictConstructor;
  1         2  
  1         5  
152             extends 'Cfn::Value::TypedValue';
153            
154             has CaptureContentTypeHeader => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::EndpointConfig::CaptureContentTypeHeader', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
155             has CaptureOptions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::EndpointConfig::CaptureOption', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
156             has DestinationS3Uri => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
157             has EnableCapture => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
158             has InitialSamplingPercentage => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
159             has KmsKeyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
160             }
161              
162             package Cfn::Resource::Properties::AWS::SageMaker::EndpointConfig {
163 1     1   3312 use Moose;
  1         3  
  1         6  
164 1     1   6549 use MooseX::StrictConstructor;
  1         3  
  1         6  
165             extends 'Cfn::Resource::Properties';
166            
167             has DataCaptureConfig => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::EndpointConfig::DataCaptureConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
168             has EndpointConfigName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
169             has KmsKeyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
170             has ProductionVariants => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::EndpointConfig::ProductionVariant', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
171             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
172             }
173              
174             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