File Coverage

blib/lib/Cfn/Resource/AWS/ElasticBeanstalk/Environment.pm
Criterion Covered Total %
statement 26 26 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod 0 2 0.0
total 36 38 94.7


line stmt bran cond sub pod time code
1             # AWS::ElasticBeanstalk::Environment generated from spec 18.4.0
2 4     4   3098 use Moose::Util::TypeConstraints;
  4         14  
  4         50  
3              
4             coerce 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::ElasticBeanstalk::Environment {
9 4     4   9362 use Moose;
  4         13  
  4         34  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ 'EndpointURL' ]
15             }
16             sub supported_regions {
17 1     1 0 1185 [ '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             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::Object::AWS::ElasticBeanstalk::Environment::Tier->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::ElasticBeanstalk::Environment::Tier {
37 4     4   36345 use Moose;
  4         20  
  4         40  
38 4     4   27153 use MooseX::StrictConstructor;
  4         12  
  4         40  
39             extends 'Cfn::Value::TypedValue';
40            
41             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
42             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
43             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             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
48             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
49              
50             coerce 'ArrayOfCfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::OptionSetting',
51             from 'HashRef',
52             via {
53             if (my $f = Cfn::TypeLibrary::try_function($_)) {
54             return $f
55             } else {
56             die 'Only accepts functions';
57             }
58             },
59             from 'ArrayRef',
60             via {
61             Cfn::Value::Array->new(Value => [
62             map {
63             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::OptionSetting')->coerce($_)
64             } @$_
65             ]);
66             };
67              
68             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             if (my $f = Cfn::TypeLibrary::try_function($_)) {
75             return $f
76             } else {
77             return Cfn::Resource::Properties::Object::AWS::ElasticBeanstalk::Environment::OptionSetting->new( %$_ );
78             }
79             };
80              
81             package Cfn::Resource::Properties::Object::AWS::ElasticBeanstalk::Environment::OptionSetting {
82 4     4   15734 use Moose;
  4         18  
  4         24  
83 4     4   26547 use MooseX::StrictConstructor;
  4         15  
  4         21  
84             extends 'Cfn::Value::TypedValue';
85            
86             has Namespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             has OptionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             has ResourceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89             has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90             }
91              
92             package Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment {
93 4     4   13346 use Moose;
  4         17  
  4         27  
94 4     4   27474 use MooseX::StrictConstructor;
  4         27  
  4         24  
95             extends 'Cfn::Resource::Properties';
96            
97             has ApplicationName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
98             has CNAMEPrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
99             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
100             has EnvironmentName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
101             has OptionSettings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::OptionSetting', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
102             has PlatformArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
103             has SolutionStackName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
104             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
105             has TemplateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
106             has Tier => (isa => 'Cfn::Resource::Properties::AWS::ElasticBeanstalk::Environment::Tier', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Conditional');
107             has VersionLabel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             }
109              
110             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