1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

Take care of FixedResponseConfig in listeners parser

This commit is contained in:
KevinLoiseau 2019-11-26 16:33:50 +01:00
parent 7f32c06c35
commit 152a488834
No known key found for this signature in database
GPG key ID: 709159A779B96CC3
2 changed files with 5 additions and 3 deletions

View file

@ -54,9 +54,10 @@ module Fog
@target_group[name] = value
when 'Type', 'Order'
@default_action[name] = value
when 'Path', 'Protocol', 'Port', 'Query', 'Host', 'StatusCode'
when 'Path', 'Protocol', 'Port', 'Query', 'Host', 'StatusCode', 'ContentType',
'MessageBody', 'StatusCode'
@config[name] = value
when 'RedirectConfig', 'ForwardConfig'
when 'RedirectConfig', 'ForwardConfig', 'FixedResponseConfig'
@default_action[name] = @config
@config = {}
when 'DurationSeconds', 'Enabled'

View file

@ -35,7 +35,8 @@ class AWS
"Order" => String,
"TargetGroupArn" => String,
"RedirectConfig" => Fog::Nullable::Hash,
"ForwardConfig" => Fog::Nullable::Hash
"ForwardConfig" => Fog::Nullable::Hash,
"FixedResponseConfig" => Fog::Nullable::Hash
}]
LISTENER = {