fc

package module
v0.0.0-...-3a1b2ed Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 26 Imported by: 22

README

Aliyun FunctionCompute Go SDK

API Reference :

FC API

GitHub Version Build Status

VERSION

go >= 1.8

Overview

Aliyun FunctionCompute Go SDK, sample

package main

import (
	"fmt"
	"os"
	"github.com/aliyun/fc-go-sdk"
)

func main() {
	serviceName := "service555"
	client, _ := fc.NewClient(os.Getenv("ENDPOINT"), "2016-08-15", os.Getenv("ACCESS_KEY_ID"), os.Getenv("ACCESS_KEY_SECRET"))

	fmt.Println("Creating service")
	createServiceOutput, err := client.CreateService(fc.NewCreateServiceInput().
		WithServiceName(serviceName).
		WithDescription("this is a smoke test for go sdk"))
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	}
	if createServiceOutput != nil {
		fmt.Printf("CreateService response: %s \n", createServiceOutput)
	}

	// GetService
	fmt.Println("Getting service")
	getServiceOutput, err := client.GetService(fc.NewGetServiceInput(serviceName))
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("GetService response: %s \n", getServiceOutput)
	}

	// UpdateService
	fmt.Println("Updating service")
	updateServiceInput := fc.NewUpdateServiceInput(serviceName).WithDescription("new description")
	updateServiceOutput, err := client.UpdateService(updateServiceInput)
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("UpdateService response: %s \n", updateServiceOutput)
	}

	// UpdateService with IfMatch
	fmt.Println("Updating service with IfMatch")
	updateServiceInput2 := fc.NewUpdateServiceInput(serviceName).WithDescription("new description2").
		WithIfMatch(updateServiceOutput.Header.Get("ETag"))
	updateServiceOutput2, err := client.UpdateService(updateServiceInput2)
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("UpdateService response: %s \n", updateServiceOutput2)
	}

	// UpdateService with wrong IfMatch
	fmt.Println("Updating service with wrong IfMatch")
	updateServiceInput3 := fc.NewUpdateServiceInput(serviceName).WithDescription("new description2").
		WithIfMatch("1234")
	updateServiceOutput3, err := client.UpdateService(updateServiceInput3)
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("UpdateService response: %s \n", updateServiceOutput3)
	}

	// ListServices
	fmt.Println("Listing services")
	listServicesOutput, err := client.ListServices(fc.NewListServicesInput().WithLimit(100))
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("ListServices response: %s \n", listServicesOutput)
	}

	// CreateFunction
	fmt.Println("Creating function1")
	createFunctionInput1 := fc.NewCreateFunctionInput(serviceName).WithFunctionName("testf1").
        		WithDescription("go sdk test function").
        		WithHandler("main.my_handler").WithRuntime("python2.7").
        		WithCode(fc.NewCode().WithFiles("./testCode/hello_world.zip")).
        		WithTimeout(5)

	createFunctionOutput, err := client.CreateFunction(createFunctionInput1)
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("CreateFunction response: %s \n", createFunctionOutput)
	}
	fmt.Println("Creating function2")
	createFunctionOutput2, err := client.CreateFunction(createFunctionInput1.WithFunctionName("testf2"))
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("CreateFunction response: %s \n", createFunctionOutput2)
	}

	// ListFunctions
	fmt.Println("Listing functions")
	listFunctionsOutput, err := client.ListFunctions(fc.NewListFunctionsInput(serviceName).WithPrefix("test"))
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("ListFunctions response: %s \n", listFunctionsOutput)
	}

	// UpdateFunction
	fmt.Println("Updating function")
	updateFunctionOutput, err := client.UpdateFunction(fc.NewUpdateFunctionInput(serviceName, "testf1").
		WithDescription("newdesc"))
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("UpdateFunction response: %s \n", updateFunctionOutput)
	}

	// InvokeFunction
	fmt.Println("Invoking function, log type Tail")
	invokeInput := fc.NewInvokeFunctionInput(serviceName, "testf1").WithLogType("Tail")
	invokeOutput, err := client.InvokeFunction(invokeInput)
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("InvokeFunction response: %s \n", invokeOutput)
		logResult, err := invokeOutput.GetLogResult()
		if err != nil {
			fmt.Printf("Failed to get LogResult due to %v\n", err)
		} else {
			fmt.Printf("Invoke function LogResult %s \n", logResult)
		}
	}

	fmt.Println("Invoking function, log type None")
	invokeInput = fc.NewInvokeFunctionInput(serviceName, "testf1").WithLogType("None")
	invokeOutput, err = client.InvokeFunction(invokeInput)
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("InvokeFunction response: %s \n", invokeOutput)
	}

    // PublishServiceVersion
	fmt.Println("Publishing service version")
	publishServiceVersionInput := fc.NewPublishServiceVersionInput(serviceName)
	publishServiceVersionOutput, err := client.PublishServiceVersion(publishServiceVersionInput)
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("PublishServiceVersion response: %s \n", publishServiceVersionOutput)
	}

    // PublishServiceVersion with IfMatch
    fmt.Println("Publishing service version with IfMatch")
    publishServiceVersionInput2 := fc.NewPublishServiceVersionInput(serviceName).
	       WithIfMatch(getServiceOutput.Header.Get("ETag"))
	publishServiceVersionOutput2, err := client.PublishServiceVersion(publishServiceVersionInput2)
	if err != nil {
	     fmt.Fprintln(os.Stderr, err)
	} else {
	      fmt.Printf("PublishServiceVersion response: %s \n", publishServiceVersionOutput2)
	}

	// PublishServiceVersion with wrong IfMatch
	fmt.Println("Publishing service with wrong IfMatch")
	publishServiceVersionInput3 := fc.NewPublishServiceVersionInput(serviceName).
	       WithIfMatch("1234")
	publishServiceVersionOutput3, err := client.PublishServiceVersion(publishServiceVersionInput3)
	if err != nil {
	       fmt.Fprintln(os.Stderr, err)
	} else {
	       fmt.Printf("PublishServiceVersion response: %s \n", publishServiceVersionOutput3)
	}

	// ListServiceVersions
	fmt.Println("Listing service versions")
	listServiceVersionsOutput, err := client.ListServiceVersions(fc.NewListServiceVersionsInput(serviceName).WithLimit(10))
	if err != nil {
	       fmt.Fprintln(os.Stderr, err)
	} else {
	       fmt.Printf("ListServiceVersions response: %s \n", listServiceVersionsOutput)
	}

	// GetService with qualifier
	fmt.Println("Getting service with qualifier")
	getServiceOutput2, err := client.GetService(fc.NewGetServiceInput(serviceName).WithQualifier(publishServiceVersionOutput.VersionID))
	if err != nil {
	       fmt.Fprintln(os.Stderr, err)
	} else {
	       fmt.Printf("GetService with qualifier response: %s \n", getServiceOutput2)
	}

	// CreateAlias
	aliasName := "alias"
	fmt.Println("Creating alias")
	createAliasOutput, err := client.CreateAlias(fc.NewCreateAliasInput(serviceName).WithAliasName(aliasName).WithVersionID(publishServiceVersionOutput.VersionID))
	if err != nil {
	       fmt.Fprintln(os.Stderr, err)
	} else {
	       fmt.Printf("CreateAlias response: %s \n", createAliasOutput)
	}

	// GetAlias
	fmt.Println("Getting alias")
	getAliasOutput, err := client.GetAlias(fc.NewGetAliasInput(serviceName, aliasName))
	if err != nil {
	       fmt.Fprintln(os.Stderr, err)
	} else {
	       fmt.Printf("GetAlias response: %s \n", getAliasOutput)
	}

	// UpdateAlias
	fmt.Println("Updating alias")
	updateAliasOutput, err := client.UpdateAlias(fc.NewUpdateAliasInput(serviceName, aliasName).WithVersionID(publishServiceVersionOutput2.VersionID))
	if err != nil {
	       fmt.Fprintln(os.Stderr, err)
	} else {
	       fmt.Printf("UpdateAlias response: %s \n", updateAliasOutput)
	}

	// ListAliases
	fmt.Println("Listing aliases")
	listAliasesOutput, err := client.ListAliases(fc.NewListAliasesInput(serviceName))
	if err != nil {
	       fmt.Fprintln(os.Stderr, err)
	} else {
	       fmt.Printf("ListAliases response: %s \n", listAliasesOutput)
	}

	// DeleteAlias
	fmt.Println("Deleting aliases")
	deleteAliasOutput, err := client.DeleteAlias(fc.NewDeleteAliasInput(serviceName, aliasName))
	if err != nil {
	       fmt.Fprintln(os.Stderr, err)
	} else {
	       fmt.Printf("DeleteAlias response: %s \n", deleteAliasOutput)
	}

	// DeleteServiceVersion
	fmt.Println("Deleting service version")
	deleteServiceVersionOutput, err := client.DeleteServiceVersion(fc.NewDeleteServiceVersionInput(serviceName, publishServiceVersionOutput.VersionID))
	if err != nil {
	       fmt.Fprintln(os.Stderr, err)
	} else {
	       fmt.Printf("DeleteServiceVersion response: %s \n", deleteServiceVersionOutput)
	}

	deleteServiceVersionOutput2, err := client.DeleteServiceVersion(fc.NewDeleteServiceVersionInput(serviceName, publishServiceVersionOutput2.VersionID))
	if err != nil {
	       fmt.Fprintln(os.Stderr, err)
	} else {
	       fmt.Printf("DeleteServiceVersion response: %s \n", deleteServiceVersionOutput2)
	}

	// DeleteFunction
	fmt.Println("Deleting functions")
	listFunctionsOutput, err = client.ListFunctions(fc.NewListFunctionsInput(serviceName).WithLimit(10))
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("ListFunctions response: %s \n", listFunctionsOutput)
		for _, fuc := range listFunctionsOutput.Functions {
			fmt.Printf("Deleting function %s \n", *fuc.FunctionName)
			if output, err := client.DeleteFunction(fc.NewDeleteFunctionInput(serviceName, *fuc.FunctionName)); err != nil {
				fmt.Fprintln(os.Stderr, err)
			} else {
				fmt.Printf("DeleteFunction response: %s \n", output)
			}

		}
	}

	// DeleteService
	fmt.Println("Deleting service")
	deleteServiceOutput, err := client.DeleteService(fc.NewDeleteServiceInput(serviceName))
	if err != nil {
		fmt.Fprintln(os.Stderr, err)
	} else {
		fmt.Printf("DeleteService response: %s \n", deleteServiceOutput)
	}

	// PutProvisionConfig
    fmt.Println("Putting provision config")
    putProvisionConfigOutput, err := client.PutProvisionConfig(fc.NewPutProvisionConfigInput(serviceName, "testAliasName", "testFunctionName").WithTarget(int64(100))
    if err != nil {
        fmt.Fprintln(os.Stderr, err)
    } else {
        fmt.Printf("PutProvisionConfig response: %s \n", putProvisionConfigOutput)
    }

    // GetProvisionConfig
    fmt.Println("Getting provision config")
    getProvisionConfigOutput, err := client.GetProvisionConfig(fc.NewGetProvisionConfigInput(serviceName, "testAliasName", "testFunctionName"))
    if err != nil {
        fmt.Fprintln(os.Stderr, err)
    } else {
        fmt.Printf("GetProvisionConfig response: %s \n", getProvisionConfigOutput)
    }

    // ListProvisionConfigs
    fmt.Println("Listing provision configs")
    listProvisionConfigsOutput, err := client.ListProvisionConfigs(fc.NewListProvisionConfigsInput())
    if err != nil {
        fmt.Fprintln(os.Stderr, err)
    } else {
        fmt.Printf("ListProvisionConfigs response: %s \n", listProvisionConfigsOutput)
    }
}

More resources

Contacting us

License

Documentation

Index

Constants

View Source
const (
	// HTTPHeaderRequestID get request ID
	HTTPHeaderRequestID = "X-Fc-Request-Id"

	// HTTPHeaderInvocationType stores the invocation type.
	HTTPHeaderInvocationType = "X-Fc-Invocation-Type"

	// HTTPHeaderStatefulAsyncInvocationID get invocation ID
	HTTPHeaderStatefulAsyncInvocationID = "X-Fc-Stateful-Async-Invocation-Id"

	// HTTPHeaderAccountID stores the account ID
	HTTPHeaderAccountID = "X-Fc-Account-Id"

	// HTTPHeaderFCErrorType get the error type when invoke function
	HTTPHeaderFCErrorType = "X-Fc-Error-Type"

	// HTTPHeaderSecurityToken is the header key for STS security token
	HTTPHeaderSecurityToken = "X-Fc-Security-Token"

	// HTTPHeaderInvocationLogType is the header key for invoke function log type
	HTTPHeaderInvocationLogType = "X-Fc-Log-Type"

	// HTTPHeaderInvocationLogResult is the header key for invoke function log result
	HTTPHeaderInvocationLogResult = "X-Fc-Log-Result"

	// HTTPHeaderEtag get the etag of the resource
	HTTPHeaderEtag = "Etag"

	//HTTPHeaderPrefix :Prefix string in headers
	HTTPHeaderPrefix = "x-fc-"

	//HTTPHeaderContentMD5 :Key in request headers
	HTTPHeaderContentMD5 = "Content-MD5"

	//HTTPHeaderContentType :Key in request headers
	HTTPHeaderContentType = "Content-Type"

	// HTTPHeaderUserAgent : Key in request headers
	HTTPHeaderUserAgent = "User-Agent"

	//HTTPHeaderDate :Key in request headers
	HTTPHeaderDate = "Date"

	// CustomContainerConfigAccelerationTypeDefault : default acceleration type for custom-container runtime
	CustomContainerConfigAccelerationTypeDefault = "Default"

	// CustomContainerConfigAccelerationTypeNone : disable custom-container runtime acceleration
	CustomContainerConfigAccelerationTypeNone = "None"
)
View Source
const (
	// AuthAnonymous defines http trigger without authorized
	AuthAnonymous = "anonymous"

	// AuthFunction defines http trigger authorized by AK
	AuthFunction = "function"
)
View Source
const (
	// AuthQueryKeyExpires : keys in request queries
	AuthQueryKeyExpires = "x-fc-expires"

	// AuthQueryKeyAccessKeyID : keys in request queries
	AuthQueryKeyAccessKeyID = "x-fc-access-key-id"

	// AuthQueryKeySignature : keys in request queries
	AuthQueryKeySignature = "x-fc-signature"

	// AuthQueryKeySecurityToken : keys in requres queries
	AuthQueryKeySecurityToken = "x-fc-security-token"
)
View Source
const (
	TRIGGER_TYPE_OSS         = "oss"
	TRIGGER_TYPE_LOG         = "log"
	TRIGGER_TYPE_TIMER       = "timer"
	TRIGGER_TYPE_HTTP        = "http"
	TRIGGER_TYPE_TABLESTORE  = "tablestore"
	TRIGGER_TYPE_CDN_EVENTS  = "cdn_events"
	TRIGGER_TYPE_MNS_TOPIC   = "mns_topic"
	TRIGGER_TYPE_EVENTBRIDGE = "eventbridge"
)
View Source
const (
	APIVersionV1 = "2016-08-15"
)

Supported api versions

View Source
const (
	AnyRunTime = "Any"
)
View Source
const (
	DefaultListLimit = 100
)
View Source
const (
	RequestTimeout = 60
)

default parameter

View Source
const (
	TracingTypeJaeger = "Jaeger"
)

Supported tracing types

Variables

View Source
var (
	ListDirectionBackward = "BACKWARD"
	ListDirectionForward  = "FORWARD"
)
View Source
var DefaultAuthType = AuthFunction

DefaultAuthType ...

View Source
var (
	ErrUnknownTriggerType = errors.New("unknown trigger type")
)

Functions

func GetAccessPoint

func GetAccessPoint(endpointInput string) (endpoint, host string)

GetAccessPoint get correct endpoint and host

func GetAuthStr

func GetAuthStr(accessKeyID string, accessKeySecret string, method string, header map[string]string, resource string) string

GetAuthStr get signature strings

func GetErrorType

func GetErrorType(header http.Header) string

GetErrorType get error type when call invocation

func GetEtag

func GetEtag(header http.Header) string

GetEtag get resource etag

func GetRequestID

func GetRequestID(header http.Header) string

GetRequestID from headers

func GetSignResourceWithQueries

func GetSignResourceWithQueries(path string, queries map[string][]string) string

GetSignResourceWithQueries get signature resource with queries

func GetSignature

func GetSignature(key string, method string, req map[string]string, fcResource string) string

GetSignature calculate user's signature

func HasPrefix

func HasPrefix(s, prefix string) bool

HasPrefix check endpoint prefix

func IsBlank

func IsBlank(s *string) bool

IsBlank :check string pointer is nil or empty

func MD5

func MD5(b []byte) string

MD5 :Encoding MD5

func ParameterToString

func ParameterToString(obj interface{}, collectionFormat string) string

ParameterToString serialize parameters

func TempZipDir

func TempZipDir(dir string) (string, error)

TempZipDir zips everything from source dir into a temporary zip file which doesn't include the source dir but its content. Return the location of the temporary zip file.

func TmpZip

func TmpZip(files []string) (string, error)

TmpZip everything from source file into a temporary zip file. Return the location of the temporary zip file.

func Zip

func Zip(files []string, target string) error

Zip everything from the source (either file/directory) recursively into target zip file.

func ZipDir

func ZipDir(srcDir string, output io.Writer) error

ZipDir zip up a directory and preserve symlinks and empty directories.

Types

type AliasCreateObject

type AliasCreateObject struct {
	AliasName               *string            `json:"aliasName"`
	VersionID               *string            `json:"versionId"`
	Description             *string            `json:"description"`
	AdditionalVersionWeight map[string]float64 `json:"additionalVersionWeight"`
}

type AliasUpdateObject

type AliasUpdateObject struct {
	VersionID               *string            `json:"versionId"`
	Description             *string            `json:"description"`
	AdditionalVersionWeight map[string]float64 `json:"additionalVersionWeight"`
}

type AsyncConfig

type AsyncConfig struct {
	StatefulInvocation        *bool              `json:"statefulInvocation"`
	DestinationConfig         *DestinationConfig `json:"destinationConfig"`
	MaxAsyncEventAgeInSeconds *int64             `json:"maxAsyncEventAgeInSeconds"`
	MaxAsyncRetryAttempts     *int64             `json:"maxAsyncRetryAttempts"`
}

AsyncConfig represents the async configuration.

type AsyncConfigResponse

type AsyncConfigResponse struct {
	Service          *string `json:"service"`
	Function         *string `json:"function"`
	CreatedTime      *string `json:"createdTime"`
	Qualifier        *string `json:"qualifier"`
	LastModifiedTime *string `json:"lastModifiedTime"`
	AsyncConfig
}

AsyncConfigResponse defines the detail async config object

type CDNEventsTriggerConfig

type CDNEventsTriggerConfig struct {
	EventName    *string             `json:"eventName"`
	EventVersion *string             `json:"eventVersion"`
	Notes        *string             `json:"notes"`
	Filter       map[string][]string `json:"filter"`
}

CDNEventsTriggerConfig defines the cdn events trigger config

func NewCDNEventsTriggerConfig

func NewCDNEventsTriggerConfig() *CDNEventsTriggerConfig

NewCDNEventsTriggerConfig creates an empty CDNTEventsTriggerConfig

func (*CDNEventsTriggerConfig) WithEventName

func (ctc *CDNEventsTriggerConfig) WithEventName(eventName string) *CDNEventsTriggerConfig

func (*CDNEventsTriggerConfig) WithEventVersion

func (ctc *CDNEventsTriggerConfig) WithEventVersion(eventVersion string) *CDNEventsTriggerConfig

func (*CDNEventsTriggerConfig) WithFilter

func (ctc *CDNEventsTriggerConfig) WithFilter(filter map[string][]string) *CDNEventsTriggerConfig

func (*CDNEventsTriggerConfig) WithNotes

func (ctc *CDNEventsTriggerConfig) WithNotes(notes string) *CDNEventsTriggerConfig

type CertConfig

type CertConfig struct {
	CertName    *string `json:certName`
	PrivateKey  *string `json:privateKey`
	Certificate *string `json:certificate`
}

func (*CertConfig) WithCertName

func (c *CertConfig) WithCertName(certName string) *CertConfig

func (*CertConfig) WithCertificate

func (c *CertConfig) WithCertificate(certificate string) *CertConfig

func (*CertConfig) WithPrivateKey

func (c *CertConfig) WithPrivateKey(privateKey string) *CertConfig

type Client

type Client struct {
	Config  *Config
	Connect *Connection
}

Client defines fc client

func NewClient

func NewClient(endpoint, apiVersion, accessKeyID, accessKeySecret string, opts ...ClientOption) (*Client, error)

