Cfn/Resource/AWS/ElasticBeanstalk/Environment.pm

filter: Statementstmt 86.8% 66 / 76 Branchbran 25.0% 2 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 70.5% 12 / 17 Podpod 0.0% 0 / 2 totaltotal 77.6% 80 / 103 CC 5 SCAR 8.3
CC
5
Cov
81%
__ANON__
6.0
__ANON__
6.0
__ANON__
2.3
CRAP 2.3
« Cfn/Resource/AWS/ApiGateway/RestApi.pm ↑ Summary Cfn/Resource/AWS/Route53/HostedZone.pm »
1 # AWS::ElasticBeanstalk::Environment generated from spec 34.0.0
2 3 ▶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 3 package Cfn::Resource::AWS::ElasticBeanstalk::Environment {
9 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 extends 'Cfn::Resource';
11 3 has Properties => (isa => 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment', is => 'rw', coerce => 1);
12
13 0 ▶ sub AttributeList {
Subroutine AttributeList: not called CC=1 SCAR=6.9
Pod undocumented
14 0 [ 'EndpointURL' ]
15 }
16 0 ▶ sub supported_regions {
Subroutine supported_regions: not called CC=1 SCAR=6.9
Pod undocumented
17 0 [ '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' ]
18 }
19 }
20  
21  
22  
23 3 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 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
29 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
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 3 };
35  
36 3 package Cfn::Resource::Properties::Object::AWS::ElasticBeanstalk::Environment::Tier {
37 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 3 extends 'Cfn::Value::TypedValue';
40
41 3 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
42 3 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
43 3 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") 2 0 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 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
53 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
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 2 ▶ via {
Subroutine __ANON__: called CC=1 SCAR=0.0
61 Cfn::Value::Array->new(Value => [
62 map {
63 2 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::OptionSetting')->coerce($_)
64 } @$_
65 ]);
66 3 };
67  
68 3 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 14 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
74 14 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
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 3 };
80  
81 3 package Cfn::Resource::Properties::Object::AWS::ElasticBeanstalk::Environment::OptionSetting {
82 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
83 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
84 3 extends 'Cfn::Value::TypedValue';
85
86 3 has Namespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87 3 has OptionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88 3 has ResourceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89 3 has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90 }
91  
92 3 package Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment {
93 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
94 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
95 3 extends 'Cfn::Resource::Properties';
96
97 3 has ApplicationName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
98 3 has CNAMEPrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
99 3 has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
100 3 has EnvironmentName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
101 3 has OperationsRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
102 3 has OptionSettings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::OptionSetting', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
103 3 has PlatformArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
104 3 has SolutionStackName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
105 3 has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
106 3 has TemplateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107 3 has Tier => (isa => 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::Tier', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Conditional');
108 3 has VersionLabel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109 }
110  
111 3 1;
112 ### main pod documentation begin ###
113  
114 =encoding UTF-8
115  
116 =head1 NAME
117  
118 Cfn::Resource::AWS::ElasticBeanstalk::Environment - Cfn resource for AWS::ElasticBeanstalk::Environment
119  
120 =head1 DESCRIPTION
121  
122 This module implements a Perl module that represents the CloudFormation object AWS::ElasticBeanstalk::Environment.
123  
124 See L<Cfn> for more information on how to use it.
125  
126 =head1 AUTHOR
127  
128 Jose Luis Martinez
129 CAPSiDE
130 jlmartinez@capside.com
131  
132 =head1 COPYRIGHT and LICENSE
133  
134 Copyright (c) 2013 by CAPSiDE
135 This code is distributed under the Apache 2 License. The full text of the
136 license can be found in the LICENSE file included with this module.
137  
138 =cut
« Cfn/Resource/AWS/ApiGateway/RestApi.pm ↑ Summary Cfn/Resource/AWS/Route53/HostedZone.pm »