Cfn/Resource/AWS/Synthetics/Canary.pm

filter: Statementstmt 87.0% 87 / 100 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 73.6% 14 / 19 Podpod 0.0% 0 / 2 totaltotal 78.2% 101 / 129 CC 5 SCAR 10.1
CC
5
Cov
81%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 2.7
« Cfn/Resource/AWS/Glue/Job.pm ↑ Summary Cfn/Resource/AWS/CodePipeline/Pipeline.pm »
1 # AWS::Synthetics::Canary generated from spec 21.0.0
2 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::Synthetics::Canary',
5 from 'HashRef',
6 0 ▶ via { Cfn::Resource::Properties::AWS::Synthetics::Canary->new( %$_ ) };
Subroutine __ANON__: not called CC=1 SCAR=1.2
7  
8 1 package Cfn::Resource::AWS::Synthetics::Canary {
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::Synthetics::Canary', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'Id','State' ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','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::Synthetics::Canary::VPCConfig',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::Synthetics::Canary::VPCConfig',
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::Synthetics::Canary::VPCConfig->new( %$_ );
33 }
34 1 };
35  
36 1 package Cfn::Resource::Properties::Object::AWS::Synthetics::Canary::VPCConfig {
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 SecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 1 has SubnetIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 1 has VpcId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 }
45  
46 1 subtype 'Cfn::Resource::Properties::AWS::Synthetics::Canary::Schedule',
47 as 'Cfn::Value';
48  
49 coerce 'Cfn::Resource::Properties::AWS::Synthetics::Canary::Schedule',
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::Synthetics::Canary::Schedule->new( %$_ );
56 }
57 1 };
58  
59 1 package Cfn::Resource::Properties::Object::AWS::Synthetics::Canary::Schedule {
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 DurationInSeconds => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 1 has Expression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 }
67  
68 1 subtype 'Cfn::Resource::Properties::AWS::Synthetics::Canary::RunConfig',
69 as 'Cfn::Value';
70  
71 coerce 'Cfn::Resource::Properties::AWS::Synthetics::Canary::RunConfig',
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 return Cfn::Resource::Properties::Object::AWS::Synthetics::Canary::RunConfig->new( %$_ );
78 }
79 1 };
80  
81 1 package Cfn::Resource::Properties::Object::AWS::Synthetics::Canary::RunConfig {
82 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
84 1 extends 'Cfn::Value::TypedValue';
85
86 1 has ActiveTracing => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 1 has EnvironmentVariables => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88 1 has MemoryInMB => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89 1 has TimeoutInSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90 }
91  
92 1 subtype 'Cfn::Resource::Properties::AWS::Synthetics::Canary::Code',
93 as 'Cfn::Value';
94  
95 coerce 'Cfn::Resource::Properties::AWS::Synthetics::Canary::Code',
96 from 'HashRef',
97 via {
98 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
99 0 return $f
100 } else {
101 0 return Cfn::Resource::Properties::Object::AWS::Synthetics::Canary::Code->new( %$_ );
102 }
103 1 };
104  
105 1 package Cfn::Resource::Properties::Object::AWS::Synthetics::Canary::Code {
106 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
107 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
108 1 extends 'Cfn::Value::TypedValue';
109
110 1 has Handler => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111 1 has S3Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112 1 has S3Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113 1 has S3ObjectVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114 1 has Script => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115 }
116  
117 1 package Cfn::Resource::Properties::AWS::Synthetics::Canary {
118 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
119 1 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
120 1 extends 'Cfn::Resource::Properties';
121
122 1 has ArtifactS3Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
123 1 has Code => (isa => 'Cfn::Resource::Properties::AWS::Synthetics::Canary::Code', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
124 1 has ExecutionRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
125 1 has FailureRetentionPeriod => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
126 1 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
127 1 has RunConfig => (isa => 'Cfn::Resource::Properties::AWS::Synthetics::Canary::RunConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
128 1 has RuntimeVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
129 1 has Schedule => (isa => 'Cfn::Resource::Properties::AWS::Synthetics::Canary::Schedule', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130 1 has StartCanaryAfterCreation => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
131 1 has SuccessRetentionPeriod => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132 1 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
133 1 has VPCConfig => (isa => 'Cfn::Resource::Properties::AWS::Synthetics::Canary::VPCConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134 }
135  
136 1 1;
137 ### main pod documentation begin ###
138  
139 =encoding UTF-8
140  
141 =head1 NAME
142  
143 Cfn::Resource::AWS::Synthetics::Canary - Cfn resource for AWS::Synthetics::Canary
144  
145 =head1 DESCRIPTION
146  
147 This module implements a Perl module that represents the CloudFormation object AWS::Synthetics::Canary.
148  
149 See L<Cfn> for more information on how to use it.
150  
151 =head1 AUTHOR
152  
153 Jose Luis Martinez
154 CAPSiDE
155 jlmartinez@capside.com
156  
157 =head1 COPYRIGHT and LICENSE
158  
159 Copyright (c) 2013 by CAPSiDE
160 This code is distributed under the Apache 2 License. The full text of the
161 license can be found in the LICENSE file included with this module.
162  
163 =cut
« Cfn/Resource/AWS/Glue/Job.pm ↑ Summary Cfn/Resource/AWS/CodePipeline/Pipeline.pm »