File Coverage

blib/lib/Cfn/Resource/AWS/SageMaker/Model.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::Model generated from spec 21.0.0
2 1     1   750 use Moose::Util::TypeConstraints;
  1         3  
  1         11  
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 1     1   2230 use Moose;
  1         3  
  1         11  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Model', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ 'ModelName' ]
15             }
16             sub supported_regions {
17 1     1 0 1162 [ '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 1     1   7870 use Moose;
  1         2  
  1         6  
38 1     1   7085 use MooseX::StrictConstructor;
  1         3  
  1         10  
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 1     1   3646 use Moose;
  1         2  
  1         5  
59 1     1   6764 use MooseX::StrictConstructor;
  1         3  
  1         6  
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 1     1   3336 use Moose;
  1         2  
  1         6  
80 1     1   6638 use MooseX::StrictConstructor;
  1         4  
  1         7  
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             subtype 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Model::ContainerDefinition',
87             as 'Cfn::Value',
88             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
89             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
90              
91             coerce 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Model::ContainerDefinition',
92             from 'HashRef',
93             via {
94             if (my $f = Cfn::TypeLibrary::try_function($_)) {
95             return $f
96             } else {
97             die 'Only accepts functions';
98             }
99             },
100             from 'ArrayRef',
101             via {
102             Cfn::Value::Array->new(Value => [
103             map {
104             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SageMaker::Model::ContainerDefinition')->coerce($_)
105             } @$_
106             ]);
107             };
108              
109             subtype 'Cfn::Resource::Properties::AWS::SageMaker::Model::ContainerDefinition',
110             as 'Cfn::Value';
111              
112             coerce 'Cfn::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             return Cfn::Resource::Properties::Object::AWS::SageMaker::Model::ContainerDefinition->new( %$_ );
119             }
120             };
121              
122             package Cfn::Resource::Properties::Object::AWS::SageMaker::Model::ContainerDefinition {
123 1     1   3610 use Moose;
  1         3  
  1         6  
124 1     1   6546 use MooseX::StrictConstructor;
  1         4  
  1         6  
125             extends 'Cfn::Value::TypedValue';
126            
127             has ContainerHostname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
128             has Environment => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
129             has Image => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
130             has ImageConfig => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Model::ImageConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
131             has Mode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
132             has ModelDataUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
133             has ModelPackageName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
134             has MultiModelConfig => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Model::MultiModelConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
135             }
136              
137             package Cfn::Resource::Properties::AWS::SageMaker::Model {
138 1     1   3591 use Moose;
  1         3  
  1         6  
139 1     1   6578 use MooseX::StrictConstructor;
  1         4  
  1         6  
140             extends 'Cfn::Resource::Properties';
141            
142             has Containers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Model::ContainerDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
143             has EnableNetworkIsolation => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
144             has ExecutionRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
145             has ModelName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
146             has PrimaryContainer => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Model::ContainerDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
147             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
148             has VpcConfig => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Model::VpcConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
149             }
150              
151             1;
152             ### main pod documentation begin ###
153              
154             =encoding UTF-8
155              
156             =head1 NAME
157              
158             Cfn::Resource::AWS::SageMaker::Model - Cfn resource for AWS::SageMaker::Model
159              
160             =head1 DESCRIPTION
161              
162             This module implements a Perl module that represents the CloudFormation object AWS::SageMaker::Model.
163              
164             See L<Cfn> for more information on how to use it.
165              
166             =head1 AUTHOR
167              
168             Jose Luis Martinez
169             CAPSiDE
170             jlmartinez@capside.com
171              
172             =head1 COPYRIGHT and LICENSE
173              
174             Copyright (c) 2013 by CAPSiDE
175             This code is distributed under the Apache 2 License. The full text of the
176             license can be found in the LICENSE file included with this module.
177              
178             =cut