Class: Aws::VPCLattice::Types::RuleAction

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-vpclattice/lib/aws-sdk-vpclattice/types.rb

Overview

Note:

RuleAction is a union - when making an API calls you must set exactly one of the members.

Note:

RuleAction is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of RuleAction corresponding to the set member.

Describes the action for a rule. Each rule must include exactly one of the following types of actions: forwardor fixed-response, and it must be the last action to be performed.

Direct Known Subclasses

FixedResponse, Forward, Unknown

Defined Under Namespace

Classes: FixedResponse, Forward, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#fixed_responseTypes::FixedResponseAction

Describes the rule action that returns a custom HTTP response.



2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
# File 'gems/aws-sdk-vpclattice/lib/aws-sdk-vpclattice/types.rb', line 2695

class RuleAction < Struct.new(
  :fixed_response,
  :forward,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class FixedResponse < RuleAction; end
  class Forward < RuleAction; end
  class Unknown < RuleAction; end
end

#forwardTypes::ForwardAction

The forward action. Traffic that matches the rule is forwarded to the specified target groups.



2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
# File 'gems/aws-sdk-vpclattice/lib/aws-sdk-vpclattice/types.rb', line 2695

class RuleAction < Struct.new(
  :fixed_response,
  :forward,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class FixedResponse < RuleAction; end
  class Forward < RuleAction; end
  class Unknown < RuleAction; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



2695
2696
2697
# File 'gems/aws-sdk-vpclattice/lib/aws-sdk-vpclattice/types.rb', line 2695

def unknown
  @unknown
end