Class: AWSCDK::VPCLattice::CfnListener::DefaultActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::VPCLattice::CfnListener::DefaultActionProperty
- Defined in:
- vpc_lattice/cfn_listener.rb
Overview
The action for the default rule.
Each listener has a default rule. The default rule is used if no other rules match.
Instance Attribute Summary collapse
-
#fixed_response ⇒ AWSCDK::IResolvable, ...
readonly
Describes an action that returns a custom HTTP response.
-
#forward ⇒ AWSCDK::IResolvable, ...
readonly
Describes a forward action.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(fixed_response: nil, forward: nil) ⇒ DefaultActionProperty
constructor
A new instance of DefaultActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(fixed_response: nil, forward: nil) ⇒ DefaultActionProperty
Returns a new instance of DefaultActionProperty.
612 613 614 615 616 617 |
# File 'vpc_lattice/cfn_listener.rb', line 612 def initialize(fixed_response: nil, forward: nil) @fixed_response = fixed_response.is_a?(Hash) ? ::AWSCDK::VPCLattice::CfnListener::FixedResponseProperty.new(**fixed_response.transform_keys(&:to_sym)) : fixed_response Jsii::Type.check_type(@fixed_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c192cGNsYXR0aWNlLkNmbkxpc3RlbmVyLkZpeGVkUmVzcG9uc2VQcm9wZXJ0eSJ9XX19")), "fixedResponse") unless @fixed_response.nil? @forward = forward.is_a?(Hash) ? ::AWSCDK::VPCLattice::CfnListener::ForwardProperty.new(**forward.transform_keys(&:to_sym)) : forward Jsii::Type.check_type(@forward, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c192cGNsYXR0aWNlLkNmbkxpc3RlbmVyLkZvcndhcmRQcm9wZXJ0eSJ9XX19")), "forward") unless @forward.nil? end |
Instance Attribute Details
#fixed_response ⇒ AWSCDK::IResolvable, ... (readonly)
Describes an action that returns a custom HTTP response.
623 624 625 |
# File 'vpc_lattice/cfn_listener.rb', line 623 def fixed_response @fixed_response end |
#forward ⇒ AWSCDK::IResolvable, ... (readonly)
Describes a forward action.
You can use forward actions to route requests to one or more target groups.
630 631 632 |
# File 'vpc_lattice/cfn_listener.rb', line 630 def forward @forward end |
Class Method Details
.jsii_properties ⇒ Object
632 633 634 635 636 637 |
# File 'vpc_lattice/cfn_listener.rb', line 632 def self.jsii_properties { :fixed_response => "fixedResponse", :forward => "forward", } end |
Instance Method Details
#to_jsii ⇒ Object
639 640 641 642 643 644 645 646 |
# File 'vpc_lattice/cfn_listener.rb', line 639 def to_jsii result = {} result.merge!({ "fixedResponse" => @fixed_response, "forward" => @forward, }) result.compact end |