Cfn/Resource/AWS/SageMaker/Workteam.pm

filter: Statementstmt 78.7% 63 / 80 Branchbran 0.0% 0 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 12 / 20 Podpod 0.0% 0 / 2 totaltotal 66.9% 75 / 112 CC 6 SCAR 11.2
CC
6
Cov
70%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.0
« Cfn/Resource/AWS/AppMesh/VirtualRouter.pm ↑ Summary Cfn/Resource/AWS/ResourceGroups/Group.pm »
1 # AWS::SageMaker::Workteam 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::Workteam',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::SageMaker::Workteam->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::SageMaker::Workteam {
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::Workteam', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'WorkteamName' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'ap-northeast-1','ap-southeast-2','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  
23 1 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Workteam::CognitoMemberDefinition',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Workteam::CognitoMemberDefinition',
27 from 'HashRef',
28 via {
29 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
30 0 return $f
31 } else {
32 0 return Cfn::Resource::Properties::Object::AWS::SageMaker::Workteam::CognitoMemberDefinition->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::SageMaker::Workteam::CognitoMemberDefinition {
37 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 extends 'Cfn::Value::TypedValue';
40
41 1 has CognitoClientId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 1 has CognitoUserGroup => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 1 has CognitoUserPool => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
44 }
45  
46 1 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Workteam::NotificationConfiguration',
47 as 'Cfn::Value';
48  
49 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Workteam::NotificationConfiguration',
50 from 'HashRef',
51 via {
52 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
53 0 return $f
54 } else {
55 0 return Cfn::Resource::Properties::Object::AWS::SageMaker::Workteam::NotificationConfiguration->new( %$_ );
56 }
57 1 };
58  
59 1 package Cfn::Resource::Properties::Object::AWS::SageMaker::Workteam::NotificationConfiguration {
60 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
62 1 extends 'Cfn::Value::TypedValue';
63
64 1 has NotificationTopicArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 }
66 subtype 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Workteam::MemberDefinition',
67 as 'Cfn::Value',
68 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
69 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
70  
71 coerce 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Workteam::MemberDefinition',
72 from 'HashRef',
73 via {
74 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
75 0 return $f
76 } else {
77 0 die 'Only accepts functions';
78 }
79 },
80 from 'ArrayRef',
81 via {
82 Cfn::Value::Array->new(Value => [
83 map {
84 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SageMaker::Workteam::MemberDefinition')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
85 } @$_
86 ]);
87 1 };
88  
89 1 subtype 'Cfn::Resource::Properties::AWS::SageMaker::Workteam::MemberDefinition',
90 as 'Cfn::Value';
91  
92 coerce 'Cfn::Resource::Properties::AWS::SageMaker::Workteam::MemberDefinition',
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 return Cfn::Resource::Properties::Object::AWS::SageMaker::Workteam::MemberDefinition->new( %$_ );
99 }
100 1 };
101  
102 1 package Cfn::Resource::Properties::Object::AWS::SageMaker::Workteam::MemberDefinition {
103 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
104 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
105 1 extends 'Cfn::Value::TypedValue';
106
107 1 has CognitoMemberDefinition => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Workteam::CognitoMemberDefinition', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108 }
109  
110 1 package Cfn::Resource::Properties::AWS::SageMaker::Workteam {
111 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
112 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
113 1 extends 'Cfn::Resource::Properties';
114
115 1 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
116 1 has MemberDefinitions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::Workteam::MemberDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
117 1 has NotificationConfiguration => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::Workteam::NotificationConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
118 1 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
119 1 has WorkteamName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
120 }
121  
122 1 1;
123 ### main pod documentation begin ###
124  
125 =encoding UTF-8
126  
127 =head1 NAME
128  
129 Cfn::Resource::AWS::SageMaker::Workteam - Cfn resource for AWS::SageMaker::Workteam
130  
131 =head1 DESCRIPTION
132  
133 This module implements a Perl module that represents the CloudFormation object AWS::SageMaker::Workteam.
134  
135 See L<Cfn> for more information on how to use it.
136  
137 =head1 AUTHOR
138  
139 Jose Luis Martinez
140 CAPSiDE
141 jlmartinez@capside.com
142  
143 =head1 COPYRIGHT and LICENSE
144  
145 Copyright (c) 2013 by CAPSiDE
146 This code is distributed under the Apache 2 License. The full text of the
147 license can be found in the LICENSE file included with this module.
148  
149 =cut
« Cfn/Resource/AWS/AppMesh/VirtualRouter.pm ↑ Summary Cfn/Resource/AWS/ResourceGroups/Group.pm »