Documentation ¶
Overview ¶
Package functionurl provides methods for working with AWS Lambda Function URLs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a struct that implements methods for signing and executing requests to AWS Lambda Function URLs.
func NewClient ¶
NewClient returns a new `Client` instance which is used for signing and executing requests to AWS Lambda Function URLs, configured by 'uri' which is expected to take the form of:
functionurl://?credentials={CREDENTIALS}®ion={AWS_REGION}
Where {CREDENTIALS} is a valid aaronland/go-aws-session credentials strings as described in https://github.com/aaronland/go-aws-session#credentials
func (*Client) Post ¶
Get will sign and execute an HTTP POST request to 'uri' passing 'body' as the request body.
func (*Client) SignRequest ¶
SignRequest will sign 'req' and 'body' and apply the necessary AWS Signature request headers to 'req'.