NewClient new fc client

func (*Client) CreateAlias

func (c *Client) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error)

CreateAlias creates alias

func (*Client) CreateCustomDomain

func (c *Client) CreateCustomDomain(input *CreateCustomDomainInput) (*CreateCustomDomainOutput, error)

CreateCustomDomain creates custom domain

func (*Client) CreateFunction

func (c *Client) CreateFunction(input *CreateFunctionInput) (*CreateFunctionOutput, error)

CreateFunction creates function

func (*Client) CreateService

func (c *Client) CreateService(input *CreateServiceInput) (*CreateServiceOutput, error)

CreateService creates service

func (*Client) CreateTrigger

func (c *Client) CreateTrigger(input *CreateTriggerInput) (*CreateTriggerOutput, error)

CreateTrigger creates trigger

func (*Client) DeleteAlias

func (c *Client) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error)

DeleteAlias deletes service

func (*Client) DeleteCustomDomain

func (c *Client) DeleteCustomDomain(input *DeleteCustomDomainInput) (*DeleteCustomDomainOutput, error)

DeleteCustomDomain deletes custom domain

func (*Client) DeleteFunction

func (c *Client) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error)

DeleteFunction deletes function from service

func (*Client) DeleteFunctionAsyncInvokeConfig

func (c *Client) DeleteFunctionAsyncInvokeConfig(input *DeleteFunctionAsyncInvokeConfigInput) (*DeleteFunctionAsyncInvokeConfigOutput, error)

DeleteFunctionAsyncInvokeConfig deletes async config

func (*Client) DeleteLayerVersion

func (c *Client) DeleteLayerVersion(input *DeleteLayerVersionInput) (*DeleteLayerVersionOutput, error)

DeleteLayerVersion deletes a layer version

func (*Client) DeleteOnDemandConfig

func (c *Client) DeleteOnDemandConfig(input *DeleteOnDemandConfigInput) (*DeleteOnDemandConfigOutput, error)

DeleteOnDemandConfig delete on-demand config

func (*Client) DeleteService

func (c *Client) DeleteService(input *DeleteServiceInput) (*DeleteServiceOutput, error)

DeleteService deletes service

func (*Client) DeleteServiceVersion

func (c *Client) DeleteServiceVersion(input *DeleteServiceVersionInput) (*DeleteServiceVersionOutput, error)

DeleteServiceVersion marks service version as deleted

func (*Client) DeleteTrigger

func (c *Client) DeleteTrigger(input *DeleteTriggerInput) (*DeleteTriggerOutput, error)

DeleteTrigger deletes trigger

func (*Client) DoHttpRequest

func (c *Client) DoHttpRequest(req *http.Request) (*http.Response, error)

DoHttpRequest returns function http invocation response

func (*Client) GetAccountSettings

func (c *Client) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error)

GetAccountSettings returns account settings from fc

func (*Client) GetAlias

func (c *Client) GetAlias(input *GetAliasInput) (*GetAliasOutput, error)

GetAlias returns alias metadata from fc

func (*Client) GetCustomDomain

func (c *Client) GetCustomDomain(input *GetCustomDomainInput) (*GetCustomDomainOutput, error)

GetCustomDomain returns custom domain metadata from fc

func (*Client) GetFunction

func (c *Client) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error)

GetFunction returns function metadata from service

func (*Client) GetFunctionAsyncInvokeConfig

func (c *Client) GetFunctionAsyncInvokeConfig(input *GetFunctionAsyncInvokeConfigInput) (*GetFunctionAsyncInvokeConfigOutput, error)

GetFunctionAsyncInvokeConfig returns async config from fc

func (*Client) GetFunctionCode

func (c *Client) GetFunctionCode(input *GetFunctionCodeInput) (*GetFunctionCodeOutput, error)

GetFunctionCode returns function code

func (*Client) GetLayerVersion

func (c *Client) GetLayerVersion(input *GetLayerVersionInput) (*GetLayerVersionOutput, error)

GetLayerVersion returns layer version information from fc

func (*Client) GetLayerVersionByArn

func (c *Client) GetLayerVersionByArn(input *GetLayerVersionByArnInput) (*GetLayerVersionOutput, error)

GetLayerVersionByArn returns layer version information from fc

func (*Client) GetOnDemandConfig

func (c *Client) GetOnDemandConfig(input *GetOnDemandConfigInput) (*GetOnDemandConfigOutput, error)

GetOnDemandConfig return on-demand config from fc

func (*Client) GetProvisionConfig

func (c *Client) GetProvisionConfig(input *GetProvisionConfigInput) (*GetProvisionConfigOutput, error)

GetProvisionConfig return provision config from fc

func (*Client) GetResourceTags

func (c *Client) GetResourceTags(input *GetResourceTagsInput) (*GetResourceTagsOut, error)

GetResourceTags ...

func (*Client) GetService

func (c *Client) GetService(input *GetServiceInput) (*GetServiceOutput, error)

GetService returns service metadata from fc

func (*Client) GetStatefulAsyncInvocation

func (c *Client) GetStatefulAsyncInvocation(input *GetStatefulAsyncInvocationInput) (*GetStatefulAsyncInvocationOutput, error)

GetStatefulAsyncInvocation returns stateful async invocation record

func (*Client) GetTempBucketToken

func (c *Client) GetTempBucketToken() (*GetTempBucketTokenOutput, error)

GetTempBucketToken ...

func (*Client) GetTrigger

func (c *Client) GetTrigger(input *GetTriggerInput) (*GetTriggerOutput, error)

GetTrigger returns trigger metadata

func (*Client) InstanceExec

func (c *Client) InstanceExec(input *InstanceExecInput) (*InstanceExecOutput, error)

InstanceExec ...

func (*Client) InvokeFunction

func (c *Client) InvokeFunction(input *InvokeFunctionInput) (*InvokeFunctionOutput, error)

InvokeFunction : invoke function in fc

func (*Client) ListAliases

func (c *Client) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error)

ListAliases returns list of aliases from fc

func (*Client) ListCustomDomains

func (c *Client) ListCustomDomains(input *ListCustomDomainsInput) (*ListCustomDomainsOutput, error)

ListCustomDomains returns list of custom domains from fc

func (*Client) ListFunctionAsyncInvokeConfigs

func (c *Client) ListFunctionAsyncInvokeConfigs(input *ListFunctionAsyncInvokeConfigsInput) (*ListFunctionAsyncInvokeConfigsOutput, error)

ListFunctionAsyncInvokeConfigs returns list of async configs from fc

func (*Client) ListFunctions

func (c *Client) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error)

ListFunctions returns list of functions

func (*Client) ListInstances

func (c *Client) ListInstances(input *ListInstancesInput) (*ListInstancesOutput, error)

ListInstances ...

func (*Client) ListLayerVersions

func (c *Client) ListLayerVersions(input *ListLayerVersionsInput) (*ListLayerVersionsOutput, error)

ListLayerVersions returns list of layer versions of a specific layer from fc

func (*Client) ListLayers

func (c *Client) ListLayers(input *ListLayersInput) (*ListLayersOutput, error)

ListLayers returns list of layers from fc

func (*Client) ListOnDemandConfigs

func (c *Client) ListOnDemandConfigs(input *ListOnDemandConfigsInput) (*ListOnDemandConfigsOutput, error)

ListOnDemandConfigs return list of provision configs from fc

func (*Client) ListProvisionConfigs

func (c *Client) ListProvisionConfigs(input *ListProvisionConfigsInput) (*ListProvisionConfigsOutput, error)

ListProvisionConfigs return list of provision configs from fc

func (*Client) ListReservedCapacities

func (c *Client) ListReservedCapacities(input *ListReservedCapacitiesInput) (*ListReservedCapacitiesOutput, error)

ListReservedCapacities returns list of reserved capacity from fc

func (*Client) ListServiceVersions

func (c *Client) ListServiceVersions(input *ListServiceVersionsInput) (*ListServiceVersionsOutput, error)

ListServiceVersions returns list of service versions

func (*Client) ListServices

func (c *Client) ListServices(input *ListServicesInput) (*ListServicesOutput, error)

ListServices returns list of services from fc

func (*Client) ListStatefulAsyncInvocations

func (c *Client) ListStatefulAsyncInvocations(input *ListStatefulAsyncInvocationsInput) (*ListStatefulAsyncInvocationsOutput, error)

ListStatefulAsyncInvocations returns list of stateful async invocation records

func (*Client) ListTriggers

func (c *Client) ListTriggers(input *ListTriggersInput) (*ListTriggersOutput, error)

ListTriggers returns list of triggers

func (*Client) PermanentDeleteLayerVersion

func (c *Client) PermanentDeleteLayerVersion(input *PermanentDeleteLayerVersionInput) (*PublishPublicLayerVersionOutput, error)

PermanentDeleteVersion delete a soft deleted layer version permanently

func (*Client) PublishLayerVersion

func (c *Client) PublishLayerVersion(input *PublishLayerVersionInput) (*PublishLayerVersionOutput, error)

PublishLayerVersion creates a new layer version

func (*Client) PublishPublicLayerVersion

func (c *Client) PublishPublicLayerVersion(input *GetLayerVersionInput) (*PublishPublicLayerVersionOutput, error)

PublishPublicLayerVersion publish a new exiting layer version as public

func (*Client) PublishServiceVersion

func (c *Client) PublishServiceVersion(input *PublishServiceVersionInput) (*PublishServiceVersionOutput, error)

PublishServiceVersion publishes service version

func (*Client) PutFunctionAsyncInvokeConfig

func (c *Client) PutFunctionAsyncInvokeConfig(input *PutFunctionAsyncInvokeConfigInput) (*PutFunctionAsyncInvokeConfigOutput, error)

PutFunctionAsyncInvokeConfig creates or updates an async config

func (*Client) PutOnDemandConfig

func (c *Client) PutOnDemandConfig(input *PutOnDemandConfigInput) (*PutOnDemandConfigOutput, error)

PutOnDemandConfig put on-demand config

func (*Client) PutProvisionConfig

func (c *Client) PutProvisionConfig(input *PutProvisionConfigInput) (*PutProvisionConfigOutput, error)

PutProvisionConfig put provision config

func (*Client) SignURL

func (c *Client) SignURL(signURLInput *SignURLInput) (string, error)

SignURL : sign an URL with signature in queries for HTTP function

func (*Client) StopStatefulAsyncInvocation

func (c *Client) StopStatefulAsyncInvocation(input *StopStatefulAsyncInvocationInput) (*StopStatefulAsyncInvocationOutput, error)

StopStatefulAsyncInvocation ...

func (*Client) TagResource

func (c *Client) TagResource(input *TagResourceInput) (*TagResourceOut, error)

TagResource make a resource with tags

func (*Client) UnTagResource

func (c *Client) UnTagResource(input *UnTagResourceInput) (*UnTagResourceOut, error)

UnTagResource ...

func (*Client) UpdateAlias

func (c *Client) UpdateAlias(input *UpdateAliasInput) (*UpdateAliasOutput, error)

UpdateAlias updates alias

func (*Client) UpdateCustomDomain

func (c *Client) UpdateCustomDomain(input *UpdateCustomDomainInput) (*UpdateCustomDomainOutput, error)

UpdateCustomDomain updates custom domain

func (*Client) UpdateFunction

func (c *Client) UpdateFunction(input *UpdateFunctionInput) (*UpdateFunctionOutput, error)

UpdateFunction updates function

func (*Client) UpdateService

func (c *Client) UpdateService(input *UpdateServiceInput) (*UpdateServiceOutput, error)

UpdateService updates service

func (*Client) UpdateTrigger

func (c *Client) UpdateTrigger(input *UpdateTriggerInput) (*UpdateTriggerOutput, error)

UpdateTrigger updates trigger

type ClientOption

type ClientOption func(*Client)

ClientOption : defines client options type

func WithAccountID

func WithAccountID(aid string) ClientOption

WithAccountID sets the account id in header, this enables accessing FC using IP address:

client, _ := fc.NewClient("127.0.0.1", "api-version", "id", "key",

fc.WithAccountID("1234776887"))

func WithRetryCount

func WithRetryCount(count int) ClientOption

WithRetryCount : config the retry count for resty

func WithSecurityToken

func WithSecurityToken(token string) ClientOption

WithSecurityToken : sets the STS security token

func WithTimeout

func WithTimeout(t uint) ClientOption

WithTimeout : set request timeout in second

func WithTransport

func WithTransport(ts *http.Transport) ClientOption

WithTransport : overrides default http.Transport with customized transport

type Code

type Code struct {
	OSSBucketName *string `json:"ossBucketName"`
	OSSObjectName *string `json:"ossObjectName"`
	ZipFile       *string `json:"zipFile"`
	// contains filtered or unexported fields
}

Code defines the code location or includes the base64 encoded source

func NewCode

func NewCode() *Code

func (*Code) WithDir

func (c *Code) WithDir(dir string) *Code

func (*Code) WithFiles

func (c *Code) WithFiles(files ...string) *Code

func (*Code) WithOSSBucketName

func (c *Code) WithOSSBucketName(bucketName string) *Code

func (*Code) WithOSSObjectName

func (c *Code) WithOSSObjectName(objectName string) *Code

func (*Code) WithZipFile

func (c *Code) WithZipFile(zipFile []byte) *Code

type Config

type Config struct {
	Endpoint        string // fc地址
	APIVersion      string // API版本
	AccountID       string // Account ID
	AccessKeyID     string // accessKeyID
	AccessKeySecret string // accessKeySecret
	SecurityToken   string // STS securityToken
	UserAgent       string // SDK名称/版本/系统信息
	IsDebug         bool   // 是否开启调试模式,默认false
	Timeout         uint   // 超时时间,默认60秒
	// contains filtered or unexported fields
}

Config defines fc config

func NewConfig

func NewConfig() *Config

NewConfig get default config

type Connection

type Connection struct {
	Timeout uint // 超时时间,默认60秒
}

Connection with fc

func NewConnection

func NewConnection() *Connection

NewConnection get default connection

func (*Connection) PrepareRequest

func (conn *Connection) PrepareRequest(postBody interface{},
	headerParams map[string]string,
	queryParams url.Values) *resty.Request

PrepareRequest prepare http request

func (*Connection) SendRequest

func (conn *Connection) SendRequest(path string, method string,
	postBody interface{},
	headerParams map[string]string,
	queryParams url.Values) (*resty.Response, error)

SendRequest send http request

type CreateAliasInput

type CreateAliasInput struct {
	ServiceName *string `json:"serviceName"`
	AliasCreateObject
}

func NewCreateAliasInput

func NewCreateAliasInput(serviceName string) *CreateAliasInput

func (*CreateAliasInput) GetHeaders

func (i *CreateAliasInput) GetHeaders() Header

func (*CreateAliasInput) GetPath

func (i *CreateAliasInput) GetPath() string

func (*CreateAliasInput) GetPayload

func (i *CreateAliasInput) GetPayload() interface{}

func (*CreateAliasInput) GetQueryParams

func (i *CreateAliasInput) GetQueryParams() url.Values

func (*CreateAliasInput) Validate

func (i *CreateAliasInput) Validate() error

func (*CreateAliasInput) WithAdditionalVersionWeight

func (i *CreateAliasInput) WithAdditionalVersionWeight(additionalVersionWeight map[string]float64) *CreateAliasInput

func (*CreateAliasInput) WithAliasName

func (i *CreateAliasInput) WithAliasName(aliasName string) *CreateAliasInput

func (*CreateAliasInput) WithDescription

func (i *CreateAliasInput) WithDescription(description string) *CreateAliasInput

func (*CreateAliasInput) WithVersionID

func (i *CreateAliasInput) WithVersionID(versionID string) *CreateAliasInput

type CreateAliasOutput

type CreateAliasOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

func (CreateAliasOutput) GetEtag

func (o CreateAliasOutput) GetEtag() string

func (CreateAliasOutput) GetRequestID

func (o CreateAliasOutput) GetRequestID() string

func (CreateAliasOutput) String

func (o CreateAliasOutput) String() string

type CreateCustomDomainInput

type CreateCustomDomainInput struct {
	DomainName  *string      `json:"domainName"`
	Protocol    *string      `json:"protocol"`
	RouteConfig *RouteConfig `json:"routeConfig"`
	CertConfig  *CertConfig  `json:"certConfig"`
}

CreateCustomDomainInput defines input to create custom domain

func NewCreateCustomDomainInput

func NewCreateCustomDomainInput() *CreateCustomDomainInput

NewCreateCustomDomainInput...

func (*CreateCustomDomainInput) GetHeaders

func (c *CreateCustomDomainInput) GetHeaders() Header

func (*CreateCustomDomainInput) GetPath

func (c *CreateCustomDomainInput) GetPath() string

func (*CreateCustomDomainInput) GetPayload

func (c *CreateCustomDomainInput) GetPayload() interface{}

func (*CreateCustomDomainInput) GetQueryParams

func (c *CreateCustomDomainInput) GetQueryParams() url.Values

func (*CreateCustomDomainInput) Validate

func (c *CreateCustomDomainInput) Validate() error

func (*CreateCustomDomainInput) WithCertConfig

func (c *CreateCustomDomainInput) WithCertConfig(certConfig *CertConfig) *CreateCustomDomainInput

func (*CreateCustomDomainInput) WithDomainName

func (c *CreateCustomDomainInput) WithDomainName(domainName string) *CreateCustomDomainInput

func (*CreateCustomDomainInput) WithProtocol

func (c *CreateCustomDomainInput) WithProtocol(protocol string) *CreateCustomDomainInput

func (*CreateCustomDomainInput) WithRouteConfig

func (c *CreateCustomDomainInput) WithRouteConfig(routeConfig *RouteConfig) *CreateCustomDomainInput

type CreateCustomDomainOutput

type CreateCustomDomainOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

CreateCustomDomainOutput define create custom domain response

func (CreateCustomDomainOutput) GetRequestID

func (o CreateCustomDomainOutput) GetRequestID() string

func (CreateCustomDomainOutput) String

func (o CreateCustomDomainOutput) String() string

type CreateFunctionInput

type CreateFunctionInput struct {
	ServiceName *string
	FunctionCreateObject
}

CreateFunctionInput defines function creation input

func NewCreateFunctionInput

func NewCreateFunctionInput(serviceName string) *CreateFunctionInput

func (*CreateFunctionInput) GetHeaders

func (i *CreateFunctionInput) GetHeaders() Header

func (*CreateFunctionInput) GetPath

func (i *CreateFunctionInput) GetPath() string

func (*CreateFunctionInput) GetPayload

func (i *CreateFunctionInput) GetPayload() interface{}

func (*CreateFunctionInput) GetQueryParams

func (i *CreateFunctionInput) GetQueryParams() url.Values

func (*CreateFunctionInput) Validate

func (i *CreateFunctionInput) Validate() error

func (*CreateFunctionInput) WithCAPort

func (i *CreateFunctionInput) WithCAPort(caPort int32) *CreateFunctionInput

func (*CreateFunctionInput) WithCode

func (i *CreateFunctionInput) WithCode(code *Code) *CreateFunctionInput

func (*CreateFunctionInput) WithCustomContainerConfig

func (i *CreateFunctionInput) WithCustomContainerConfig(customContainerConfig *CustomContainerConfig) *CreateFunctionInput

func (*CreateFunctionInput) WithDescription

func (i *CreateFunctionInput) WithDescription(description string) *CreateFunctionInput

func (*CreateFunctionInput) WithEnvironmentVariables

func (i *CreateFunctionInput) WithEnvironmentVariables(env map[string]string) *CreateFunctionInput

func (*CreateFunctionInput) WithFunctionName

func (i *CreateFunctionInput) WithFunctionName(functionName string) *CreateFunctionInput

func (*CreateFunctionInput) WithHandler

func (i *CreateFunctionInput) WithHandler(handler string) *CreateFunctionInput

func (*CreateFunctionInput) WithInitializationTimeout

func (i *CreateFunctionInput) WithInitializationTimeout(initializationTimeout int32) *CreateFunctionInput

func (*CreateFunctionInput) WithInitializer

func (i *CreateFunctionInput) WithInitializer(initializer string) *CreateFunctionInput

func (*CreateFunctionInput) WithInstanceConcurrency

func (i *CreateFunctionInput) WithInstanceConcurrency(concurrency int32) *CreateFunctionInput

func (*CreateFunctionInput) WithInstanceType

func (i *CreateFunctionInput) WithInstanceType(instanceType string) *CreateFunctionInput

func (*CreateFunctionInput) WithLayers

func (i *CreateFunctionInput) WithLayers(layers []string) *CreateFunctionInput

func (*CreateFunctionInput) WithMemorySize

func (i *CreateFunctionInput) WithMemorySize(memory int32) *CreateFunctionInput

func (*CreateFunctionInput) WithRuntime

