Cfn/Resource/AWS/ElasticBeanstalk/Environment.pm

filter: Statementstmt 89.3% 67 / 75 Branchbran 25.0% 2 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 82.3% 14 / 17 Podpod 0.0% 0 / 2 totaltotal 81.3% 83 / 102 CC 5 SCAR 7.8
CC
5
Cov
83%
__ANON__
6.0
__ANON__
6.0
__ANON__
2.3
CRAP 2.2
« Cfn/Resource/AWS/Route53/HostedZone.pm ↑ Summary Cfn/Resource/AWS/AccessAnalyzer/Analyzer.pm »
1 # AWS::ElasticBeanstalk::Environment generated from spec 18.4.0
2 4 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment',
5 from 'HashRef',
6 6 ▶ via { Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 4 package Cfn::Resource::AWS::ElasticBeanstalk::Environment {
9 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 4 extends 'Cfn::Resource';
11 4 has Properties => (isa => 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'EndpointURL' ]
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-northeast-3','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 4 subtype 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::Tier',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::Tier',
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::ElasticBeanstalk::Environment::Tier->new( %$_ );
33 }
34 4 };
35  
36 4 package Cfn::Resource::Properties::Object::AWS::ElasticBeanstalk::Environment::Tier {
37 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 4 extends 'Cfn::Value::TypedValue';
40
41 4 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
42 4 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
43 4 has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 }
45 subtype 'ArrayOfCfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::OptionSetting',
46 as 'Cfn::Value',
47 2 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 2 2
48 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
49  
50 coerce 'ArrayOfCfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::OptionSetting',
51 from 'HashRef',
52 via {
53 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
54 0 return $f
55 } else {
56 0 die 'Only accepts functions';
57 }
58 },
59 from 'ArrayRef',
60 via {
61 Cfn::Value::Array->new(Value => [
62 map {
63 2 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::OptionSetting')->coerce($_)
Subroutine __ANON__: called CC=1 SCAR=0.0
64 } @$_
65 ]);
66 4 };
67  
68 4 subtype 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::OptionSetting',
69 as 'Cfn::Value';
70  
71 coerce 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::OptionSetting',
72 from 'HashRef',
73 via {
74 14 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 14 14
75 0 return $f
76 } else {
77 14 return Cfn::Resource::Properties::Object::AWS::ElasticBeanstalk::Environment::OptionSetting->new( %$_ );
78 }
79 4 };
80  
81 4 package Cfn::Resource::Properties::Object::AWS::ElasticBeanstalk::Environment::OptionSetting {
82 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
84 4 extends 'Cfn::Value::TypedValue';
85
86 4 has Namespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 4 has OptionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88 4 has ResourceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89 4 has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90 }
91  
92 4 package Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment {
93 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
94 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
95 4 extends 'Cfn::Resource::Properties';
96
97 4 has ApplicationName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
98 4 has CNAMEPrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
99 4 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
100 4 has EnvironmentName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
101 4 has OptionSettings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::OptionSetting', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
102 4 has PlatformArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
103 4 has SolutionStackName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
104 4 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
105 4 has TemplateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
106 4 has Tier => (isa => 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::Tier', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Conditional');
107 4 has VersionLabel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108 }
109  
110 4 1;
111 ### main pod documentation begin ###
112  
113 =encoding UTF-8
114  
115 =head1 NAME
116  
117 Cfn::Resource::AWS::ElasticBeanstalk::Environment - Cfn resource for AWS::ElasticBeanstalk::Environment
118  
119 =head1 DESCRIPTION
120  
121 This module implements a Perl module that represents the CloudFormation object AWS::ElasticBeanstalk::Environment.
122  
123 See L<Cfn> for more information on how to use it.
124  
125 =head1 AUTHOR
126  
127 Jose Luis Martinez
128 CAPSiDE
129 jlmartinez@capside.com
130  
131 =head1 COPYRIGHT and LICENSE
132  
133 Copyright (c) 2013 by CAPSiDE
134 This code is distributed under the Apache 2 License. The full text of the
135 license can be found in the LICENSE file included with this module.
136  
137 =cut
« Cfn/Resource/AWS/Route53/HostedZone.pm ↑ Summary Cfn/Resource/AWS/AccessAnalyzer/Analyzer.pm »