Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetArn() string
- func (x *Config) GetCredentialsProfile() string
- func (x *Config) GetHostRewrite() string
- func (x *Config) GetInvocationMode() Config_InvocationMode
- func (x *Config) GetPayloadPassthrough() bool
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigMultiError
- type ConfigValidationError
- type Config_InvocationMode
- func (Config_InvocationMode) Descriptor() protoreflect.EnumDescriptor
- func (x Config_InvocationMode) Enum() *Config_InvocationMode
- func (Config_InvocationMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x Config_InvocationMode) Number() protoreflect.EnumNumber
- func (x Config_InvocationMode) String() string
- func (Config_InvocationMode) Type() protoreflect.EnumType
- type PerRouteConfig
- func (*PerRouteConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PerRouteConfig) GetInvokeConfig() *Config
- func (*PerRouteConfig) ProtoMessage()
- func (x *PerRouteConfig) ProtoReflect() protoreflect.Message
- func (x *PerRouteConfig) Reset()
- func (x *PerRouteConfig) String() string
- func (m *PerRouteConfig) Validate() error
- func (m *PerRouteConfig) ValidateAll() error
- type PerRouteConfigMultiError
- type PerRouteConfigValidationError
- func (e PerRouteConfigValidationError) Cause() error
- func (e PerRouteConfigValidationError) Error() string
- func (e PerRouteConfigValidationError) ErrorName() string
- func (e PerRouteConfigValidationError) Field() string
- func (e PerRouteConfigValidationError) Key() bool
- func (e PerRouteConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( Config_InvocationMode_name = map[int32]string{ 0: "SYNCHRONOUS", 1: "ASYNCHRONOUS", } Config_InvocationMode_value = map[string]int32{ "SYNCHRONOUS": 0, "ASYNCHRONOUS": 1, } )
Enum value maps for Config_InvocationMode.
var File_envoy_extensions_filters_http_aws_lambda_v3_aws_lambda_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // The ARN of the AWS Lambda to invoke when the filter is engaged // Must be in the following format: // arn:<partition>:lambda:<region>:<account-number>:function:<function-name> Arn string `protobuf:"bytes,1,opt,name=arn,proto3" json:"arn,omitempty"` // Whether to transform the request (headers and body) to a JSON payload or pass it as is. PayloadPassthrough bool `protobuf:"varint,2,opt,name=payload_passthrough,json=payloadPassthrough,proto3" json:"payload_passthrough,omitempty"` // Determines the way to invoke the Lambda function. InvocationMode Config_InvocationMode `` /* 175-byte string literal not displayed */ // Indicates that before signing headers, the host header will be swapped with // this value. If not set or empty, the original host header value // will be used and no rewrite will happen. // // Note: this rewrite affects both signing and host header forwarding. However, this // option shouldn't be used with // :ref:`HCM host rewrite <envoy_v3_api_field_config.route.v3.RouteAction.host_rewrite_literal>` given that the // value set here would be used for signing whereas the value set in the HCM would be used // for host header forwarding which is not the desired outcome. // Changing the value of the host header can result in a different route to be selected // if an HTTP filter after AWS lambda re-evaluates the route (clears route cache). HostRewrite string `protobuf:"bytes,4,opt,name=host_rewrite,json=hostRewrite,proto3" json:"host_rewrite,omitempty"` // Specifies the credentials profile to be used from the AWS credentials file. // This parameter is optional. If set, it will override the value set in the AWS_PROFILE env variable and // the provider chain is limited to the AWS credentials file Provider. // Other providers are ignored CredentialsProfile string `protobuf:"bytes,5,opt,name=credentials_profile,json=credentialsProfile,proto3" json:"credentials_profile,omitempty"` // contains filtered or unexported fields }
AWS Lambda filter config [#next-free-field: 6]
func (*Config) Descriptor
deprecated
func (*Config) GetCredentialsProfile ¶
func (*Config) GetHostRewrite ¶
func (*Config) GetInvocationMode ¶
func (x *Config) GetInvocationMode() Config_InvocationMode
func (*Config) GetPayloadPassthrough ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Config) ValidateAll ¶
ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.
type ConfigMultiError ¶
type ConfigMultiError []error
ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.
func (ConfigMultiError) AllErrors ¶
func (m ConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigMultiError) Error ¶
func (m ConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigValidationError ¶
type ConfigValidationError struct {
// contains filtered or unexported fields
}
ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.
func (ConfigValidationError) Cause ¶
func (e ConfigValidationError) Cause() error
Cause function returns cause value.
func (ConfigValidationError) Error ¶
func (e ConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigValidationError) ErrorName ¶
func (e ConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigValidationError) Field ¶
func (e ConfigValidationError) Field() string
Field function returns field value.
func (ConfigValidationError) Key ¶
func (e ConfigValidationError) Key() bool
Key function returns key value.
func (ConfigValidationError) Reason ¶
func (e ConfigValidationError) Reason() string
Reason function returns reason value.
type Config_InvocationMode ¶
type Config_InvocationMode int32
const ( // This is the more common mode of invocation, in which Lambda responds after it has completed the function. In // this mode the output of the Lambda function becomes the response of the HTTP request. Config_SYNCHRONOUS Config_InvocationMode = 0 // In this mode Lambda responds immediately but continues to process the function asynchronously. This mode can be // used to signal events for example. In this mode, Lambda responds with an acknowledgment that it received the // call which is translated to an HTTP 200 OK by the filter. Config_ASYNCHRONOUS Config_InvocationMode = 1 )
func (Config_InvocationMode) Descriptor ¶
func (Config_InvocationMode) Descriptor() protoreflect.EnumDescriptor
func (Config_InvocationMode) Enum ¶
func (x Config_InvocationMode) Enum() *Config_InvocationMode
func (Config_InvocationMode) EnumDescriptor
deprecated
func (Config_InvocationMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use Config_InvocationMode.Descriptor instead.
func (Config_InvocationMode) Number ¶
func (x Config_InvocationMode) Number() protoreflect.EnumNumber
func (Config_InvocationMode) String ¶
func (x Config_InvocationMode) String() string
func (Config_InvocationMode) Type ¶
func (Config_InvocationMode) Type() protoreflect.EnumType
type PerRouteConfig ¶
type PerRouteConfig struct { InvokeConfig *Config `protobuf:"bytes,1,opt,name=invoke_config,json=invokeConfig,proto3" json:"invoke_config,omitempty"` // contains filtered or unexported fields }
Per-route configuration for AWS Lambda. This can be useful when invoking a different Lambda function or a different version of the same Lambda depending on the route.
func (*PerRouteConfig) Descriptor
deprecated
func (*PerRouteConfig) Descriptor() ([]byte, []int)
Deprecated: Use PerRouteConfig.ProtoReflect.Descriptor instead.
func (*PerRouteConfig) GetInvokeConfig ¶
func (x *PerRouteConfig) GetInvokeConfig() *Config
func (*PerRouteConfig) ProtoMessage ¶
func (*PerRouteConfig) ProtoMessage()
func (*PerRouteConfig) ProtoReflect ¶
func (x *PerRouteConfig) ProtoReflect() protoreflect.Message
func (*PerRouteConfig) Reset ¶
func (x *PerRouteConfig) Reset()
func (*PerRouteConfig) String ¶
func (x *PerRouteConfig) String() string
func (*PerRouteConfig) Validate ¶
func (m *PerRouteConfig) Validate() error
Validate checks the field values on PerRouteConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PerRouteConfig) ValidateAll ¶
func (m *PerRouteConfig) ValidateAll() error
ValidateAll checks the field values on PerRouteConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PerRouteConfigMultiError, or nil if none found.
type PerRouteConfigMultiError ¶
type PerRouteConfigMultiError []error
PerRouteConfigMultiError is an error wrapping multiple validation errors returned by PerRouteConfig.ValidateAll() if the designated constraints aren't met.
func (PerRouteConfigMultiError) AllErrors ¶
func (m PerRouteConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PerRouteConfigMultiError) Error ¶
func (m PerRouteConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PerRouteConfigValidationError ¶
type PerRouteConfigValidationError struct {
// contains filtered or unexported fields
}
PerRouteConfigValidationError is the validation error returned by PerRouteConfig.Validate if the designated constraints aren't met.
func (PerRouteConfigValidationError) Cause ¶
func (e PerRouteConfigValidationError) Cause() error
Cause function returns cause value.
func (PerRouteConfigValidationError) Error ¶
func (e PerRouteConfigValidationError) Error() string
Error satisfies the builtin error interface
func (PerRouteConfigValidationError) ErrorName ¶
func (e PerRouteConfigValidationError) ErrorName() string
ErrorName returns error name.
func (PerRouteConfigValidationError) Field ¶
func (e PerRouteConfigValidationError) Field() string
Field function returns field value.
func (PerRouteConfigValidationError) Key ¶
func (e PerRouteConfigValidationError) Key() bool
Key function returns key value.
func (PerRouteConfigValidationError) Reason ¶
func (e PerRouteConfigValidationError) Reason() string
Reason function returns reason value.