func (i *CreateFunctionInput) WithRuntime(runtime string) *CreateFunctionInput

func (*CreateFunctionInput) WithTimeout

func (i *CreateFunctionInput) WithTimeout(timeout int32) *CreateFunctionInput

type CreateFunctionOutput

type CreateFunctionOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

func (CreateFunctionOutput) GetEtag

func (o CreateFunctionOutput) GetEtag() string

func (CreateFunctionOutput) GetRequestID

func (o CreateFunctionOutput) GetRequestID() string

func (CreateFunctionOutput) String

func (o CreateFunctionOutput) String() string

type CreateServiceInput

type CreateServiceInput struct {
	ServiceName    *string        `json:"serviceName"`
	Description    *string        `json:"description"`
	Role           *string        `json:"role"`
	LogConfig      *LogConfig     `json:"logConfig"`
	VPCConfig      *VPCConfig     `json:"vpcConfig"`
	InternetAccess *bool          `json:"internetAccess"`
	NASConfig      *NASConfig     `json:"nasConfig"`
	TracingConfig  *TracingConfig `json:"tracingConfig"`
}

CreateServiceInput defines input to create service

func NewCreateServiceInput

func NewCreateServiceInput() *CreateServiceInput

func (*CreateServiceInput) GetHeaders

func (i *CreateServiceInput) GetHeaders() Header

func (*CreateServiceInput) GetPath

func (i *CreateServiceInput) GetPath() string

func (*CreateServiceInput) GetPayload

func (i *CreateServiceInput) GetPayload() interface{}

func (*CreateServiceInput) GetQueryParams

func (i *CreateServiceInput) GetQueryParams() url.Values

func (*CreateServiceInput) Validate

func (i *CreateServiceInput) Validate() error

func (*CreateServiceInput) WithDescription

func (i *CreateServiceInput) WithDescription(description string) *CreateServiceInput

func (*CreateServiceInput) WithInternetAccess

func (i *CreateServiceInput) WithInternetAccess(access bool) *CreateServiceInput

func (*CreateServiceInput) WithLogConfig

func (i *CreateServiceInput) WithLogConfig(logConfig *LogConfig) *CreateServiceInput

func (*CreateServiceInput) WithNASConfig

func (i *CreateServiceInput) WithNASConfig(nasConfig *NASConfig) *CreateServiceInput

func (*CreateServiceInput) WithRole

func (i *CreateServiceInput) WithRole(role string) *CreateServiceInput

func (*CreateServiceInput) WithServiceName

func (i *CreateServiceInput) WithServiceName(serviceName string) *CreateServiceInput

func (*CreateServiceInput) WithTracingConfig

func (i *CreateServiceInput) WithTracingConfig(tracingConfig *TracingConfig) *CreateServiceInput

func (*CreateServiceInput) WithVPCConfig

func (i *CreateServiceInput) WithVPCConfig(vpcConfig *VPCConfig) *CreateServiceInput

type CreateServiceOutput

type CreateServiceOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

CreateServiceOutput define get service response

func (CreateServiceOutput) GetEtag

func (o CreateServiceOutput) GetEtag() string

func (CreateServiceOutput) GetRequestID

func (o CreateServiceOutput) GetRequestID() string

func (CreateServiceOutput) String

func (o CreateServiceOutput) String() string

type CreateTriggerInput

type CreateTriggerInput struct {
	ServiceName  *string
	FunctionName *string
	TriggerCreateObject
	// contains filtered or unexported fields
}

CreateTriggerInput defines trigger creation input

func NewCreateTriggerInput

func NewCreateTriggerInput(serviceName string, functionName string) *CreateTriggerInput

func (*CreateTriggerInput) GetHeaders

func (i *CreateTriggerInput) GetHeaders() Header

func (*CreateTriggerInput) GetPath

func (i *CreateTriggerInput) GetPath() string

func (*CreateTriggerInput) GetPayload

func (i *CreateTriggerInput) GetPayload() interface{}

func (*CreateTriggerInput) GetQueryParams

func (i *CreateTriggerInput) GetQueryParams() url.Values

func (*CreateTriggerInput) Validate

func (i *CreateTriggerInput) Validate() error

func (*CreateTriggerInput) WithDescription

func (i *CreateTriggerInput) WithDescription(desc string) *CreateTriggerInput

func (*CreateTriggerInput) WithHeader

func (i *CreateTriggerInput) WithHeader(key, value string) *CreateTriggerInput

func (*CreateTriggerInput) WithInvocationRole

func (i *CreateTriggerInput) WithInvocationRole(role string) *CreateTriggerInput

func (*CreateTriggerInput) WithQualifier

func (i *CreateTriggerInput) WithQualifier(qualifier string) *CreateTriggerInput

func (*CreateTriggerInput) WithSourceARN

func (i *CreateTriggerInput) WithSourceARN(arn string) *CreateTriggerInput

func (*CreateTriggerInput) WithTriggerConfig

func (i *CreateTriggerInput) WithTriggerConfig(config interface{}) *CreateTriggerInput

func (*CreateTriggerInput) WithTriggerName

func (i *CreateTriggerInput) WithTriggerName(name string) *CreateTriggerInput

func (*CreateTriggerInput) WithTriggerType

func (i *CreateTriggerInput) WithTriggerType(triggerType string) *CreateTriggerInput

type CreateTriggerOutput

type CreateTriggerOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

func (CreateTriggerOutput) GetEtag

func (o CreateTriggerOutput) GetEtag() string

func (CreateTriggerOutput) GetRequestID

func (o CreateTriggerOutput) GetRequestID() string

func (CreateTriggerOutput) MarshalJSON

func (o CreateTriggerOutput) MarshalJSON() ([]byte, error)

MarshalJSON marshals trigger metadata and excludes RawTriggerConfig

func (CreateTriggerOutput) String

func (o CreateTriggerOutput) String() string

func (*CreateTriggerOutput) UnmarshalJSON

