« Cfn/Resource/AWS/KinesisFirehose/DeliveryStream.pm
↑ Summary
Cfn/Resource/AWS/ApiGateway/Deployment.pm »
| 1 | # AWS::Lambda::EventSourceMapping generated from spec 22.0.0 | ||||||||||
| 2 | 1 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 2 | ▶ | via { Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | package Cfn::Resource::AWS::Lambda::EventSourceMapping { | |||||||||
| 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::Lambda::EventSourceMapping', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub AttributeList { | ||||||||
|
Subroutine
AttributeList: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 14 | 0 | [ 'Id' ] | |||||||||
| 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 | 1 | subtype 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::OnFailure', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::OnFailure', | ||||||||||
| 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
| |||||||||||
| 30 | 0 | return $f | |||||||||
| 31 | } else { | ||||||||||
| 32 | 0 | return Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::OnFailure->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 1 | }; | |||||||||
| 35 | |||||||||||
| 36 | 1 | package Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::OnFailure { | |||||||||
| 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 Destination => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | } | ||||||||||
| 43 | |||||||||||
| 44 | 1 | subtype 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::Endpoints', | |||||||||
| 45 | as 'Cfn::Value'; | ||||||||||
| 46 | |||||||||||
| 47 | coerce 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::Endpoints', | ||||||||||
| 48 | from 'HashRef', | ||||||||||
| 49 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 50 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 51 | 0 | return $f | |||||||||
| 52 | } else { | ||||||||||
| 53 | 0 | return Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::Endpoints->new( %$_ ); | |||||||||
| 54 | } | ||||||||||
| 55 | 1 | }; | |||||||||
| 56 | |||||||||||
| 57 | 1 | package Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::Endpoints { | |||||||||
| 58 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 59 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 61 | |||||||||||
| 62 | 1 | has KafkaBootstrapServers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 63 | } | ||||||||||
| 64 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration', | ||||||||||
| 65 | as 'Cfn::Value', | ||||||||||
| 66 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 67 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 68 | |||||||||||
| 69 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration', | ||||||||||
| 70 | from 'HashRef', | ||||||||||
| 71 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 72 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 73 | 0 | return $f | |||||||||
| 74 | } else { | ||||||||||
| 75 | 0 | die 'Only accepts functions'; | |||||||||
| 76 | } | ||||||||||
| 77 | }, | ||||||||||
| 78 | from 'ArrayRef', | ||||||||||
| 79 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 80 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 81 | map { | ||||||||||
| 82 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration')->coerce($_) | |||||||||
| 83 | } @$_ | ||||||||||
| 84 | ]); | ||||||||||
| 85 | 1 | }; | |||||||||
| 86 | |||||||||||
| 87 | 1 | subtype 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration', | |||||||||
| 88 | as 'Cfn::Value'; | ||||||||||
| 89 | |||||||||||
| 90 | coerce 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration', | ||||||||||
| 91 | from 'HashRef', | ||||||||||
| 92 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 93 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 94 | 0 | return $f | |||||||||
| 95 | } else { | ||||||||||
| 96 | 0 | return Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration->new( %$_ ); | |||||||||
| 97 | } | ||||||||||
| 98 | 1 | }; | |||||||||
| 99 | |||||||||||
| 100 | 1 | package Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration { | |||||||||
| 101 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 102 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 103 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 104 | |||||||||||
| 105 | 1 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 106 | 1 | has URI => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 107 | } | ||||||||||
| 108 | |||||||||||
| 109 | 1 | subtype 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SelfManagedEventSource', | |||||||||
| 110 | as 'Cfn::Value'; | ||||||||||
| 111 | |||||||||||
| 112 | coerce 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SelfManagedEventSource', | ||||||||||
| 113 | from 'HashRef', | ||||||||||
| 114 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 115 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 116 | 0 | return $f | |||||||||
| 117 | } else { | ||||||||||
| 118 | 0 | return Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::SelfManagedEventSource->new( %$_ ); | |||||||||
| 119 | } | ||||||||||
| 120 | 1 | }; | |||||||||
| 121 | |||||||||||
| 122 | 1 | package Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::SelfManagedEventSource { | |||||||||
| 123 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 124 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 125 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 126 | |||||||||||
| 127 | 1 | has Endpoints => (isa => 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::Endpoints', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 128 | } | ||||||||||
| 129 | |||||||||||
| 130 | 1 | subtype 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::DestinationConfig', | |||||||||
| 131 | as 'Cfn::Value'; | ||||||||||
| 132 | |||||||||||
| 133 | coerce 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::DestinationConfig', | ||||||||||
| 134 | from 'HashRef', | ||||||||||
| 135 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 136 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 137 | 0 | return $f | |||||||||
| 138 | } else { | ||||||||||
| 139 | 0 | return Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::DestinationConfig->new( %$_ ); | |||||||||
| 140 | } | ||||||||||
| 141 | 1 | }; | |||||||||
| 142 | |||||||||||
| 143 | 1 | package Cfn::Resource::Properties::Object::AWS::Lambda::EventSourceMapping::DestinationConfig { | |||||||||
| 144 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 145 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 146 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 147 | |||||||||||
| 148 | 1 | has OnFailure => (isa => 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::OnFailure', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 149 | } | ||||||||||
| 150 | |||||||||||
| 151 | 1 | package Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping { | |||||||||
| 152 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 153 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 154 | 1 | extends 'Cfn::Resource::Properties'; | |||||||||
| 155 | |||||||||||
| 156 | 1 | has BatchSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 157 | 1 | has BisectBatchOnFunctionError => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 158 | 1 | has DestinationConfig => (isa => 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::DestinationConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 159 | 1 | has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 160 | 1 | has EventSourceArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 161 | 1 | has FunctionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 162 | 1 | has FunctionResponseTypes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 163 | 1 | has MaximumBatchingWindowInSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 164 | 1 | has MaximumRecordAgeInSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 165 | 1 | has MaximumRetryAttempts => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 166 | 1 | has ParallelizationFactor => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 167 | 1 | has PartialBatchResponse => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 168 | 1 | has Queues => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 169 | 1 | has SelfManagedEventSource => (isa => 'Cfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SelfManagedEventSource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 170 | 1 | has SourceAccessConfigurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Lambda::EventSourceMapping::SourceAccessConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 171 | 1 | has StartingPosition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 172 | 1 | has Topics => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 173 | 1 | has TumblingWindowInSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 174 | } | ||||||||||
| 175 | |||||||||||
| 176 | 1 | 1; | |||||||||
| 177 | ### main pod documentation begin ### | ||||||||||
| 178 | |||||||||||
| 179 | =encoding UTF-8 | ||||||||||
| 180 | |||||||||||
| 181 | =head1 NAME | ||||||||||
| 182 | |||||||||||
| 183 | Cfn::Resource::AWS::Lambda::EventSourceMapping - Cfn resource for AWS::Lambda::EventSourceMapping | ||||||||||
| 184 | |||||||||||
| 185 | =head1 DESCRIPTION | ||||||||||
| 186 | |||||||||||
| 187 | This module implements a Perl module that represents the CloudFormation object AWS::Lambda::EventSourceMapping. | ||||||||||
| 188 | |||||||||||
| 189 | See L<Cfn> for more information on how to use it. | ||||||||||
| 190 | |||||||||||
| 191 | =head1 AUTHOR | ||||||||||
| 192 | |||||||||||
| 193 | Jose Luis Martinez | ||||||||||
| 194 | CAPSiDE | ||||||||||
| 195 | jlmartinez@capside.com | ||||||||||
| 196 | |||||||||||
| 197 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 198 | |||||||||||
| 199 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 200 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 201 | license can be found in the LICENSE file included with this module. | ||||||||||
| 202 | |||||||||||
| 203 | =cut | ||||||||||