| 1 | # AWS::ElasticLoadBalancingV2::Listener 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::ElasticLoadBalancingV2::Listener', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 10 | ▶ | via { Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 4 | package Cfn::Resource::AWS::ElasticLoadBalancingV2::Listener { | |||||||||
| 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::ElasticLoadBalancingV2::Listener', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'ListenerArn' ] | ||||||||
|
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 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::TargetGroupTuple', | ||||||||||
| 23 | as 'Cfn::Value', | ||||||||||
| 24 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 25 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 26 | |||||||||||
| 27 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::TargetGroupTuple', | ||||||||||
| 28 | from 'HashRef', | ||||||||||
| 29 | via { | ||||||||||
| 30 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 31 | 0 | return $f | |||||||||
| 32 | } else { | ||||||||||
| 33 | 0 | die 'Only accepts functions'; | |||||||||
| 34 | } | ||||||||||
| 35 | }, | ||||||||||
| 36 | from 'ArrayRef', | ||||||||||
| 37 | via { | ||||||||||
| 38 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 39 | map { | ||||||||||
| 40 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::TargetGroupTuple')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 41 | } @$_ | ||||||||||
| 42 | ]); | ||||||||||
| 43 | 4 | }; | |||||||||
| 44 | |||||||||||
| 45 | 4 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::TargetGroupTuple', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::TargetGroupTuple', | ||||||||||
| 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::ElasticLoadBalancingV2::Listener::TargetGroupTuple->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 4 | }; | |||||||||
| 57 | |||||||||||
| 58 | 4 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::TargetGroupTuple { | |||||||||
| 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 TargetGroupArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | 4 | has Weight => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 65 | } | ||||||||||
| 66 | |||||||||||
| 67 | 4 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::TargetGroupStickinessConfig', | |||||||||
| 68 | as 'Cfn::Value'; | ||||||||||
| 69 | |||||||||||
| 70 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::TargetGroupStickinessConfig', | ||||||||||
| 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 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::TargetGroupStickinessConfig->new( %$_ ); | |||||||||
| 77 | } | ||||||||||
| 78 | 4 | }; | |||||||||
| 79 | |||||||||||
| 80 | 4 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::TargetGroupStickinessConfig { | |||||||||
| 81 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 82 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 83 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 84 | |||||||||||
| 85 | 4 | has DurationSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 86 | 4 | has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 87 | } | ||||||||||
| 88 | |||||||||||
| 89 | 4 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::RedirectConfig', | |||||||||
| 90 | as 'Cfn::Value'; | ||||||||||
| 91 | |||||||||||
| 92 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::RedirectConfig', | ||||||||||
| 93 | from 'HashRef', | ||||||||||
| 94 | via { | ||||||||||
| 95 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 96 | 0 | return $f | |||||||||
| 97 | } else { | ||||||||||
| 98 | 0 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::RedirectConfig->new( %$_ ); | |||||||||
| 99 | } | ||||||||||
| 100 | 4 | }; | |||||||||
| 101 | |||||||||||
| 102 | 4 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::RedirectConfig { | |||||||||
| 103 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 104 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 105 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 106 | |||||||||||
| 107 | 4 | has Host => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 108 | 4 | has Path => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 109 | 4 | has Port => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 110 | 4 | has Protocol => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 111 | 4 | has Query => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 112 | 4 | has StatusCode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 113 | } | ||||||||||
| 114 | |||||||||||
| 115 | 4 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::ForwardConfig', | |||||||||
| 116 | as 'Cfn::Value'; | ||||||||||
| 117 | |||||||||||
| 118 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::ForwardConfig', | ||||||||||
| 119 | from 'HashRef', | ||||||||||
| 120 | via { | ||||||||||
| 121 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 122 | 0 | return $f | |||||||||
| 123 | } else { | ||||||||||
| 124 | 0 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::ForwardConfig->new( %$_ ); | |||||||||
| 125 | } | ||||||||||
| 126 | 4 | }; | |||||||||
| 127 | |||||||||||
| 128 | 4 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::ForwardConfig { | |||||||||
| 129 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 130 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 131 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 132 | |||||||||||
| 133 | 4 | has TargetGroups => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::TargetGroupTuple', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 134 | 4 | has TargetGroupStickinessConfig => (isa => 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::TargetGroupStickinessConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 135 | } | ||||||||||
| 136 | |||||||||||
| 137 | 4 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::FixedResponseConfig', | |||||||||
| 138 | as 'Cfn::Value'; | ||||||||||
| 139 | |||||||||||
| 140 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::FixedResponseConfig', | ||||||||||
| 141 | from 'HashRef', | ||||||||||
| 142 | via { | ||||||||||
| 143 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 144 | 0 | return $f | |||||||||
| 145 | } else { | ||||||||||
| 146 | 0 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::FixedResponseConfig->new( %$_ ); | |||||||||
| 147 | } | ||||||||||
| 148 | 4 | }; | |||||||||
| 149 | |||||||||||
| 150 | 4 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::FixedResponseConfig { | |||||||||
| 151 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 152 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 153 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 154 | |||||||||||
| 155 | 4 | has ContentType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 156 | 4 | has MessageBody => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 157 | 4 | has StatusCode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 158 | } | ||||||||||
| 159 | |||||||||||
| 160 | 4 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::AuthenticateOidcConfig', | |||||||||
| 161 | as 'Cfn::Value'; | ||||||||||
| 162 | |||||||||||
| 163 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::AuthenticateOidcConfig', | ||||||||||
| 164 | from 'HashRef', | ||||||||||
| 165 | via { | ||||||||||
| 166 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 167 | 0 | return $f | |||||||||
| 168 | } else { | ||||||||||
| 169 | 0 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::AuthenticateOidcConfig->new( %$_ ); | |||||||||
| 170 | } | ||||||||||
| 171 | 4 | }; | |||||||||
| 172 | |||||||||||
| 173 | 4 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::AuthenticateOidcConfig { | |||||||||
| 174 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 175 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 176 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 177 | |||||||||||
| 178 | 4 | has AuthenticationRequestExtraParams => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 179 | 4 | has AuthorizationEndpoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 180 | 4 | has ClientId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 181 | 4 | has ClientSecret => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 182 | 4 | has Issuer => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 183 | 4 | has OnUnauthenticatedRequest => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 184 | 4 | has Scope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 185 | 4 | has SessionCookieName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 186 | 4 | has SessionTimeout => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 187 | 4 | has TokenEndpoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 188 | 4 | has UserInfoEndpoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 189 | } | ||||||||||
| 190 | |||||||||||
| 191 | 4 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::AuthenticateCognitoConfig', | |||||||||
| 192 | as 'Cfn::Value'; | ||||||||||
| 193 | |||||||||||
| 194 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::AuthenticateCognitoConfig', | ||||||||||
| 195 | from 'HashRef', | ||||||||||
| 196 | via { | ||||||||||
| 197 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 198 | 0 | return $f | |||||||||
| 199 | } else { | ||||||||||
| 200 | 0 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::AuthenticateCognitoConfig->new( %$_ ); | |||||||||
| 201 | } | ||||||||||
| 202 | 4 | }; | |||||||||
| 203 | |||||||||||
| 204 | 4 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::AuthenticateCognitoConfig { | |||||||||
| 205 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 206 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 207 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 208 | |||||||||||
| 209 | 4 | has AuthenticationRequestExtraParams => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 210 | 4 | has OnUnauthenticatedRequest => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 211 | 4 | has Scope => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 212 | 4 | has SessionCookieName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 213 | 4 | has SessionTimeout => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 214 | 4 | has UserPoolArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 215 | 4 | has UserPoolClientId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 216 | 4 | has UserPoolDomain => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 217 | } | ||||||||||
| 218 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::Certificate', | ||||||||||
| 219 | as 'Cfn::Value', | ||||||||||
| 220 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 221 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 222 | |||||||||||
| 223 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::Certificate', | ||||||||||
| 224 | from 'HashRef', | ||||||||||
| 225 | via { | ||||||||||
| 226 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 227 | 0 | return $f | |||||||||
| 228 | } else { | ||||||||||
| 229 | 0 | die 'Only accepts functions'; | |||||||||
| 230 | } | ||||||||||
| 231 | }, | ||||||||||
| 232 | from 'ArrayRef', | ||||||||||
| 233 | via { | ||||||||||
| 234 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 235 | map { | ||||||||||
| 236 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::Certificate')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 237 | } @$_ | ||||||||||
| 238 | ]); | ||||||||||
| 239 | 4 | }; | |||||||||
| 240 | |||||||||||
| 241 | 4 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::Certificate', | |||||||||
| 242 | as 'Cfn::Value'; | ||||||||||
| 243 | |||||||||||
| 244 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::Certificate', | ||||||||||
| 245 | from 'HashRef', | ||||||||||
| 246 | via { | ||||||||||
| 247 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 248 | 0 | return $f | |||||||||
| 249 | } else { | ||||||||||
| 250 | 2 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::Certificate->new( %$_ ); | |||||||||
| 251 | } | ||||||||||
| 252 | 4 | }; | |||||||||
| 253 | |||||||||||
| 254 | 4 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::Certificate { | |||||||||
| 255 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 256 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 257 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 258 | |||||||||||
| 259 | 4 | has CertificateArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 260 | } | ||||||||||
| 261 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::Action', | ||||||||||
| 262 | as 'Cfn::Value', | ||||||||||
| 263 | 10 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 264 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 265 | |||||||||||
| 266 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::Action', | ||||||||||
| 267 | from 'HashRef', | ||||||||||
| 268 | via { | ||||||||||
| 269 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 270 | 0 | return $f | |||||||||
| 271 | } else { | ||||||||||
| 272 | 0 | die 'Only accepts functions'; | |||||||||
| 273 | } | ||||||||||
| 274 | }, | ||||||||||
| 275 | from 'ArrayRef', | ||||||||||
| 276 | via { | ||||||||||
| 277 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 278 | map { | ||||||||||
| 279 | 10 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::Action')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 280 | } @$_ | ||||||||||
| 281 | ]); | ||||||||||
| 282 | 4 | }; | |||||||||
| 283 | |||||||||||
| 284 | 4 | subtype 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::Action', | |||||||||
| 285 | as 'Cfn::Value'; | ||||||||||
| 286 | |||||||||||
| 287 | coerce 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::Action', | ||||||||||
| 288 | from 'HashRef', | ||||||||||
| 289 | via { | ||||||||||
| 290 | 10 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 291 | 0 | return $f | |||||||||
| 292 | } else { | ||||||||||
| 293 | 10 | return Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::Action->new( %$_ ); | |||||||||
| 294 | } | ||||||||||
| 295 | 4 | }; | |||||||||
| 296 | |||||||||||
| 297 | 4 | package Cfn::Resource::Properties::Object::AWS::ElasticLoadBalancingV2::Listener::Action { | |||||||||
| 298 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 299 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 300 | 4 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 301 | |||||||||||
| 302 | 4 | has AuthenticateCognitoConfig => (isa => 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::AuthenticateCognitoConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 303 | 4 | has AuthenticateOidcConfig => (isa => 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::AuthenticateOidcConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 304 | 4 | has FixedResponseConfig => (isa => 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::FixedResponseConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 305 | 4 | has ForwardConfig => (isa => 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::ForwardConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 306 | 4 | has Order => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 307 | 4 | has RedirectConfig => (isa => 'Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::RedirectConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 308 | 4 | has TargetGroupArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 309 | 4 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 310 | } | ||||||||||
| 311 | |||||||||||
| 312 | 4 | package Cfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener { | |||||||||
| 313 | 4 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 314 | 4 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 315 | 4 | extends 'Cfn::Resource::Properties'; | |||||||||
| 316 | |||||||||||
| 317 | 4 | has AlpnPolicy => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 318 | 4 | has Certificates => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::Certificate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 319 | 4 | has DefaultActions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ElasticLoadBalancingV2::Listener::Action', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 320 | 4 | has LoadBalancerArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 321 | 4 | has Port => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 322 | 4 | has Protocol => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 323 | 4 | has SslPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 324 | } | ||||||||||
| 325 | |||||||||||
| 326 | 4 | 1; | |||||||||
| 327 | ### main pod documentation begin ### | ||||||||||
| 328 | |||||||||||
| 329 | =encoding UTF-8 | ||||||||||
| 330 | |||||||||||
| 331 | =head1 NAME | ||||||||||
| 332 | |||||||||||
| 333 | Cfn::Resource::AWS::ElasticLoadBalancingV2::Listener - Cfn resource for AWS::ElasticLoadBalancingV2::Listener | ||||||||||
| 334 | |||||||||||
| 335 | =head1 DESCRIPTION | ||||||||||
| 336 | |||||||||||
| 337 | This module implements a Perl module that represents the CloudFormation object AWS::ElasticLoadBalancingV2::Listener. | ||||||||||
| 338 | |||||||||||
| 339 | See L<Cfn> for more information on how to use it. | ||||||||||
| 340 | |||||||||||
| 341 | =head1 AUTHOR | ||||||||||
| 342 | |||||||||||
| 343 | Jose Luis Martinez | ||||||||||
| 344 | CAPSiDE | ||||||||||
| 345 | jlmartinez@capside.com | ||||||||||
| 346 | |||||||||||
| 347 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 348 | |||||||||||
| 349 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 350 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 351 | license can be found in the LICENSE file included with this module. | ||||||||||
| 352 | |||||||||||
| 353 | =cut | ||||||||||