func (m *CreateTriggerOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals the data to trigger metadata and sets TriggerConfig field to an actual trigger config. User can use type switches/assertion to get the actual trigger config.

type Credentials

type Credentials struct {
	AccessKeyID     string `json:"AccessKeyId"`
	AccessKeySecret string `json:"AccessKeySecret"`
	Expiration      string `json:"Expiration"`
	SecurityToken   string `json:"SecurityToken"`
}

Credentials defines the returned credential

type CustomContainerConfig

type CustomContainerConfig struct {
	Image            *string `json:"image"`
	Command          *string `json:"command"`
	Args             *string `json:"args"`
	AccelerationType *string `json:"accelerationType"`
	InstanceID       *string `json:"instanceID"`
}

CustomContainerConfig defines the code docker image

func NewCustomContainerConfig

func NewCustomContainerConfig() *CustomContainerConfig

func (*CustomContainerConfig) WithAccelerationType

func (c *CustomContainerConfig) WithAccelerationType(accelerationType string) *CustomContainerConfig

func (*CustomContainerConfig) WithArgs

func (*CustomContainerConfig) WithCommand

func (c *CustomContainerConfig) WithCommand(cmd string) *CustomContainerConfig

func (*CustomContainerConfig) WithImage

func (c *CustomContainerConfig) WithImage(image string) *CustomContainerConfig

func (*CustomContainerConfig) WithInstanceID

func (c *CustomContainerConfig) WithInstanceID(instanceID string) *CustomContainerConfig

type DeleteAliasInput

type DeleteAliasInput struct {
	ServiceName *string
	AliasName   *string
	IfMatch     *string
}

func NewDeleteAliasInput

func NewDeleteAliasInput(serviceName, aliasName string) *DeleteAliasInput

func (*DeleteAliasInput) GetHeaders

func (i *DeleteAliasInput) GetHeaders() Header

func (*DeleteAliasInput) GetPath

func (i *DeleteAliasInput) GetPath() string

func (*DeleteAliasInput) GetPayload

func (i *DeleteAliasInput) GetPayload() interface{}

func (*DeleteAliasInput) GetQueryParams

func (i *DeleteAliasInput) GetQueryParams() url.Values

func (*DeleteAliasInput) Validate

func (i *DeleteAliasInput) Validate() error

func (*DeleteAliasInput) WithIfMatch

func (s *DeleteAliasInput) WithIfMatch(ifMatch string) *DeleteAliasInput

type DeleteAliasOutput

type DeleteAliasOutput struct {
	Header http.Header
}

func (DeleteAliasOutput) GetRequestID

func (o DeleteAliasOutput) GetRequestID() string

func (DeleteAliasOutput) String

func (o DeleteAliasOutput) String() string

type DeleteCustomDomainInput

type DeleteCustomDomainInput struct {
	DomainName *string
}

func NewDeleteCustomDomainInput

func NewDeleteCustomDomainInput(domainName string) *DeleteCustomDomainInput

func (*DeleteCustomDomainInput) GetHeaders

func (i *DeleteCustomDomainInput) GetHeaders() Header

func (*DeleteCustomDomainInput) GetPath

func (i *DeleteCustomDomainInput) GetPath() string

func (*DeleteCustomDomainInput) GetPayload

func (i *DeleteCustomDomainInput) GetPayload() interface{}

func (*DeleteCustomDomainInput) GetQueryParams

func (i *DeleteCustomDomainInput) GetQueryParams() url.Values

func (*DeleteCustomDomainInput) Validate

func (i *DeleteCustomDomainInput) Validate() error

type DeleteCustomDomainOutput

type DeleteCustomDomainOutput struct {
	Header http.Header
}

func (DeleteCustomDomainOutput) GetRequestID

func (o DeleteCustomDomainOutput) GetRequestID() string

func (DeleteCustomDomainOutput) String

func (o DeleteCustomDomainOutput) String() string

type DeleteFunctionAsyncInvokeConfigInput

type DeleteFunctionAsyncInvokeConfigInput struct {
	ServiceName  *string `json:"serviceName"`
	Qualifier    *string `json:"qualifier"`
	FunctionName *string `json:"functionName"`
}

DeleteFunctionAsyncInvokeConfigInput defines function creation input

func NewDeleteFunctionAsyncInvokeConfigInput

func NewDeleteFunctionAsyncInvokeConfigInput(serviceName, functionName string) *DeleteFunctionAsyncInvokeConfigInput

func (*DeleteFunctionAsyncInvokeConfigInput) GetHeaders

func (*DeleteFunctionAsyncInvokeConfigInput) GetPath

func (*DeleteFunctionAsyncInvokeConfigInput) GetPayload

func (i *DeleteFunctionAsyncInvokeConfigInput) GetPayload() interface{}

func (*DeleteFunctionAsyncInvokeConfigInput) GetQueryParams

func (i *DeleteFunctionAsyncInvokeConfigInput) GetQueryParams() url.Values

func (*DeleteFunctionAsyncInvokeConfigInput) Validate

func (*DeleteFunctionAsyncInvokeConfigInput) WithQualifier

type DeleteFunctionAsyncInvokeConfigOutput

type DeleteFunctionAsyncInvokeConfigOutput struct {
	Header http.Header
}

DeleteFunctionAsyncInvokeConfigOutput define delete data response

func (DeleteFunctionAsyncInvokeConfigOutput) GetRequestID

func (DeleteFunctionAsyncInvokeConfigOutput) String

type DeleteFunctionInput

type DeleteFunctionInput struct {
	ServiceName  *string
	FunctionName *string
	IfMatch      *string
	// contains filtered or unexported fields
}

func NewDeleteFunctionInput

func NewDeleteFunctionInput(serviceName string, functionName string) *DeleteFunctionInput

func (*DeleteFunctionInput) GetHeaders

func (i *DeleteFunctionInput) GetHeaders() Header

func (*DeleteFunctionInput) GetPath

func (i *DeleteFunctionInput) GetPath() string

func (*DeleteFunctionInput) GetPayload

func (i *DeleteFunctionInput) GetPayload() interface{}

func (*DeleteFunctionInput) GetQueryParams

func (i *DeleteFunctionInput) GetQueryParams() url.Values

func (*DeleteFunctionInput) Validate

func (i *DeleteFunctionInput) Validate() error

func (*DeleteFunctionInput) WithHeader

func (i *DeleteFunctionInput) WithHeader(key, value string) *DeleteFunctionInput

func (*DeleteFunctionInput) WithIfMatch

func (s *DeleteFunctionInput) WithIfMatch(ifMatch string) *DeleteFunctionInput

type DeleteFunctionOutput

type DeleteFunctionOutput struct {
	Header http.Header
}

func (DeleteFunctionOutput) GetRequestID

func (o DeleteFunctionOutput) GetRequestID() string

func (DeleteFunctionOutput) String

func (o DeleteFunctionOutput) String() string

type DeleteLayerVersionInput

type DeleteLayerVersionInput struct {
	LayerName string
	Version   int32
}

func NewDeleteLayerVersionInput

func NewDeleteLayerVersionInput(layerName string, version int32) *DeleteLayerVersionInput

func (*DeleteLayerVersionInput) GetHeaders

func (i *DeleteLayerVersionInput) GetHeaders() Header

func (*DeleteLayerVersionInput) GetPath

func (i *DeleteLayerVersionInput) GetPath() string

func (*DeleteLayerVersionInput) GetPayload

func (i *DeleteLayerVersionInput) GetPayload() interface{}

func (*DeleteLayerVersionInput) GetQueryParams

func (i *DeleteLayerVersionInput) GetQueryParams() url.Values

func (*DeleteLayerVersionInput) Validate

func (i *DeleteLayerVersionInput) Validate() error

type DeleteLayerVersionOutput

type DeleteLayerVersionOutput struct {
	Header http.Header
}

func (DeleteLayerVersionOutput) GetRequestID

func (o DeleteLayerVersionOutput) GetRequestID() string

func (DeleteLayerVersionOutput) String

func (o DeleteLayerVersionOutput) String() string

type DeleteOnDemandConfigInput

type DeleteOnDemandConfigInput struct {
	ServiceName  *string `json:"serviceName"`
	Qualifier    *string `json:"qualifier"`
	FunctionName *string `json:"functionName"`
	IfMatch      *string
}

func NewDeleteOnDemandConfigInput

func NewDeleteOnDemandConfigInput(serviceName, qualifier, functionName string) *DeleteOnDemandConfigInput

func (*DeleteOnDemandConfigInput) GetHeaders

func (i *DeleteOnDemandConfigInput) GetHeaders() Header

func (*DeleteOnDemandConfigInput) GetPath

func (i *DeleteOnDemandConfigInput) GetPath() string

func (*DeleteOnDemandConfigInput) GetPayload

func (i *DeleteOnDemandConfigInput) GetPayload() interface{}

func (*DeleteOnDemandConfigInput) GetQueryParams

func (i *DeleteOnDemandConfigInput) GetQueryParams() url.Values

func (*DeleteOnDemandConfigInput) Validate

func (i *DeleteOnDemandConfigInput) Validate() error

func (*DeleteOnDemandConfigInput) WithIfMatch

type DeleteOnDemandConfigOutput

type DeleteOnDemandConfigOutput struct {
	Header http.Header
}

func (DeleteOnDemandConfigOutput) GetRequestID

func (o DeleteOnDemandConfigOutput) GetRequestID() string

func (DeleteOnDemandConfigOutput) String

type DeleteServiceInput

type DeleteServiceInput struct {
	ServiceName *string
	IfMatch     *string
}

func NewDeleteServiceInput

func NewDeleteServiceInput(serviceName string) *DeleteServiceInput

func (*DeleteServiceInput) GetHeaders

func (i *DeleteServiceInput) GetHeaders() Header

func (*DeleteServiceInput) GetPath

func (i *DeleteServiceInput) GetPath() string

func (*DeleteServiceInput) GetPayload

func (i *DeleteServiceInput) GetPayload() interface{}

func (*DeleteServiceInput) GetQueryParams

func (i *DeleteServiceInput) GetQueryParams() url.Values

func (*DeleteServiceInput) Validate

func (i *DeleteServiceInput) Validate() error

func (*DeleteServiceInput) WithIfMatch

func (i *DeleteServiceInput) WithIfMatch(ifMatch string) *DeleteServiceInput

type DeleteServiceOutput

type DeleteServiceOutput struct {
	Header http.Header
}

func (DeleteServiceOutput) GetRequestID

func (o DeleteServiceOutput) GetRequestID() string

func (DeleteServiceOutput) String

func (o DeleteServiceOutput) String() string

type DeleteServiceVersionInput

type DeleteServiceVersionInput struct {
	ServiceName *string
	VersionID   *string
}

func NewDeleteServiceVersionInput

func NewDeleteServiceVersionInput(serviceName string, versionID string) *DeleteServiceVersionInput

func (*DeleteServiceVersionInput) GetHeaders

func (i *DeleteServiceVersionInput) GetHeaders() Header

func (*DeleteServiceVersionInput) GetPath

func (i *DeleteServiceVersionInput) GetPath() string

func (*DeleteServiceVersionInput) GetPayload

func (i *DeleteServiceVersionInput) GetPayload() interface{}

func (*DeleteServiceVersionInput) GetQueryParams

func (i *DeleteServiceVersionInput) GetQueryParams() url.Values

func (*DeleteServiceVersionInput) Validate

func (i *DeleteServiceVersionInput) Validate() error

type DeleteServiceVersionOutput

type DeleteServiceVersionOutput struct {
	Header http.Header
}

func (DeleteServiceVersionOutput) GetRequestID

func (o DeleteServiceVersionOutput) GetRequestID() string

func (DeleteServiceVersionOutput) String

type DeleteTriggerInput

type DeleteTriggerInput struct {
	ServiceName  *string
	FunctionName *string
	TriggerName  *string
	IfMatch      *string
	// contains filtered or unexported fields
}

func NewDeleteTriggerInput

func NewDeleteTriggerInput(serviceName string, functionName string, triggerName string) *DeleteTriggerInput

func (*DeleteTriggerInput) GetHeaders

func (i *DeleteTriggerInput) GetHeaders() Header

func (*DeleteTriggerInput) GetPath

func (i *DeleteTriggerInput) GetPath() string

func (*DeleteTriggerInput) GetPayload

func (i *DeleteTriggerInput) GetPayload() interface{}

func (*DeleteTriggerInput) GetQueryParams

func (i *DeleteTriggerInput) GetQueryParams() url.Values

func (*DeleteTriggerInput) Validate

func (i *DeleteTriggerInput) Validate() error

func (*DeleteTriggerInput) WithHeader

func (i *DeleteTriggerInput) WithHeader(key, value string) *DeleteTriggerInput

func (*DeleteTriggerInput) WithIfMatch

func (s *DeleteTriggerInput) WithIfMatch(ifMatch string) *DeleteTriggerInput

type DeleteTriggerOutput

type DeleteTriggerOutput struct {
	Header http.Header
}

func (DeleteTriggerOutput) GetRequestID

func (o DeleteTriggerOutput) GetRequestID() string

func (DeleteTriggerOutput) String

func (o DeleteTriggerOutput) String() string

type Destination

type Destination struct {
	Destination *string `json:"destination"`
}

Destination represents the destination arn.

type DestinationConfig

type DestinationConfig struct {
	OnSuccess *Destination `json:"onSuccess"`
	OnFailure *Destination `json:"onFailure"`
}

DestinationConfig represents the destination configuration.

type EventBridgeTriggerConfig

type EventBridgeTriggerConfig struct {
	TriggerEnable          *bool              `json:"triggerEnable"`
	AsyncInvocationType    *bool              `json:"asyncInvocationType"`
	EventSourceConfig      *EventSourceConfig `json:"eventSourceConfig"`
	EventRuleFilterPattern *string            `json:"eventRuleFilterPattern"`
}

TriggerConfig defines the event bridge trigger config which maps to FunctionComputeConfiguration.

func NewEventBridgeTriggerConfig

func NewEventBridgeTriggerConfig() *EventBridgeTriggerConfig

NewEventBridgeTriggerConfig ...

func (*EventBridgeTriggerConfig) WithAsyncInvocationType

func (ebtc *EventBridgeTriggerConfig) WithAsyncInvocationType(asyncInvocationType bool) *EventBridgeTriggerConfig

func (*EventBridgeTriggerConfig) WithEventRuleFilterPattern

func (ebtc *EventBridgeTriggerConfig) WithEventRuleFilterPattern(eventRuleFilterPattern string) *EventBridgeTriggerConfig

func (*EventBridgeTriggerConfig) WithEventSourceConfig

func (ebtc *EventBridgeTriggerConfig) WithEventSourceConfig(eventSourceConfig *EventSourceConfig) *EventBridgeTriggerConfig

func (*EventBridgeTriggerConfig) WithTriggerEnable

func (ebtc *EventBridgeTriggerConfig) WithTriggerEnable(triggerEnable bool) *EventBridgeTriggerConfig

type EventSourceConfig

type EventSourceConfig struct {
	EventSourceType       *string                `json:"eventSourceType"`
	EventSourceParameters *EventSourceParameters `json:"eventSourceParameters"`
}

EventSourceConfig ...

func NewEventSourceConfig

func NewEventSourceConfig() *EventSourceConfig

NewEventSourceConfig ...

func (*EventSourceConfig) WithEventSourceParameters

func (esc *EventSourceConfig) WithEventSourceParameters(eventSourceParameters *EventSourceParameters) *EventSourceConfig

WithEventSourceParameters ...

func (*EventSourceConfig) WithEventSourceType

func (esc *EventSourceConfig) WithEventSourceType(eventSourceType string) *EventSourceConfig

WithEventSourceType ...

type EventSourceParameters

type EventSourceParameters struct {
	SourceMNSParameters      *SourceMNSParameters      `json:"sourceMNSParameters"`
	SourceRocketMQParameters *SourceRocketMQParameters `json:"sourceRocketMQParameters"`

	SourceRabbitMQParameters *SourceRabbitMQParameters `json:"sourceRabbitMQParameters"`
}

EventSourceParameters ...

func NewEventSourceParameters

func NewEventSourceParameters() *EventSourceParameters

NewEventSourceParameters ...

func (*EventSourceParameters) WithSourceMNSParameters

func (esp *EventSourceParameters) WithSourceMNSParameters(sourceMNSParameters *SourceMNSParameters) *EventSourceParameters

WithSourceMNSParameters

func (*EventSourceParameters) WithSourceRabbitMQParameters

func (esp *EventSourceParameters) WithSourceRabbitMQParameters(sourceRabbitMQParameters *SourceRabbitMQParameters) *EventSourceParameters

WithSourceRabbitMQParameters

func (*EventSourceParameters) WithSourceRocketMQParameters

func (esp *EventSourceParameters) WithSourceRocketMQParameters(sourceRocketMQParameters *SourceRocketMQParameters) *EventSourceParameters

WithSourceRocketMQParameters

type FunctionCreateObject

type FunctionCreateObject struct {
	FunctionName          *string                `json:"functionName"`
	Description           *string                `json:"description"`
	Runtime               *string                `json:"runtime"`
	Handler               *string                `json:"handler"`
	Initializer           *string                `json:"initializer"`
	Timeout               *int32                 `json:"timeout"`
	InitializationTimeout *int32                 `json:"initializationTimeout"`
	MemorySize            *int32                 `json:"memorySize"`
	InstanceConcurrency   *int32                 `json:"instanceConcurrency"`
	Code                  *Code                  `json:"code"`
	EnvironmentVariables  map[string]string      `json:"environmentVariables"`
	CustomContainerConfig *CustomContainerConfig `json:"customContainerConfig"`
	CAPort                *int32                 `json:"caPort"`
	InstanceType          *string                `json:"instanceType"`
	Layers                []string               `json:"layers"`
	// contains filtered or unexported fields
}

type FunctionUpdateObject

type FunctionUpdateObject struct {
	Description           *string                `json:"description"`
	Runtime               *string                `json:"runtime"`
	Handler               *string                `json:"handler"`
	Initializer           *string                `json:"initializer"`
	Timeout               *int32                 `json:"timeout"`
	InitializationTimeout *int32                 `json:"initializationTimeout"`
	MemorySize            *int32                 `json:"memorySize"`
	InstanceConcurrency   *int32                 `json:"instanceConcurrency"`
	Code                  *Code                  `json:"code"`
	EnvironmentVariables  map[string]string      `json:"environmentVariables"`
	CustomContainerConfig *CustomContainerConfig `json:"customContainerConfig"`
	CAPort                *int32                 `json:"caPort"`
	InstanceType          *string                `json:"instanceType"`
	Layers                []string               `json:"layers"`
	// contains filtered or unexported fields
}

FunctionUpdateObject defines update fields in Function

type GetAccountSettingsInput

type GetAccountSettingsInput struct {
}

GetAccountSettingsInput defines get account settings intput.

func NewGetAccountSettingsInput

func NewGetAccountSettingsInput() *GetAccountSettingsInput

func (*GetAccountSettingsInput) GetHeaders

func (o *GetAccountSettingsInput) GetHeaders() Header

func (*GetAccountSettingsInput) GetPath

func (o *GetAccountSettingsInput) GetPath() string

func (*GetAccountSettingsInput) GetPayload

func (o *GetAccountSettingsInput) GetPayload() interface{}

func (*GetAccountSettingsInput) GetQueryParams

func (o *GetAccountSettingsInput) GetQueryParams() url.Values

func (*GetAccountSettingsInput) Validate

func (o *GetAccountSettingsInput) Validate() error

type GetAccountSettingsOutput

type GetAccountSettingsOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

GetAccountSettingsOutput defines get account settings output.

func (GetAccountSettingsOutput) GetRequestID

func (o GetAccountSettingsOutput) GetRequestID() string

func (GetAccountSettingsOutput) String

func (o GetAccountSettingsOutput) String() string

type GetAliasInput

type GetAliasInput struct {
	ServiceName *string
	AliasName   *string
}

func NewGetAliasInput

func NewGetAliasInput(serviceName, aliasName string) *GetAliasInput

func (*GetAliasInput) GetHeaders

func (i *GetAliasInput) GetHeaders() Header

func (*GetAliasInput) GetPath

func (i *GetAliasInput) GetPath() string

func (*GetAliasInput) GetPayload

func (i *GetAliasInput) GetPayload() interface{}

func (*GetAliasInput) GetQueryParams

func (i *GetAliasInput) GetQueryParams() url.Values

func (*GetAliasInput) Validate

func (i *GetAliasInput) Validate() error

type GetAliasOutput

type GetAliasOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

func (GetAliasOutput) GetEtag

func (o GetAliasOutput) GetEtag() string

func (GetAliasOutput) GetRequestID

func (o GetAliasOutput) GetRequestID() string

func (GetAliasOutput) String

func (o GetAliasOutput) String() string

type GetCustomDomainInput

type GetCustomDomainInput struct {
	DomainName *string
}

func NewGetCustomDomainInput

func NewGetCustomDomainInput(domainName string) *GetCustomDomainInput

func (*GetCustomDomainInput) GetHeaders

func (i *GetCustomDomainInput) GetHeaders() Header

func (*GetCustomDomainInput) GetPath

func (i *GetCustomDomainInput) GetPath() string

func (*GetCustomDomainInput) GetPayload

func (i *GetCustomDomainInput) GetPayload() interface{}

func (*GetCustomDomainInput) GetQueryParams

func (i *GetCustomDomainInput) GetQueryParams() url.Values

func (*GetCustomDomainInput) Validate

func (i *GetCustomDomainInput) Validate() error

type GetCustomDomainOutput

type GetCustomDomainOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

GetCustomDomainOutput define get custom domain response

func (GetCustomDomainOutput) GetRequestID

func (o GetCustomDomainOutput) GetRequestID() string

func (GetCustomDomainOutput) String

func (o GetCustomDomainOutput) String() string

type GetFunctionAsyncInvokeConfigInput

type GetFunctionAsyncInvokeConfigInput struct {
	ServiceName  *string `json:"serviceName"`
	Qualifier    *string `json:"qualifier"`
	FunctionName *string `json:"functionName"`
}

GetFunctionAsyncInvokeConfigInput defines function creation input

func NewGetFunctionAsyncInvokeConfigInput

func NewGetFunctionAsyncInvokeConfigInput(serviceName, functionName string) *GetFunctionAsyncInvokeConfigInput

func (*GetFunctionAsyncInvokeConfigInput) GetHeaders

func (i *GetFunctionAsyncInvokeConfigInput) GetHeaders() Header

func (*GetFunctionAsyncInvokeConfigInput) GetPath

func (*GetFunctionAsyncInvokeConfigInput) GetPayload

func (i *GetFunctionAsyncInvokeConfigInput) GetPayload() interface{}

func (*GetFunctionAsyncInvokeConfigInput) GetQueryParams

func (i *GetFunctionAsyncInvokeConfigInput) GetQueryParams() url.Values

func (*GetFunctionAsyncInvokeConfigInput) Validate

func (*GetFunctionAsyncInvokeConfigInput) WithQualifier

type GetFunctionAsyncInvokeConfigOutput

type GetFunctionAsyncInvokeConfigOutput struct {
	Header http.Header
	AsyncConfigResponse
}

GetFunctionAsyncInvokeConfigOutput define get data response

func (GetFunctionAsyncInvokeConfigOutput) GetRequestID

func (o GetFunctionAsyncInvokeConfigOutput) GetRequestID() string

func (GetFunctionAsyncInvokeConfigOutput) String

type GetFunctionCodeInput

type GetFunctionCodeInput struct {
	*GetFunctionInput
}

GetFunctionCodeInput ...

func NewGetFunctionCodeInput

func NewGetFunctionCodeInput(serviceName string, functionName string) *GetFunctionCodeInput

NewGetFunctionCodeInput ...

func (*GetFunctionCodeInput) GetPath

func (i *GetFunctionCodeInput) GetPath() string

GetPath ...

func (*GetFunctionCodeInput) WithQualifier

func (i *GetFunctionCodeInput) WithQualifier(qualifier string) *GetFunctionCodeInput

type GetFunctionCodeOutput

type GetFunctionCodeOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

GetFunctionCodeOutput define function response from fc

func (GetFunctionCodeOutput) GetRequestID

func (o GetFunctionCodeOutput) GetRequestID() string

GetRequestID ...

func (GetFunctionCodeOutput) String

func (o GetFunctionCodeOutput) String() string

String ...

type GetFunctionInput

type GetFunctionInput struct {
	ServiceName  *string
	FunctionName *string
	Qualifier    *string
}

func NewGetFunctionInput

func NewGetFunctionInput(serviceName string, functionName string) *GetFunctionInput

func (*GetFunctionInput) GetHeaders

func (i *GetFunctionInput) GetHeaders() Header

func (*GetFunctionInput) GetPath

func (i *GetFunctionInput) GetPath() string

func (*GetFunctionInput) GetPayload

func (i *GetFunctionInput) GetPayload() interface{}

func (*GetFunctionInput) GetQueryParams

func (i *GetFunctionInput) GetQueryParams() url.Values

func (*GetFunctionInput) Validate

func (i *GetFunctionInput) Validate() error

func (*GetFunctionInput) WithQualifier

func (i *GetFunctionInput) WithQualifier(qualifier string) *GetFunctionInput

type GetFunctionOutput

type GetFunctionOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

GetFunctionOutput define function response from fc

func (GetFunctionOutput) GetEtag

func (o GetFunctionOutput) GetEtag() string

func (GetFunctionOutput) GetRequestID

func (o GetFunctionOutput) GetRequestID() string

func (GetFunctionOutput) String

func (o GetFunctionOutput) String() string

type GetLayerVersionByArnInput

type GetLayerVersionByArnInput struct {
	Arn string
}

func NewGetLayerVersionByArnInput

func NewGetLayerVersionByArnInput(arn string) *GetLayerVersionByArnInput

func (*GetLayerVersionByArnInput) GetHeaders

func (i *GetLayerVersionByArnInput) GetHeaders() Header

func (*GetLayerVersionByArnInput) GetPath

func (i *GetLayerVersionByArnInput) GetPath() string

func (*GetLayerVersionByArnInput) GetPayload

func (i *GetLayerVersionByArnInput) GetPayload() interface{}

func (*GetLayerVersionByArnInput) GetQueryParams

func (i *GetLayerVersionByArnInput) GetQueryParams() url.Values

func (*GetLayerVersionByArnInput) Validate

func (i *GetLayerVersionByArnInput) Validate() error

type GetLayerVersionInput

type GetLayerVersionInput struct {
	LayerName string
	Version   int32
}

func NewGetLayerVersionInput

func NewGetLayerVersionInput(layerName string, version int32) *GetLayerVersionInput

func (*GetLayerVersionInput) GetHeaders

func (i *GetLayerVersionInput) GetHeaders() Header

func (*GetLayerVersionInput) GetPath

func (i *GetLayerVersionInput) GetPath() string

func (*GetLayerVersionInput) GetPayload

func (i *GetLayerVersionInput) GetPayload() interface{}

func (*GetLayerVersionInput) GetQueryParams

func (i *GetLayerVersionInput) GetQueryParams() url.Values

func (*GetLayerVersionInput) Validate

func (i *GetLayerVersionInput) Validate() error

type GetLayerVersionOutput

type GetLayerVersionOutput struct {
	Header http.Header
	Layer
}

GetLayerVersionOutput define get layer version response

func (GetLayerVersionOutput) GetEtag

func (o GetLayerVersionOutput) GetEtag() string

func (GetLayerVersionOutput) GetRequestID

func (o GetLayerVersionOutput) GetRequestID() string

func (GetLayerVersionOutput) String

func (o GetLayerVersionOutput) String() string

type GetOnDemandConfigInput

type GetOnDemandConfigInput struct {
	ServiceName  *string `json:"serviceName"`
	Qualifier    *string `json:"qualifier"`
	FunctionName *string `json:"functionName"`
}

func NewGetOnDemandConfigInput

func NewGetOnDemandConfigInput(serviceName, qualifier, functionName string) *GetOnDemandConfigInput

func (*GetOnDemandConfigInput) GetHeaders

func (i *GetOnDemandConfigInput) GetHeaders() Header

func (*GetOnDemandConfigInput) GetPath

func (i *GetOnDemandConfigInput) GetPath() string

func (*GetOnDemandConfigInput) GetPayload

func (i *GetOnDemandConfigInput) GetPayload() interface{}

func (*GetOnDemandConfigInput) GetQueryParams

func (i *GetOnDemandConfigInput) GetQueryParams() url.Values

func (*GetOnDemandConfigInput) Validate

func (i *GetOnDemandConfigInput) Validate() error

type GetOnDemandConfigOutput

type GetOnDemandConfigOutput struct {
	Header http.Header
	OnDemandConfig
}

func (GetOnDemandConfigOutput) GetEtag

func (o GetOnDemandConfigOutput) GetEtag() string

func (GetOnDemandConfigOutput) GetRequestID

func (o GetOnDemandConfigOutput) GetRequestID() string

func (GetOnDemandConfigOutput) String

func (o GetOnDemandConfigOutput) String() string

type GetProvisionConfigInput

type GetProvisionConfigInput struct {
	ServiceName  *string `json:"serviceName"`
	Qualifier    *string `json:"qualifier"`
	FunctionName *string `json:"functionName"`
}

func NewGetProvisionConfigInput

func NewGetProvisionConfigInput(serviceName, qualifier, functionName string) *GetProvisionConfigInput

func (*GetProvisionConfigInput) GetHeaders

func (i *GetProvisionConfigInput) GetHeaders() Header

func (*GetProvisionConfigInput) GetPath

func (i *GetProvisionConfigInput) GetPath() string

func (*GetProvisionConfigInput) GetPayload

func (i *GetProvisionConfigInput) GetPayload() interface{}

func (*GetProvisionConfigInput) GetQueryParams

func (i *GetProvisionConfigInput) GetQueryParams() url.Values

func (*GetProvisionConfigInput) Validate

func (i *GetProvisionConfigInput) Validate() error

type GetProvisionConfigOutput

type GetProvisionConfigOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

func (GetProvisionConfigOutput) GetEtag

func (o GetProvisionConfigOutput) GetEtag() string

func (GetProvisionConfigOutput) GetRequestID

func (o GetProvisionConfigOutput) GetRequestID() string

func (GetProvisionConfigOutput) String

func (o GetProvisionConfigOutput) String() string

type GetResourceTagsInput

type GetResourceTagsInput struct {
	ResourceArn *string `json:"resourceArn"`
}

GetResourceTagsInput ...

func NewGetResourceTagsInput

func NewGetResourceTagsInput(resourceArn string) *GetResourceTagsInput

NewGetResourceTagsInput...

func (*GetResourceTagsInput) GetHeaders

func (t *GetResourceTagsInput) GetHeaders() Header

func (*GetResourceTagsInput) GetPath

func (t *GetResourceTagsInput) GetPath() string

func (*GetResourceTagsInput) GetPayload

func (t *GetResourceTagsInput) GetPayload() interface{}

func (*GetResourceTagsInput) GetQueryParams

func (t *GetResourceTagsInput) GetQueryParams() url.Values

func (*GetResourceTagsInput) Validate

func (t *GetResourceTagsInput) Validate() error

func (*GetResourceTagsInput) WithResourceArn

func (s *GetResourceTagsInput) WithResourceArn(resourceArn string) *GetResourceTagsInput

type GetResourceTagsOut

type GetResourceTagsOut struct {
	Header      http.Header
	ResourceArn *string           `json:"resourceArn"`
	Tags        map[string]string `json:"tags"`
}

GetResourceTagsOut ...

func (GetResourceTagsOut) GetRequestID

func (o GetResourceTagsOut) GetRequestID() string

func (GetResourceTagsOut) String

func (o GetResourceTagsOut) String() string

type GetServiceInput

type GetServiceInput struct {
	ServiceName *string
	Qualifier   *string
}

func NewGetServiceInput

func NewGetServiceInput(serviceName string) *GetServiceInput

func (*GetServiceInput) GetHeaders

func (i *GetServiceInput) GetHeaders() Header

func (*GetServiceInput) GetPath

func (i *GetServiceInput) GetPath() string

func (*GetServiceInput) GetPayload

func (i *GetServiceInput) GetPayload() interface{}

func (*GetServiceInput) GetQueryParams

func (i *GetServiceInput) GetQueryParams() url.Values

func (*GetServiceInput) Validate

func (i *GetServiceInput) Validate() error

func (*GetServiceInput) WithQualifier

func (i *GetServiceInput) WithQualifier(qualifier string) *GetServiceInput

type GetServiceOutput

type GetServiceOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

GetServiceOutput define get service response

func (GetServiceOutput) GetEtag

func (o GetServiceOutput) GetEtag() string

func (GetServiceOutput) GetRequestID

func (o GetServiceOutput) GetRequestID() string

func (GetServiceOutput) String

func (o GetServiceOutput) String() string

type GetStatefulAsyncInvocationInput

type GetStatefulAsyncInvocationInput struct {
	ServiceName  *string `json:"serviceName"`
	Qualifier    *string `json:"qualifier"`
	FunctionName *string `json:"functionName"`
	InvocationID *string `json:"invocationId"`
}

GetFunctionAsyncInvokeConfigInput defines function creation input

func NewGetStatefulAsyncInvocationInput

func NewGetStatefulAsyncInvocationInput(serviceName, functionName, invocationID string) *GetStatefulAsyncInvocationInput

func (*GetStatefulAsyncInvocationInput) GetHeaders

func (i *GetStatefulAsyncInvocationInput) GetHeaders() Header

func (*GetStatefulAsyncInvocationInput) GetPath

func (*GetStatefulAsyncInvocationInput) GetPayload

func (i *GetStatefulAsyncInvocationInput) GetPayload() interface{}

func (*GetStatefulAsyncInvocationInput) GetQueryParams

func (i *GetStatefulAsyncInvocationInput) GetQueryParams() url.Values

func (*GetStatefulAsyncInvocationInput) Validate

func (i *GetStatefulAsyncInvocationInput) Validate() error

func (*GetStatefulAsyncInvocationInput) WithQualifier

type GetStatefulAsyncInvocationOutput

type GetStatefulAsyncInvocationOutput struct {
	Header http.Header
	StatefulAsyncInvocationResponse
}

GetFunctionAsyncInvokeConfigOutput define get data response

func (GetStatefulAsyncInvocationOutput) GetRequestID

func (o GetStatefulAsyncInvocationOutput) GetRequestID() string

func (GetStatefulAsyncInvocationOutput) String

type GetTempBucketTokenInput

type GetTempBucketTokenInput struct{}

GetTempBucketTokenInput is empty

func (GetTempBucketTokenInput) GetHeaders

func (i GetTempBucketTokenInput) GetHeaders() Header

func (GetTempBucketTokenInput) GetPath

func (i GetTempBucketTokenInput) GetPath() string

func (GetTempBucketTokenInput) GetPayload

func (i GetTempBucketTokenInput) GetPayload() interface{}

func (GetTempBucketTokenInput) GetQueryParams

func (i GetTempBucketTokenInput) GetQueryParams() url.Values

func (GetTempBucketTokenInput) Validate

func (i GetTempBucketTokenInput) Validate() error

type GetTempBucketTokenOutput

type GetTempBucketTokenOutput struct {
	Header      http.Header `json:"header"`
	Credentials Credentials `json:"credentials"`
	OssRegion   string      `json:"ossRegion"`
	OssBucket   string      `json:"ossBucket"`
	ObjectName  string      `json:"objectName"`
}

GetTempBucketTokenOutput ...

type GetTriggerInput

type GetTriggerInput struct {
	ServiceName  *string
	FunctionName *string
	TriggerName  *string
	// contains filtered or unexported fields
}

func NewGetTriggerInput

func NewGetTriggerInput(serviceName string, functionName string, triggerName string) *GetTriggerInput

func (*GetTriggerInput) GetHeaders

func (i *GetTriggerInput) GetHeaders() Header

func (*GetTriggerInput) GetPath

func (i *GetTriggerInput) GetPath() string

func (*GetTriggerInput) GetPayload

func (i *GetTriggerInput) GetPayload() interface{}

func (*GetTriggerInput) GetQueryParams

func (i *GetTriggerInput) GetQueryParams() url.Values

func (*GetTriggerInput) Validate

func (i *GetTriggerInput) Validate() error

func (*GetTriggerInput) WithHeader

func (i *GetTriggerInput) WithHeader(key, value string) *GetTriggerInput

type GetTriggerOutput

type GetTriggerOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

GetTriggerOutput define trigger response from fc

func (GetTriggerOutput) GetEtag

func (o GetTriggerOutput) GetEtag() string

func (GetTriggerOutput) GetRequestID

func (o GetTriggerOutput) GetRequestID() string

func (GetTriggerOutput) MarshalJSON

func (o GetTriggerOutput) MarshalJSON() ([]byte, error)

MarshalJSON marshals trigger metadata and excludes RawTriggerConfig

func (GetTriggerOutput) String

func (o GetTriggerOutput) String() string

func (*GetTriggerOutput) UnmarshalJSON

func (m *GetTriggerOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals the data to trigger metadata and sets TriggerConfig field to an actual trigger config. User can use type switches/assertion to get the actual trigger config.

type HTTPTriggerConfig

type HTTPTriggerConfig struct {
	AuthType *string  `json:"authType"`
	Methods  []string `json:"methods"`
}

HTTPTriggerConfig ..

func NewHTTPTriggerConfig

func NewHTTPTriggerConfig() *HTTPTriggerConfig

NewHTTPTriggerConfig ...

func (*HTTPTriggerConfig) WithAuthType

func (t *HTTPTriggerConfig) WithAuthType(authType string) *HTTPTriggerConfig

WithAuthType ...

func (*HTTPTriggerConfig) WithMethods

func (t *HTTPTriggerConfig) WithMethods(methods ...string) *HTTPTriggerConfig

WithMethods ...

type Header map[string]string

type Instance

type Instance struct {
	InstanceID string `json:"instanceId"`
	VersionID  int    `json:"versionId"`
}

type InstanceExecInput

type InstanceExecInput struct {
	Header       http.Header
	ServiceName  *string
	FunctionName *string
	Qualifier    *string
	InstanceID   *string

	Command     []string
	Stdin       bool
	Stdout      bool
	Stderr      bool
	TTY         bool
	IdleTimeout *int
	// contains filtered or unexported fields
}

InstanceExecInput define publish layer version response

func NewInstanceExecInput

func NewInstanceExecInput(
	serviceName, functionName, instanceID string, command []string,
) *InstanceExecInput

func (*InstanceExecInput) GetHeaders

func (i *InstanceExecInput) GetHeaders() Header

func (*InstanceExecInput) GetPath

func (i *InstanceExecInput) GetPath() string

func (*InstanceExecInput) GetPayload

func (i *InstanceExecInput) GetPayload() interface{}

func (*InstanceExecInput) GetQueryParams

func (i *InstanceExecInput) GetQueryParams() url.Values

func (*InstanceExecInput) OnStderr

func (*InstanceExecInput) OnStdout

func (*InstanceExecInput) Validate

func (i *InstanceExecInput) Validate() error

func (*InstanceExecInput) WithCommand

func (i *InstanceExecInput) WithCommand(command []string) *InstanceExecInput

func (*InstanceExecInput) WithFunctionName

func (i *InstanceExecInput) WithFunctionName(functionName string) *InstanceExecInput

func (*InstanceExecInput) WithIdleTimeout

func (i *InstanceExecInput) WithIdleTimeout(idleTimeout int) *InstanceExecInput

func (*InstanceExecInput) WithInstance

func (i *InstanceExecInput) WithInstance(instanceID string) *InstanceExecInput

func (*InstanceExecInput) WithQualifier

func (i *InstanceExecInput) WithQualifier(qualifier string) *InstanceExecInput

func (*InstanceExecInput) WithServiceName

func (i *InstanceExecInput) WithServiceName(serviceName string) *InstanceExecInput

func (*InstanceExecInput) WithStderr

func (i *InstanceExecInput) WithStderr(stderr bool) *InstanceExecInput

func (*InstanceExecInput) WithStdin

func (i *InstanceExecInput) WithStdin(stdin bool) *InstanceExecInput

func (*InstanceExecInput) WithStdout

func (i *InstanceExecInput) WithStdout(stdout bool) *InstanceExecInput

func (*InstanceExecInput) WithTTY

func (i *InstanceExecInput) WithTTY(tty bool) *InstanceExecInput

type InstanceExecOutput

type InstanceExecOutput struct {
	Header              http.Header
	WebsocketConnection *websocket.Conn
	// contains filtered or unexported fields
}

func (*InstanceExecOutput) Closed

func (o *InstanceExecOutput) Closed() bool

func (*InstanceExecOutput) ErrorChannel

func (o *InstanceExecOutput) ErrorChannel() chan error

func (*InstanceExecOutput) WriteStdin

func (o *InstanceExecOutput) WriteStdin(msg []byte) error

type InvokeFunctionInput

type InvokeFunctionInput struct {
	ServiceName  *string
	FunctionName *string
	Qualifier    *string
	Payload      *[]byte
	// contains filtered or unexported fields
}

func NewInvokeFunctionInput

func NewInvokeFunctionInput(serviceName string, functionName string) *InvokeFunctionInput

func (*InvokeFunctionInput) GetHeaders

func (i *InvokeFunctionInput) GetHeaders() Header

func (*InvokeFunctionInput) GetPath

func (i *InvokeFunctionInput) GetPath() string

func (*InvokeFunctionInput) GetPayload

func (i *InvokeFunctionInput) GetPayload() interface{}

func (*InvokeFunctionInput) GetQueryParams

func (i *InvokeFunctionInput) GetQueryParams() url.Values

func (*InvokeFunctionInput) Validate

func (i *InvokeFunctionInput) Validate() error

func (*InvokeFunctionInput) WithAsyncInvocation

func (i *InvokeFunctionInput) WithAsyncInvocation() *InvokeFunctionInput

func (*InvokeFunctionInput) WithHeader

func (i *InvokeFunctionInput) WithHeader(key, value string) *InvokeFunctionInput

func (*InvokeFunctionInput) WithInvocationType

func (i *InvokeFunctionInput) WithInvocationType(invocationType string) *InvokeFunctionInput

func (*InvokeFunctionInput) WithLogType

func (i *InvokeFunctionInput) WithLogType(logType string) *InvokeFunctionInput

func (*InvokeFunctionInput) WithPayload

func (i *InvokeFunctionInput) WithPayload(payload []byte) *InvokeFunctionInput

func (*InvokeFunctionInput) WithQualifier

func (i *InvokeFunctionInput) WithQualifier(qualifier string) *InvokeFunctionInput

func (*InvokeFunctionInput) WithStatefulAsyncInvocationID

func (i *InvokeFunctionInput) WithStatefulAsyncInvocationID(id string) *InvokeFunctionInput

func (*InvokeFunctionInput) WithSyncInvocation

func (i *InvokeFunctionInput) WithSyncInvocation() *InvokeFunctionInput

type InvokeFunctionOutput

type InvokeFunctionOutput struct {
	Header  http.Header
	Payload []byte
}

func (InvokeFunctionOutput) GetErrorType

func (o InvokeFunctionOutput) GetErrorType() string

GetErrorType returns error type occurred in function invocations will be empty string when no errors

func (InvokeFunctionOutput) GetLogResult

func (o InvokeFunctionOutput) GetLogResult() (string, error)

GetLogResult returns LogResults for the invocation

func (InvokeFunctionOutput) GetRequestID

func (o InvokeFunctionOutput) GetRequestID() string

func (InvokeFunctionOutput) String

func (o InvokeFunctionOutput) String() string

type JaegerConfig

type JaegerConfig struct {
	Endpoint *string `json:"endpoint"`
}

func NewJaegerConfig

func NewJaegerConfig() *JaegerConfig

func (*JaegerConfig) WithEndpoint

func (j *JaegerConfig) WithEndpoint(endpoint string) *JaegerConfig

type JobConfig

type JobConfig struct {
	MaxRetryTime    *int `json:"maxRetryTime"`
	TriggerInterval *int `json:"triggerInterval"`
}

JobConfig maps to Log service's trigger config.

func NewJobConfig

func NewJobConfig() *JobConfig

func (*JobConfig) WithMaxRetryTime

func (jc *JobConfig) WithMaxRetryTime(retry int) *JobConfig

func (*JobConfig) WithTriggerInterval

func (jc *JobConfig) WithTriggerInterval(interval int) *JobConfig

type JobLogConfig

type JobLogConfig struct {
	Project  *string `json:"project"`
	Logstore *string `json:"logstore"`
}

LogConfig ..

func NewJobLogConfig

func NewJobLogConfig() *JobLogConfig

func (*JobLogConfig) WithLogstore

func (jlc *JobLogConfig) WithLogstore(s string) *JobLogConfig

func (*JobLogConfig) WithProject

func (jlc *JobLogConfig) WithProject(p string) *JobLogConfig

type Layer

type Layer struct {
	LayerName         string             `json:"layerName"`
	Version           int32              `json:"version"`
	Description       string             `json:"description"`
	Code              OutputCodeLocation `json:"code"`
	CodeSize          int64              `json:"codeSize"`
	CodeChecksum      string             `json:"codeChecksum"`
	CreateTime        string             `json:"createTime"`
	ACL               int32              `json:"acl"`
	CompatibleRuntime []string           `json:"compatibleRuntime"`
	Arn               string             `json:"arn"`
}

type ListAliasesInput

type ListAliasesInput struct {
	ServiceName *string
	Query
}

func NewListAliasesInput

func NewListAliasesInput(serviceName string) *ListAliasesInput

func (*ListAliasesInput) GetHeaders

func (i *ListAliasesInput) GetHeaders() Header

func (*ListAliasesInput) GetPath

func (i *ListAliasesInput) GetPath() string

func (*ListAliasesInput) GetPayload

func (i *ListAliasesInput) GetPayload() interface{}

func (*ListAliasesInput) GetQueryParams

func (i *ListAliasesInput) GetQueryParams() url.Values

func (*ListAliasesInput) Validate

func (i *ListAliasesInput) Validate() error

func (*ListAliasesInput) WithLimit

func (i *ListAliasesInput) WithLimit(limit int32) *ListAliasesInput

func (*ListAliasesInput) WithNextToken

func (i *ListAliasesInput) WithNextToken(nextToken string) *ListAliasesInput

func (*ListAliasesInput) WithPrefix

func (i *ListAliasesInput) WithPrefix(prefix string) *ListAliasesInput

func (*ListAliasesInput) WithStartKey

func (i *ListAliasesInput) WithStartKey(startKey string) *ListAliasesInput

type ListAliasesOutput

type ListAliasesOutput struct {
	Header    http.Header
	Aliases   []*aliasMetadata `json:"aliases"`
	NextToken *string          `json:"nextToken,omitempty"`
}

func (ListAliasesOutput) GetRequestID

func (o ListAliasesOutput) GetRequestID() string

func (ListAliasesOutput) String

func (o ListAliasesOutput) String() string

type ListCustomDomainsInput

type ListCustomDomainsInput struct {
	Query
}

func NewListCustomDomainsInput

func NewListCustomDomainsInput() *ListCustomDomainsInput

func (*ListCustomDomainsInput) GetHeaders

func (i *ListCustomDomainsInput) GetHeaders() Header

func (*ListCustomDomainsInput) GetPath

func (i *ListCustomDomainsInput) GetPath() string

func (*ListCustomDomainsInput) GetPayload

func (i *ListCustomDomainsInput) GetPayload() interface{}

func (*ListCustomDomainsInput) GetQueryParams

func (i *ListCustomDomainsInput) GetQueryParams() url.Values

func (*ListCustomDomainsInput) Validate

func (i *ListCustomDomainsInput) Validate() error

func (*ListCustomDomainsInput) WithLimit

func (*ListCustomDomainsInput) WithNextToken

func (i *ListCustomDomainsInput) WithNextToken(nextToken string) *ListCustomDomainsInput

func (*ListCustomDomainsInput) WithPrefix

func (i *ListCustomDomainsInput) WithPrefix(prefix string) *ListCustomDomainsInput

func (*ListCustomDomainsInput) WithStartKey

func (i *ListCustomDomainsInput) WithStartKey(startKey string) *ListCustomDomainsInput

type ListCustomDomainsOutput

type ListCustomDomainsOutput struct {
	Header        http.Header
	CustomDomains []*customDomainMetadata `json:"customDomains"`
	NextToken     *string                 `json:"nextToken,omitempty"`
}

ListCustomDomains defines listCustomDomainsMetadata result

func (ListCustomDomainsOutput) GetRequestID

func (o ListCustomDomainsOutput) GetRequestID() string

func (ListCustomDomainsOutput) String

func (o ListCustomDomainsOutput) String() string

type ListFunctionAsyncInvokeConfigsInput

type ListFunctionAsyncInvokeConfigsInput struct {
	ServiceName  *string `json:"serviceName"`
	FunctionName *string `json:"functionName"`
	NextToken    *string
	Limit        *int32
}

func NewListFunctionAsyncInvokeConfigsInput

func NewListFunctionAsyncInvokeConfigsInput(serviceName, functionName string) *ListFunctionAsyncInvokeConfigsInput

func (*ListFunctionAsyncInvokeConfigsInput) GetHeaders

func (*ListFunctionAsyncInvokeConfigsInput) GetPath

func (*ListFunctionAsyncInvokeConfigsInput) GetPayload

func (i *ListFunctionAsyncInvokeConfigsInput) GetPayload() interface{}

func (*ListFunctionAsyncInvokeConfigsInput) GetQueryParams

func (i *ListFunctionAsyncInvokeConfigsInput) GetQueryParams() url.Values

func (*ListFunctionAsyncInvokeConfigsInput) Validate

func (*ListFunctionAsyncInvokeConfigsInput) WithLimit

func (*ListFunctionAsyncInvokeConfigsInput) WithNextToken

type ListFunctionAsyncInvokeConfigsOutput

type ListFunctionAsyncInvokeConfigsOutput struct {
	Header    http.Header
	Configs   []*AsyncConfigResponse `json:"configs"`
	NextToken *string                `json:"nextToken,omitempty"`
}

ListFunctionAsyncInvokeConfigsOutput defines ListFunctionAsyncInvokeConfigsOutput result

func (ListFunctionAsyncInvokeConfigsOutput) GetRequestID

func (ListFunctionAsyncInvokeConfigsOutput) String

type ListFunctionsInput

type ListFunctionsInput struct {
	ServiceName *string
	Qualifier   *string
	Query
}

func NewListFunctionsInput

func NewListFunctionsInput(serviceName string) *ListFunctionsInput

func (*ListFunctionsInput) GetHeaders

func (i *ListFunctionsInput) GetHeaders() Header

func (*ListFunctionsInput) GetPath

func (i *ListFunctionsInput) GetPath() string

func (*ListFunctionsInput) GetPayload

func (i *ListFunctionsInput) GetPayload() interface{}

func (*ListFunctionsInput) GetQueryParams

func (i *ListFunctionsInput) GetQueryParams() url.Values

func (*ListFunctionsInput) Validate

func (i *ListFunctionsInput) Validate() error

func (*ListFunctionsInput) WithLimit

func (i *ListFunctionsInput) WithLimit(limit int32) *ListFunctionsInput

func (*ListFunctionsInput) WithNextToken

func (i *ListFunctionsInput) WithNextToken(nextToken string) *ListFunctionsInput

func (*ListFunctionsInput) WithPrefix

func (i *ListFunctionsInput) WithPrefix(prefix string) *ListFunctionsInput

func (*ListFunctionsInput) WithQualifier

func (i *ListFunctionsInput) WithQualifier(qualifier string) *ListFunctionsInput

func (*ListFunctionsInput) WithStartKey

func (i *ListFunctionsInput) WithStartKey(startKey string) *ListFunctionsInput

type ListFunctionsOutput

type ListFunctionsOutput struct {
	Header    http.Header
	Functions []*functionMetadata `json:"functions"`
	NextToken *string             `json:"nextToken,omitempty"`
}

ListFunctionsOutput defines the function response list

func (ListFunctionsOutput) GetRequestID

func (o ListFunctionsOutput) GetRequestID() string

func (ListFunctionsOutput) String

func (o ListFunctionsOutput) String() string

type ListInstancesInput

type ListInstancesInput struct {
	Header       http.Header
	ServiceName  *string
	FunctionName *string
	Qualifier    *string
	Limit        *int
	NextToken    *string
}

ListInstancesInput define publish layer version response

func NewListInstancesInput

func NewListInstancesInput(serviceName, functionName string) *ListInstancesInput

func (ListInstancesInput) GetHeaders

func (i ListInstancesInput) GetHeaders() Header

func (ListInstancesInput) GetPath

func (i ListInstancesInput) GetPath() string

func (ListInstancesInput) GetPayload

func (i ListInstancesInput) GetPayload() interface{}

func (ListInstancesInput) GetQueryParams

func (i ListInstancesInput) GetQueryParams() url.Values

func (ListInstancesInput) Validate

func (i ListInstancesInput) Validate() error

func (*ListInstancesInput) WithFunctionName

func (i *ListInstancesInput) WithFunctionName(functionName string) *ListInstancesInput

func (*ListInstancesInput) WithLimit

func (i *ListInstancesInput) WithLimit(limit int) *ListInstancesInput

func (*ListInstancesInput) WithNextToken

func (i *ListInstancesInput) WithNextToken(nextToken string) *ListInstancesInput

func (*ListInstancesInput) WithQualifier

func (i *ListInstancesInput) WithQualifier(qualifier string) *ListInstancesInput

func (*ListInstancesInput) WithServiceName

func (i *ListInstancesInput) WithServiceName(serviceName string) *ListInstancesInput

type ListInstancesOutput

type ListInstancesOutput struct {
	Header    http.Header
	Instances []*Instance
}

type ListLayerVersionsInput

type ListLayerVersionsInput struct {
	LayerName    string
	StartVersion int32
	Limit        int32
}

func NewListLayerVersionsInput

func NewListLayerVersionsInput(layerName string, version int32) *ListLayerVersionsInput

func (*ListLayerVersionsInput) GetHeaders

func (i *ListLayerVersionsInput) GetHeaders() Header

func (*ListLayerVersionsInput) GetPath

func (i *ListLayerVersionsInput) GetPath() string

func (*ListLayerVersionsInput) GetPayload

func (i *ListLayerVersionsInput) GetPayload() interface{}

func (*ListLayerVersionsInput) GetQueryParams

func (i *ListLayerVersionsInput) GetQueryParams() url.Values

func (*ListLayerVersionsInput) Validate

func (i *ListLayerVersionsInput) Validate() error

func (*ListLayerVersionsInput) WithLimit

type ListLayerVersionsOutput

type ListLayerVersionsOutput struct {
	Header      http.Header
	Layers      []*Layer `json:"layers"`
	NextVersion *int32   `json:"nextVersion,omitempty"`
}

func (ListLayerVersionsOutput) GetRequestID

func (o ListLayerVersionsOutput) GetRequestID() string

func (ListLayerVersionsOutput) String

func (o ListLayerVersionsOutput) String() string

type ListLayersInput

type ListLayersInput struct {
	Query
	// contains filtered or unexported fields
}

func NewListLayersInput

func NewListLayersInput() *ListLayersInput

func (*ListLayersInput) GetHeaders

func (i *ListLayersInput) GetHeaders() Header

func (*ListLayersInput) GetPath

func (i *ListLayersInput) GetPath() string

func (*ListLayersInput) GetPayload

func (i *ListLayersInput) GetPayload() interface{}

func (*ListLayersInput) GetQueryParams

func (i *ListLayersInput) GetQueryParams() url.Values

func (*ListLayersInput) Validate

func (i *ListLayersInput) Validate() error

func (*ListLayersInput) WithLimit

func (i *ListLayersInput) WithLimit(limit int32) *ListLayersInput

func (*ListLayersInput) WithNextToken

func (i *ListLayersInput) WithNextToken(nextToken string) *ListLayersInput

func (*ListLayersInput) WithPrefix

func (i *ListLayersInput) WithPrefix(prefix string) *ListLayersInput

func (*ListLayersInput) WithPublic

func (i *ListLayersInput) WithPublic(public bool) *ListLayersInput

func (*ListLayersInput) WithStartKey

func (i *ListLayersInput) WithStartKey(startKey string) *ListLayersInput

type ListLayersOutput

type ListLayersOutput struct {
	Header    http.Header
	Layers    []*Layer `json:"layers"`
	NextToken *string  `json:"nextToken,omitempty"`
}

ListLayersOutput defines List layers result

func (ListLayersOutput) GetRequestID

func (o ListLayersOutput) GetRequestID() string

func (ListLayersOutput) String

func (o ListLayersOutput) String() string

type ListOnDemandConfigsInput

type ListOnDemandConfigsInput struct {
	Prefix    *string `json:"prefix"`
	StartKey  *string `json:"startKey"`
	NextToken *string `json:"nextToken,omitempty"`
	Limit     int     `json:"limit,omitempty"`
}

func NewListOnDemandConfigsInput

func NewListOnDemandConfigsInput() *ListOnDemandConfigsInput

func (*ListOnDemandConfigsInput) GetHeaders

func (i *ListOnDemandConfigsInput) GetHeaders() Header

func (*ListOnDemandConfigsInput) GetPath

func (i *ListOnDemandConfigsInput) GetPath() string

func (*ListOnDemandConfigsInput) GetPayload

func (i *ListOnDemandConfigsInput) GetPayload() interface{}

func (*ListOnDemandConfigsInput) GetQueryParams

func (i *ListOnDemandConfigsInput) GetQueryParams() url.Values

func (*ListOnDemandConfigsInput) Validate

func (i *ListOnDemandConfigsInput) Validate() error

func (*ListOnDemandConfigsInput) WithLimit

func (*ListOnDemandConfigsInput) WithNextToken

func (i *ListOnDemandConfigsInput) WithNextToken(nextToken string) *ListOnDemandConfigsInput

func (*ListOnDemandConfigsInput) WithPrefix

func (*ListOnDemandConfigsInput) WithStartKey

func (i *ListOnDemandConfigsInput) WithStartKey(startKey string) *ListOnDemandConfigsInput

type ListOnDemandConfigsOutput

type ListOnDemandConfigsOutput struct {
	Header http.Header
	OnDemandConfigs
}

func (ListOnDemandConfigsOutput) GetRequestID

func (o ListOnDemandConfigsOutput) GetRequestID() string

func (ListOnDemandConfigsOutput) String

func (o ListOnDemandConfigsOutput) String() string

type ListProvisionConfigsInput

type ListProvisionConfigsInput struct {
	ServiceName *string `json:"serviceName"`
	Qualifier   *string `json:"qualifier"`
	NextToken   *string `json:"nextToken"`
	Limit       *int32  `json:"limit"`
}

func NewListProvisionConfigsInput

func NewListProvisionConfigsInput() *ListProvisionConfigsInput

func (*ListProvisionConfigsInput) GetHeaders

func (i *ListProvisionConfigsInput) GetHeaders() Header

func (*ListProvisionConfigsInput) GetPath

func (i *ListProvisionConfigsInput) GetPath() string

func (*ListProvisionConfigsInput) GetPayload

func (i *ListProvisionConfigsInput) GetPayload() interface{}

func (*ListProvisionConfigsInput) GetQueryParams

func (i *ListProvisionConfigsInput) GetQueryParams() url.Values

func (*ListProvisionConfigsInput) Validate

func (i *ListProvisionConfigsInput) Validate() error

func (*ListProvisionConfigsInput) WithLimit

func (*ListProvisionConfigsInput) WithNextToken

func (i *ListProvisionConfigsInput) WithNextToken(nextToken string) *ListProvisionConfigsInput

func (*ListProvisionConfigsInput) WithQualifier

func (i *ListProvisionConfigsInput) WithQualifier(qualifier string) *ListProvisionConfigsInput

func (*ListProvisionConfigsInput) WithServiceName

func (i *ListProvisionConfigsInput) WithServiceName(serviceName string) *ListProvisionConfigsInput

type ListProvisionConfigsOutput

type ListProvisionConfigsOutput struct {
	Header           http.Header
	ProvisionConfigs []*provisionConfig `json:"provisionConfigs"`
	NextToken        *string            `json:"nextToken,omitempty"`
}

func (ListProvisionConfigsOutput) GetRequestID

func (o ListProvisionConfigsOutput) GetRequestID() string

func (ListProvisionConfigsOutput) String

type ListReservedCapacitiesInput

type ListReservedCapacitiesInput struct {
	Query
}

ListReservedCapacitiesInput : ...

func NewListReservedCapacitiesInput

func NewListReservedCapacitiesInput() *ListReservedCapacitiesInput

NewListReservedCapacitiesInput : ...

func (*ListReservedCapacitiesInput) GetHeaders

func (i *ListReservedCapacitiesInput) GetHeaders() Header

func (*ListReservedCapacitiesInput) GetPath

func (i *ListReservedCapacitiesInput) GetPath() string

func (*ListReservedCapacitiesInput) GetPayload

func (i *ListReservedCapacitiesInput) GetPayload() interface{}

func (*ListReservedCapacitiesInput) GetQueryParams

func (i *ListReservedCapacitiesInput) GetQueryParams() url.Values

func (*ListReservedCapacitiesInput) Validate

func (i *ListReservedCapacitiesInput) Validate() error

func (*ListReservedCapacitiesInput) WithLimit

func (*ListReservedCapacitiesInput) WithNextToken

func (i *ListReservedCapacitiesInput) WithNextToken(nextToken string) *ListReservedCapacitiesInput

type ListReservedCapacitiesOutput

type ListReservedCapacitiesOutput struct {
	Header             http.Header
	ReservedCapacities []*reservedCapacityMetadata `json:"reservedCapacities"`
	NextToken          *string                     `json:"nextToken,omitempty"`
}

ListReservedCapacitiesOutput : ...

func (ListReservedCapacitiesOutput) GetRequestID

func (o ListReservedCapacitiesOutput) GetRequestID() string

func (ListReservedCapacitiesOutput) String

type ListServiceVersionsInput

type ListServiceVersionsInput struct {
	ServiceName *string
	StartKey    *string
	NextToken   *string
	Limit       *int32
	Direction   *string
}

func NewListServiceVersionsInput

func NewListServiceVersionsInput(serviceName string) *ListServiceVersionsInput

func (*ListServiceVersionsInput) GetHeaders

func (i *ListServiceVersionsInput) GetHeaders() Header

func (*ListServiceVersionsInput) GetPath

func (i *ListServiceVersionsInput) GetPath() string

func (*ListServiceVersionsInput) GetPayload

func (i *ListServiceVersionsInput) GetPayload() interface{}

func (*ListServiceVersionsInput) GetQueryParams

func (i *ListServiceVersionsInput) GetQueryParams() url.Values

func (*ListServiceVersionsInput) Validate

func (i *ListServiceVersionsInput) Validate() error

func (*ListServiceVersionsInput) WithBackwardDirection

func (i *ListServiceVersionsInput) WithBackwardDirection() *ListServiceVersionsInput

func (*ListServiceVersionsInput) WithForwardDirection

func (i *ListServiceVersionsInput) WithForwardDirection() *ListServiceVersionsInput

func (*ListServiceVersionsInput) WithLimit

func (*ListServiceVersionsInput) WithNextToken

func (i *ListServiceVersionsInput) WithNextToken(nextToken string) *ListServiceVersionsInput

func (*ListServiceVersionsInput) WithStartKey

func (i *ListServiceVersionsInput) WithStartKey(startKey string) *ListServiceVersionsInput

type ListServiceVersionsOutput

type ListServiceVersionsOutput struct {
	Header    http.Header
	Versions  []*versionMetadata `json:"versions"`
	NextToken *string            `json:"nextToken,omitempty"`
	Direction *string            `json:"direction"`
}

func (ListServiceVersionsOutput) GetRequestID

func (o ListServiceVersionsOutput) GetRequestID() string

func (ListServiceVersionsOutput) String

func (o ListServiceVersionsOutput) String() string

type ListServicesInput

type ListServicesInput struct {
	Query
}

func NewListServicesInput

func NewListServicesInput() *ListServicesInput

func (*ListServicesInput) GetHeaders

func (i *ListServicesInput) GetHeaders() Header

func (*ListServicesInput) GetPath

func (i *ListServicesInput) GetPath() string

func (*ListServicesInput) GetPayload

func (i *ListServicesInput) GetPayload() interface{}

func (*ListServicesInput) GetQueryParams

func (i *ListServicesInput) GetQueryParams() url.Values

func (*ListServicesInput) Validate

func (i *ListServicesInput) Validate() error

func (*ListServicesInput) WithLimit

func (i *ListServicesInput) WithLimit(limit int32) *ListServicesInput

func (*ListServicesInput) WithNextToken

func (i *ListServicesInput) WithNextToken(nextToken string) *ListServicesInput

func (*ListServicesInput) WithPrefix

func (i *ListServicesInput) WithPrefix(prefix string) *ListServicesInput

func (*ListServicesInput) WithStartKey

func (i *ListServicesInput) WithStartKey(startKey string) *ListServicesInput

func (*ListServicesInput) WithTags

func (i *ListServicesInput) WithTags(tags map[string]string) *ListServicesInput

type ListServicesOutput

type ListServicesOutput struct {
	Header    http.Header
	Services  []*serviceMetadata `json:"services"`
	NextToken *string            `json:"nextToken,omitempty"`
}

ListServicesOutput defines listServiceMetadata result

func (ListServicesOutput) GetRequestID

func (o ListServicesOutput) GetRequestID() string

func (ListServicesOutput) String

func (o ListServicesOutput) String() string

type ListStatefulAsyncInvocationsInput

type ListStatefulAsyncInvocationsInput struct {
	ServiceName        *string `json:"serviceName"`
	FunctionName       *string `json:"functionName"`
	Qualifier          *string `json:"qualifier"`
	NextToken          *string `json:"nextToken"`
	Limit              *int32  `json:"limit"`
	Status             *string `json:"status"`
	StartedTimeBegin   *int64  `json:"startedTimeBegin"`
	StartedTimeEnd     *int64  `json:"startedTimeEnd"`
	SortOrderByTime    *string `json:"sortOrderByTime"`
	InvocationIDPrefix *string `json:"invocationIdPrefix"`
	IncludePayload     *bool   `json:"includePayload"`
}

func NewListStatefulAsyncInvocationsInput

func NewListStatefulAsyncInvocationsInput(serviceName, functionName string) *ListStatefulAsyncInvocationsInput

func (*ListStatefulAsyncInvocationsInput) GetHeaders

func (i *ListStatefulAsyncInvocationsInput) GetHeaders() Header

func (*ListStatefulAsyncInvocationsInput) GetPath

func (*ListStatefulAsyncInvocationsInput) GetPayload

func (i *ListStatefulAsyncInvocationsInput) GetPayload() interface{}

func (*ListStatefulAsyncInvocationsInput) GetQueryParams

func (i *ListStatefulAsyncInvocationsInput) GetQueryParams() url.Values

func (*ListStatefulAsyncInvocationsInput) Validate

func (*ListStatefulAsyncInvocationsInput) WithIncludePayload

func (i *ListStatefulAsyncInvocationsInput) WithIncludePayload(includePayload bool) *ListStatefulAsyncInvocationsInput

func (*ListStatefulAsyncInvocationsInput) WithInvocationIDPrefix

func (*ListStatefulAsyncInvocationsInput) WithLimit

func (*ListStatefulAsyncInvocationsInput) WithNextToken

func (*ListStatefulAsyncInvocationsInput) WithQualifier

func (*ListStatefulAsyncInvocationsInput) WithSortOrderByTime

func (*ListStatefulAsyncInvocationsInput) WithStartedTimeBegin

func (i *ListStatefulAsyncInvocationsInput) WithStartedTimeBegin(startedTimeBegin int64) *ListStatefulAsyncInvocationsInput

func (*ListStatefulAsyncInvocationsInput) WithStartedTimeEnd

func (i *ListStatefulAsyncInvocationsInput) WithStartedTimeEnd(startedTimeEnd int64) *ListStatefulAsyncInvocationsInput

func (*ListStatefulAsyncInvocationsInput) WithStatus

type ListStatefulAsyncInvocationsOutput

type ListStatefulAsyncInvocationsOutput struct {
	Header      http.Header
	Invocations []*StatefulAsyncInvocation `json:"invocations"`
	NextToken   *string                    `json:"nextToken"`
}

ListFunctionAsyncInvokeConfigsOutput defines ListFunctionAsyncInvocationsOutput result

func (ListStatefulAsyncInvocationsOutput) GetRequestID

func (o ListStatefulAsyncInvocationsOutput) GetRequestID() string

func (ListStatefulAsyncInvocationsOutput) String

type ListTriggersInput

type ListTriggersInput struct {
	ServiceName  *string
	FunctionName *string
	Query
	// contains filtered or unexported fields
}

func NewListTriggersInput

func NewListTriggersInput(serviceName string, functionName string) *ListTriggersInput

func (*ListTriggersInput) GetHeaders

func (i *ListTriggersInput) GetHeaders() Header

func (*ListTriggersInput) GetPath

func (i *ListTriggersInput) GetPath() string

func (*ListTriggersInput) GetPayload

func (i *ListTriggersInput) GetPayload() interface{}

func (*ListTriggersInput) GetQueryParams

func (i *ListTriggersInput) GetQueryParams() url.Values

func (*ListTriggersInput) Validate

func (i *ListTriggersInput) Validate() error

func (*ListTriggersInput) WithHeader

func (i *ListTriggersInput) WithHeader(key, value string) *ListTriggersInput

func (*ListTriggersInput) WithLimit

func (i *ListTriggersInput) WithLimit(limit int32) *ListTriggersInput

func (*ListTriggersInput) WithNextToken

func (i *ListTriggersInput) WithNextToken(nextToken string) *ListTriggersInput

func (*ListTriggersInput) WithPrefix

func (i *ListTriggersInput) WithPrefix(prefix string) *ListTriggersInput

func (*ListTriggersInput) WithStartKey

func (i *ListTriggersInput) WithStartKey(startKey string) *ListTriggersInput

type ListTriggersOutput

type ListTriggersOutput struct {
	Header    http.Header
	Triggers  []*triggerMetadata `json:"triggers"`
	NextToken *string            `json:"nextToken,omitempty"`
}

ListTriggersOutput defines the trigger response list

func (ListTriggersOutput) GetRequestID

func (o ListTriggersOutput) GetRequestID() string

func (ListTriggersOutput) String

func (o ListTriggersOutput) String() string

type LogConfig

type LogConfig struct {
	Project               *string `json:"project"`
	Logstore              *string `json:"logstore"`
	EnableRequestMetrics  *bool   `json:"enableRequestMetrics"`
	EnableInstanceMetrics *bool   `json:"enableInstanceMetrics"`
}

LogConfig defines the log config for service

func NewLogConfig

func NewLogConfig() *LogConfig

func (*LogConfig) WithEnableInstanceMetrics

func (l *LogConfig) WithEnableInstanceMetrics(enableInstanceMetrics bool) *LogConfig

func (*LogConfig) WithEnableRequestMetrics

func (l *LogConfig) WithEnableRequestMetrics(enableRequestMetrics bool) *LogConfig

func (*LogConfig) WithLogstore

func (l *LogConfig) WithLogstore(logstore string) *LogConfig

func (*LogConfig) WithProject

func (l *LogConfig) WithProject(project string) *LogConfig

type LogTriggerConfig

type LogTriggerConfig struct {
	SourceConfig      *SourceConfig          `json:"sourceConfig"`
	JobConfig         *JobConfig             `json:"jobConfig"`
	FunctionParameter map[string]interface{} `json:"functionParameter"`
	LogConfig         *JobLogConfig          `json:"logConfig"`
	Enable            *bool                  `json:"enable"`
}

LogTriggerConfig ..

func NewLogTriggerConfig

func NewLogTriggerConfig() *LogTriggerConfig

func (*LogTriggerConfig) WithEnable

func (ltc *LogTriggerConfig) WithEnable(enable bool) *LogTriggerConfig

func (*LogTriggerConfig) WithFunctionParameter

func (ltc *LogTriggerConfig) WithFunctionParameter(p map[string]interface{}) *LogTriggerConfig

func (*LogTriggerConfig) WithJobConfig

func (ltc *LogTriggerConfig) WithJobConfig(c *JobConfig) *LogTriggerConfig

func (*LogTriggerConfig) WithLogConfig

func (ltc *LogTriggerConfig) WithLogConfig(c *JobLogConfig) *LogTriggerConfig

func (*LogTriggerConfig) WithSourceConfig

func (ltc *LogTriggerConfig) WithSourceConfig(c *SourceConfig) *LogTriggerConfig

type MessageCallbackFunction

type MessageCallbackFunction func(data []byte)

type MnsTopicTriggerConfig

type MnsTopicTriggerConfig struct {
	FilterTag           *string `json:"filterTag"`
	NotifyContentFormat *string `json:"notifyContentFormat"`
	NotifyStrategy      *string `json:"notifyStrategy"`
}

MnsTopicTriggerConfig ..

func NewMnsTopicTriggerConfig

func NewMnsTopicTriggerConfig() *MnsTopicTriggerConfig

NewMnsTopicTriggerConfig ..

func (*MnsTopicTriggerConfig) WithFilterTag

func (mtc *MnsTopicTriggerConfig) WithFilterTag(filterTag string) *MnsTopicTriggerConfig

func (*MnsTopicTriggerConfig) WithNotifyContentFormat

func (mtc *MnsTopicTriggerConfig) WithNotifyContentFormat(notifyContentFormat string) *MnsTopicTriggerConfig

func (*MnsTopicTriggerConfig) WithNotifyStrategy

func (mtc *MnsTopicTriggerConfig) WithNotifyStrategy(notifyStrategy string) *MnsTopicTriggerConfig

type NASConfig

type NASConfig struct {
	UserID      *int32           `json:"userId"`
	GroupID     *int32           `json:"groupId"`
	MountPoints []NASMountConfig `json:"mountPoints"`
}

NASConfig defines the NAS config info UserID/GroupID is the uid/gid of the user access the NFS file system

func NewNASConfig

func NewNASConfig() *NASConfig

func (*NASConfig) WithGroupID

func (n *NASConfig) WithGroupID(groupID int32) *NASConfig

func (*NASConfig) WithMountPoints

func (n *NASConfig) WithMountPoints(mountPoints []NASMountConfig) *NASConfig

func (*NASConfig) WithUserID

func (n *NASConfig) WithUserID(userID int32) *NASConfig

type NASMountConfig

type NASMountConfig struct {
	ServerAddr string `json:"serverAddr"`
	MountDir   string `json:"mountDir"`
}

NASMountConfig defines the nas binding info for service

func NewNASMountConfig

func NewNASMountConfig(serverAddr, mountDir string) NASMountConfig

type OSSEvent

type OSSEvent string

OSSEvent represents the oss event type in oss trigger

const (
	OSSEventObjectCreatedAll                     OSSEvent = "oss:ObjectCreated:*"
	OSSEventObjectCreatedPutObject               OSSEvent = "oss:ObjectCreated:PutObject"
	OSSEventObjectCreatedPutSymlink              OSSEvent = "oss:ObjectCreated:PutSymlink"
	OSSEventObjectCreatedPostObject              OSSEvent = "oss:ObjectCreated:PostObject"
	OSSEventObjectCreatedCopyObject              OSSEvent = "oss:ObjectCreated:CopyObject"
	OSSEventObjectCreatedInitiateMultipartUpload OSSEvent = "oss:ObjectCreated:InitiateMultipartUpload"
	OSSEventObjectCreatedUploadPart              OSSEvent = "oss:ObjectCreated:UploadPart"
	OSSEventObjectCreatedUploadPartCopy          OSSEvent = "oss:ObjectCreated:UploadPartCopy"
	OSSEventObjectCreatedCompleteMultipartUpload OSSEvent = "oss:ObjectCreated:CompleteMultipartUpload"
	OSSEventObjectCreatedAppendObject            OSSEvent = "oss:ObjectCreated:AppendObject"
	OSSEventObjectRemovedDeleteObject            OSSEvent = "oss:ObjectRemoved:DeleteObject"
	OSSEventObjectRemovedDeleteObjects           OSSEvent = "oss:ObjectRemoved:DeleteObjects"
	OSSEventObjectRemovedAbortMultipartUpload    OSSEvent = "oss:ObjectRemoved:AbortMultipartUpload"
	OSSEventObjectReplicationObjectCreated       OSSEvent = "oss:ObjectReplication:ObjectCreated"
	OSSEventObjectReplicationObjectRemoved       OSSEvent = "oss:ObjectReplication:ObjectRemoved"
	OSSEventObjectReplicationObjectModified      OSSEvent = "oss:ObjectReplication:ObjectModified"
)

type OSSTriggerConfig

type OSSTriggerConfig struct {
	Events []string          `json:"events"`
	Filter *OSSTriggerFilter `json:"filter"`
}

func NewOSSTriggerConfig

func NewOSSTriggerConfig() *OSSTriggerConfig

func (*OSSTriggerConfig) WithEvents

func (c *OSSTriggerConfig) WithEvents(events []string) *OSSTriggerConfig

func (*OSSTriggerConfig) WithFilter

func (c *OSSTriggerConfig) WithFilter(filter *OSSTriggerFilter) *OSSTriggerConfig

func (*OSSTriggerConfig) WithFilterKeyPrefix

func (c *OSSTriggerConfig) WithFilterKeyPrefix(prefix string) *OSSTriggerConfig

func (*OSSTriggerConfig) WithFilterKeySuffix

func (c *OSSTriggerConfig) WithFilterKeySuffix(suffix string) *OSSTriggerConfig

type OSSTriggerFilter

type OSSTriggerFilter struct {
	Key *OSSTriggerKey `json:"key"`
}

func NewOSSTriggerFilter

func NewOSSTriggerFilter() *OSSTriggerFilter

func (*OSSTriggerFilter) WithKey

type OSSTriggerKey

type OSSTriggerKey struct {
	Prefix *string `json:"prefix"`
	Suffix *string `json:"suffix"`
}

func NewOSSTriggerKey

func NewOSSTriggerKey() *OSSTriggerKey

func (*OSSTriggerKey) WithPrefix

func (k *OSSTriggerKey) WithPrefix(prefix string) *OSSTriggerKey

func (*OSSTriggerKey) WithSuffix

func (k *OSSTriggerKey) WithSuffix(suffix string) *OSSTriggerKey

type OnDemandConfig

type OnDemandConfig struct {
	Resource             *string `json:"resource"`
	MaximumInstanceCount *int64  `json:"maximumInstanceCount"`
}

type OnDemandConfigs

type OnDemandConfigs struct {
	Configs   []*OnDemandConfig `json:"configs"`
	NextToken *string           `json:"nextToken,omitempty"`
}

type OutputCodeLocation

type OutputCodeLocation struct {
	RepositoryType *string `json:"repositoryType"`
	Location       *string `json:"location"`
}

OutputCodeLocation represents the output code location.

type PathConfig

type PathConfig struct {
	Path         *string  `json:"path" `
	ServiceName  *string  `json:"serviceName" `
	FunctionName *string  `json:"functionName" `
	Qualifier    *string  `json:"qualifier" `
	Methods      []string `json:"methods"`
}

PathConfig represents path-function mapping

func NewPathConfig

func NewPathConfig() *PathConfig

func (*PathConfig) WithFunctionName

func (p *PathConfig) WithFunctionName(functionName string) *PathConfig

func (*PathConfig) WithMethods

func (p *PathConfig) WithMethods(methods []string) *PathConfig

func (*PathConfig) WithPath

func (p *PathConfig) WithPath(path string) *PathConfig

func (*PathConfig) WithQualifier

func (p *PathConfig) WithQualifier(qualifier string) *PathConfig

func (*PathConfig) WithServiceName

func (p *PathConfig) WithServiceName(serviceName string) *PathConfig

type PermanentDeleteLayerVersionInput

type PermanentDeleteLayerVersionInput struct {
	LayerName        string
	Version          int32
	LayerOwnerUserID string
}

func NewPermanentDeleteLayerVersionInput

func NewPermanentDeleteLayerVersionInput(layerOwnerUserID, layerName string, version int32) *PermanentDeleteLayerVersionInput

func (*PermanentDeleteLayerVersionInput) GetHeaders

func (i *PermanentDeleteLayerVersionInput) GetHeaders() Header

func (*PermanentDeleteLayerVersionInput) GetPath

func (*PermanentDeleteLayerVersionInput) GetPayload

func (i *PermanentDeleteLayerVersionInput) GetPayload() interface{}

func (*PermanentDeleteLayerVersionInput) GetQueryParams

func (i *PermanentDeleteLayerVersionInput) GetQueryParams() url.Values

func (*PermanentDeleteLayerVersionInput) Validate

type PublishLayerVersionInput

type PublishLayerVersionInput struct {
	LayerName         string   `json:"layerName"`
	Description       string   `json:"description"`
	Code              *Code    `json:"code"`
	CompatibleRuntime []string `json:"compatibleRuntime"`
}

PublishLayerVersionInput defines input to create layer version

func NewPublishLayerVersionInput

func NewPublishLayerVersionInput() *PublishLayerVersionInput

func (*PublishLayerVersionInput) GetHeaders

func (i *PublishLayerVersionInput) GetHeaders() Header

func (*PublishLayerVersionInput) GetPath

func (i *PublishLayerVersionInput) GetPath() string

func (*PublishLayerVersionInput) GetPayload

func (i *PublishLayerVersionInput) GetPayload() interface{}

func (*PublishLayerVersionInput) GetQueryParams

func (i *PublishLayerVersionInput) GetQueryParams() url.Values

func (PublishLayerVersionInput) String

func (o PublishLayerVersionInput) String() string

func (*PublishLayerVersionInput) Validate

func (i *PublishLayerVersionInput) Validate() error

func (*PublishLayerVersionInput) WithCode

func (*PublishLayerVersionInput) WithCompatibleRuntime

func (s *PublishLayerVersionInput) WithCompatibleRuntime(compatibleRuntime []string) *PublishLayerVersionInput

func (*PublishLayerVersionInput) WithDescription

func (s *PublishLayerVersionInput) WithDescription(description string) *PublishLayerVersionInput

func (*PublishLayerVersionInput) WithLayerName

func (s *PublishLayerVersionInput) WithLayerName(layerName string) *PublishLayerVersionInput

type PublishLayerVersionOutput

type PublishLayerVersionOutput struct {
	Header http.Header
	Layer
}

PublishLayerVersionOutput define publish layer version response

func (PublishLayerVersionOutput) GetEtag

func (o PublishLayerVersionOutput) GetEtag() string

func (PublishLayerVersionOutput) GetRequestID

func (o PublishLayerVersionOutput) GetRequestID() string

type PublishPublicLayerVersionOutput

type PublishPublicLayerVersionOutput struct {
	Header http.Header
}

type PublishServiceVersionInput

type PublishServiceVersionInput struct {
	ServiceName *string
	ServiceVersionPublishObject
	IfMatch *string
}

func NewPublishServiceVersionInput

func NewPublishServiceVersionInput(serviceName string) *PublishServiceVersionInput

func (*PublishServiceVersionInput) GetHeaders

func (i *PublishServiceVersionInput) GetHeaders() Header

func (*PublishServiceVersionInput) GetPath

func (i *PublishServiceVersionInput) GetPath() string

func (*PublishServiceVersionInput) GetPayload

func (i *PublishServiceVersionInput) GetPayload() interface{}

func (*PublishServiceVersionInput) GetQueryParams

func (i *PublishServiceVersionInput) GetQueryParams() url.Values

func (*PublishServiceVersionInput) Validate

func (i *PublishServiceVersionInput) Validate() error

func (*PublishServiceVersionInput) WithDescription

func (i *PublishServiceVersionInput) WithDescription(description string) *PublishServiceVersionInput

func (*PublishServiceVersionInput) WithIfMatch

type PublishServiceVersionOutput

type PublishServiceVersionOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

func (PublishServiceVersionOutput) GetEtag

func (o PublishServiceVersionOutput) GetEtag() string

func (PublishServiceVersionOutput) GetRequestID

func (o PublishServiceVersionOutput) GetRequestID() string

func (PublishServiceVersionOutput) String

type PutFunctionAsyncInvokeConfigInput

type PutFunctionAsyncInvokeConfigInput struct {
	ServiceName  *string `json:"serviceName"`
	Qualifier    *string `json:"qualifier"`
	FunctionName *string `json:"functionName"`
	AsyncConfig
}

PutFunctionAsyncInvokeConfigInput defines function creation input

func NewPutFunctionAsyncInvokeConfigInput

func NewPutFunctionAsyncInvokeConfigInput(serviceName, functionName string) *PutFunctionAsyncInvokeConfigInput

func (*PutFunctionAsyncInvokeConfigInput) GetHeaders

func (i *PutFunctionAsyncInvokeConfigInput) GetHeaders() Header

func (*PutFunctionAsyncInvokeConfigInput) GetPath

func (*PutFunctionAsyncInvokeConfigInput) GetPayload

func (i *PutFunctionAsyncInvokeConfigInput) GetPayload() interface{}

func (*PutFunctionAsyncInvokeConfigInput) GetQueryParams

func (i *PutFunctionAsyncInvokeConfigInput) GetQueryParams() url.Values

func (*PutFunctionAsyncInvokeConfigInput) Validate

func (*PutFunctionAsyncInvokeConfigInput) WithAsyncConfig

func (*PutFunctionAsyncInvokeConfigInput) WithQualifier

type PutFunctionAsyncInvokeConfigOutput

type PutFunctionAsyncInvokeConfigOutput struct {
	Header http.Header
	AsyncConfigResponse
}

PutFunctionAsyncInvokeConfigOutput define get async config response

func (PutFunctionAsyncInvokeConfigOutput) GetRequestID

func (o PutFunctionAsyncInvokeConfigOutput) GetRequestID() string

func (PutFunctionAsyncInvokeConfigOutput) String

type PutOnDemandConfigInput

type PutOnDemandConfigInput struct {
	PutOnDemandConfigObject
	ServiceName  *string `json:"serviceName"`
	Qualifier    *string `json:"qualifier"`
	FunctionName *string `json:"functionName"`
	IfMatch      *string
}

func NewPutOnDemandConfigInput

func NewPutOnDemandConfigInput(serviceName, qualifier, functionName string) *PutOnDemandConfigInput

func (*PutOnDemandConfigInput) GetHeaders

func (i *PutOnDemandConfigInput) GetHeaders() Header

func (*PutOnDemandConfigInput) GetPath

func (i *PutOnDemandConfigInput) GetPath() string

func (*PutOnDemandConfigInput) GetPayload

func (i *PutOnDemandConfigInput) GetPayload() interface{}

func (*PutOnDemandConfigInput) GetQueryParams

func (i *PutOnDemandConfigInput) GetQueryParams() url.Values

func (*PutOnDemandConfigInput) Validate

func (i *PutOnDemandConfigInput) Validate() error

func (*PutOnDemandConfigInput) WithIfMatch

func (i *PutOnDemandConfigInput) WithIfMatch(ifMatch string) *PutOnDemandConfigInput

func (*PutOnDemandConfigInput) WithMaximumInstanceCount

func (i *PutOnDemandConfigInput) WithMaximumInstanceCount(maximumInstanceCount int64) *PutOnDemandConfigInput

type PutOnDemandConfigObject

type PutOnDemandConfigObject struct {
	MaximumInstanceCount *int64 `json:"maximumInstanceCount"`
}

type PutOnDemandConfigOutput

type PutOnDemandConfigOutput struct {
	Header http.Header
	OnDemandConfig
}

func (PutOnDemandConfigOutput) GetEtag

func (o PutOnDemandConfigOutput) GetEtag() string

func (PutOnDemandConfigOutput) GetRequestID

func (o PutOnDemandConfigOutput) GetRequestID() string

func (PutOnDemandConfigOutput) String

func (o PutOnDemandConfigOutput) String() string

type PutProvisionConfigInput

type PutProvisionConfigInput struct {
	PutProvisionConfigObject
	ServiceName  *string `json:"serviceName"`
	Qualifier    *string `json:"qualifier"`
	FunctionName *string `json:"functionName"`
	IfMatch      *string
}

func NewPutProvisionConfigInput

func NewPutProvisionConfigInput(serviceName, qualifier, functionName string) *PutProvisionConfigInput

func (*PutProvisionConfigInput) GetHeaders

func (i *PutProvisionConfigInput) GetHeaders() Header

func (*PutProvisionConfigInput) GetPath

func (i *PutProvisionConfigInput) GetPath() string

func (*PutProvisionConfigInput) GetPayload

func (i *PutProvisionConfigInput) GetPayload() interface{}

func (*PutProvisionConfigInput) GetQueryParams

func (i *PutProvisionConfigInput) GetQueryParams() url.Values

func (*PutProvisionConfigInput) Validate

func (i *PutProvisionConfigInput) Validate() error

func (*PutProvisionConfigInput) WithIfMatch

func (i *PutProvisionConfigInput) WithIfMatch(ifMatch string) *PutProvisionConfigInput

func (*PutProvisionConfigInput) WithTarget

func (i *PutProvisionConfigInput) WithTarget(target int64) *PutProvisionConfigInput

type PutProvisionConfigObject

type PutProvisionConfigObject struct {
	Target *int64 `json:"target"`
}

type PutProvisionConfigOutput

type PutProvisionConfigOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

func (PutProvisionConfigOutput) GetEtag

func (o PutProvisionConfigOutput) GetEtag() string

func (PutProvisionConfigOutput) GetRequestID

func (o PutProvisionConfigOutput) GetRequestID() string

func (PutProvisionConfigOutput) String

func (o PutProvisionConfigOutput) String() string

type Query

type Query struct {
	Prefix    *string
	StartKey  *string
	NextToken *string
	Limit     *int32
	Tags      map[string]string
}

type RouteConfig

type RouteConfig struct {
	Routes []PathConfig `json:"routes" `
}

RouteConfig represents route config for a single domain

func NewRouteConfig

func NewRouteConfig() *RouteConfig

func (*RouteConfig) WithRoutes

func (r *RouteConfig) WithRoutes(pathConfig []PathConfig) *RouteConfig

type ServiceError

type ServiceError struct {
	HTTPStatus   int    `json:"HttpStatus"`
	RequestID    string `json:"RequestId"`
	ErrorCode    string `json:"ErrorCode"`
	ErrorMessage string `json:"ErrorMessage"`
}

ServiceError defines error from fc

func (ServiceError) Error

func (e ServiceError) Error() string

func (ServiceError) String

func (e ServiceError) String() string

type ServiceInput

type ServiceInput interface {
	GetQueryParams() url.Values
	GetPath() string
	GetHeaders() Header
	GetPayload() interface{}
	Validate() error
}

type ServiceUpdateObject

type ServiceUpdateObject struct {
	Description    *string        `json:"description"`
	Role           *string        `json:"role"`
	LogConfig      *LogConfig     `json:"logConfig"`
	VPCConfig      *VPCConfig     `json:"vpcConfig"`
	InternetAccess *bool          `json:"internetAccess"`
	NASConfig      *NASConfig     `json:"nasConfig"`
	TracingConfig  *TracingConfig `json:"tracingConfig"`
}

ServiceUpdateObject defines the service update fields

type ServiceVersionPublishObject

type ServiceVersionPublishObject struct {
	Description *string
}

type SignURLInput

type SignURLInput struct {
	Method         string
	Expires        time.Time
	ServiceName    string
	Qualifier      string
	FunctionName   string
	CustomEndpoint string
	EscapedPath    string
	Header         http.Header
	Queries        url.Values
}

SignURLInput ...

func NewSignURLInput

func NewSignURLInput(method, serviceName, functionName string, expires time.Time) *SignURLInput

NewSignURLInput : create sign url request

func (*SignURLInput) WithCustomEndpoint

func (s *SignURLInput) WithCustomEndpoint(customEndpoint string) *SignURLInput

WithCustomEndpoint ...

func (*SignURLInput) WithEscapedPath

func (s *SignURLInput) WithEscapedPath(esapedPath string) *SignURLInput

WithEscapedPath ...

func (*SignURLInput) WithHeader

func (s *SignURLInput) WithHeader(header http.Header) *SignURLInput

WithHeader ...

func (*SignURLInput) WithQualifier

func (s *SignURLInput) WithQualifier(qualifier string) *SignURLInput

WithQualifier ...

func (*SignURLInput) WithQueries

func (s *SignURLInput) WithQueries(queries url.Values) *SignURLInput

WithQueries ...

type SourceConfig

type SourceConfig struct {
	Logstore *string `json:"logstore"`
}

SourceConfig ..

func NewSourceConfig

func NewSourceConfig() *SourceConfig

func (*SourceConfig) WithLogstore

func (sc *SourceConfig) WithLogstore(store string) *SourceConfig

type SourceMNSParameters

type SourceMNSParameters struct {
	RegionId       *string `json:"RegionId,omitempty"`
	QueueName      *string `json:"QueueName,omitempty"`
	IsBase64Decode *bool   `json:"IsBase64Decode,omitempty"`
}

SourceMNSParameters refers to github.com/alibabacloud-go/eventbridge-sdk v1.2.10

func NewSourceMNSParameters

func NewSourceMNSParameters() *SourceMNSParameters

NewSourceMNSParameters ...

func (*SourceMNSParameters) WithIsBase64Decode

func (mns *SourceMNSParameters) WithIsBase64Decode(isBase64Decode bool) *SourceMNSParameters

WithIsBase64Decode ...

func (*SourceMNSParameters) WithQueueName

func (mns *SourceMNSParameters) WithQueueName(queueName string) *SourceMNSParameters

WithQueueName ...

func (*SourceMNSParameters) WithRegionId

func (mns *SourceMNSParameters) WithRegionId(regionId string) *SourceMNSParameters

WithRegionId ...

type SourceRabbitMQParameters

type SourceRabbitMQParameters struct {
	RegionId        *string `json:"RegionId,omitempty"`
	InstanceId      *string `json:"InstanceId,omitempty"`
	VirtualHostName *string `json:"VirtualHostName,omitempty"`
	QueueName       *string `json:"QueueName,omitempty"`
}

SourceRocketMQParameters refers to ithub.com/alibabacloud-go/eventbridge-sdk v1.2.10

func NewSourceRabbitMQParameters

func NewSourceRabbitMQParameters() *SourceRabbitMQParameters

SourceRabbitMQParameters ...

func (*SourceRabbitMQParameters) WithInstanceId

func (rabbit *SourceRabbitMQParameters) WithInstanceId(instanceId string) *SourceRabbitMQParameters

WithInstanceId ...

func (*SourceRabbitMQParameters) WithQueueName

func (rabbit *SourceRabbitMQParameters) WithQueueName(queueName string) *SourceRabbitMQParameters

WithQueueName ...

func (*SourceRabbitMQParameters) WithRegionId

func (rabbit *SourceRabbitMQParameters) WithRegionId(regionId string) *SourceRabbitMQParameters

WithRegionId ...

func (*SourceRabbitMQParameters) WithVirtualHostName

func (rabbit *SourceRabbitMQParameters) WithVirtualHostName(virtualHostName string) *SourceRabbitMQParameters

WithVirtualHostName ...

type SourceRocketMQParameters

type SourceRocketMQParameters struct {
	RegionId   *string `json:"RegionId,omitempty"`
	InstanceId *string `json:"InstanceId,omitempty"`
	Topic      *string `json:"Topic,omitempty"`
	Tag        *string `json:"Tag,omitempty"`
	Offset     *string `json:"Offset,omitempty"`
	GroupID    *string `json:"GroupID,omitempty"`
	Timestamp  *int    `json:"Timestamp,omitempty"`
}

SourceRocketMQParameters refers to github.com/alibabacloud-go/eventbridge-sdk v1.2.10

func NewSourceRocketMQParameters

func NewSourceRocketMQParameters() *SourceRocketMQParameters

NewSourceRocketMQParameters ...

func (*SourceRocketMQParameters) WithGroupID

func (rocket *SourceRocketMQParameters) WithGroupID(groupID string) *SourceRocketMQParameters

WithGroupID ...

func (*SourceRocketMQParameters) WithInstanceId

func (rocket *SourceRocketMQParameters) WithInstanceId(instanceId string) *SourceRocketMQParameters

WithInstanceId ...

func (*SourceRocketMQParameters) WithOffset

func (rocket *SourceRocketMQParameters) WithOffset(offset string) *SourceRocketMQParameters

WithOffset ...

func (*SourceRocketMQParameters) WithRegionId

func (rocket *SourceRocketMQParameters) WithRegionId(regionId string) *SourceRocketMQParameters

WithRegionId ...

func (*SourceRocketMQParameters) WithTag

WithTag ...

func (*SourceRocketMQParameters) WithTimestamp

func (rocket *SourceRocketMQParameters) WithTimestamp(timestamp int) *SourceRocketMQParameters

WithTimestamp ...

func (*SourceRocketMQParameters) WithTopic

func (rocket *SourceRocketMQParameters) WithTopic(topic string) *SourceRocketMQParameters

WithTopic ...

type StatefulAsyncInvocation

type StatefulAsyncInvocation struct {
	FunctionName *string `json:"functionName"`
	ServiceName  *string `json:"serviceName"`
	Qualifier    *string `json:"qualifier"`
	InvocationID *string `json:"invocationId"`
	Status       *string `json:"status"`
	// in ms
	StartedTime            *int64  `json:"startedTime"`
	EndTime                *int64  `json:"endTime"`
	DestinationStatus      *string `json:"destinationStatus"`
	InvocationErrorMessage *string `json:"invocationErrorMessage"`
	InvocationPayload      *string `json:"invocationPayload"`
	RequestID              *string `json:"requestId"`
	AlreadyRetriedTimes    *int64  `json:"alreadyRetriedTimes"`
}

StatefulAsyncInvocation represents the stateful async invocation records.

type StatefulAsyncInvocationResponse

type StatefulAsyncInvocationResponse struct {
	StatefulAsyncInvocation
}

type StopStatefulAsyncInvocationInput

type StopStatefulAsyncInvocationInput struct {
	ServiceName  *string `json:"serviceName"`
	Qualifier    *string `json:"qualifier"`
	FunctionName *string `json:"functionName"`
	InvocationID *string `json:"invocationId"`
}

StopStatefulAsyncInvocationInput defines function creation input

func NewStopStatefulAsyncInvocationInput

func NewStopStatefulAsyncInvocationInput(serviceName, functionName, invocationID string) *StopStatefulAsyncInvocationInput

func (*StopStatefulAsyncInvocationInput) GetHeaders

func (i *StopStatefulAsyncInvocationInput) GetHeaders() Header

func (*StopStatefulAsyncInvocationInput) GetPath

func (*StopStatefulAsyncInvocationInput) GetPayload

func (i *StopStatefulAsyncInvocationInput) GetPayload() interface{}

func (*StopStatefulAsyncInvocationInput) GetQueryParams

func (i *StopStatefulAsyncInvocationInput) GetQueryParams() url.Values

func (*StopStatefulAsyncInvocationInput) Validate

func (*StopStatefulAsyncInvocationInput) WithQualifier

type StopStatefulAsyncInvocationOutput

type StopStatefulAsyncInvocationOutput struct {
	Header http.Header
}

StopStatefulAsyncInvocationOutput ...

func (StopStatefulAsyncInvocationOutput) GetRequestID

func (o StopStatefulAsyncInvocationOutput) GetRequestID() string

func (StopStatefulAsyncInvocationOutput) String

type TableStoreTriggerConfig

type TableStoreTriggerConfig struct {
}

TableStoreTriggerConfig ..

func NewTableStoreTriggerConfig

func NewTableStoreTriggerConfig() *TableStoreTriggerConfig

NewTableStoreTriggerConfig ..

type TagResourceInput

type TagResourceInput struct {
	ResourceArn *string           `json:"resourceArn"`
	Tags        map[string]string `json:"tags"`
}

TagResourceInput defines input to tag a resource(service)

func NewTagResourceInput

func NewTagResourceInput(resourceArn string, tags map[string]string) *TagResourceInput

NewTagResourceInput ...

func (*TagResourceInput) GetHeaders

func (t *TagResourceInput) GetHeaders() Header

func (*TagResourceInput) GetPath

func (t *TagResourceInput) GetPath() string

func (*TagResourceInput) GetPayload

func (t *TagResourceInput) GetPayload() interface{}

func (*TagResourceInput) GetQueryParams

func (t *TagResourceInput) GetQueryParams() url.Values

func (*TagResourceInput) Validate

func (t *TagResourceInput) Validate() error

func (*TagResourceInput) WithResourceArn

func (s *TagResourceInput) WithResourceArn(resourceArn string) *TagResourceInput

func (*TagResourceInput) WithTags

func (s *TagResourceInput) WithTags(tags map[string]string) *TagResourceInput

type TagResourceOut

type TagResourceOut struct {
	Header http.Header
}

TagResourceOut ...

func (TagResourceOut) GetRequestID

func (o TagResourceOut) GetRequestID() string

func (TagResourceOut) String

func (o TagResourceOut) String() string

type TimeTriggerConfig

type TimeTriggerConfig struct {
	Payload        *string `json:"payload"`
	CronExpression *string `json:"cronExpression"`
	Enable         *bool   `json:"enable"`
}

TimeTriggerConfig defines the time trigger config

func NewTimeTriggerConfig

func NewTimeTriggerConfig() *TimeTriggerConfig

NewTimeTriggerConfig creates an empty TimeTriggerConfig

func (*TimeTriggerConfig) WithCronExpression

func (ttc *TimeTriggerConfig) WithCronExpression(cronExpression string) *TimeTriggerConfig

func (*TimeTriggerConfig) WithEnable

func (ttc *TimeTriggerConfig) WithEnable(enable bool) *TimeTriggerConfig

func (*TimeTriggerConfig) WithPayload

func (ttc *TimeTriggerConfig) WithPayload(payload string) *TimeTriggerConfig

type TracingConfig

type TracingConfig struct {
	Type   *string     `json:"type"`
	Params interface{} `json:"params"`
}

func NewTracingConfig

func NewTracingConfig() *TracingConfig

func (*TracingConfig) WithJaegerConfig

func (t *TracingConfig) WithJaegerConfig(config *JaegerConfig) *TracingConfig

func (*TracingConfig) WithParams

func (t *TracingConfig) WithParams(params interface{}) *TracingConfig

func (*TracingConfig) WithType

func (t *TracingConfig) WithType(tracingType string) *TracingConfig

type TriggerCreateObject

type TriggerCreateObject struct {
	TriggerName    *string     `json:"triggerName"`
	Description    *string     `json:"description"`
	SourceARN      *string     `json:"sourceArn"`
	TriggerType    *string     `json:"triggerType"`
	InvocationRole *string     `json:"invocationRole"`
	TriggerConfig  interface{} `json:"triggerConfig"`
	Qualifier      *string     `json:"qualifier"`
	// contains filtered or unexported fields
}

type TriggerUpdateObject

type TriggerUpdateObject struct {
	InvocationRole *string     `json:"invocationRole"`
	Description    *string     `json:"description"`
	TriggerConfig  interface{} `json:"triggerConfig"`
	Qualifier      *string     `json:"qualifier"`
	// contains filtered or unexported fields
}

TriggerUpdateObject defines update fields in Trigger

type UnTagResourceInput

type UnTagResourceInput struct {
	ResourceArn *string  `json:"resourceArn"`
	TagKeys     []string `json:"tagKeys"`
	All         *bool    `json:"all"`
}

UnTagResourceInput ...

func NewUnTagResourceInput

func NewUnTagResourceInput(resourceArn string) *UnTagResourceInput

NewUnTagResourceInput ...

func (*UnTagResourceInput) GetHeaders

func (t *UnTagResourceInput) GetHeaders() Header

func (*UnTagResourceInput) GetPath

func (t *UnTagResourceInput) GetPath() string

func (*UnTagResourceInput) GetPayload

func (t *UnTagResourceInput) GetPayload() interface{}

func (*UnTagResourceInput) GetQueryParams

func (t *UnTagResourceInput) GetQueryParams() url.Values

func (*UnTagResourceInput) Validate

func (t *UnTagResourceInput) Validate() error

func (*UnTagResourceInput) WithAll

func (s *UnTagResourceInput) WithAll(all bool) *UnTagResourceInput

func (*UnTagResourceInput) WithResourceArn

func (s *UnTagResourceInput) WithResourceArn(resourceArn string) *UnTagResourceInput

func (*UnTagResourceInput) WithTagKeys

func (s *UnTagResourceInput) WithTagKeys(tagKeys []string) *UnTagResourceInput

type UnTagResourceOut

type UnTagResourceOut struct {
	Header http.Header
}

UnTagResourceOut ...

func (UnTagResourceOut) GetRequestID

func (o UnTagResourceOut) GetRequestID() string

func (UnTagResourceOut) String

func (o UnTagResourceOut) String() string

type UpdateAliasInput

type UpdateAliasInput struct {
	ServiceName *string
	AliasName   *string
	AliasUpdateObject
	IfMatch *string
}

func NewUpdateAliasInput

func NewUpdateAliasInput(serviceName, aliasName string) *UpdateAliasInput

func (*UpdateAliasInput) GetHeaders

func (i *UpdateAliasInput) GetHeaders() Header

func (*UpdateAliasInput) GetPath

func (i *UpdateAliasInput) GetPath() string

func (*UpdateAliasInput) GetPayload

func (i *UpdateAliasInput) GetPayload() interface{}

func (*UpdateAliasInput) GetQueryParams

func (i *UpdateAliasInput) GetQueryParams() url.Values

func (*UpdateAliasInput) Validate

func (i *UpdateAliasInput) Validate() error

func (*UpdateAliasInput) WithAdditionalVersionWeight

func (s *UpdateAliasInput) WithAdditionalVersionWeight(additionalVersionWeight map[string]float64) *UpdateAliasInput

func (*UpdateAliasInput) WithDescription

func (s *UpdateAliasInput) WithDescription(description string) *UpdateAliasInput

func (*UpdateAliasInput) WithIfMatch

func (s *UpdateAliasInput) WithIfMatch(ifMatch string) *UpdateAliasInput

func (*UpdateAliasInput) WithVersionID

func (s *UpdateAliasInput) WithVersionID(versionID string) *UpdateAliasInput

type UpdateAliasOutput

type UpdateAliasOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

func (UpdateAliasOutput) GetEtag

func (o UpdateAliasOutput) GetEtag() string

func (UpdateAliasOutput) GetRequestID

func (o UpdateAliasOutput) GetRequestID() string

func (UpdateAliasOutput) String

func (o UpdateAliasOutput) String() string

type UpdateCustomDomainInput

type UpdateCustomDomainInput struct {
	DomainName *string
	UpdateCustomDomainObject
}

func NewUpdateCustomDomainInput

func NewUpdateCustomDomainInput(domainName string) *UpdateCustomDomainInput

func (*UpdateCustomDomainInput) GetHeaders

func (c *UpdateCustomDomainInput) GetHeaders() Header

func (*UpdateCustomDomainInput) GetPath

func (c *UpdateCustomDomainInput) GetPath() string

func (*UpdateCustomDomainInput) GetPayload

func (c *UpdateCustomDomainInput) GetPayload() interface{}

func (*UpdateCustomDomainInput) GetQueryParams

func (c *UpdateCustomDomainInput) GetQueryParams() url.Values

func (*UpdateCustomDomainInput) Validate

func (c *UpdateCustomDomainInput) Validate() error

func (*UpdateCustomDomainInput) WithCertConfig

func (c *UpdateCustomDomainInput) WithCertConfig(certConfig *CertConfig) *UpdateCustomDomainInput

func (*UpdateCustomDomainInput) WithProtocol

func (c *UpdateCustomDomainInput) WithProtocol(protocol string) *UpdateCustomDomainInput

func (*UpdateCustomDomainInput) WithRouteConfig

func (c *UpdateCustomDomainInput) WithRouteConfig(routeConfig *RouteConfig) *UpdateCustomDomainInput

type UpdateCustomDomainObject

type UpdateCustomDomainObject struct {
	Protocol    *string      `json:"protocol"`
	RouteConfig *RouteConfig `json:"routeConfig"`
	CertConfig  *CertConfig  `json:"certConfig"`
}

UpdateCustomDomainInput defines input to update custom domain

type UpdateCustomDomainOutput

type UpdateCustomDomainOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

UpdateCustomDomainOutput define update custom domain response

func (UpdateCustomDomainOutput) GetRequestID

func (o UpdateCustomDomainOutput) GetRequestID() string

func (UpdateCustomDomainOutput) String

func (o UpdateCustomDomainOutput) String() string

type UpdateFunctionInput

type UpdateFunctionInput struct {
	ServiceName  *string
	FunctionName *string
	FunctionUpdateObject
	IfMatch *string
}

func NewUpdateFunctionInput

func NewUpdateFunctionInput(serviceName string, functionName string) *UpdateFunctionInput

func (*UpdateFunctionInput) GetHeaders

func (i *UpdateFunctionInput) GetHeaders() Header

func (*UpdateFunctionInput) GetPath

func (i *UpdateFunctionInput) GetPath() string

func (*UpdateFunctionInput) GetPayload

func (i *UpdateFunctionInput) GetPayload() interface{}

func (*UpdateFunctionInput) GetQueryParams

func (i *UpdateFunctionInput) GetQueryParams() url.Values

func (*UpdateFunctionInput) Validate

func (i *UpdateFunctionInput) Validate() error

func (*UpdateFunctionInput) WithCAPort

func (i *UpdateFunctionInput) WithCAPort(caPort int32) *UpdateFunctionInput

func (*UpdateFunctionInput) WithCode

func (i *UpdateFunctionInput) WithCode(code *Code) *UpdateFunctionInput

func (*UpdateFunctionInput) WithCustomContainerConfig

func (i *UpdateFunctionInput) WithCustomContainerConfig(customContainerConfig *CustomContainerConfig) *UpdateFunctionInput

func (*UpdateFunctionInput) WithDescription

func (i *UpdateFunctionInput) WithDescription(description string) *UpdateFunctionInput

func (*UpdateFunctionInput) WithEnvironmentVariables

func (i *UpdateFunctionInput) WithEnvironmentVariables(env map[string]string) *UpdateFunctionInput

func (*UpdateFunctionInput) WithHandler

func (i *UpdateFunctionInput) WithHandler(handler string) *UpdateFunctionInput

func (*UpdateFunctionInput) WithIfMatch

func (s *UpdateFunctionInput) WithIfMatch(ifMatch string) *UpdateFunctionInput

func (*UpdateFunctionInput) WithInitializationTimeout

func (i *UpdateFunctionInput) WithInitializationTimeout(initializationTimeout int32) *UpdateFunctionInput

func (*UpdateFunctionInput) WithInitializer

func (i *UpdateFunctionInput) WithInitializer(initializer string) *UpdateFunctionInput

func (*UpdateFunctionInput) WithInstanceConcurrency

func (i *UpdateFunctionInput) WithInstanceConcurrency(limit int32) *UpdateFunctionInput

func (*UpdateFunctionInput) WithInstanceType

func (i *UpdateFunctionInput) WithInstanceType(instanceType string) *UpdateFunctionInput

func (*UpdateFunctionInput) WithLayers

func (i *UpdateFunctionInput) WithLayers(layers []string) *UpdateFunctionInput

func (*UpdateFunctionInput) WithMemorySize

func (i *UpdateFunctionInput) WithMemorySize(memory int32) *UpdateFunctionInput

func (*UpdateFunctionInput) WithRuntime

func (i *UpdateFunctionInput) WithRuntime(runtime string) *UpdateFunctionInput

func (*UpdateFunctionInput) WithTimeout

func (i *UpdateFunctionInput) WithTimeout(timeout int32) *UpdateFunctionInput

type UpdateFunctionOutput

type UpdateFunctionOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

func (UpdateFunctionOutput) GetEtag

func (o UpdateFunctionOutput) GetEtag() string

func (UpdateFunctionOutput) GetRequestID

func (o UpdateFunctionOutput) GetRequestID() string

func (UpdateFunctionOutput) String

func (o UpdateFunctionOutput) String() string

type UpdateServiceInput

type UpdateServiceInput struct {
	ServiceName *string
	ServiceUpdateObject
	IfMatch *string
}

func NewUpdateServiceInput

func NewUpdateServiceInput(serviceName string) *UpdateServiceInput

func (*UpdateServiceInput) GetHeaders

func (i *UpdateServiceInput) GetHeaders() Header

func (*UpdateServiceInput) GetPath

func (i *UpdateServiceInput) GetPath() string

func (*UpdateServiceInput) GetPayload

func (i *UpdateServiceInput) GetPayload() interface{}

func (*UpdateServiceInput) GetQueryParams

func (i *UpdateServiceInput) GetQueryParams() url.Values

func (*UpdateServiceInput) Validate

func (i *UpdateServiceInput) Validate() error

func (*UpdateServiceInput) WithDescription

func (i *UpdateServiceInput) WithDescription(description string) *UpdateServiceInput

func (*UpdateServiceInput) WithIfMatch

func (i *UpdateServiceInput) WithIfMatch(ifMatch string) *UpdateServiceInput

func (*UpdateServiceInput) WithInternetAccess

func (i *UpdateServiceInput) WithInternetAccess(access bool) *UpdateServiceInput

func (*UpdateServiceInput) WithLogConfig

func (i *UpdateServiceInput) WithLogConfig(logConfig *LogConfig) *UpdateServiceInput

func (*UpdateServiceInput) WithNASConfig

func (i *UpdateServiceInput) WithNASConfig(nasConfig *NASConfig) *UpdateServiceInput

func (*UpdateServiceInput) WithRole

func (i *UpdateServiceInput) WithRole(role string) *UpdateServiceInput

func (*UpdateServiceInput) WithTracingConfig

func (i *UpdateServiceInput) WithTracingConfig(tracingConfig *TracingConfig) *UpdateServiceInput

func (*UpdateServiceInput) WithVPCConfig

func (i *UpdateServiceInput) WithVPCConfig(vpcConfig *VPCConfig) *UpdateServiceInput

type UpdateServiceOutput

type UpdateServiceOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

UpdateServiceOutput define get service response

func (UpdateServiceOutput) GetEtag

func (o UpdateServiceOutput) GetEtag() string

func (UpdateServiceOutput) GetRequestID

func (o UpdateServiceOutput) GetRequestID() string

func (UpdateServiceOutput) String

func (o UpdateServiceOutput) String() string

type UpdateTriggerInput

type UpdateTriggerInput struct {
	ServiceName  *string
	FunctionName *string
	TriggerName  *string
	TriggerUpdateObject
	IfMatch *string
	// contains filtered or unexported fields
}

func NewUpdateTriggerInput

func NewUpdateTriggerInput(serviceName string, functionName string, triggerName string) *UpdateTriggerInput

func (*UpdateTriggerInput) GetHeaders

func (i *UpdateTriggerInput) GetHeaders() Header

func (*UpdateTriggerInput) GetPath

func (i *UpdateTriggerInput) GetPath() string

func (*UpdateTriggerInput) GetPayload

func (i *UpdateTriggerInput) GetPayload() interface{}

func (*UpdateTriggerInput) GetQueryParams

func (i *UpdateTriggerInput) GetQueryParams() url.Values

func (*UpdateTriggerInput) Validate

func (i *UpdateTriggerInput) Validate() error

func (*UpdateTriggerInput) WithDescription

func (i *UpdateTriggerInput) WithDescription(desc string) *UpdateTriggerInput

func (*UpdateTriggerInput) WithHeader

func (i *UpdateTriggerInput) WithHeader(key, value string) *UpdateTriggerInput

func (*UpdateTriggerInput) WithIfMatch

func (s *UpdateTriggerInput) WithIfMatch(ifMatch string) *UpdateTriggerInput

func (*UpdateTriggerInput) WithInvocationRole

func (i *UpdateTriggerInput) WithInvocationRole(role string) *UpdateTriggerInput

func (*UpdateTriggerInput) WithQualifier

func (i *UpdateTriggerInput) WithQualifier(qualifier string) *UpdateTriggerInput

func (*UpdateTriggerInput) WithTriggerConfig

func (i *UpdateTriggerInput) WithTriggerConfig(config interface{}) *UpdateTriggerInput

type UpdateTriggerOutput

type UpdateTriggerOutput struct {
	Header http.Header
	// contains filtered or unexported fields
}

func (UpdateTriggerOutput) GetEtag

func (o UpdateTriggerOutput) GetEtag() string

func (UpdateTriggerOutput) GetRequestID

func (o UpdateTriggerOutput) GetRequestID() string

func (UpdateTriggerOutput) MarshalJSON

func (o UpdateTriggerOutput) MarshalJSON() ([]byte, error)

MarshalJSON marshals trigger metadata and excludes RawTriggerConfig

func (UpdateTriggerOutput) String

func (o UpdateTriggerOutput) String() string

func (*UpdateTriggerOutput) UnmarshalJSON

func (m *UpdateTriggerOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals the data to trigger metadata and sets TriggerConfig field to an actual trigger config. User can use type switches/assertion to get the actual trigger config.

type VPCConfig

type VPCConfig struct {
	VPCID           *string  `json:"vpcId"`
	VSwitchIDs      []string `json:"vSwitchIds"`
	SecurityGroupID *string  `json:"securityGroupId"`
}

VPCConfig defines the VPC config for service

func NewVPCConfig

func NewVPCConfig() *VPCConfig

func (*VPCConfig) WithSecurityGroupID

func (l *VPCConfig) WithSecurityGroupID(securityGroupID string) *VPCConfig

func (*VPCConfig) WithVPCID

func (l *VPCConfig) WithVPCID(vpcID string) *VPCConfig

func (*VPCConfig) WithVSwitchIDs

func (l *VPCConfig) WithVSwitchIDs(vSwitchIDs []string) *VPCConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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