url

package
v0.0.0-...-1f78e34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cors

type Cors struct {

	// Specifies whether credentials are included in the CORS request.
	AllowCredentials bool `json:"AllowCredentials,omitempty"`

	// Represents a collection of allowed headers.
	AllowHeaders []string `json:"AllowHeaders,omitempty"`

	// Represents a collection of allowed HTTP methods.
	AllowMethods []string `json:"AllowMethods,omitempty"`

	// Represents a collection of allowed origins.
	AllowOrigins []string `json:"AllowOrigins,omitempty"`

	// Represents a collection of exposed headers.
	ExposeHeaders []string `json:"ExposeHeaders,omitempty"`
	MaxAge        int      `json:"MaxAge,omitempty"`
}

Cors

func (*Cors) MarshalJSON

func (strct *Cors) MarshalJSON() ([]byte, error)

func (*Cors) UnmarshalJSON

func (strct *Cors) UnmarshalJSON(b []byte) error

type Resource

type Resource struct {

	// Can be either AWS_IAM if the requests are authorized via IAM, or NONE if no authorization is configured on the Function URL.
	AuthType string `json:"AuthType"`
	Cors     *Cors  `json:"Cors,omitempty"`

	// The full Amazon Resource Name (ARN) of the function associated with the Function URL.
	FunctionArn string `json:"FunctionArn,omitempty"`

	// The generated url for this resource.
	FunctionUrl string `json:"FunctionUrl,omitempty"`

	// The invocation mode for the function?s URL. Set to BUFFERED if you want to buffer responses before returning them to the client. Set to RESPONSE_STREAM if you want to stream responses, allowing faster time to first byte and larger response payload sizes. If not set, defaults to BUFFERED.
	InvokeMode string `json:"InvokeMode,omitempty"`

	// The alias qualifier for the target function. If TargetFunctionArn is unqualified then Qualifier must be passed.
	Qualifier string `json:"Qualifier,omitempty"`

	// The Amazon Resource Name (ARN) of the function associated with the Function URL.
	TargetFunctionArn string `json:"TargetFunctionArn"`
}

Resource Resource Type definition for AWS::Lambda::Url

func (*Resource) MarshalJSON

func (strct *Resource) MarshalJSON() ([]byte, error)

func (*Resource) UnmarshalJSON

func (strct *Resource) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL