« Cfn/Resource/AWS/AutoScaling/AutoScalingGroup.pm
↑ Summary
Cfn/Resource/AWS/AppSync/GraphQLApi.pm »
| 1 | # AWS::Lambda::Function generated from spec 21.0.0 | ||||||||||
| 2 | 4 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::Lambda::Function', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 6 | ▶ | via { Cfn::Resource::Properties::AWS::Lambda::Function->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 4 | package Cfn::Resource::AWS::Lambda::Function { | |||||||||
| 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::Lambda::Function', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'Arn' ] | ||||||||
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | } | ||||||||||
| 16 | sub supported_regions { | ||||||||||
| 17 | 8 | ▶ | [ '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::Lambda::Function::VpcConfig', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::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
| |||||||||||
| 30 | 0 | return $f | |||||||||
| 31 | } else { | ||||||||||
| 32 | 0 | return Cfn::Resource::Properties::Object::AWS::Lambda::Function::VpcConfig->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 4 | }; | |||||||||
| 35 | |||||||||||
| 36 | 4 | package Cfn::Resource::Properties::Object::AWS::Lambda::Function::VpcConfig { | |||||||||
| 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 SecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 4 | has SubnetIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | 4 | subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::TracingConfig', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::TracingConfig', | ||||||||||
| 49 | from 'HashRef', | ||||||||||
| 50 | via { | ||||||||||
| 51 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 0 | return Cfn::Resource::Properties::Object::AWS::Lambda::Function::TracingConfig->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 4 | }; | |||||||||
| 57 | |||||||||||
| 58 | 4 | package Cfn::Resource::Properties::Object::AWS::Lambda::Function::TracingConfig { | |||||||||
| 59 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 61 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 62 | |||||||||||
| 63 | 4 | has Mode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | } | ||||||||||
| 65 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Lambda::Function::FileSystemConfig', | ||||||||||
| 66 | as 'Cfn::Value', | ||||||||||
| 67 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 68 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 69 | |||||||||||
| 70 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Lambda::Function::FileSystemConfig', | ||||||||||
| 71 | from 'HashRef', | ||||||||||
| 72 | via { | ||||||||||
| 73 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 74 | 0 | return $f | |||||||||
| 75 | } else { | ||||||||||
| 76 | 0 | die 'Only accepts functions'; | |||||||||
| 77 | } | ||||||||||
| 78 | }, | ||||||||||
| 79 | from 'ArrayRef', | ||||||||||
| 80 | via { | ||||||||||
| 81 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 82 | map { | ||||||||||
| 83 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Lambda::Function::FileSystemConfig')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 84 | } @$_ | ||||||||||
| 85 | ]); | ||||||||||
| 86 | 4 | }; | |||||||||
| 87 | |||||||||||
| 88 | 4 | subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::FileSystemConfig', | |||||||||
| 89 | as 'Cfn::Value'; | ||||||||||
| 90 | |||||||||||
| 91 | coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::FileSystemConfig', | ||||||||||
| 92 | from 'HashRef', | ||||||||||
| 93 | via { | ||||||||||
| 94 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 95 | 0 | return $f | |||||||||
| 96 | } else { | ||||||||||
| 97 | 0 | return Cfn::Resource::Properties::Object::AWS::Lambda::Function::FileSystemConfig->new( %$_ ); | |||||||||
| 98 | } | ||||||||||
| 99 | 4 | }; | |||||||||
| 100 | |||||||||||
| 101 | 4 | package Cfn::Resource::Properties::Object::AWS::Lambda::Function::FileSystemConfig { | |||||||||
| 102 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 103 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 104 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 105 | |||||||||||
| 106 | 4 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 107 | 4 | has LocalMountPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 108 | } | ||||||||||
| 109 | |||||||||||
| 110 | 4 | subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::Environment', | |||||||||
| 111 | as 'Cfn::Value'; | ||||||||||
| 112 | |||||||||||
| 113 | coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::Environment', | ||||||||||
| 114 | from 'HashRef', | ||||||||||
| 115 | via { | ||||||||||
| 116 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 117 | 0 | return $f | |||||||||
| 118 | } else { | ||||||||||
| 119 | 0 | return Cfn::Resource::Properties::Object::AWS::Lambda::Function::Environment->new( %$_ ); | |||||||||
| 120 | } | ||||||||||
| 121 | 4 | }; | |||||||||
| 122 | |||||||||||
| 123 | 4 | package Cfn::Resource::Properties::Object::AWS::Lambda::Function::Environment { | |||||||||
| 124 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 125 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 126 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 127 | |||||||||||
| 128 | 4 | has Variables => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 129 | } | ||||||||||
| 130 | |||||||||||
| 131 | 4 | subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::DeadLetterConfig', | |||||||||
| 132 | as 'Cfn::Value'; | ||||||||||
| 133 | |||||||||||
| 134 | coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::DeadLetterConfig', | ||||||||||
| 135 | from 'HashRef', | ||||||||||
| 136 | via { | ||||||||||
| 137 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 138 | 0 | return $f | |||||||||
| 139 | } else { | ||||||||||
| 140 | 0 | return Cfn::Resource::Properties::Object::AWS::Lambda::Function::DeadLetterConfig->new( %$_ ); | |||||||||
| 141 | } | ||||||||||
| 142 | 4 | }; | |||||||||
| 143 | |||||||||||
| 144 | 4 | package Cfn::Resource::Properties::Object::AWS::Lambda::Function::DeadLetterConfig { | |||||||||
| 145 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 146 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 147 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 148 | |||||||||||
| 149 | 4 | has TargetArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 150 | } | ||||||||||
| 151 | |||||||||||
| 152 | 4 | subtype 'Cfn::Resource::Properties::AWS::Lambda::Function::Code', | |||||||||
| 153 | as 'Cfn::Value'; | ||||||||||
| 154 | |||||||||||
| 155 | coerce 'Cfn::Resource::Properties::AWS::Lambda::Function::Code', | ||||||||||
| 156 | from 'HashRef', | ||||||||||
| 157 | via { | ||||||||||
| 158 | 6 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 159 | 0 | return $f | |||||||||
| 160 | } else { | ||||||||||
| 161 | 6 | return Cfn::Resource::Properties::Object::AWS::Lambda::Function::Code->new( %$_ ); | |||||||||
| 162 | } | ||||||||||
| 163 | 4 | }; | |||||||||
| 164 | |||||||||||
| 165 | 4 | package Cfn::Resource::Properties::Object::AWS::Lambda::Function::Code { | |||||||||
| 166 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 167 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 168 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 169 | |||||||||||
| 170 | 4 | has S3Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 171 | 4 | has S3Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 172 | 4 | has S3ObjectVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 173 | 4 | has ZipFile => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 174 | } | ||||||||||
| 175 | |||||||||||
| 176 | 4 | package Cfn::Resource::Properties::AWS::Lambda::Function { | |||||||||
| 177 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 178 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 179 | 4 | extends 'Cfn::Resource::Properties'; | |||||||||
| 180 | |||||||||||
| 181 | 4 | has Code => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::Code', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 182 | 4 | has CodeSigningConfigArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 183 | 4 | has DeadLetterConfig => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::DeadLetterConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 184 | 4 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 185 | 4 | has Environment => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::Environment', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 186 | 4 | has FileSystemConfigs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Lambda::Function::FileSystemConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 187 | 4 | has FunctionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 188 | 4 | has Handler => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 189 | 4 | has KmsKeyArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 190 | 4 | has Layers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 191 | 4 | has MemorySize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 192 | 4 | has ReservedConcurrentExecutions => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 193 | 4 | has Role => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 194 | 4 | has Runtime => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 195 | 4 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 196 | 4 | has Timeout => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 197 | 4 | has TracingConfig => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::TracingConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 198 | 4 | has VpcConfig => (isa => 'Cfn::Resource::Properties::AWS::Lambda::Function::VpcConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 199 | } | ||||||||||
| 200 | |||||||||||
| 201 | 4 | 1; | |||||||||
| 202 | ### main pod documentation begin ### | ||||||||||
| 203 | |||||||||||
| 204 | =encoding UTF-8 | ||||||||||
| 205 | |||||||||||
| 206 | =head1 NAME | ||||||||||
| 207 | |||||||||||
| 208 | Cfn::Resource::AWS::Lambda::Function - Cfn resource for AWS::Lambda::Function | ||||||||||
| 209 | |||||||||||
| 210 | =head1 DESCRIPTION | ||||||||||
| 211 | |||||||||||
| 212 | This module implements a Perl module that represents the CloudFormation object AWS::Lambda::Function. | ||||||||||
| 213 | |||||||||||
| 214 | See L<Cfn> for more information on how to use it. | ||||||||||
| 215 | |||||||||||
| 216 | =head1 AUTHOR | ||||||||||
| 217 | |||||||||||
| 218 | Jose Luis Martinez | ||||||||||
| 219 | CAPSiDE | ||||||||||
| 220 | jlmartinez@capside.com | ||||||||||
| 221 | |||||||||||
| 222 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 223 | |||||||||||
| 224 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 225 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 226 | license can be found in the LICENSE file included with this module. | ||||||||||
| 227 | |||||||||||
| 228 | =cut | ||||||||||