v20180416

package
v3.0.959+incompatible Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Operation failed.
	FAILEDOPERATION = "FailedOperation"

	// Failed to create the API gateway trigger.
	FAILEDOPERATION_APIGATEWAY = "FailedOperation.ApiGateway"

	// Failed to create the trigger.
	FAILEDOPERATION_APIGW = "FailedOperation.Apigw"

	// This operation is not supported by the current async event status. Please try again later.
	FAILEDOPERATION_ASYNCEVENTSTATUS = "FailedOperation.AsyncEventStatus"

	// Login information verification failed and token verification failed.
	FAILEDOPERATION_AUTHFAILURE = "FailedOperation.AuthFailure"

	// Failed to query the role information.
	FAILEDOPERATION_CALLROLEFAILED = "FailedOperation.CallRoleFailed"

	// CopyAsyncRun parameter error
	FAILEDOPERATION_COPYASYNCRUN = "FailedOperation.CopyAsyncRun"

	// Failed to replicate the function.
	FAILEDOPERATION_COPYFAILED = "FailedOperation.CopyFailed"

	// Replication to this region is not supported.
	FAILEDOPERATION_COPYFUNCTION = "FailedOperation.CopyFunction"

	// Failed to operate on the COS resources.
	FAILEDOPERATION_COS = "FailedOperation.Cos"

	// Failed to create the alias.
	FAILEDOPERATION_CREATEALIAS = "FailedOperation.CreateAlias"

	// Failed to create the namespace.
	FAILEDOPERATION_CREATENAMESPACE = "FailedOperation.CreateNamespace"

	// This operation is not supported in the current function state.
	FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger"

	// This operation cannot be performed in the current debugging status.
	FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus"

	// Failed to delete the alias.
	FAILEDOPERATION_DELETEALIAS = "FailedOperation.DeleteAlias"

	// This operation cannot be performed in the current function status. Please try again when the function is in normal status.
	FAILEDOPERATION_DELETEFUNCTION = "FailedOperation.DeleteFunction"

	// Failed to delete the layer version.
	FAILEDOPERATION_DELETELAYERVERSION = "FailedOperation.DeleteLayerVersion"

	// The default namespace cannot be deleted.
	FAILEDOPERATION_DELETENAMESPACE = "FailedOperation.DeleteNamespace"

	// Failed to delete the trigger.
	FAILEDOPERATION_DELETETRIGGER = "FailedOperation.DeleteTrigger"

	// You cannot update code in the current function state. Please try again when the state is normal.
	FAILEDOPERATION_FUNCTIONNAMESTATUSERROR = "FailedOperation.FunctionNameStatusError"

	// Operation failed. The function is deploying.
	FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError"

	// This operation cannot be performed in the current function version status. Please try again when the version is in normal status.
	FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive"

	// Failed to get the alias information.
	FAILEDOPERATION_GETALIAS = "FailedOperation.GetAlias"

	// Failed to get the function code address.
	FAILEDOPERATION_GETFUNCTIONADDRESS = "FailedOperation.GetFunctionAddress"

	// The current account or namespace is in arrears. Please try again when it becomes available.
	FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"

	// Failed to invoke the function.
	FAILEDOPERATION_INVOKEFUNCTION = "FailedOperation.InvokeFunction"

	// Operation conflict.
	FAILEDOPERATION_OPERATIONCONFLICT = "FailedOperation.OperationConflict"

	// Failed to create the scheduled provisioned concurrency scaling action
	FAILEDOPERATION_PROVISIONCREATETIMER = "FailedOperation.ProvisionCreateTimer"

	// Failed to delete the scheduled provisioned concurrency scaling action
	FAILEDOPERATION_PROVISIONDELETETIMER = "FailedOperation.ProvisionDeleteTimer"

	// Running out of available provisioned concurrency quota
	FAILEDOPERATION_PROVISIONEDEXCEEDAVAILABLE = "FailedOperation.ProvisionedExceedAvailable"

	// The provisioned concurrency exceeds the limit.
	FAILEDOPERATION_PROVISIONEDEXCEEDRESERVED = "FailedOperation.ProvisionedExceedReserved"

	// The function version already has a provisioned concurrency setting task in progress. Please try again later.
	FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress"

	// Failed to publish the layer version.
	FAILEDOPERATION_PUBLISHLAYERVERSION = "FailedOperation.PublishLayerVersion"

	// You cannot publish a version in the current function state. Please try again when the state is normal.
	FAILEDOPERATION_PUBLISHVERSION = "FailedOperation.PublishVersion"

	//
	FAILEDOPERATION_QUERYERROR = "FailedOperation.QueryError"

	// The value of ReservedExceedTotal exceeds the limit.
	FAILEDOPERATION_RESERVEDEXCEEDTOTAL = "FailedOperation.ReservedExceedTotal"

	// The function already has a reserved concurrency setting task in progress. Please try again later.
	FAILEDOPERATION_RESERVEDINPROGRESS = "FailedOperation.ReservedInProgress"

	// ServiceClosed. Please check and try again.
	FAILEDOPERATION_SERVICECLOSED = "FailedOperation.ServiceClosed"

	// This topic does not exsit.
	FAILEDOPERATION_TOPICNOTEXIST = "FailedOperation.TopicNotExist"

	// The user already has a concurrency quota setting task in progress. Please try again later.
	FAILEDOPERATION_TOTALCONCURRENCYMEMORYINPROGRESS = "FailedOperation.TotalConcurrencyMemoryInProgress"

	// The specified service has not been activated. Please submit a ticket for activation.
	FAILEDOPERATION_UNOPENEDSERVICE = "FailedOperation.UnOpenedService"

	// Failed to update the alias.
	FAILEDOPERATION_UPDATEALIAS = "FailedOperation.UpdateAlias"

	// You cannot update code in the current function state. Please try again when the state is normal.
	FAILEDOPERATION_UPDATEFUNCTIONCODE = "FailedOperation.UpdateFunctionCode"

	// Failed to update the status
	FAILEDOPERATION_UPDATESTATUS = "FailedOperation.UpdateStatus"

	// The new status is the same as the previous one.
	FAILEDOPERATION_UPDATETRIGGERSTATUS = "FailedOperation.UpdateTriggerStatus"

	// Internal error.
	INTERNALERROR = "InternalError"

	// Internal errors occurred during the creation of the apigw trigger.
	INTERNALERROR_APIGATEWAY = "InternalError.ApiGateway"

	// ckafka API failure.
	INTERNALERROR_CKAFKA = "InternalError.Ckafka"

	// Failed to delete the cmq trigger.
	INTERNALERROR_CMQ = "InternalError.Cmq"

	// Failed to update the trigger.
	INTERNALERROR_COS = "InternalError.Cos"

	// ES error.
	INTERNALERROR_ES = "InternalError.ES"

	// Internal service error
	INTERNALERROR_EXCEPTION = "InternalError.Exception"

	// Internal system error.
	INTERNALERROR_SYSTEM = "InternalError.System"

	// Log parameter error
	INVALIDPARAMETER_CLS = "InvalidParameter.Cls"

	// The value of `FunctionName` does not conform to the specification. Please fix it and try again. For more information, please visit https://tencentcs.com/5jXKFnBW.
	INVALIDPARAMETER_FUNCTIONNAME = "InvalidParameter.FunctionName"

	// Function creation parameter error.
	INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"

	// Invalid request parameter.
	INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload"

	// Request size
	INVALIDPARAMETER_REQUESTTOOLARGE = "InvalidParameter.RequestTooLarge"

	// RoleCheck parameter error
	INVALIDPARAMETER_ROLECHECK = "InvalidParameter.RoleCheck"

	// Incorrect `RoutingConfig` parameter.
	INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig"

	// Incorrect parameter value.
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	// Invalid `Action` value. For more information, go to https://tencentcs.com/5jXKFnBW.
	INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action"

	// Incorrect `AdditionalVersionWeights` parameter.
	INVALIDPARAMETERVALUE_ADDITIONALVERSIONWEIGHTS = "InvalidParameterValue.AdditionalVersionWeights"

	// The default alias cannot be deleted. Please check and try again.
	INVALIDPARAMETERVALUE_ALIAS = "InvalidParameterValue.Alias"

	// ApiGateway parameter error.
	INVALIDPARAMETERVALUE_APIGATEWAY = "InvalidParameterValue.ApiGateway"

	// The value of Args is incorrect.
	INVALIDPARAMETERVALUE_ARGS = "InvalidParameterValue.Args"

	// The parameter for async retry configuration of the function is invalid.
	INVALIDPARAMETERVALUE_ASYNCTRIGGERCONFIG = "InvalidParameterValue.AsyncTriggerConfig"

	// Cdn error.
	INVALIDPARAMETERVALUE_CDN = "InvalidParameterValue.Cdn"

	// Ckafka error.
	INVALIDPARAMETERVALUE_CKAFKA = "InvalidParameterValue.Ckafka"

	// Function running parameter error
	INVALIDPARAMETERVALUE_CLIENTCONTEXT = "InvalidParameterValue.ClientContext"

	// Cmq error.
	INVALIDPARAMETERVALUE_CMQ = "InvalidParameterValue.Cmq"

	// Code error.
	INVALIDPARAMETERVALUE_CODE = "InvalidParameterValue.Code"

	// CodeSecret error.
	INVALIDPARAMETERVALUE_CODESECRET = "InvalidParameterValue.CodeSecret"

	// CodeSource error.
	INVALIDPARAMETERVALUE_CODESOURCE = "InvalidParameterValue.CodeSource"

	// The value of Command[Entrypoint] is incorrect.
	INVALIDPARAMETERVALUE_COMMAND = "InvalidParameterValue.Command"

	// Incorrect `CompatibleRuntimes` parameter.
	INVALIDPARAMETERVALUE_COMPATIBLERUNTIMES = "InvalidParameterValue.CompatibleRuntimes"

	// Incorrect `Content` parameter.
	INVALIDPARAMETERVALUE_CONTENT = "InvalidParameterValue.Content"

	// Cos error.
	INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos"

	// Invalid CosBucketName.
	INVALIDPARAMETERVALUE_COSBUCKETNAME = "InvalidParameterValue.CosBucketName"

	// The value of CosBucketRegion is invalid. Please modify and try again. See: https://tencentcs.com/5jXKFnBW
	INVALIDPARAMETERVALUE_COSBUCKETREGION = "InvalidParameterValue.CosBucketRegion"

	// COS notification rule conflict
	INVALIDPARAMETERVALUE_COSNOTIFYRULECONFLICT = "InvalidParameterValue.CosNotifyRuleConflict"

	// Invalid CosObjectName.
	INVALIDPARAMETERVALUE_COSOBJECTNAME = "InvalidParameterValue.CosObjectName"

	// CustomArgument exceeds the length limit.
	INVALIDPARAMETERVALUE_CUSTOMARGUMENT = "InvalidParameterValue.CustomArgument"

	// DateTime error.
	INVALIDPARAMETERVALUE_DATETIME = "InvalidParameterValue.DateTime"

	// Failed to create the default namespace.
	INVALIDPARAMETERVALUE_DEFAULTNAMESPACE = "InvalidParameterValue.DefaultNamespace"

	// The code parameter of the function template corresponding with the DemoID is error.
	INVALIDPARAMETERVALUE_DEMO = "InvalidParameterValue.Demo"

	// The DemoId does not exist.
	INVALIDPARAMETERVALUE_DEMOID = "InvalidParameterValue.DemoId"

	// Description error.
	INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"

	// The configuration of the environment variable DNS[OS_NAMESERVER] is incorrect.
	INVALIDPARAMETERVALUE_DNSINFO = "InvalidParameterValue.DnsInfo"

	// The value of `Enable` does not conform to the specification. Please fix it and try again. For more information, please visit https://tencentcs.com/5jXKFnBW.
	INVALIDPARAMETERVALUE_ENABLE = "InvalidParameterValue.Enable"

	// Environment error.
	INVALIDPARAMETERVALUE_ENVIRONMENT = "InvalidParameterValue.Environment"

	// Filters parameter error.
	INVALIDPARAMETERVALUE_FILTERS = "InvalidParameterValue.Filters"

	// The value of `FunctionName` is incorrect. See https://tencentcs.com/5jXKFnBW
	INVALIDPARAMETERVALUE_FUNCTION = "InvalidParameterValue.Function"

	// The function does not exist.
	INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"

	// Request ID error
	INVALIDPARAMETERVALUE_FUNCTIONREQUESTID = "InvalidParameterValue.FunctionRequestId"

	// FunctionType error
	INVALIDPARAMETERVALUE_FUNCTIONTYPE = "InvalidParameterValue.FunctionType"

	// The format of GitBranch is incorrect.
	INVALIDPARAMETERVALUE_GITBRANCH = "InvalidParameterValue.GitBranch"

	// The format of GitDirectory is incorrect.
	INVALIDPARAMETERVALUE_GITDIRECTORY = "InvalidParameterValue.GitDirectory"

	// The format of GitPassword is incorrect.
	INVALIDPARAMETERVALUE_GITPASSWORD = "InvalidParameterValue.GitPassword"

	// The format of GitUrl is incorrect.
	INVALIDPARAMETERVALUE_GITURL = "InvalidParameterValue.GitUrl"

	// The format of GitUserName is incorrect.
	INVALIDPARAMETERVALUE_GITUSERNAME = "InvalidParameterValue.GitUserName"

	// Handler error.
	INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler"

	// ImageType error
	INVALIDPARAMETERVALUE_IMAGETYPE = "InvalidParameterValue.ImageType"

	// The input of imageUri is incorrect.
	INVALIDPARAMETERVALUE_IMAGEURI = "InvalidParameterValue.ImageUri"

	// Invalid InlineZipFile.
	INVALIDPARAMETERVALUE_INLINEZIPFILE = "InvalidParameterValue.InlineZipFile"

	// The `InvokeType` value does not conform to the specification. Please fix it and try again.
	INVALIDPARAMETERVALUE_INVOKETYPE = "InvalidParameterValue.InvokeType"

	// Incorrect `LayerName` parameter.
	INVALIDPARAMETERVALUE_LAYERNAME = "InvalidParameterValue.LayerName"

	// Limit error.
	INVALIDPARAMETERVALUE_LIMIT = "InvalidParameterValue.Limit"

	// The parameter exceeds the length limit.
	INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"

	// MinCapacity parameter input error.
	INVALIDPARAMETERVALUE_MINCAPACITY = "InvalidParameterValue.MinCapacity"

	// Incorrect `Name` parameter.
	INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"

	// Namespace error.
	INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"

	// Incorrect Namespace. A namespace contains up to 30 characters of letters, digits, hyphens (-), and underscores (_).
	INVALIDPARAMETERVALUE_NAMESPACEINVALID = "InvalidParameterValue.NamespaceInvalid"

	// Invalid offset.
	INVALIDPARAMETERVALUE_OFFSET = "InvalidParameterValue.Offset"

	// Order error.
	INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order"

	// The value of `OrderBy` does not conform to the specification. Please fix it and try again. For more information, please visit https://tencentcs.com/5jXKFnBW.
	INVALIDPARAMETERVALUE_ORDERBY = "InvalidParameterValue.OrderBy"

	// The input parameter is not in the standard JSON format.
	INVALIDPARAMETERVALUE_PARAM = "InvalidParameterValue.Param"

	// Cron expression of the scheduled action already exists
	INVALIDPARAMETERVALUE_PROVISIONTRIGGERCRONCONFIGDUPLICATE = "InvalidParameterValue.ProvisionTriggerCronConfigDuplicate"

	// TriggerName input parameter error
	INVALIDPARAMETERVALUE_PROVISIONTRIGGERNAME = "InvalidParameterValue.ProvisionTriggerName"

	// TriggerName already exists
	INVALIDPARAMETERVALUE_PROVISIONTRIGGERNAMEDUPLICATE = "InvalidParameterValue.ProvisionTriggerNameDuplicate"

	// ProvisionType input parameter error
	INVALIDPARAMETERVALUE_PROVISIONTYPE = "InvalidParameterValue.ProvisionType"

	// Unsupported function version.
	INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier"

	// Version parameter error
	INVALIDPARAMETERVALUE_QUERYVERSION = "InvalidParameterValue.QueryVersion"

	// The value Enterprise Edition image ID [RegistryId] is incorrect.
	INVALIDPARAMETERVALUE_REGISTRYID = "InvalidParameterValue.RegistryId"

	// Invalid RetCode
	INVALIDPARAMETERVALUE_RETCODE = "InvalidParameterValue.RetCode"

	// The value of `RoutingConfig` does not conform to the specification. Please fix it and try again. For more information, please visit https://tencentcs.com/5jXKFnBW.
	INVALIDPARAMETERVALUE_ROUTINGCONFIG = "InvalidParameterValue.RoutingConfig"

	// Runtime error.
	INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime"

	// The searchkey is not `Keyword`, `Tag`, or `Runtime`.
	INVALIDPARAMETERVALUE_SEARCHKEY = "InvalidParameterValue.SearchKey"

	// SecretInfo error
	INVALIDPARAMETERVALUE_SECRETINFO = "InvalidParameterValue.SecretInfo"

	// Invalid ServiceName.
	INVALIDPARAMETERVALUE_SERVICENAME = "InvalidParameterValue.ServiceName"

	// The value of `Stamp` does not meet the specification. Please fix it and try again.
	INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp"

	// The start time is incorrect.
	INVALIDPARAMETERVALUE_STARTTIME = "InvalidParameterValue.StartTime"

	// You need to specify both the start time and the end time.
	INVALIDPARAMETERVALUE_STARTTIMEORENDTIME = "InvalidParameterValue.StartTimeOrEndTime"

	// The `Status` value does not conform to the specification. Please fix it and try again.
	INVALIDPARAMETERVALUE_STATUS = "InvalidParameterValue.Status"

	// Invalid TempCosObjectName.
	INVALIDPARAMETERVALUE_TEMPCOSOBJECTNAME = "InvalidParameterValue.TempCosObjectName"

	// TrackingTarget parameter error
	INVALIDPARAMETERVALUE_TRACKINGTARGET = "InvalidParameterValue.TrackingTarget"

	// TriggerCronConfig input parameter error
	INVALIDPARAMETERVALUE_TRIGGERCRONCONFIG = "InvalidParameterValue.TriggerCronConfig"

	// The interval of triggering specified in TriggerCronConfig is smaller than the specified value.
	INVALIDPARAMETERVALUE_TRIGGERCRONCONFIGTIMEINTERVAL = "InvalidParameterValue.TriggerCronConfigTimeInterval"

	// TriggerDesc error.
	INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc"

	// TriggerName error.
	INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName"

	// TriggerProvisionedConcurrencyNum input parameter error
	INVALIDPARAMETERVALUE_TRIGGERPROVISIONEDCONCURRENCYNUM = "InvalidParameterValue.TriggerProvisionedConcurrencyNum"

	// Type error.
	INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type"

	// A non-standard zip file was detected. Please recompress and try again.
	INVALIDPARAMETERVALUE_ZIPFILE = "InvalidParameterValue.ZipFile"

	// Failed to Base64-decode the compressed file: `Incorrect padding`. Please fix it and try again.
	INVALIDPARAMETERVALUE_ZIPFILEBASE64BINASCIIERROR = "InvalidParameterValue.ZipFileBase64BinasciiError"

	// The number of aliases exceeds the upper limit.
	LIMITEXCEEDED_ALIAS = "LimitExceeded.Alias"

	// The Cdn usage exceeds the upper limit.
	LIMITEXCEEDED_CDN = "LimitExceeded.Cdn"

	// Reached the upper limit of function versions enabling image acceleration
	LIMITEXCEEDED_CONTAINERIMAGEACCELERATE = "LimitExceeded.ContainerImageAccelerate"

	// Reached the upper limit of function versions enabling image acceleration
	LIMITEXCEEDED_CONTAINERIMAGEACCELERATEQUOTA = "LimitExceeded.ContainerImageAccelerateQuota"

	// If the number of functions exceeds the upper limit, you can apply for an increase by [submitting a ticket](https://intl.cloud.tencent.com/act/event/Online_service?from=scf%7Cindex?from_cn_redirect=1).
	LIMITEXCEEDED_FUNCTION = "LimitExceeded.Function"

	// The number of functions under the same topic exceeds the upper limit.
	LIMITEXCEEDED_FUNCTIONONTOPIC = "LimitExceeded.FunctionOnTopic"

	// The value of `FunctionProvisionedConcurrencyMemory` has reached the upper limit. You can submit a ticket to increase it at https://mc.tencent.com/dI7DzbBV.
	LIMITEXCEEDED_FUNCTIONPROVISIONEDCONCURRENCYMEMORY = "LimitExceeded.FunctionProvisionedConcurrencyMemory"

	// The function's reserved concurrency memory has exceeded the limit.
	LIMITEXCEEDED_FUNCTIONRESERVEDCONCURRENCYMEMORY = "LimitExceeded.FunctionReservedConcurrencyMemory"

	// The value of `FunctionTotalProvisionedConcurrencyMemory` has reached the upper limit. You can submit a ticket to increase it at https://mc.tencent.com/dI7DzbBV.
	LIMITEXCEEDED_FUNCTIONTOTALPROVISIONEDCONCURRENCYMEMORY = "LimitExceeded.FunctionTotalProvisionedConcurrencyMemory"

	// The total amount of provisioned concurrency of the function has exceeded the limit.
	LIMITEXCEEDED_FUNCTIONTOTALPROVISIONEDCONCURRENCYNUM = "LimitExceeded.FunctionTotalProvisionedConcurrencyNum"

	// The number of layer versions exceeds the upper limit.
	LIMITEXCEEDED_LAYERVERSIONS = "LimitExceeded.LayerVersions"

	//
	LIMITEXCEEDED_LAYERS = "LimitExceeded.Layers"

	// Reached the upper limit of dynamic scaling.
	LIMITEXCEEDED_MAXCAPACITY = "LimitExceeded.MaxCapacity"

	// The memory exceeds the upper limit.
	LIMITEXCEEDED_MEMORY = "LimitExceeded.Memory"

	// The message retention period in the async retry configuration of the function exceeds the limit.
	LIMITEXCEEDED_MSGTTL = "LimitExceeded.MsgTTL"

	// If the number of namespaces exceeds the upper limit, you can apply for an increase by [submitting a ticket](https://intl.cloud.tencent.com/act/event/Online_service?from=scf%7Cindex?from_cn_redirect=1).
	LIMITEXCEEDED_NAMESPACE = "LimitExceeded.Namespace"

	// Offset exceeds the upper limit.
	LIMITEXCEEDED_OFFSET = "LimitExceeded.Offset"

	// The number of provisioned concurrency specified for the scheduled action is too large.
	LIMITEXCEEDED_PROVISIONTRIGGERACTION = "LimitExceeded.ProvisionTriggerAction"

	// The interval of triggering is too short.
	LIMITEXCEEDED_PROVISIONTRIGGERINTERVAL = "LimitExceeded.ProvisionTriggerInterval"

	// Reached the upper limit of quota
	LIMITEXCEEDED_QUOTA = "LimitExceeded.Quota"

	// The number of retry attempts in the async retry configuration of the function exceeds the limit.
	LIMITEXCEEDED_RETRYNUM = "LimitExceeded.RetryNum"

	// Timeout exceeds the upper limit.
	LIMITEXCEEDED_TIMEOUT = "LimitExceeded.Timeout"

	// The account concurrency memory has exceeded the limit.
	LIMITEXCEEDED_TOTALCONCURRENCYMEMORY = "LimitExceeded.TotalConcurrencyMemory"

	// If the number of triggers exceeds the upper limit, you can apply for an increase by [submitting a ticket](https://intl.cloud.tencent.com/act/event/Online_service?from=scf%7Cindex?from_cn_redirect=1).
	LIMITEXCEEDED_TRIGGER = "LimitExceeded.Trigger"

	// The value of `UserTotalConcurrencyMemory` has reached the upper limit. You can submit a ticket to increase it at https://tencentcs.com/7Fixwt63.
	LIMITEXCEEDED_USERTOTALCONCURRENCYMEMORY = "LimitExceeded.UserTotalConcurrencyMemory"

	// Missing parameter.
	MISSINGPARAMETER = "MissingParameter"

	// This account has been isolated.
	OPERATIONDENIED_ACCOUNTISOLATE = "OperationDenied.AccountIsolate"

	//
	OPERATIONDENIED_ACCOUNTNOTEXISTS = "OperationDenied.AccountNotExists"

	// The resource is in use.
	RESOURCEINUSE = "ResourceInUse"

	// The alias is in use.
	RESOURCEINUSE_ALIAS = "ResourceInUse.Alias"

	// Cdn is in use.
	RESOURCEINUSE_CDN = "ResourceInUse.Cdn"

	// Cmq is in use.
	RESOURCEINUSE_CMQ = "ResourceInUse.Cmq"

	// Cos is in use.
	RESOURCEINUSE_COS = "ResourceInUse.Cos"

	// This FunctionName already exists.
	RESOURCEINUSE_FUNCTIONNAME = "ResourceInUse.FunctionName"

	// The layer version is in use.
	RESOURCEINUSE_LAYERVERSION = "ResourceInUse.LayerVersion"

	// This Namespace already exists.
	RESOURCEINUSE_NAMESPACE = "ResourceInUse.Namespace"

	// This TriggerName already exists.
	RESOURCEINUSE_TRIGGER = "ResourceInUse.Trigger"

	// This TriggerName already exists.
	RESOURCEINUSE_TRIGGERNAME = "ResourceInUse.TriggerName"

	// Insufficient COS resources.
	RESOURCEINSUFFICIENT_COS = "ResourceInsufficient.COS"

	// The resource does not exist.
	RESOURCENOTFOUND = "ResourceNotFound"

	// The alias does not exist.
	RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias"

	// The specified `AsyncEvent` was not found. Please create it and try again.
	RESOURCENOTFOUND_ASYNCEVENT = "ResourceNotFound.AsyncEvent"

	// The tag key does not exist.
	RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound"

	// Cdn does not exist.
	RESOURCENOTFOUND_CDN = "ResourceNotFound.Cdn"

	// Ckafka does not exist.
	RESOURCENOTFOUND_CKAFKA = "ResourceNotFound.Ckafka"

	// Cmq does not exist.
	RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq"

	// Cos does not exist.
	RESOURCENOTFOUND_COS = "ResourceNotFound.Cos"

	// The function does not exist.
	RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"

	// The function does not exist.
	RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"

	// The function version does not exist.
	RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"

	// Failed to find the specified `ImageConfig`. Please create it first.
	RESOURCENOTFOUND_IMAGECONFIG = "ResourceNotFound.ImageConfig"

	// The layer does not exist.
	RESOURCENOTFOUND_LAYER = "ResourceNotFound.Layer"

	// The layer version does not exist.
	RESOURCENOTFOUND_LAYERVERSION = "ResourceNotFound.LayerVersion"

	// Namespace does not exist.
	RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"

	// The version does not exist.
	RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier"

	// The role does not exist.
	RESOURCENOTFOUND_ROLECHECK = "ResourceNotFound.RoleCheck"

	// Timer does not exist.
	RESOURCENOTFOUND_TIMER = "ResourceNotFound.Timer"

	// The concurrency memory quota resource was not found.
	RESOURCENOTFOUND_TOTALCONCURRENCYMEMORY = "ResourceNotFound.TotalConcurrencyMemory"

	// The trigger does not exist.
	RESOURCENOTFOUND_TRIGGER = "ResourceNotFound.Trigger"

	// The version does not exist.
	RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"

	// Your balance is insufficient. Please top up first.
	RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance"

	// Unauthorized operation.
	UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

	// CAM authentication failed.
	UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

	// You do not have permissions to access the code.
	UNAUTHORIZEDOPERATION_CODESECRET = "UnauthorizedOperation.CodeSecret"

	// You do not have permissions.
	UNAUTHORIZEDOPERATION_CREATETRIGGER = "UnauthorizedOperation.CreateTrigger"

	// Unauthorized operation.
	UNAUTHORIZEDOPERATION_DELETEFUNCTION = "UnauthorizedOperation.DeleteFunction"

	// You do not have permissions.
	UNAUTHORIZEDOPERATION_DELETETRIGGER = "UnauthorizedOperation.DeleteTrigger"

	// This API is not called from the console.
	UNAUTHORIZEDOPERATION_NOTMC = "UnauthorizedOperation.NotMC"

	// Region error.
	UNAUTHORIZEDOPERATION_REGION = "UnauthorizedOperation.Region"

	// Not authorized to access your COS resources.
	UNAUTHORIZEDOPERATION_ROLE = "UnauthorizedOperation.Role"

	// The `Appid` of TempCos is not consistent with the APPID of the request account.
	UNAUTHORIZEDOPERATION_TEMPCOSAPPID = "UnauthorizedOperation.TempCosAppid"

	// Operation failed.
	UNAUTHORIZEDOPERATION_UPDATEFUNCTIONCODE = "UnauthorizedOperation.UpdateFunctionCode"

	// You are not authorized for the operation.
	UNAUTHORIZEDOPERATION_UPDATETRIGGERSTATUS = "UnauthorizedOperation.UpdateTriggerStatus"

	// Unsupported operation.
	UNSUPPORTEDOPERATION = "UnsupportedOperation"

	// The resource is bound to an alias, and the current operation cannot be performed. Please unbind the alias and try again.
	UNSUPPORTEDOPERATION_ALIASBIND = "UnsupportedOperation.AliasBind"

	// Cdn is not supported.
	UNSUPPORTEDOPERATION_CDN = "UnsupportedOperation.Cdn"

	// Cos operation is not supported.
	UNSUPPORTEDOPERATION_COS = "UnsupportedOperation.Cos"

	// The specified EipFixed does not exist.
	UNSUPPORTEDOPERATION_EIPFIXED = "UnsupportedOperation.EipFixed"

	// Unsupported region.
	UNSUPPORTEDOPERATION_NOTSUPPORTREGION = "UnsupportedOperation.NotSupportRegion"

	//
	UNSUPPORTEDOPERATION_PUBLISHVERSION = "UnsupportedOperation.PublishVersion"

	// This region is not supported.
	UNSUPPORTEDOPERATION_REGION = "UnsupportedOperation.Region"

	// Trigger operation is not supported.
	UNSUPPORTEDOPERATION_TRIGGER = "UnsupportedOperation.Trigger"

	// The specified configuration is not supported. Please modify and try again.
	UNSUPPORTEDOPERATION_UPDATEFUNCTIONEVENTINVOKECONFIG = "UnsupportedOperation.UpdateFunctionEventInvokeConfig"

	// The specified VpcConfig does not exist.
	UNSUPPORTEDOPERATION_VPCCONFIG = "UnsupportedOperation.VpcConfig"
)
View Source
const APIVersion = "2018-04-16"

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {
	// Master version pointed to by the alias
	FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"`

	// Alias name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Routing information of alias
	// Note: this field may return null, indicating that no valid values can be obtained.
	RoutingConfig *RoutingConfig `json:"RoutingConfig,omitnil,omitempty" name:"RoutingConfig"`

	// Description
	// Note: this field may return null, indicating that no valid values can be obtained.
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Creation time
	// Note: this field may return null, indicating that no valid values can be obtained.
	AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"`

	// Update time
	// Note: this field may return null, indicating that no valid values can be obtained.
	ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"`
}

type AsyncEvent

type AsyncEvent struct {
	// Invocation request ID
	InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"`

	// Invocation type
	InvokeType *string `json:"InvokeType,omitnil,omitempty" name:"InvokeType"`

	// Function version
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Event status. Values: `RUNNING`; `FINISHED` (invoked successfully); `ABORTED` (invocation ended); `FAILED` (invocation failed)
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// Invocation start time in the format of "%Y-%m-%d %H:%M:%S.%f"
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// Invocation end time in the format of "%Y-%m-%d %H:%M:%S.%f"
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

type AsyncEventStatus

type AsyncEventStatus struct {
	// Async event status. Values: `RUNNING` (running); `FINISHED` (invoked successfully); `ABORTED` (invocation ended); `FAILED` (invocation failed).
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// Request status code
	StatusCode *int64 `json:"StatusCode,omitnil,omitempty" name:"StatusCode"`

	// Async execution request ID
	InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"`
}

type AsyncTriggerConfig

type AsyncTriggerConfig struct {
	// Async retry configuration of function upon user error
	RetryConfig []*RetryConfig `json:"RetryConfig,omitnil,omitempty" name:"RetryConfig"`

	// Message retention period
	MsgTTL *int64 `json:"MsgTTL,omitnil,omitempty" name:"MsgTTL"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) CopyFunction

func (c *Client) CopyFunction(request *CopyFunctionRequest) (response *CopyFunctionResponse, err error)

CopyFunction This API is used to replicate a function. You can store the replicated function in a specified Region and Namespace.

Note: This API **does not** replicate the following objects or attributes of the function:

1. Function trigger

2. Versions other than $LATEST

3. CLS target of the logs configured in the function

You can manually configure the function after replication as required.

error code that may be returned:

FAILEDOPERATION_COPYASYNCRUN = "FailedOperation.CopyAsyncRun"
FAILEDOPERATION_COPYFAILED = "FailedOperation.CopyFailed"
FAILEDOPERATION_COPYFUNCTION = "FailedOperation.CopyFunction"
INTERNALERROR = "InternalError"
INTERNALERROR_EXCEPTION = "InternalError.Exception"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE_CODE = "InvalidParameterValue.Code"
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
INVALIDPARAMETERVALUE_ENVIRONMENT = "InvalidParameterValue.Environment"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler"
INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime"
LIMITEXCEEDED_FUNCTION = "LimitExceeded.Function"
LIMITEXCEEDED_MEMORY = "LimitExceeded.Memory"
LIMITEXCEEDED_TIMEOUT = "LimitExceeded.Timeout"
RESOURCEINUSE_FUNCTIONNAME = "ResourceInUse.FunctionName"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_REGION = "UnauthorizedOperation.Region"
UNSUPPORTEDOPERATION_REGION = "UnsupportedOperation.Region"

func (*Client) CopyFunctionWithContext

func (c *Client) CopyFunctionWithContext(ctx context.Context, request *CopyFunctionRequest) (response *CopyFunctionResponse, err error)

CopyFunction This API is used to replicate a function. You can store the replicated function in a specified Region and Namespace.

Note: This API **does not** replicate the following objects or attributes of the function:

1. Function trigger

2. Versions other than $LATEST

3. CLS target of the logs configured in the function

You can manually configure the function after replication as required.

error code that may be returned:

FAILEDOPERATION_COPYASYNCRUN = "FailedOperation.CopyAsyncRun"
FAILEDOPERATION_COPYFAILED = "FailedOperation.CopyFailed"
FAILEDOPERATION_COPYFUNCTION = "FailedOperation.CopyFunction"
INTERNALERROR = "InternalError"
INTERNALERROR_EXCEPTION = "InternalError.Exception"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE_CODE = "InvalidParameterValue.Code"
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
INVALIDPARAMETERVALUE_ENVIRONMENT = "InvalidParameterValue.Environment"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler"
INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime"
LIMITEXCEEDED_FUNCTION = "LimitExceeded.Function"
LIMITEXCEEDED_MEMORY = "LimitExceeded.Memory"
LIMITEXCEEDED_TIMEOUT = "LimitExceeded.Timeout"
RESOURCEINUSE_FUNCTIONNAME = "ResourceInUse.FunctionName"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_REGION = "UnauthorizedOperation.Region"
UNSUPPORTEDOPERATION_REGION = "UnsupportedOperation.Region"

func (*Client) CreateAlias

func (c *Client) CreateAlias(request *CreateAliasRequest) (response *CreateAliasResponse, err error)

CreateAlias This API is used to create an alias for a function version. You can use the alias to mark a specific function version such as DEV/RELEASE. You can also modify the version pointed to by the alias at any time.

An alias must point to a master version and can point to an additional version at the same time. If you specify an alias when invoking a function, the request will be sent to the versions pointed to by the alias. You can configure the ratio between the master version and additional version during request sending.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_CREATEALIAS = "FailedOperation.CreateAlias"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig"
INVALIDPARAMETERVALUE_ADDITIONALVERSIONWEIGHTS = "InvalidParameterValue.AdditionalVersionWeights"
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
INVALIDPARAMETERVALUE_ROUTINGCONFIG = "InvalidParameterValue.RoutingConfig"
LIMITEXCEEDED_ALIAS = "LimitExceeded.Alias"
RESOURCEINUSE = "ResourceInUse"
RESOURCEINUSE_ALIAS = "ResourceInUse.Alias"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) CreateAliasWithContext

func (c *Client) CreateAliasWithContext(ctx context.Context, request *CreateAliasRequest) (response *CreateAliasResponse, err error)

CreateAlias This API is used to create an alias for a function version. You can use the alias to mark a specific function version such as DEV/RELEASE. You can also modify the version pointed to by the alias at any time.

An alias must point to a master version and can point to an additional version at the same time. If you specify an alias when invoking a function, the request will be sent to the versions pointed to by the alias. You can configure the ratio between the master version and additional version during request sending.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_CREATEALIAS = "FailedOperation.CreateAlias"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig"
INVALIDPARAMETERVALUE_ADDITIONALVERSIONWEIGHTS = "InvalidParameterValue.AdditionalVersionWeights"
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
INVALIDPARAMETERVALUE_ROUTINGCONFIG = "InvalidParameterValue.RoutingConfig"
LIMITEXCEEDED_ALIAS = "LimitExceeded.Alias"
RESOURCEINUSE = "ResourceInUse"
RESOURCEINUSE_ALIAS = "ResourceInUse.Alias"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) CreateNamespace

func (c *Client) CreateNamespace(request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error)

CreateNamespace This API is used to create a namespace based on the input parameters.

error code that may be returned:

FAILEDOPERATION_CREATENAMESPACE = "FailedOperation.CreateNamespace"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action"
INVALIDPARAMETERVALUE_DEFAULTNAMESPACE = "InvalidParameterValue.DefaultNamespace"
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_NAMESPACEINVALID = "InvalidParameterValue.NamespaceInvalid"
INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp"
LIMITEXCEEDED_NAMESPACE = "LimitExceeded.Namespace"
RESOURCEINUSE = "ResourceInUse"
RESOURCEINUSE_NAMESPACE = "ResourceInUse.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_ROLE = "UnauthorizedOperation.Role"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) CreateNamespaceWithContext

func (c *Client) CreateNamespaceWithContext(ctx context.Context, request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error)

CreateNamespace This API is used to create a namespace based on the input parameters.

error code that may be returned:

FAILEDOPERATION_CREATENAMESPACE = "FailedOperation.CreateNamespace"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action"
INVALIDPARAMETERVALUE_DEFAULTNAMESPACE = "InvalidParameterValue.DefaultNamespace"
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_NAMESPACEINVALID = "InvalidParameterValue.NamespaceInvalid"
INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp"
LIMITEXCEEDED_NAMESPACE = "LimitExceeded.Namespace"
RESOURCEINUSE = "ResourceInUse"
RESOURCEINUSE_NAMESPACE = "ResourceInUse.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_ROLE = "UnauthorizedOperation.Role"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) CreateTrigger

func (c *Client) CreateTrigger(request *CreateTriggerRequest) (response *CreateTriggerResponse, err error)

CreateTrigger This API is used to create a trigger based on the input parameters.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_APIGATEWAY = "FailedOperation.ApiGateway"
FAILEDOPERATION_APIGW = "FailedOperation.Apigw"
FAILEDOPERATION_COS = "FailedOperation.Cos"
FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger"
INTERNALERROR_APIGATEWAY = "InternalError.ApiGateway"
INTERNALERROR_CKAFKA = "InternalError.Ckafka"
INTERNALERROR_CMQ = "InternalError.Cmq"
INTERNALERROR_COS = "InternalError.Cos"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_APIGATEWAY = "InvalidParameterValue.ApiGateway"
INVALIDPARAMETERVALUE_CDN = "InvalidParameterValue.Cdn"
INVALIDPARAMETERVALUE_CKAFKA = "InvalidParameterValue.Ckafka"
INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos"
INVALIDPARAMETERVALUE_COSNOTIFYRULECONFLICT = "InvalidParameterValue.CosNotifyRuleConflict"
INVALIDPARAMETERVALUE_CUSTOMARGUMENT = "InvalidParameterValue.CustomArgument"
INVALIDPARAMETERVALUE_ENABLE = "InvalidParameterValue.Enable"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_SECRETINFO = "InvalidParameterValue.SecretInfo"
INVALIDPARAMETERVALUE_SERVICENAME = "InvalidParameterValue.ServiceName"
INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc"
INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName"
INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type"
INVALIDPARAMETERVALUE_ZIPFILE = "InvalidParameterValue.ZipFile"
LIMITEXCEEDED_CDN = "LimitExceeded.Cdn"
LIMITEXCEEDED_FUNCTIONONTOPIC = "LimitExceeded.FunctionOnTopic"
LIMITEXCEEDED_TRIGGER = "LimitExceeded.Trigger"
RESOURCEINUSE = "ResourceInUse"
RESOURCEINUSE_CDN = "ResourceInUse.Cdn"
RESOURCEINUSE_CMQ = "ResourceInUse.Cmq"
RESOURCEINUSE_COS = "ResourceInUse.Cos"
RESOURCEINUSE_TRIGGER = "ResourceInUse.Trigger"
RESOURCEINUSE_TRIGGERNAME = "ResourceInUse.TriggerName"
RESOURCEINSUFFICIENT_COS = "ResourceInsufficient.COS"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_CDN = "ResourceNotFound.Cdn"
RESOURCENOTFOUND_CKAFKA = "ResourceNotFound.Ckafka"
RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq"
RESOURCENOTFOUND_COS = "ResourceNotFound.Cos"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_CREATETRIGGER = "UnauthorizedOperation.CreateTrigger"
UNSUPPORTEDOPERATION = "UnsupportedOperation"
UNSUPPORTEDOPERATION_CDN = "UnsupportedOperation.Cdn"
UNSUPPORTEDOPERATION_COS = "UnsupportedOperation.Cos"
UNSUPPORTEDOPERATION_TRIGGER = "UnsupportedOperation.Trigger"

func (*Client) CreateTriggerWithContext

func (c *Client) CreateTriggerWithContext(ctx context.Context, request *CreateTriggerRequest) (response *CreateTriggerResponse, err error)

CreateTrigger This API is used to create a trigger based on the input parameters.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_APIGATEWAY = "FailedOperation.ApiGateway"
FAILEDOPERATION_APIGW = "FailedOperation.Apigw"
FAILEDOPERATION_COS = "FailedOperation.Cos"
FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger"
INTERNALERROR_APIGATEWAY = "InternalError.ApiGateway"
INTERNALERROR_CKAFKA = "InternalError.Ckafka"
INTERNALERROR_CMQ = "InternalError.Cmq"
INTERNALERROR_COS = "InternalError.Cos"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_APIGATEWAY = "InvalidParameterValue.ApiGateway"
INVALIDPARAMETERVALUE_CDN = "InvalidParameterValue.Cdn"
INVALIDPARAMETERVALUE_CKAFKA = "InvalidParameterValue.Ckafka"
INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos"
INVALIDPARAMETERVALUE_COSNOTIFYRULECONFLICT = "InvalidParameterValue.CosNotifyRuleConflict"
INVALIDPARAMETERVALUE_CUSTOMARGUMENT = "InvalidParameterValue.CustomArgument"
INVALIDPARAMETERVALUE_ENABLE = "InvalidParameterValue.Enable"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_SECRETINFO = "InvalidParameterValue.SecretInfo"
INVALIDPARAMETERVALUE_SERVICENAME = "InvalidParameterValue.ServiceName"
INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc"
INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName"
INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type"
INVALIDPARAMETERVALUE_ZIPFILE = "InvalidParameterValue.ZipFile"
LIMITEXCEEDED_CDN = "LimitExceeded.Cdn"
LIMITEXCEEDED_FUNCTIONONTOPIC = "LimitExceeded.FunctionOnTopic"
LIMITEXCEEDED_TRIGGER = "LimitExceeded.Trigger"
RESOURCEINUSE = "ResourceInUse"
RESOURCEINUSE_CDN = "ResourceInUse.Cdn"
RESOURCEINUSE_CMQ = "ResourceInUse.Cmq"
RESOURCEINUSE_COS = "ResourceInUse.Cos"
RESOURCEINUSE_TRIGGER = "ResourceInUse.Trigger"
RESOURCEINUSE_TRIGGERNAME = "ResourceInUse.TriggerName"
RESOURCEINSUFFICIENT_COS = "ResourceInsufficient.COS"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_CDN = "ResourceNotFound.Cdn"
RESOURCENOTFOUND_CKAFKA = "ResourceNotFound.Ckafka"
RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq"
RESOURCENOTFOUND_COS = "ResourceNotFound.Cos"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_CREATETRIGGER = "UnauthorizedOperation.CreateTrigger"
UNSUPPORTEDOPERATION = "UnsupportedOperation"
UNSUPPORTEDOPERATION_CDN = "UnsupportedOperation.Cdn"
UNSUPPORTEDOPERATION_COS = "UnsupportedOperation.Cos"
UNSUPPORTEDOPERATION_TRIGGER = "UnsupportedOperation.Trigger"

func (*Client) DeleteAlias

func (c *Client) DeleteAlias(request *DeleteAliasRequest) (response *DeleteAliasResponse, err error)

DeleteAlias This API is used to delete an alias of a function version.

error code that may be returned:

FAILEDOPERATION_DELETEALIAS = "FailedOperation.DeleteAlias"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE_ALIAS = "InvalidParameterValue.Alias"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"

func (*Client) DeleteAliasWithContext

func (c *Client) DeleteAliasWithContext(ctx context.Context, request *DeleteAliasRequest) (response *DeleteAliasResponse, err error)

DeleteAlias This API is used to delete an alias of a function version.

error code that may be returned:

FAILEDOPERATION_DELETEALIAS = "FailedOperation.DeleteAlias"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE_ALIAS = "InvalidParameterValue.Alias"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"

func (*Client) DeleteFunction

func (c *Client) DeleteFunction(request *DeleteFunctionRequest) (response *DeleteFunctionResponse, err error)

DeleteFunction This API is used to delete a function based on the input parameters.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DELETEFUNCTION = "FailedOperation.DeleteFunction"
FAILEDOPERATION_FUNCTIONNAMESTATUSERROR = "FailedOperation.FunctionNameStatusError"
FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError"
FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress"
INTERNALERROR_CMQ = "InternalError.Cmq"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_DELETEFUNCTION = "UnauthorizedOperation.DeleteFunction"
UNSUPPORTEDOPERATION = "UnsupportedOperation"
UNSUPPORTEDOPERATION_ALIASBIND = "UnsupportedOperation.AliasBind"

func (*Client) DeleteFunctionWithContext

func (c *Client) DeleteFunctionWithContext(ctx context.Context, request *DeleteFunctionRequest) (response *DeleteFunctionResponse, err error)

DeleteFunction This API is used to delete a function based on the input parameters.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DELETEFUNCTION = "FailedOperation.DeleteFunction"
FAILEDOPERATION_FUNCTIONNAMESTATUSERROR = "FailedOperation.FunctionNameStatusError"
FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError"
FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress"
INTERNALERROR_CMQ = "InternalError.Cmq"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_DELETEFUNCTION = "UnauthorizedOperation.DeleteFunction"
UNSUPPORTEDOPERATION = "UnsupportedOperation"
UNSUPPORTEDOPERATION_ALIASBIND = "UnsupportedOperation.AliasBind"

func (*Client) DeleteLayerVersion

func (c *Client) DeleteLayerVersion(request *DeleteLayerVersionRequest) (response *DeleteLayerVersionResponse, err error)

DeleteLayerVersion This API is used to delete a specified version of a specified layer. The deleted version cannot be associated with a function, but the deletion does not affect functions that are referencing this layer.

error code that may be returned:

FAILEDOPERATION_DELETELAYERVERSION = "FailedOperation.DeleteLayerVersion"
FAILEDOPERATION_OPERATIONCONFLICT = "FailedOperation.OperationConflict"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
RESOURCEINUSE_LAYERVERSION = "ResourceInUse.LayerVersion"
RESOURCENOTFOUND_LAYERVERSION = "ResourceNotFound.LayerVersion"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) DeleteLayerVersionWithContext

func (c *Client) DeleteLayerVersionWithContext(ctx context.Context, request *DeleteLayerVersionRequest) (response *DeleteLayerVersionResponse, err error)

DeleteLayerVersion This API is used to delete a specified version of a specified layer. The deleted version cannot be associated with a function, but the deletion does not affect functions that are referencing this layer.

error code that may be returned:

FAILEDOPERATION_DELETELAYERVERSION = "FailedOperation.DeleteLayerVersion"
FAILEDOPERATION_OPERATIONCONFLICT = "FailedOperation.OperationConflict"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
RESOURCEINUSE_LAYERVERSION = "ResourceInUse.LayerVersion"
RESOURCENOTFOUND_LAYERVERSION = "ResourceNotFound.LayerVersion"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) DeleteNamespace

func (c *Client) DeleteNamespace(request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error)

DeleteNamespace This API is used to delete the specific namespace according to the parameters passed in.

error code that may be returned:

FAILEDOPERATION_DELETENAMESPACE = "FailedOperation.DeleteNamespace"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_NAMESPACEINVALID = "InvalidParameterValue.NamespaceInvalid"
RESOURCEINUSE_NAMESPACE = "ResourceInUse.Namespace"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) DeleteNamespaceWithContext

func (c *Client) DeleteNamespaceWithContext(ctx context.Context, request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error)

DeleteNamespace This API is used to delete the specific namespace according to the parameters passed in.

error code that may be returned:

FAILEDOPERATION_DELETENAMESPACE = "FailedOperation.DeleteNamespace"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_NAMESPACEINVALID = "InvalidParameterValue.NamespaceInvalid"
RESOURCEINUSE_NAMESPACE = "ResourceInUse.Namespace"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) DeleteProvisionedConcurrencyConfig

func (c *Client) DeleteProvisionedConcurrencyConfig(request *DeleteProvisionedConcurrencyConfigRequest) (response *DeleteProvisionedConcurrencyConfigResponse, err error)

DeleteProvisionedConcurrencyConfig This API is used to delete the provisioned concurrency configuration of a function version.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DeleteProvisionedConcurrencyConfigWithContext

func (c *Client) DeleteProvisionedConcurrencyConfigWithContext(ctx context.Context, request *DeleteProvisionedConcurrencyConfigRequest) (response *DeleteProvisionedConcurrencyConfigResponse, err error)

DeleteProvisionedConcurrencyConfig This API is used to delete the provisioned concurrency configuration of a function version.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DeleteReservedConcurrencyConfig

func (c *Client) DeleteReservedConcurrencyConfig(request *DeleteReservedConcurrencyConfigRequest) (response *DeleteReservedConcurrencyConfigResponse, err error)

DeleteReservedConcurrencyConfig This API is used to delete the configuration of reserved quota.

error code that may be returned:

FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus"
FAILEDOPERATION_RESERVEDINPROGRESS = "FailedOperation.ReservedInProgress"
INTERNALERROR = "InternalError"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DeleteReservedConcurrencyConfigWithContext

func (c *Client) DeleteReservedConcurrencyConfigWithContext(ctx context.Context, request *DeleteReservedConcurrencyConfigRequest) (response *DeleteReservedConcurrencyConfigResponse, err error)

DeleteReservedConcurrencyConfig This API is used to delete the configuration of reserved quota.

error code that may be returned:

FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus"
FAILEDOPERATION_RESERVEDINPROGRESS = "FailedOperation.ReservedInProgress"
INTERNALERROR = "InternalError"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DeleteTrigger

func (c *Client) DeleteTrigger(request *DeleteTriggerRequest) (response *DeleteTriggerResponse, err error)

DeleteTrigger This API is used to delete an existing trigger based on the input parameters.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger"
FAILEDOPERATION_DELETETRIGGER = "FailedOperation.DeleteTrigger"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_APIGATEWAY = "InvalidParameterValue.ApiGateway"
INVALIDPARAMETERVALUE_CDN = "InvalidParameterValue.Cdn"
INVALIDPARAMETERVALUE_CMQ = "InvalidParameterValue.Cmq"
INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc"
INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName"
INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type"
RESOURCEINUSE_CDN = "ResourceInUse.Cdn"
RESOURCEINUSE_CMQ = "ResourceInUse.Cmq"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_CDN = "ResourceNotFound.Cdn"
RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_TIMER = "ResourceNotFound.Timer"
RESOURCENOTFOUND_TRIGGER = "ResourceNotFound.Trigger"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_DELETETRIGGER = "UnauthorizedOperation.DeleteTrigger"
UNSUPPORTEDOPERATION_CDN = "UnsupportedOperation.Cdn"

func (*Client) DeleteTriggerWithContext

func (c *Client) DeleteTriggerWithContext(ctx context.Context, request *DeleteTriggerRequest) (response *DeleteTriggerResponse, err error)

DeleteTrigger This API is used to delete an existing trigger based on the input parameters.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger"
FAILEDOPERATION_DELETETRIGGER = "FailedOperation.DeleteTrigger"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_APIGATEWAY = "InvalidParameterValue.ApiGateway"
INVALIDPARAMETERVALUE_CDN = "InvalidParameterValue.Cdn"
INVALIDPARAMETERVALUE_CMQ = "InvalidParameterValue.Cmq"
INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc"
INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName"
INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type"
RESOURCEINUSE_CDN = "ResourceInUse.Cdn"
RESOURCEINUSE_CMQ = "ResourceInUse.Cmq"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_CDN = "ResourceNotFound.Cdn"
RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_TIMER = "ResourceNotFound.Timer"
RESOURCENOTFOUND_TRIGGER = "ResourceNotFound.Trigger"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_DELETETRIGGER = "UnauthorizedOperation.DeleteTrigger"
UNSUPPORTEDOPERATION_CDN = "UnsupportedOperation.Cdn"

func (*Client) GetAccount

func (c *Client) GetAccount(request *GetAccountRequest) (response *GetAccountResponse, err error)

GetAccount This API is used to get the account information.

error code that may be returned:

INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) GetAccountWithContext

func (c *Client) GetAccountWithContext(ctx context.Context, request *GetAccountRequest) (response *GetAccountResponse, err error)

GetAccount This API is used to get the account information.

error code that may be returned:

INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) GetAlias

func (c *Client) GetAlias(request *GetAliasRequest) (response *GetAliasResponse, err error)

GetAlias This API is used to get the alias details such as the name, description, version, and routing information.

error code that may be returned:

FAILEDOPERATION_GETALIAS = "FailedOperation.GetAlias"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) GetAliasWithContext

func (c *Client) GetAliasWithContext(ctx context.Context, request *GetAliasRequest) (response *GetAliasResponse, err error)

GetAlias This API is used to get the alias details such as the name, description, version, and routing information.

error code that may be returned:

FAILEDOPERATION_GETALIAS = "FailedOperation.GetAlias"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) GetAsyncEventStatus

func (c *Client) GetAsyncEventStatus(request *GetAsyncEventStatusRequest) (response *GetAsyncEventStatusResponse, err error)

GetAsyncEventStatus This API is used to get the status of an async function execution event. The event status is retained for 3*24 hours, counting from the completion of the event.

error code that may be returned:

FAILEDOPERATION_ASYNCEVENTSTATUS = "FailedOperation.AsyncEventStatus"
RESOURCENOTFOUND_ASYNCEVENT = "ResourceNotFound.AsyncEvent"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"

func (*Client) GetAsyncEventStatusWithContext

func (c *Client) GetAsyncEventStatusWithContext(ctx context.Context, request *GetAsyncEventStatusRequest) (response *GetAsyncEventStatusResponse, err error)

GetAsyncEventStatus This API is used to get the status of an async function execution event. The event status is retained for 3*24 hours, counting from the completion of the event.

error code that may be returned:

FAILEDOPERATION_ASYNCEVENTSTATUS = "FailedOperation.AsyncEventStatus"
RESOURCENOTFOUND_ASYNCEVENT = "ResourceNotFound.AsyncEvent"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"

func (*Client) GetFunctionAddress

func (c *Client) GetFunctionAddress(request *GetFunctionAddressRequest) (response *GetFunctionAddressResponse, err error)

GetFunctionAddress This API is used to obtain the download address of the function code package.

error code that may be returned:

FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError"
FAILEDOPERATION_GETFUNCTIONADDRESS = "FailedOperation.GetFunctionAddress"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_CODESECRET = "UnauthorizedOperation.CodeSecret"

func (*Client) GetFunctionAddressWithContext

func (c *Client) GetFunctionAddressWithContext(ctx context.Context, request *GetFunctionAddressRequest) (response *GetFunctionAddressResponse, err error)

GetFunctionAddress This API is used to obtain the download address of the function code package.

error code that may be returned:

FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError"
FAILEDOPERATION_GETFUNCTIONADDRESS = "FailedOperation.GetFunctionAddress"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_CODESECRET = "UnauthorizedOperation.CodeSecret"

func (*Client) GetFunctionEventInvokeConfig

func (c *Client) GetFunctionEventInvokeConfig(request *GetFunctionEventInvokeConfigRequest) (response *GetFunctionEventInvokeConfigResponse, err error)

GetFunctionEventInvokeConfig This API is used to get the async retry configuration of a function, including the number of retry attempts and message retention period.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive"
FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) GetFunctionEventInvokeConfigWithContext

func (c *Client) GetFunctionEventInvokeConfigWithContext(ctx context.Context, request *GetFunctionEventInvokeConfigRequest) (response *GetFunctionEventInvokeConfigResponse, err error)

GetFunctionEventInvokeConfig This API is used to get the async retry configuration of a function, including the number of retry attempts and message retention period.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive"
FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) GetFunctionLogs

func (c *Client) GetFunctionLogs(request *GetFunctionLogsRequest) (response *GetFunctionLogsResponse, err error)

GetFunctionLogs This API returns function running logs according to the specified conditions. Note that this API has been disused. You can use [GetRequestStatus](https://intl.cloud.tencent.com/document/product/583/65348?from_cn_redirect=1) instead. See also [Retrieving Logs](https://intl.cloud.tencent.com/document/product/583/52637?from_cn_redirect=1).

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_AUTHFAILURE = "FailedOperation.AuthFailure"
FAILEDOPERATION_QUERYERROR = "FailedOperation.QueryError"
FAILEDOPERATION_TOPICNOTEXIST = "FailedOperation.TopicNotExist"
INTERNALERROR = "InternalError"
INTERNALERROR_ES = "InternalError.ES"
INTERNALERROR_EXCEPTION = "InternalError.Exception"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_CLS = "InvalidParameter.Cls"
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload"
INVALIDPARAMETER_ROLECHECK = "InvalidParameter.RoleCheck"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DATETIME = "InvalidParameterValue.DateTime"
INVALIDPARAMETERVALUE_FUNCTIONTYPE = "InvalidParameterValue.FunctionType"
INVALIDPARAMETERVALUE_IMAGETYPE = "InvalidParameterValue.ImageType"
INVALIDPARAMETERVALUE_OFFSET = "InvalidParameterValue.Offset"
INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order"
INVALIDPARAMETERVALUE_ORDERBY = "InvalidParameterValue.OrderBy"
INVALIDPARAMETERVALUE_RETCODE = "InvalidParameterValue.RetCode"
INVALIDPARAMETERVALUE_STARTTIMEORENDTIME = "InvalidParameterValue.StartTimeOrEndTime"
LIMITEXCEEDED_OFFSET = "LimitExceeded.Offset"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_ROLECHECK = "ResourceNotFound.RoleCheck"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNSUPPORTEDOPERATION_NOTSUPPORTREGION = "UnsupportedOperation.NotSupportRegion"

func (*Client) GetFunctionLogsWithContext

func (c *Client) GetFunctionLogsWithContext(ctx context.Context, request *GetFunctionLogsRequest) (response *GetFunctionLogsResponse, err error)

GetFunctionLogs This API returns function running logs according to the specified conditions. Note that this API has been disused. You can use [GetRequestStatus](https://intl.cloud.tencent.com/document/product/583/65348?from_cn_redirect=1) instead. See also [Retrieving Logs](https://intl.cloud.tencent.com/document/product/583/52637?from_cn_redirect=1).

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_AUTHFAILURE = "FailedOperation.AuthFailure"
FAILEDOPERATION_QUERYERROR = "FailedOperation.QueryError"
FAILEDOPERATION_TOPICNOTEXIST = "FailedOperation.TopicNotExist"
INTERNALERROR = "InternalError"
INTERNALERROR_ES = "InternalError.ES"
INTERNALERROR_EXCEPTION = "InternalError.Exception"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_CLS = "InvalidParameter.Cls"
INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError"
INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload"
INVALIDPARAMETER_ROLECHECK = "InvalidParameter.RoleCheck"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DATETIME = "InvalidParameterValue.DateTime"
INVALIDPARAMETERVALUE_FUNCTIONTYPE = "InvalidParameterValue.FunctionType"
INVALIDPARAMETERVALUE_IMAGETYPE = "InvalidParameterValue.ImageType"
INVALIDPARAMETERVALUE_OFFSET = "InvalidParameterValue.Offset"
INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order"
INVALIDPARAMETERVALUE_ORDERBY = "InvalidParameterValue.OrderBy"
INVALIDPARAMETERVALUE_RETCODE = "InvalidParameterValue.RetCode"
INVALIDPARAMETERVALUE_STARTTIMEORENDTIME = "InvalidParameterValue.StartTimeOrEndTime"
LIMITEXCEEDED_OFFSET = "LimitExceeded.Offset"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_ROLECHECK = "ResourceNotFound.RoleCheck"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNSUPPORTEDOPERATION_NOTSUPPORTREGION = "UnsupportedOperation.NotSupportRegion"

func (*Client) GetLayerVersion

func (c *Client) GetLayerVersion(request *GetLayerVersionRequest) (response *GetLayerVersionResponse, err error)

GetLayerVersion This API is used to get the layer version details, including links used to download files in the layer.

error code that may be returned:

INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
RESOURCENOTFOUND_LAYERVERSION = "ResourceNotFound.LayerVersion"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) GetLayerVersionWithContext

func (c *Client) GetLayerVersionWithContext(ctx context.Context, request *GetLayerVersionRequest) (response *GetLayerVersionResponse, err error)

GetLayerVersion This API is used to get the layer version details, including links used to download files in the layer.

error code that may be returned:

INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
RESOURCENOTFOUND_LAYERVERSION = "ResourceNotFound.LayerVersion"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) GetProvisionedConcurrencyConfig

func (c *Client) GetProvisionedConcurrencyConfig(request *GetProvisionedConcurrencyConfigRequest) (response *GetProvisionedConcurrencyConfigResponse, err error)

GetProvisionedConcurrencyConfig This API is used to get the provisioned concurrency details of a function or its specified version.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) GetProvisionedConcurrencyConfigWithContext

func (c *Client) GetProvisionedConcurrencyConfigWithContext(ctx context.Context, request *GetProvisionedConcurrencyConfigRequest) (response *GetProvisionedConcurrencyConfigResponse, err error)

GetProvisionedConcurrencyConfig This API is used to get the provisioned concurrency details of a function or its specified version.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) GetRequestStatus

func (c *Client) GetRequestStatus(request *GetRequestStatusRequest) (response *GetRequestStatusResponse, err error)

GetRequestStatus This API is used to query the status of a single function request.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_TOPICNOTEXIST = "FailedOperation.TopicNotExist"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_CLS = "InvalidParameter.Cls"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DATETIME = "InvalidParameterValue.DateTime"
INVALIDPARAMETERVALUE_FUNCTION = "InvalidParameterValue.Function"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_FUNCTIONREQUESTID = "InvalidParameterValue.FunctionRequestId"
INVALIDPARAMETERVALUE_RETCODE = "InvalidParameterValue.RetCode"
INVALIDPARAMETERVALUE_STARTTIME = "InvalidParameterValue.StartTime"
INVALIDPARAMETERVALUE_STARTTIMEORENDTIME = "InvalidParameterValue.StartTimeOrEndTime"
OPERATIONDENIED_ACCOUNTISOLATE = "OperationDenied.AccountIsolate"
OPERATIONDENIED_ACCOUNTNOTEXISTS = "OperationDenied.AccountNotExists"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"

func (*Client) GetRequestStatusWithContext

func (c *Client) GetRequestStatusWithContext(ctx context.Context, request *GetRequestStatusRequest) (response *GetRequestStatusResponse, err error)

GetRequestStatus This API is used to query the status of a single function request.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_TOPICNOTEXIST = "FailedOperation.TopicNotExist"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_CLS = "InvalidParameter.Cls"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DATETIME = "InvalidParameterValue.DateTime"
INVALIDPARAMETERVALUE_FUNCTION = "InvalidParameterValue.Function"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_FUNCTIONREQUESTID = "InvalidParameterValue.FunctionRequestId"
INVALIDPARAMETERVALUE_RETCODE = "InvalidParameterValue.RetCode"
INVALIDPARAMETERVALUE_STARTTIME = "InvalidParameterValue.StartTime"
INVALIDPARAMETERVALUE_STARTTIMEORENDTIME = "InvalidParameterValue.StartTimeOrEndTime"
OPERATIONDENIED_ACCOUNTISOLATE = "OperationDenied.AccountIsolate"
OPERATIONDENIED_ACCOUNTNOTEXISTS = "OperationDenied.AccountNotExists"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"

func (*Client) GetReservedConcurrencyConfig

func (c *Client) GetReservedConcurrencyConfig(request *GetReservedConcurrencyConfigRequest) (response *GetReservedConcurrencyConfigResponse, err error)

GetReservedConcurrencyConfig This API is used to obtain the reserved quota details of a function.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) GetReservedConcurrencyConfigWithContext

func (c *Client) GetReservedConcurrencyConfigWithContext(ctx context.Context, request *GetReservedConcurrencyConfigRequest) (response *GetReservedConcurrencyConfigResponse, err error)

GetReservedConcurrencyConfig This API is used to obtain the reserved quota details of a function.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) Invoke

func (c *Client) Invoke(request *InvokeRequest) (response *InvokeResponse, err error)

Invoke This API is used to run a function.

error code that may be returned:

FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError"
FAILEDOPERATION_INVOKEFUNCTION = "FailedOperation.InvokeFunction"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_FUNCTIONNAME = "InvalidParameter.FunctionName"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_PARAM = "InvalidParameterValue.Param"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) InvokeFunction

func (c *Client) InvokeFunction(request *InvokeFunctionRequest) (response *InvokeFunctionResponse, err error)

InvokeFunction

This API is used to invoke functions synchronously.

error code that may be returned:

FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError"
FAILEDOPERATION_INVOKEFUNCTION = "FailedOperation.InvokeFunction"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_FUNCTIONNAME = "InvalidParameter.FunctionName"
INVALIDPARAMETER_REQUESTTOOLARGE = "InvalidParameter.RequestTooLarge"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLIENTCONTEXT = "InvalidParameterValue.ClientContext"
INVALIDPARAMETERVALUE_FUNCTIONTYPE = "InvalidParameterValue.FunctionType"
INVALIDPARAMETERVALUE_PARAM = "InvalidParameterValue.Param"
LIMITEXCEEDED_QUOTA = "LimitExceeded.Quota"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier"
RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) InvokeFunctionWithContext

func (c *Client) InvokeFunctionWithContext(ctx context.Context, request *InvokeFunctionRequest) (response *InvokeFunctionResponse, err error)

InvokeFunction

This API is used to invoke functions synchronously.

error code that may be returned:

FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError"
FAILEDOPERATION_INVOKEFUNCTION = "FailedOperation.InvokeFunction"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_FUNCTIONNAME = "InvalidParameter.FunctionName"
INVALIDPARAMETER_REQUESTTOOLARGE = "InvalidParameter.RequestTooLarge"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CLIENTCONTEXT = "InvalidParameterValue.ClientContext"
INVALIDPARAMETERVALUE_FUNCTIONTYPE = "InvalidParameterValue.FunctionType"
INVALIDPARAMETERVALUE_PARAM = "InvalidParameterValue.Param"
LIMITEXCEEDED_QUOTA = "LimitExceeded.Quota"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier"
RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) InvokeWithContext

func (c *Client) InvokeWithContext(ctx context.Context, request *InvokeRequest) (response *InvokeResponse, err error)

Invoke This API is used to run a function.

error code that may be returned:

FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError"
FAILEDOPERATION_INVOKEFUNCTION = "FailedOperation.InvokeFunction"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_FUNCTIONNAME = "InvalidParameter.FunctionName"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_PARAM = "InvalidParameterValue.Param"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) ListAliases

func (c *Client) ListAliases(request *ListAliasesRequest) (response *ListAliasesResponse, err error)

ListAliases This API is used to return the list of all aliases under a function. You can filter them by the specific function version.

error code that may be returned:

INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) ListAliasesWithContext

func (c *Client) ListAliasesWithContext(ctx context.Context, request *ListAliasesRequest) (response *ListAliasesResponse, err error)

ListAliases This API is used to return the list of all aliases under a function. You can filter them by the specific function version.

error code that may be returned:

INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) ListAsyncEvents

func (c *Client) ListAsyncEvents(request *ListAsyncEventsRequest) (response *ListAsyncEventsResponse, err error)

ListAsyncEvents This API is used to pull the list of async function events.

error code that may be returned:

INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_INVOKETYPE = "InvalidParameterValue.InvokeType"
INVALIDPARAMETERVALUE_LIMIT = "InvalidParameterValue.Limit"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order"
INVALIDPARAMETERVALUE_STATUS = "InvalidParameterValue.Status"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"

func (*Client) ListAsyncEventsWithContext

func (c *Client) ListAsyncEventsWithContext(ctx context.Context, request *ListAsyncEventsRequest) (response *ListAsyncEventsResponse, err error)

ListAsyncEvents This API is used to pull the list of async function events.

error code that may be returned:

INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_INVOKETYPE = "InvalidParameterValue.InvokeType"
INVALIDPARAMETERVALUE_LIMIT = "InvalidParameterValue.Limit"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order"
INVALIDPARAMETERVALUE_STATUS = "InvalidParameterValue.Status"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"

func (*Client) ListFunctions

func (c *Client) ListFunctions(request *ListFunctionsRequest) (response *ListFunctionsResponse, err error)

ListFunctions This API is used to return relevant function information based on the input query parameters.

error code that may be returned:

INTERNALERROR_EXCEPTION = "InternalError.Exception"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMIT = "InvalidParameterValue.Limit"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_OFFSET = "InvalidParameterValue.Offset"
INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order"
INVALIDPARAMETERVALUE_QUERYVERSION = "InvalidParameterValue.QueryVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_REGION = "UnauthorizedOperation.Region"

func (*Client) ListFunctionsWithContext

func (c *Client) ListFunctionsWithContext(ctx context.Context, request *ListFunctionsRequest) (response *ListFunctionsResponse, err error)

ListFunctions This API is used to return relevant function information based on the input query parameters.

error code that may be returned:

INTERNALERROR_EXCEPTION = "InternalError.Exception"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_LIMIT = "InvalidParameterValue.Limit"
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_OFFSET = "InvalidParameterValue.Offset"
INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order"
INVALIDPARAMETERVALUE_QUERYVERSION = "InvalidParameterValue.QueryVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_REGION = "UnauthorizedOperation.Region"

func (*Client) ListLayerVersions

func (c *Client) ListLayerVersions(request *ListLayerVersionsRequest) (response *ListLayerVersionsResponse, err error)

ListLayerVersions This API is used to get the information of all versions of a specified layer.

error code that may be returned:

INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime"
RESOURCENOTFOUND_LAYER = "ResourceNotFound.Layer"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) ListLayerVersionsWithContext

func (c *Client) ListLayerVersionsWithContext(ctx context.Context, request *ListLayerVersionsRequest) (response *ListLayerVersionsResponse, err error)

ListLayerVersions This API is used to get the information of all versions of a specified layer.

error code that may be returned:

INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime"
RESOURCENOTFOUND_LAYER = "ResourceNotFound.Layer"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) ListLayers

func (c *Client) ListLayers(request *ListLayersRequest) (response *ListLayersResponse, err error)

ListLayers This API is used to return the list of all layers, including the information of the latest version of each layer. You can filter them by the compatible runtime.

error code that may be returned:

INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime"
INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp"
LIMITEXCEEDED_LAYERS = "LimitExceeded.Layers"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) ListLayersWithContext

func (c *Client) ListLayersWithContext(ctx context.Context, request *ListLayersRequest) (response *ListLayersResponse, err error)

ListLayers This API is used to return the list of all layers, including the information of the latest version of each layer. You can filter them by the compatible runtime.

error code that may be returned:

INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime"
INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp"
LIMITEXCEEDED_LAYERS = "LimitExceeded.Layers"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) ListNamespaces

func (c *Client) ListNamespaces(request *ListNamespacesRequest) (response *ListNamespacesResponse, err error)

ListNamespaces This API is used to display a namespace list.

error code that may be returned:

INVALIDPARAMETERVALUE_FILTERS = "InvalidParameterValue.Filters"
INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order"
INVALIDPARAMETERVALUE_SEARCHKEY = "InvalidParameterValue.SearchKey"
INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp"

func (*Client) ListNamespacesWithContext

func (c *Client) ListNamespacesWithContext(ctx context.Context, request *ListNamespacesRequest) (response *ListNamespacesResponse, err error)

ListNamespaces This API is used to display a namespace list.

error code that may be returned:

INVALIDPARAMETERVALUE_FILTERS = "InvalidParameterValue.Filters"
INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order"
INVALIDPARAMETERVALUE_SEARCHKEY = "InvalidParameterValue.SearchKey"
INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp"

func (*Client) ListTriggers

func (c *Client) ListTriggers(request *ListTriggersRequest) (response *ListTriggersResponse, err error)

ListTriggers This API is used to get the function trigger list.

error code that may be returned:

FAILEDOPERATION_APIGW = "FailedOperation.Apigw"
INVALIDPARAMETERVALUE_FILTERS = "InvalidParameterValue.Filters"
INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order"
INVALIDPARAMETERVALUE_ORDERBY = "InvalidParameterValue.OrderBy"

func (*Client) ListTriggersWithContext

func (c *Client) ListTriggersWithContext(ctx context.Context, request *ListTriggersRequest) (response *ListTriggersResponse, err error)

ListTriggers This API is used to get the function trigger list.

error code that may be returned:

FAILEDOPERATION_APIGW = "FailedOperation.Apigw"
INVALIDPARAMETERVALUE_FILTERS = "InvalidParameterValue.Filters"
INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order"
INVALIDPARAMETERVALUE_ORDERBY = "InvalidParameterValue.OrderBy"

func (*Client) ListVersionByFunction

func (c *Client) ListVersionByFunction(request *ListVersionByFunctionRequest) (response *ListVersionByFunctionResponse, err error)

ListVersionByFunction This API is used to query the function version based on the input parameters.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) ListVersionByFunctionWithContext

func (c *Client) ListVersionByFunctionWithContext(ctx context.Context, request *ListVersionByFunctionRequest) (response *ListVersionByFunctionResponse, err error)

ListVersionByFunction This API is used to query the function version based on the input parameters.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) PublishLayerVersion

func (c *Client) PublishLayerVersion(request *PublishLayerVersionRequest) (response *PublishLayerVersionResponse, err error)

PublishLayerVersion This API is used to create a version for a layer by using the given .zip file or COS object. Each time this API is called with the same layer name, a new version will be generated.

error code that may be returned:

FAILEDOPERATION_PUBLISHLAYERVERSION = "FailedOperation.PublishLayerVersion"
INTERNALERROR = "InternalError"
INTERNALERROR_EXCEPTION = "InternalError.Exception"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE_COMPATIBLERUNTIMES = "InvalidParameterValue.CompatibleRuntimes"
INVALIDPARAMETERVALUE_CONTENT = "InvalidParameterValue.Content"
INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos"
INVALIDPARAMETERVALUE_COSBUCKETNAME = "InvalidParameterValue.CosBucketName"
INVALIDPARAMETERVALUE_COSBUCKETREGION = "InvalidParameterValue.CosBucketRegion"
INVALIDPARAMETERVALUE_COSOBJECTNAME = "InvalidParameterValue.CosObjectName"
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
INVALIDPARAMETERVALUE_LAYERNAME = "InvalidParameterValue.LayerName"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime"
INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp"
INVALIDPARAMETERVALUE_TEMPCOSOBJECTNAME = "InvalidParameterValue.TempCosObjectName"
INVALIDPARAMETERVALUE_ZIPFILEBASE64BINASCIIERROR = "InvalidParameterValue.ZipFileBase64BinasciiError"
LIMITEXCEEDED_LAYERVERSIONS = "LimitExceeded.LayerVersions"
RESOURCEINUSE = "ResourceInUse"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_NOTMC = "UnauthorizedOperation.NotMC"
UNSUPPORTEDOPERATION_COS = "UnsupportedOperation.Cos"

func (*Client) PublishLayerVersionWithContext

func (c *Client) PublishLayerVersionWithContext(ctx context.Context, request *PublishLayerVersionRequest) (response *PublishLayerVersionResponse, err error)

PublishLayerVersion This API is used to create a version for a layer by using the given .zip file or COS object. Each time this API is called with the same layer name, a new version will be generated.

error code that may be returned:

FAILEDOPERATION_PUBLISHLAYERVERSION = "FailedOperation.PublishLayerVersion"
INTERNALERROR = "InternalError"
INTERNALERROR_EXCEPTION = "InternalError.Exception"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE_COMPATIBLERUNTIMES = "InvalidParameterValue.CompatibleRuntimes"
INVALIDPARAMETERVALUE_CONTENT = "InvalidParameterValue.Content"
INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos"
INVALIDPARAMETERVALUE_COSBUCKETNAME = "InvalidParameterValue.CosBucketName"
INVALIDPARAMETERVALUE_COSBUCKETREGION = "InvalidParameterValue.CosBucketRegion"
INVALIDPARAMETERVALUE_COSOBJECTNAME = "InvalidParameterValue.CosObjectName"
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
INVALIDPARAMETERVALUE_LAYERNAME = "InvalidParameterValue.LayerName"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime"
INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp"
INVALIDPARAMETERVALUE_TEMPCOSOBJECTNAME = "InvalidParameterValue.TempCosObjectName"
INVALIDPARAMETERVALUE_ZIPFILEBASE64BINASCIIERROR = "InvalidParameterValue.ZipFileBase64BinasciiError"
LIMITEXCEEDED_LAYERVERSIONS = "LimitExceeded.LayerVersions"
RESOURCEINUSE = "ResourceInUse"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_NOTMC = "UnauthorizedOperation.NotMC"
UNSUPPORTEDOPERATION_COS = "UnsupportedOperation.Cos"

func (*Client) PublishVersion

func (c *Client) PublishVersion(request *PublishVersionRequest) (response *PublishVersionResponse, err error)

PublishVersion This API is used for users to release a new version of the function.

error code that may be returned:

FAILEDOPERATION_PUBLISHVERSION = "FailedOperation.PublishVersion"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
LIMITEXCEEDED_CONTAINERIMAGEACCELERATE = "LimitExceeded.ContainerImageAccelerate"
LIMITEXCEEDED_CONTAINERIMAGEACCELERATEQUOTA = "LimitExceeded.ContainerImageAccelerateQuota"
RESOURCEINUSE = "ResourceInUse"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNSUPPORTEDOPERATION = "UnsupportedOperation"
UNSUPPORTEDOPERATION_PUBLISHVERSION = "UnsupportedOperation.PublishVersion"

func (*Client) PublishVersionWithContext

func (c *Client) PublishVersionWithContext(ctx context.Context, request *PublishVersionRequest) (response *PublishVersionResponse, err error)

PublishVersion This API is used for users to release a new version of the function.

error code that may be returned:

FAILEDOPERATION_PUBLISHVERSION = "FailedOperation.PublishVersion"
INTERNALERROR = "InternalError"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
LIMITEXCEEDED_CONTAINERIMAGEACCELERATE = "LimitExceeded.ContainerImageAccelerate"
LIMITEXCEEDED_CONTAINERIMAGEACCELERATEQUOTA = "LimitExceeded.ContainerImageAccelerateQuota"
RESOURCEINUSE = "ResourceInUse"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNSUPPORTEDOPERATION = "UnsupportedOperation"
UNSUPPORTEDOPERATION_PUBLISHVERSION = "UnsupportedOperation.PublishVersion"

func (*Client) PutProvisionedConcurrencyConfig

func (c *Client) PutProvisionedConcurrencyConfig(request *PutProvisionedConcurrencyConfigRequest) (response *PutProvisionedConcurrencyConfigResponse, err error)

PutProvisionedConcurrencyConfig This API is used to set the provisioned concurrency of a non-$LATEST version of a function.

error code that may be returned:

FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus"
FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive"
FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"
FAILEDOPERATION_PROVISIONCREATETIMER = "FailedOperation.ProvisionCreateTimer"
FAILEDOPERATION_PROVISIONDELETETIMER = "FailedOperation.ProvisionDeleteTimer"
FAILEDOPERATION_PROVISIONEDEXCEEDAVAILABLE = "FailedOperation.ProvisionedExceedAvailable"
FAILEDOPERATION_PROVISIONEDEXCEEDRESERVED = "FailedOperation.ProvisionedExceedReserved"
FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress"
FAILEDOPERATION_SERVICECLOSED = "FailedOperation.ServiceClosed"
FAILEDOPERATION_UNOPENEDSERVICE = "FailedOperation.UnOpenedService"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_MINCAPACITY = "InvalidParameterValue.MinCapacity"
INVALIDPARAMETERVALUE_PROVISIONTRIGGERCRONCONFIGDUPLICATE = "InvalidParameterValue.ProvisionTriggerCronConfigDuplicate"
INVALIDPARAMETERVALUE_PROVISIONTRIGGERNAME = "InvalidParameterValue.ProvisionTriggerName"
INVALIDPARAMETERVALUE_PROVISIONTRIGGERNAMEDUPLICATE = "InvalidParameterValue.ProvisionTriggerNameDuplicate"
INVALIDPARAMETERVALUE_PROVISIONTYPE = "InvalidParameterValue.ProvisionType"
INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier"
INVALIDPARAMETERVALUE_TRACKINGTARGET = "InvalidParameterValue.TrackingTarget"
INVALIDPARAMETERVALUE_TRIGGERCRONCONFIG = "InvalidParameterValue.TriggerCronConfig"
INVALIDPARAMETERVALUE_TRIGGERCRONCONFIGTIMEINTERVAL = "InvalidParameterValue.TriggerCronConfigTimeInterval"
INVALIDPARAMETERVALUE_TRIGGERPROVISIONEDCONCURRENCYNUM = "InvalidParameterValue.TriggerProvisionedConcurrencyNum"
LIMITEXCEEDED_FUNCTIONPROVISIONEDCONCURRENCYMEMORY = "LimitExceeded.FunctionProvisionedConcurrencyMemory"
LIMITEXCEEDED_FUNCTIONTOTALPROVISIONEDCONCURRENCYMEMORY = "LimitExceeded.FunctionTotalProvisionedConcurrencyMemory"
LIMITEXCEEDED_FUNCTIONTOTALPROVISIONEDCONCURRENCYNUM = "LimitExceeded.FunctionTotalProvisionedConcurrencyNum"
LIMITEXCEEDED_MAXCAPACITY = "LimitExceeded.MaxCapacity"
LIMITEXCEEDED_PROVISIONTRIGGERACTION = "LimitExceeded.ProvisionTriggerAction"
LIMITEXCEEDED_PROVISIONTRIGGERINTERVAL = "LimitExceeded.ProvisionTriggerInterval"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) PutProvisionedConcurrencyConfigWithContext

func (c *Client) PutProvisionedConcurrencyConfigWithContext(ctx context.Context, request *PutProvisionedConcurrencyConfigRequest) (response *PutProvisionedConcurrencyConfigResponse, err error)

PutProvisionedConcurrencyConfig This API is used to set the provisioned concurrency of a non-$LATEST version of a function.

error code that may be returned:

FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus"
FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive"
FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"
FAILEDOPERATION_PROVISIONCREATETIMER = "FailedOperation.ProvisionCreateTimer"
FAILEDOPERATION_PROVISIONDELETETIMER = "FailedOperation.ProvisionDeleteTimer"
FAILEDOPERATION_PROVISIONEDEXCEEDAVAILABLE = "FailedOperation.ProvisionedExceedAvailable"
FAILEDOPERATION_PROVISIONEDEXCEEDRESERVED = "FailedOperation.ProvisionedExceedReserved"
FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress"
FAILEDOPERATION_SERVICECLOSED = "FailedOperation.ServiceClosed"
FAILEDOPERATION_UNOPENEDSERVICE = "FailedOperation.UnOpenedService"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_MINCAPACITY = "InvalidParameterValue.MinCapacity"
INVALIDPARAMETERVALUE_PROVISIONTRIGGERCRONCONFIGDUPLICATE = "InvalidParameterValue.ProvisionTriggerCronConfigDuplicate"
INVALIDPARAMETERVALUE_PROVISIONTRIGGERNAME = "InvalidParameterValue.ProvisionTriggerName"
INVALIDPARAMETERVALUE_PROVISIONTRIGGERNAMEDUPLICATE = "InvalidParameterValue.ProvisionTriggerNameDuplicate"
INVALIDPARAMETERVALUE_PROVISIONTYPE = "InvalidParameterValue.ProvisionType"
INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier"
INVALIDPARAMETERVALUE_TRACKINGTARGET = "InvalidParameterValue.TrackingTarget"
INVALIDPARAMETERVALUE_TRIGGERCRONCONFIG = "InvalidParameterValue.TriggerCronConfig"
INVALIDPARAMETERVALUE_TRIGGERCRONCONFIGTIMEINTERVAL = "InvalidParameterValue.TriggerCronConfigTimeInterval"
INVALIDPARAMETERVALUE_TRIGGERPROVISIONEDCONCURRENCYNUM = "InvalidParameterValue.TriggerProvisionedConcurrencyNum"
LIMITEXCEEDED_FUNCTIONPROVISIONEDCONCURRENCYMEMORY = "LimitExceeded.FunctionProvisionedConcurrencyMemory"
LIMITEXCEEDED_FUNCTIONTOTALPROVISIONEDCONCURRENCYMEMORY = "LimitExceeded.FunctionTotalProvisionedConcurrencyMemory"
LIMITEXCEEDED_FUNCTIONTOTALPROVISIONEDCONCURRENCYNUM = "LimitExceeded.FunctionTotalProvisionedConcurrencyNum"
LIMITEXCEEDED_MAXCAPACITY = "LimitExceeded.MaxCapacity"
LIMITEXCEEDED_PROVISIONTRIGGERACTION = "LimitExceeded.ProvisionTriggerAction"
LIMITEXCEEDED_PROVISIONTRIGGERINTERVAL = "LimitExceeded.ProvisionTriggerInterval"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) PutReservedConcurrencyConfig

func (c *Client) PutReservedConcurrencyConfig(request *PutReservedConcurrencyConfigRequest) (response *PutReservedConcurrencyConfigResponse, err error)

PutReservedConcurrencyConfig This API is used to configure the reserved quota of a function.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus"
FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive"
FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"
FAILEDOPERATION_PROVISIONEDEXCEEDRESERVED = "FailedOperation.ProvisionedExceedReserved"
FAILEDOPERATION_RESERVEDINPROGRESS = "FailedOperation.ReservedInProgress"
FAILEDOPERATION_SERVICECLOSED = "FailedOperation.ServiceClosed"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
LIMITEXCEEDED_FUNCTIONRESERVEDCONCURRENCYMEMORY = "LimitExceeded.FunctionReservedConcurrencyMemory"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) PutReservedConcurrencyConfigWithContext

func (c *Client) PutReservedConcurrencyConfigWithContext(ctx context.Context, request *PutReservedConcurrencyConfigRequest) (response *PutReservedConcurrencyConfigResponse, err error)

PutReservedConcurrencyConfig This API is used to configure the reserved quota of a function.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus"
FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive"
FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"
FAILEDOPERATION_PROVISIONEDEXCEEDRESERVED = "FailedOperation.ProvisionedExceedReserved"
FAILEDOPERATION_RESERVEDINPROGRESS = "FailedOperation.ReservedInProgress"
FAILEDOPERATION_SERVICECLOSED = "FailedOperation.ServiceClosed"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
LIMITEXCEEDED_FUNCTIONRESERVEDCONCURRENCYMEMORY = "LimitExceeded.FunctionReservedConcurrencyMemory"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) PutTotalConcurrencyConfig

func (c *Client) PutTotalConcurrencyConfig(request *PutTotalConcurrencyConfigRequest) (response *PutTotalConcurrencyConfigResponse, err error)

PutTotalConcurrencyConfig This API is used to modify the account concurrency quota.

error code that may be returned:

FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"
FAILEDOPERATION_RESERVEDEXCEEDTOTAL = "FailedOperation.ReservedExceedTotal"
FAILEDOPERATION_TOTALCONCURRENCYMEMORYINPROGRESS = "FailedOperation.TotalConcurrencyMemoryInProgress"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
LIMITEXCEEDED_TOTALCONCURRENCYMEMORY = "LimitExceeded.TotalConcurrencyMemory"
LIMITEXCEEDED_USERTOTALCONCURRENCYMEMORY = "LimitExceeded.UserTotalConcurrencyMemory"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_TOTALCONCURRENCYMEMORY = "ResourceNotFound.TotalConcurrencyMemory"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) PutTotalConcurrencyConfigWithContext

func (c *Client) PutTotalConcurrencyConfigWithContext(ctx context.Context, request *PutTotalConcurrencyConfigRequest) (response *PutTotalConcurrencyConfigResponse, err error)

PutTotalConcurrencyConfig This API is used to modify the account concurrency quota.

error code that may be returned:

FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"
FAILEDOPERATION_RESERVEDEXCEEDTOTAL = "FailedOperation.ReservedExceedTotal"
FAILEDOPERATION_TOTALCONCURRENCYMEMORYINPROGRESS = "FailedOperation.TotalConcurrencyMemoryInProgress"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
LIMITEXCEEDED_TOTALCONCURRENCYMEMORY = "LimitExceeded.TotalConcurrencyMemory"
LIMITEXCEEDED_USERTOTALCONCURRENCYMEMORY = "LimitExceeded.UserTotalConcurrencyMemory"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_TOTALCONCURRENCYMEMORY = "ResourceNotFound.TotalConcurrencyMemory"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) TerminateAsyncEvent

func (c *Client) TerminateAsyncEvent(request *TerminateAsyncEventRequest) (response *TerminateAsyncEventResponse, err error)

TerminateAsyncEvent This API is used to terminate a running async function event.

error code that may be returned:

FAILEDOPERATION_ASYNCEVENTSTATUS = "FailedOperation.AsyncEventStatus"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
RESOURCENOTFOUND_ASYNCEVENT = "ResourceNotFound.AsyncEvent"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"

func (*Client) TerminateAsyncEventWithContext

func (c *Client) TerminateAsyncEventWithContext(ctx context.Context, request *TerminateAsyncEventRequest) (response *TerminateAsyncEventResponse, err error)

TerminateAsyncEvent This API is used to terminate a running async function event.

error code that may be returned:

FAILEDOPERATION_ASYNCEVENTSTATUS = "FailedOperation.AsyncEventStatus"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
RESOURCENOTFOUND_ASYNCEVENT = "ResourceNotFound.AsyncEvent"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"

func (*Client) UpdateAlias

func (c *Client) UpdateAlias(request *UpdateAliasRequest) (response *UpdateAliasResponse, err error)

UpdateAlias This API is used to update the configuration of an alias.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_UPDATEALIAS = "FailedOperation.UpdateAlias"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ADDITIONALVERSIONWEIGHTS = "InvalidParameterValue.AdditionalVersionWeights"
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_ROUTINGCONFIG = "InvalidParameterValue.RoutingConfig"
RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) UpdateAliasWithContext

func (c *Client) UpdateAliasWithContext(ctx context.Context, request *UpdateAliasRequest) (response *UpdateAliasResponse, err error)

UpdateAlias This API is used to update the configuration of an alias.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_UPDATEALIAS = "FailedOperation.UpdateAlias"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ADDITIONALVERSIONWEIGHTS = "InvalidParameterValue.AdditionalVersionWeights"
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_ROUTINGCONFIG = "InvalidParameterValue.RoutingConfig"
RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"

func (*Client) UpdateFunctionCode

func (c *Client) UpdateFunctionCode(request *UpdateFunctionCodeRequest) (response *UpdateFunctionCodeResponse, err error)

UpdateFunctionCode This API is used to update the function code based on the input parameters.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_CALLROLEFAILED = "FailedOperation.CallRoleFailed"
FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError"
FAILEDOPERATION_OPERATIONCONFLICT = "FailedOperation.OperationConflict"
FAILEDOPERATION_UPDATEFUNCTIONCODE = "FailedOperation.UpdateFunctionCode"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ARGS = "InvalidParameterValue.Args"
INVALIDPARAMETERVALUE_CODE = "InvalidParameterValue.Code"
INVALIDPARAMETERVALUE_CODESECRET = "InvalidParameterValue.CodeSecret"
INVALIDPARAMETERVALUE_CODESOURCE = "InvalidParameterValue.CodeSource"
INVALIDPARAMETERVALUE_COMMAND = "InvalidParameterValue.Command"
INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos"
INVALIDPARAMETERVALUE_COSBUCKETNAME = "InvalidParameterValue.CosBucketName"
INVALIDPARAMETERVALUE_COSBUCKETREGION = "InvalidParameterValue.CosBucketRegion"
INVALIDPARAMETERVALUE_COSOBJECTNAME = "InvalidParameterValue.CosObjectName"
INVALIDPARAMETERVALUE_DEMO = "InvalidParameterValue.Demo"
INVALIDPARAMETERVALUE_DEMOID = "InvalidParameterValue.DemoId"
INVALIDPARAMETERVALUE_DNSINFO = "InvalidParameterValue.DnsInfo"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_GITBRANCH = "InvalidParameterValue.GitBranch"
INVALIDPARAMETERVALUE_GITDIRECTORY = "InvalidParameterValue.GitDirectory"
INVALIDPARAMETERVALUE_GITPASSWORD = "InvalidParameterValue.GitPassword"
INVALIDPARAMETERVALUE_GITURL = "InvalidParameterValue.GitUrl"
INVALIDPARAMETERVALUE_GITUSERNAME = "InvalidParameterValue.GitUserName"
INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler"
INVALIDPARAMETERVALUE_IMAGETYPE = "InvalidParameterValue.ImageType"
INVALIDPARAMETERVALUE_IMAGEURI = "InvalidParameterValue.ImageUri"
INVALIDPARAMETERVALUE_INLINEZIPFILE = "InvalidParameterValue.InlineZipFile"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_REGISTRYID = "InvalidParameterValue.RegistryId"
INVALIDPARAMETERVALUE_TEMPCOSOBJECTNAME = "InvalidParameterValue.TempCosObjectName"
INVALIDPARAMETERVALUE_ZIPFILE = "InvalidParameterValue.ZipFile"
INVALIDPARAMETERVALUE_ZIPFILEBASE64BINASCIIERROR = "InvalidParameterValue.ZipFileBase64BinasciiError"
LIMITEXCEEDED_CONTAINERIMAGEACCELERATEQUOTA = "LimitExceeded.ContainerImageAccelerateQuota"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_IMAGECONFIG = "ResourceNotFound.ImageConfig"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_TEMPCOSAPPID = "UnauthorizedOperation.TempCosAppid"
UNAUTHORIZEDOPERATION_UPDATEFUNCTIONCODE = "UnauthorizedOperation.UpdateFunctionCode"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) UpdateFunctionCodeWithContext

func (c *Client) UpdateFunctionCodeWithContext(ctx context.Context, request *UpdateFunctionCodeRequest) (response *UpdateFunctionCodeResponse, err error)

UpdateFunctionCode This API is used to update the function code based on the input parameters.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_CALLROLEFAILED = "FailedOperation.CallRoleFailed"
FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError"
FAILEDOPERATION_OPERATIONCONFLICT = "FailedOperation.OperationConflict"
FAILEDOPERATION_UPDATEFUNCTIONCODE = "FailedOperation.UpdateFunctionCode"
INTERNALERROR_SYSTEM = "InternalError.System"
INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ARGS = "InvalidParameterValue.Args"
INVALIDPARAMETERVALUE_CODE = "InvalidParameterValue.Code"
INVALIDPARAMETERVALUE_CODESECRET = "InvalidParameterValue.CodeSecret"
INVALIDPARAMETERVALUE_CODESOURCE = "InvalidParameterValue.CodeSource"
INVALIDPARAMETERVALUE_COMMAND = "InvalidParameterValue.Command"
INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos"
INVALIDPARAMETERVALUE_COSBUCKETNAME = "InvalidParameterValue.CosBucketName"
INVALIDPARAMETERVALUE_COSBUCKETREGION = "InvalidParameterValue.CosBucketRegion"
INVALIDPARAMETERVALUE_COSOBJECTNAME = "InvalidParameterValue.CosObjectName"
INVALIDPARAMETERVALUE_DEMO = "InvalidParameterValue.Demo"
INVALIDPARAMETERVALUE_DEMOID = "InvalidParameterValue.DemoId"
INVALIDPARAMETERVALUE_DNSINFO = "InvalidParameterValue.DnsInfo"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_GITBRANCH = "InvalidParameterValue.GitBranch"
INVALIDPARAMETERVALUE_GITDIRECTORY = "InvalidParameterValue.GitDirectory"
INVALIDPARAMETERVALUE_GITPASSWORD = "InvalidParameterValue.GitPassword"
INVALIDPARAMETERVALUE_GITURL = "InvalidParameterValue.GitUrl"
INVALIDPARAMETERVALUE_GITUSERNAME = "InvalidParameterValue.GitUserName"
INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler"
INVALIDPARAMETERVALUE_IMAGETYPE = "InvalidParameterValue.ImageType"
INVALIDPARAMETERVALUE_IMAGEURI = "InvalidParameterValue.ImageUri"
INVALIDPARAMETERVALUE_INLINEZIPFILE = "InvalidParameterValue.InlineZipFile"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
INVALIDPARAMETERVALUE_REGISTRYID = "InvalidParameterValue.RegistryId"
INVALIDPARAMETERVALUE_TEMPCOSOBJECTNAME = "InvalidParameterValue.TempCosObjectName"
INVALIDPARAMETERVALUE_ZIPFILE = "InvalidParameterValue.ZipFile"
INVALIDPARAMETERVALUE_ZIPFILEBASE64BINASCIIERROR = "InvalidParameterValue.ZipFileBase64BinasciiError"
LIMITEXCEEDED_CONTAINERIMAGEACCELERATEQUOTA = "LimitExceeded.ContainerImageAccelerateQuota"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_IMAGECONFIG = "ResourceNotFound.ImageConfig"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_TEMPCOSAPPID = "UnauthorizedOperation.TempCosAppid"
UNAUTHORIZEDOPERATION_UPDATEFUNCTIONCODE = "UnauthorizedOperation.UpdateFunctionCode"
UNSUPPORTEDOPERATION = "UnsupportedOperation"

func (*Client) UpdateFunctionEventInvokeConfig

func (c *Client) UpdateFunctionEventInvokeConfig(request *UpdateFunctionEventInvokeConfigRequest) (response *UpdateFunctionEventInvokeConfigResponse, err error)

UpdateFunctionEventInvokeConfig This API is used to update the async retry configuration of a function, including the number of retry attempts and message retention period.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive"
FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ASYNCTRIGGERCONFIG = "InvalidParameterValue.AsyncTriggerConfig"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
LIMITEXCEEDED_MSGTTL = "LimitExceeded.MsgTTL"
LIMITEXCEEDED_RETRYNUM = "LimitExceeded.RetryNum"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNSUPPORTEDOPERATION_EIPFIXED = "UnsupportedOperation.EipFixed"
UNSUPPORTEDOPERATION_UPDATEFUNCTIONEVENTINVOKECONFIG = "UnsupportedOperation.UpdateFunctionEventInvokeConfig"
UNSUPPORTEDOPERATION_VPCCONFIG = "UnsupportedOperation.VpcConfig"

func (*Client) UpdateFunctionEventInvokeConfigWithContext

func (c *Client) UpdateFunctionEventInvokeConfigWithContext(ctx context.Context, request *UpdateFunctionEventInvokeConfigRequest) (response *UpdateFunctionEventInvokeConfigResponse, err error)

UpdateFunctionEventInvokeConfig This API is used to update the async retry configuration of a function, including the number of retry attempts and message retention period.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive"
FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ASYNCTRIGGERCONFIG = "InvalidParameterValue.AsyncTriggerConfig"
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName"
INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace"
LIMITEXCEEDED_MSGTTL = "LimitExceeded.MsgTTL"
LIMITEXCEEDED_RETRYNUM = "LimitExceeded.RetryNum"
MISSINGPARAMETER = "MissingParameter"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNSUPPORTEDOPERATION_EIPFIXED = "UnsupportedOperation.EipFixed"
UNSUPPORTEDOPERATION_UPDATEFUNCTIONEVENTINVOKECONFIG = "UnsupportedOperation.UpdateFunctionEventInvokeConfig"
UNSUPPORTEDOPERATION_VPCCONFIG = "UnsupportedOperation.VpcConfig"

func (*Client) UpdateNamespace

func (c *Client) UpdateNamespace(request *UpdateNamespaceRequest) (response *UpdateNamespaceResponse, err error)

UpdateNamespace This API is used to update a namespace.

error code that may be returned:

INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"

func (*Client) UpdateNamespaceWithContext

func (c *Client) UpdateNamespaceWithContext(ctx context.Context, request *UpdateNamespaceRequest) (response *UpdateNamespaceResponse, err error)

UpdateNamespace This API is used to update a namespace.

error code that may be returned:

INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"

func (*Client) UpdateTriggerStatus

func (c *Client) UpdateTriggerStatus(request *UpdateTriggerStatusRequest) (response *UpdateTriggerStatusResponse, err error)

UpdateTriggerStatus This API is used to update the trigger status.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_COS = "FailedOperation.Cos"
FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger"
FAILEDOPERATION_UPDATESTATUS = "FailedOperation.UpdateStatus"
FAILEDOPERATION_UPDATETRIGGERSTATUS = "FailedOperation.UpdateTriggerStatus"
INTERNALERROR_CMQ = "InternalError.Cmq"
INTERNALERROR_COS = "InternalError.Cos"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_COSNOTIFYRULECONFLICT = "InvalidParameterValue.CosNotifyRuleConflict"
INVALIDPARAMETERVALUE_ENABLE = "InvalidParameterValue.Enable"
INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc"
INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName"
INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier"
RESOURCENOTFOUND_TRIGGER = "ResourceNotFound.Trigger"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_UPDATETRIGGERSTATUS = "UnauthorizedOperation.UpdateTriggerStatus"

func (*Client) UpdateTriggerStatusWithContext

func (c *Client) UpdateTriggerStatusWithContext(ctx context.Context, request *UpdateTriggerStatusRequest) (response *UpdateTriggerStatusResponse, err error)

UpdateTriggerStatus This API is used to update the trigger status.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_COS = "FailedOperation.Cos"
FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger"
FAILEDOPERATION_UPDATESTATUS = "FailedOperation.UpdateStatus"
FAILEDOPERATION_UPDATETRIGGERSTATUS = "FailedOperation.UpdateTriggerStatus"
INTERNALERROR_CMQ = "InternalError.Cmq"
INTERNALERROR_COS = "InternalError.Cos"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_COSNOTIFYRULECONFLICT = "InvalidParameterValue.CosNotifyRuleConflict"
INVALIDPARAMETERVALUE_ENABLE = "InvalidParameterValue.Enable"
INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc"
INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName"
INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function"
RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier"
RESOURCENOTFOUND_TRIGGER = "ResourceNotFound.Trigger"
UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
UNAUTHORIZEDOPERATION_UPDATETRIGGERSTATUS = "UnauthorizedOperation.UpdateTriggerStatus"

type Code

type Code struct {
	// Object bucket name (enter the custom part of the bucket name without `-appid`)
	CosBucketName *string `json:"CosBucketName,omitnil,omitempty" name:"CosBucketName"`

	// File path of code package stored in COS, which should start with “/”
	CosObjectName *string `json:"CosObjectName,omitnil,omitempty" name:"CosObjectName"`

	// This parameter contains a .zip file (up to 50 MB) of the function code file and its dependencies. When this API is used, the content of the .zip file needs to be Base64-encoded
	ZipFile *string `json:"ZipFile,omitnil,omitempty" name:"ZipFile"`

	// COS region. For Beijing regions, you need to import `ap-beijing`. For Beijing Region 1, you need to input `ap-beijing-1`. For other regions, no import is required.
	CosBucketRegion *string `json:"CosBucketRegion,omitnil,omitempty" name:"CosBucketRegion"`

	// `DemoId` is required if Demo is used for the creation.
	DemoId *string `json:"DemoId,omitnil,omitempty" name:"DemoId"`

	// `TempCosObjectName` is required if TempCos is used for the creation.
	TempCosObjectName *string `json:"TempCosObjectName,omitnil,omitempty" name:"TempCosObjectName"`

	// (Disused) Git address
	GitUrl *string `json:"GitUrl,omitnil,omitempty" name:"GitUrl"`

	// (Disused) Git username
	GitUserName *string `json:"GitUserName,omitnil,omitempty" name:"GitUserName"`

	// (Disused) Git password
	GitPassword *string `json:"GitPassword,omitnil,omitempty" name:"GitPassword"`

	// (Disused) Git password after encryption. It’s usually not required.
	GitPasswordSecret *string `json:"GitPasswordSecret,omitnil,omitempty" name:"GitPasswordSecret"`

	// (Disused) Git branch
	GitBranch *string `json:"GitBranch,omitnil,omitempty" name:"GitBranch"`

	// (Disused) Directory to the codes in the Git repository.
	GitDirectory *string `json:"GitDirectory,omitnil,omitempty" name:"GitDirectory"`

	// (Disused)
	GitCommitId *string `json:"GitCommitId,omitnil,omitempty" name:"GitCommitId"`

	// (Disused) Git username after encryption. It’s usually not required.
	GitUserNameSecret *string `json:"GitUserNameSecret,omitnil,omitempty" name:"GitUserNameSecret"`

	// TCR image configurations
	ImageConfig *ImageConfig `json:"ImageConfig,omitnil,omitempty" name:"ImageConfig"`
}

type CopyFunctionRequest

type CopyFunctionRequest struct {
	*tchttp.BaseRequest

	// Name of the function to be replicated
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Name of the new function
	NewFunctionName *string `json:"NewFunctionName,omitnil,omitempty" name:"NewFunctionName"`

	// Namespace of the function to be replicated. The default value is `default`.
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Namespace of the replicated function. The default value is default.
	TargetNamespace *string `json:"TargetNamespace,omitnil,omitempty" name:"TargetNamespace"`

	// Description of the new function
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Region of the target of the function replication. If the value is not set, the current region is used by default.
	TargetRegion *string `json:"TargetRegion,omitnil,omitempty" name:"TargetRegion"`

	// It specifies whether to replace the function with the same name in the target namespace. The default option is `FALSE`.
	// (Note: The `TRUE` option results in deletion of the function in the target namespace. Please operate with caution.)
	// TRUE: Replaces the function.
	// FALSE: Does not replace the function.
	Override *bool `json:"Override,omitnil,omitempty" name:"Override"`

	// It specifies whether to replicate the function attributes, including environment variables, memory, timeout, function description, labels, and VPC. The default value is `TRUE`.
	// TRUE: Replicates the function configuration.
	// FALSE: Does not replicate the function configuration.
	CopyConfiguration *bool `json:"CopyConfiguration,omitnil,omitempty" name:"CopyConfiguration"`
}

func NewCopyFunctionRequest

func NewCopyFunctionRequest() (request *CopyFunctionRequest)

func (*CopyFunctionRequest) FromJsonString

func (r *CopyFunctionRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CopyFunctionRequest) ToJsonString

func (r *CopyFunctionRequest) ToJsonString() string

type CopyFunctionRequestParams

type CopyFunctionRequestParams struct {
	// Name of the function to be replicated
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Name of the new function
	NewFunctionName *string `json:"NewFunctionName,omitnil,omitempty" name:"NewFunctionName"`

	// Namespace of the function to be replicated. The default value is `default`.
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Namespace of the replicated function. The default value is default.
	TargetNamespace *string `json:"TargetNamespace,omitnil,omitempty" name:"TargetNamespace"`

	// Description of the new function
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Region of the target of the function replication. If the value is not set, the current region is used by default.
	TargetRegion *string `json:"TargetRegion,omitnil,omitempty" name:"TargetRegion"`

	// It specifies whether to replace the function with the same name in the target namespace. The default option is `FALSE`.
	// (Note: The `TRUE` option results in deletion of the function in the target namespace. Please operate with caution.)
	// TRUE: Replaces the function.
	// FALSE: Does not replace the function.
	Override *bool `json:"Override,omitnil,omitempty" name:"Override"`

	// It specifies whether to replicate the function attributes, including environment variables, memory, timeout, function description, labels, and VPC. The default value is `TRUE`.
	// TRUE: Replicates the function configuration.
	// FALSE: Does not replicate the function configuration.
	CopyConfiguration *bool `json:"CopyConfiguration,omitnil,omitempty" name:"CopyConfiguration"`
}

Predefined struct for user

type CopyFunctionResponse

type CopyFunctionResponse struct {
	*tchttp.BaseResponse
	Response *CopyFunctionResponseParams `json:"Response"`
}

func NewCopyFunctionResponse

func NewCopyFunctionResponse() (response *CopyFunctionResponse)

func (*CopyFunctionResponse) FromJsonString

func (r *CopyFunctionResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CopyFunctionResponse) ToJsonString

func (r *CopyFunctionResponse) ToJsonString() string

type CopyFunctionResponseParams

type CopyFunctionResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateAliasRequest

type CreateAliasRequest struct {
	*tchttp.BaseRequest

	// Alias name, which must be unique in the function, can contain 1 to 64 letters, digits, `_`, and `-`, and must begin with a letter
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Master version pointed to by the alias
	FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Request routing configuration of alias
	RoutingConfig *RoutingConfig `json:"RoutingConfig,omitnil,omitempty" name:"RoutingConfig"`

	// Alias description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

func NewCreateAliasRequest

func NewCreateAliasRequest() (request *CreateAliasRequest)

func (*CreateAliasRequest) FromJsonString

func (r *CreateAliasRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateAliasRequest) ToJsonString

func (r *CreateAliasRequest) ToJsonString() string

type CreateAliasRequestParams

type CreateAliasRequestParams struct {
	// Alias name, which must be unique in the function, can contain 1 to 64 letters, digits, `_`, and `-`, and must begin with a letter
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Master version pointed to by the alias
	FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Request routing configuration of alias
	RoutingConfig *RoutingConfig `json:"RoutingConfig,omitnil,omitempty" name:"RoutingConfig"`

	// Alias description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

Predefined struct for user

type CreateAliasResponse

type CreateAliasResponse struct {
	*tchttp.BaseResponse
	Response *CreateAliasResponseParams `json:"Response"`
}

func NewCreateAliasResponse

func NewCreateAliasResponse() (response *CreateAliasResponse)

func (*CreateAliasResponse) FromJsonString

func (r *CreateAliasResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateAliasResponse) ToJsonString

func (r *CreateAliasResponse) ToJsonString() string

type CreateAliasResponseParams

type CreateAliasResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateNamespaceRequest

type CreateNamespaceRequest struct {
	*tchttp.BaseRequest

	// Namespace name
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Namespace description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

func NewCreateNamespaceRequest

func NewCreateNamespaceRequest() (request *CreateNamespaceRequest)

func (*CreateNamespaceRequest) FromJsonString

func (r *CreateNamespaceRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateNamespaceRequest) ToJsonString

func (r *CreateNamespaceRequest) ToJsonString() string

type CreateNamespaceRequestParams

type CreateNamespaceRequestParams struct {
	// Namespace name
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Namespace description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

Predefined struct for user

type CreateNamespaceResponse

type CreateNamespaceResponse struct {
	*tchttp.BaseResponse
	Response *CreateNamespaceResponseParams `json:"Response"`
}

func NewCreateNamespaceResponse

func NewCreateNamespaceResponse() (response *CreateNamespaceResponse)

func (*CreateNamespaceResponse) FromJsonString

func (r *CreateNamespaceResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateNamespaceResponse) ToJsonString

func (r *CreateNamespaceResponse) ToJsonString() string

type CreateNamespaceResponseParams

type CreateNamespaceResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateTriggerRequest

type CreateTriggerRequest struct {
	*tchttp.BaseRequest

	// Name of the function bound to the new trigger
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Name of a new trigger. For a timer trigger, the name can contain up to 100 letters, digits, dashes, and underscores; for a COS trigger, it should be an access domain name of the corresponding COS bucket applicable to the XML API (e.g., 5401-5ff414-12345.cos.ap-shanghai.myqcloud.com); for other triggers, please see the descriptions of parameters bound to the specific trigger.
	TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"`

	// Type of trigger. Values: `cos`, `cmq`, `timer`, `ckafka` and `apigw`. To create a CLS trigger, please refer to [Creating Shipping Task (SCF)](https://intl.cloud.tencent.com/document/product/614/61096?from_cn_redirect=1).
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// For parameters of triggers, see [Trigger Description](https://intl.cloud.tencent.com/document/product/583/39901?from_cn_redirect=1)
	TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Function version. It defaults to `$LATEST`. It’s recommended to use `[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)` for canary release.
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Initial enabling status of the trigger. `OPEN` indicates enabled, and `CLOSE` indicates disabled.
	Enable *string `json:"Enable,omitnil,omitempty" name:"Enable"`

	// Custom argument, supporting only the timer trigger.
	CustomArgument *string `json:"CustomArgument,omitnil,omitempty" name:"CustomArgument"`

	// Trigger description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

func NewCreateTriggerRequest

func NewCreateTriggerRequest() (request *CreateTriggerRequest)

func (*CreateTriggerRequest) FromJsonString

func (r *CreateTriggerRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateTriggerRequest) ToJsonString

func (r *CreateTriggerRequest) ToJsonString() string

type CreateTriggerRequestParams

type CreateTriggerRequestParams struct {
	// Name of the function bound to the new trigger
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Name of a new trigger. For a timer trigger, the name can contain up to 100 letters, digits, dashes, and underscores; for a COS trigger, it should be an access domain name of the corresponding COS bucket applicable to the XML API (e.g., 5401-5ff414-12345.cos.ap-shanghai.myqcloud.com); for other triggers, please see the descriptions of parameters bound to the specific trigger.
	TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"`

	// Type of trigger. Values: `cos`, `cmq`, `timer`, `ckafka` and `apigw`. To create a CLS trigger, please refer to [Creating Shipping Task (SCF)](https://intl.cloud.tencent.com/document/product/614/61096?from_cn_redirect=1).
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// For parameters of triggers, see [Trigger Description](https://intl.cloud.tencent.com/document/product/583/39901?from_cn_redirect=1)
	TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Function version. It defaults to `$LATEST`. It’s recommended to use `[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)` for canary release.
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Initial enabling status of the trigger. `OPEN` indicates enabled, and `CLOSE` indicates disabled.
	Enable *string `json:"Enable,omitnil,omitempty" name:"Enable"`

	// Custom argument, supporting only the timer trigger.
	CustomArgument *string `json:"CustomArgument,omitnil,omitempty" name:"CustomArgument"`

	// Trigger description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

Predefined struct for user

type CreateTriggerResponse

type CreateTriggerResponse struct {
	*tchttp.BaseResponse
	Response *CreateTriggerResponseParams `json:"Response"`
}

func NewCreateTriggerResponse

func NewCreateTriggerResponse() (response *CreateTriggerResponse)

func (*CreateTriggerResponse) FromJsonString

func (r *CreateTriggerResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateTriggerResponse) ToJsonString

func (r *CreateTriggerResponse) ToJsonString() string

type CreateTriggerResponseParams

type CreateTriggerResponseParams struct {
	// Trigger information
	TriggerInfo *Trigger `json:"TriggerInfo,omitnil,omitempty" name:"TriggerInfo"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteAliasRequest

type DeleteAliasRequest struct {
	*tchttp.BaseRequest

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Alias name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

func NewDeleteAliasRequest

func NewDeleteAliasRequest() (request *DeleteAliasRequest)

func (*DeleteAliasRequest) FromJsonString

func (r *DeleteAliasRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteAliasRequest) ToJsonString

func (r *DeleteAliasRequest) ToJsonString() string

type DeleteAliasRequestParams

type DeleteAliasRequestParams struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Alias name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

Predefined struct for user

type DeleteAliasResponse

type DeleteAliasResponse struct {
	*tchttp.BaseResponse
	Response *DeleteAliasResponseParams `json:"Response"`
}

func NewDeleteAliasResponse

func NewDeleteAliasResponse() (response *DeleteAliasResponse)

func (*DeleteAliasResponse) FromJsonString

func (r *DeleteAliasResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteAliasResponse) ToJsonString

func (r *DeleteAliasResponse) ToJsonString() string

type DeleteAliasResponseParams

type DeleteAliasResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteFunctionRequest

type DeleteFunctionRequest struct {
	*tchttp.BaseRequest

	// Name of the function to be deleted
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// ID of the version to delete. All versions are deleted if it’s left empty.
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`
}

func NewDeleteFunctionRequest

func NewDeleteFunctionRequest() (request *DeleteFunctionRequest)

func (*DeleteFunctionRequest) FromJsonString

func (r *DeleteFunctionRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteFunctionRequest) ToJsonString

func (r *DeleteFunctionRequest) ToJsonString() string

type DeleteFunctionRequestParams

type DeleteFunctionRequestParams struct {
	// Name of the function to be deleted
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// ID of the version to delete. All versions are deleted if it’s left empty.
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`
}

Predefined struct for user

type DeleteFunctionResponse

type DeleteFunctionResponse struct {
	*tchttp.BaseResponse
	Response *DeleteFunctionResponseParams `json:"Response"`
}

func NewDeleteFunctionResponse

func NewDeleteFunctionResponse() (response *DeleteFunctionResponse)

func (*DeleteFunctionResponse) FromJsonString

func (r *DeleteFunctionResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteFunctionResponse) ToJsonString

func (r *DeleteFunctionResponse) ToJsonString() string

type DeleteFunctionResponseParams

type DeleteFunctionResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteLayerVersionRequest

type DeleteLayerVersionRequest struct {
	*tchttp.BaseRequest

	// Layer name
	LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"`

	// Version number
	LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"`
}

func NewDeleteLayerVersionRequest

func NewDeleteLayerVersionRequest() (request *DeleteLayerVersionRequest)

func (*DeleteLayerVersionRequest) FromJsonString

func (r *DeleteLayerVersionRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteLayerVersionRequest) ToJsonString

func (r *DeleteLayerVersionRequest) ToJsonString() string

type DeleteLayerVersionRequestParams

type DeleteLayerVersionRequestParams struct {
	// Layer name
	LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"`

	// Version number
	LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"`
}

Predefined struct for user

type DeleteLayerVersionResponse

type DeleteLayerVersionResponse struct {
	*tchttp.BaseResponse
	Response *DeleteLayerVersionResponseParams `json:"Response"`
}

func NewDeleteLayerVersionResponse

func NewDeleteLayerVersionResponse() (response *DeleteLayerVersionResponse)

func (*DeleteLayerVersionResponse) FromJsonString

func (r *DeleteLayerVersionResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteLayerVersionResponse) ToJsonString

func (r *DeleteLayerVersionResponse) ToJsonString() string

type DeleteLayerVersionResponseParams

type DeleteLayerVersionResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteNamespaceRequest

type DeleteNamespaceRequest struct {
	*tchttp.BaseRequest

	// Namespace name
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

func NewDeleteNamespaceRequest

func NewDeleteNamespaceRequest() (request *DeleteNamespaceRequest)

func (*DeleteNamespaceRequest) FromJsonString

func (r *DeleteNamespaceRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteNamespaceRequest) ToJsonString

func (r *DeleteNamespaceRequest) ToJsonString() string

type DeleteNamespaceRequestParams

type DeleteNamespaceRequestParams struct {
	// Namespace name
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

Predefined struct for user

type DeleteNamespaceResponse

type DeleteNamespaceResponse struct {
	*tchttp.BaseResponse
	Response *DeleteNamespaceResponseParams `json:"Response"`
}

func NewDeleteNamespaceResponse

func NewDeleteNamespaceResponse() (response *DeleteNamespaceResponse)

func (*DeleteNamespaceResponse) FromJsonString

func (r *DeleteNamespaceResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteNamespaceResponse) ToJsonString

func (r *DeleteNamespaceResponse) ToJsonString() string

type DeleteNamespaceResponseParams

type DeleteNamespaceResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteProvisionedConcurrencyConfigRequest

type DeleteProvisionedConcurrencyConfigRequest struct {
	*tchttp.BaseRequest

	// Name of the function for which to delete the provisioned concurrency
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function version number
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Function namespace. Default value: `default`
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

func NewDeleteProvisionedConcurrencyConfigRequest

func NewDeleteProvisionedConcurrencyConfigRequest() (request *DeleteProvisionedConcurrencyConfigRequest)

func (*DeleteProvisionedConcurrencyConfigRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteProvisionedConcurrencyConfigRequest) ToJsonString

type DeleteProvisionedConcurrencyConfigRequestParams

type DeleteProvisionedConcurrencyConfigRequestParams struct {
	// Name of the function for which to delete the provisioned concurrency
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function version number
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Function namespace. Default value: `default`
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

Predefined struct for user

type DeleteProvisionedConcurrencyConfigResponse

type DeleteProvisionedConcurrencyConfigResponse struct {
	*tchttp.BaseResponse
	Response *DeleteProvisionedConcurrencyConfigResponseParams `json:"Response"`
}

func NewDeleteProvisionedConcurrencyConfigResponse

func NewDeleteProvisionedConcurrencyConfigResponse() (response *DeleteProvisionedConcurrencyConfigResponse)

func (*DeleteProvisionedConcurrencyConfigResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteProvisionedConcurrencyConfigResponse) ToJsonString

type DeleteProvisionedConcurrencyConfigResponseParams

type DeleteProvisionedConcurrencyConfigResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteReservedConcurrencyConfigRequest

type DeleteReservedConcurrencyConfigRequest struct {
	*tchttp.BaseRequest

	// Specifies the function of which you want to delete the reserved quota
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace. Default value: `default`
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

func NewDeleteReservedConcurrencyConfigRequest

func NewDeleteReservedConcurrencyConfigRequest() (request *DeleteReservedConcurrencyConfigRequest)

func (*DeleteReservedConcurrencyConfigRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteReservedConcurrencyConfigRequest) ToJsonString

type DeleteReservedConcurrencyConfigRequestParams

type DeleteReservedConcurrencyConfigRequestParams struct {
	// Specifies the function of which you want to delete the reserved quota
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace. Default value: `default`
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

Predefined struct for user

type DeleteReservedConcurrencyConfigResponse

type DeleteReservedConcurrencyConfigResponse struct {
	*tchttp.BaseResponse
	Response *DeleteReservedConcurrencyConfigResponseParams `json:"Response"`
}

func NewDeleteReservedConcurrencyConfigResponse

func NewDeleteReservedConcurrencyConfigResponse() (response *DeleteReservedConcurrencyConfigResponse)

func (*DeleteReservedConcurrencyConfigResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteReservedConcurrencyConfigResponse) ToJsonString

type DeleteReservedConcurrencyConfigResponseParams

type DeleteReservedConcurrencyConfigResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteTriggerRequest

type DeleteTriggerRequest struct {
	*tchttp.BaseRequest

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Name of the trigger to be deleted
	TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"`

	// Type of the trigger to be deleted. Currently, COS, CMQ, timer, and ckafka triggers are supported.
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// This field is required if a COS trigger is to be deleted. It stores the data {"event":"cos:ObjectCreated:*"} in the JSON format. The data content of this field is in the same format as that of SetTrigger. This field is optional if a scheduled trigger or CMQ trigger is to be deleted.
	TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"`

	// Function version. It defaults to `$LATEST`. It’s recommended to use `[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)` for canary release.
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`
}

func NewDeleteTriggerRequest

func NewDeleteTriggerRequest() (request *DeleteTriggerRequest)

func (*DeleteTriggerRequest) FromJsonString

func (r *DeleteTriggerRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteTriggerRequest) ToJsonString

func (r *DeleteTriggerRequest) ToJsonString() string

type DeleteTriggerRequestParams

type DeleteTriggerRequestParams struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Name of the trigger to be deleted
	TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"`

	// Type of the trigger to be deleted. Currently, COS, CMQ, timer, and ckafka triggers are supported.
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// This field is required if a COS trigger is to be deleted. It stores the data {"event":"cos:ObjectCreated:*"} in the JSON format. The data content of this field is in the same format as that of SetTrigger. This field is optional if a scheduled trigger or CMQ trigger is to be deleted.
	TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"`

	// Function version. It defaults to `$LATEST`. It’s recommended to use `[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)` for canary release.
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`
}

Predefined struct for user

type DeleteTriggerResponse

type DeleteTriggerResponse struct {
	*tchttp.BaseResponse
	Response *DeleteTriggerResponseParams `json:"Response"`
}

func NewDeleteTriggerResponse

func NewDeleteTriggerResponse() (response *DeleteTriggerResponse)

func (*DeleteTriggerResponse) FromJsonString

func (r *DeleteTriggerResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteTriggerResponse) ToJsonString

func (r *DeleteTriggerResponse) ToJsonString() string

type DeleteTriggerResponseParams

type DeleteTriggerResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Filter

type Filter struct {
	// Fields to be filtered. Up to 10 conditions allowed.
	// Values of `Name`: `VpcId`, `SubnetId`, `ClsTopicId`, `ClsLogsetId`, `Role`, `CfsId`, `CfsMountInsId`, `Eip`. Values limit: 1.
	// Name options: Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable. Values limit: 20.
	// When `Name` is `Runtime`, `CustomImage` refers to the image type function
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Filter values of the field
	Values []*string `json:"Values,omitnil,omitempty" name:"Values"`
}

type Function

type Function struct {
	// Modification time
	ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"`

	// Creation time
	AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"`

	// Runtime
	// Note: This parameter may return null, indicating that no valid values can be obtained.
	Runtime *string `json:"Runtime,omitnil,omitempty" name:"Runtime"`

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function ID
	FunctionId *string `json:"FunctionId,omitnil,omitempty" name:"FunctionId"`

	// Namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Function status. For valid values and status change process, please see [here](https://intl.cloud.tencent.com/document/product/583/47175?from_cn_redirect=1)
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// Function status details
	StatusDesc *string `json:"StatusDesc,omitnil,omitempty" name:"StatusDesc"`

	// Function description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Function tag
	Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"`

	// Function type. The value is `HTTP` or `Event`.
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// Cause of function failure
	StatusReasons []*StatusReason `json:"StatusReasons,omitnil,omitempty" name:"StatusReasons"`

	// Sum of provisioned concurrence memory for all function versions
	// Note: this field may return null, indicating that no valid values can be obtained.
	TotalProvisionedConcurrencyMem *uint64 `json:"TotalProvisionedConcurrencyMem,omitnil,omitempty" name:"TotalProvisionedConcurrencyMem"`

	// Reserved memory for function concurrence
	// Note: this field may return null, indicating that no valid values can be obtained.
	ReservedConcurrencyMem *uint64 `json:"ReservedConcurrencyMem,omitnil,omitempty" name:"ReservedConcurrencyMem"`

	// Asynchronization attribute of the function. Values: `TRUE` and `FALSE`.
	AsyncRunEnable *string `json:"AsyncRunEnable,omitnil,omitempty" name:"AsyncRunEnable"`

	// Whether to enable call tracing for ansynchronized functions. Values: `TRUE` and `FALSE`.
	TraceEnable *string `json:"TraceEnable,omitnil,omitempty" name:"TraceEnable"`
}

type FunctionLog

type FunctionLog struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Return value after the function is executed
	RetMsg *string `json:"RetMsg,omitnil,omitempty" name:"RetMsg"`

	// RequestId corresponding to the executed function
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`

	// Start time of the function execution
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// Function execution result. `0` indicates successful execution and other values indicate failure.
	RetCode *int64 `json:"RetCode,omitnil,omitempty" name:"RetCode"`

	// It specifies whether the function invocation is finished. `1` indicates execution completion and other values indicate that exceptions occurred during the invocation.
	InvokeFinished *int64 `json:"InvokeFinished,omitnil,omitempty" name:"InvokeFinished"`

	// Duration of the function execution. The unit is millisecond (ms).
	Duration *float64 `json:"Duration,omitnil,omitempty" name:"Duration"`

	// Function billing duration. The unit is millisecond (ms). The value is rounded up to a multiple of 100 ms.
	BillDuration *int64 `json:"BillDuration,omitnil,omitempty" name:"BillDuration"`

	// Actual memory size used during the function execution. The unit is byte.
	MemUsage *int64 `json:"MemUsage,omitnil,omitempty" name:"MemUsage"`

	// Function execution logs
	Log *string `json:"Log,omitnil,omitempty" name:"Log"`

	// Log level
	Level *string `json:"Level,omitnil,omitempty" name:"Level"`

	// Log source
	Source *string `json:"Source,omitnil,omitempty" name:"Source"`

	// Number of retries
	RetryNum *uint64 `json:"RetryNum,omitnil,omitempty" name:"RetryNum"`
}

type FunctionVersion

type FunctionVersion struct {
	// Function version name
	Version *string `json:"Version,omitnil,omitempty" name:"Version"`

	// Version description
	// Note: This field may return null, indicating that no valid values is found.
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// The creation time
	// Note: This field may return null, indicating that no valid value was found.
	AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"`

	// Update time
	// Note: This field may return null, indicating that no valid value was found.
	ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"`

	// Version status
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`
}

type GetAccountRequest

type GetAccountRequest struct {
	*tchttp.BaseRequest
}

func NewGetAccountRequest

func NewGetAccountRequest() (request *GetAccountRequest)

func (*GetAccountRequest) FromJsonString

func (r *GetAccountRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetAccountRequest) ToJsonString

func (r *GetAccountRequest) ToJsonString() string

type GetAccountRequestParams

type GetAccountRequestParams struct {
}

Predefined struct for user

type GetAccountResponse

type GetAccountResponse struct {
	*tchttp.BaseResponse
	Response *GetAccountResponseParams `json:"Response"`
}

func NewGetAccountResponse

func NewGetAccountResponse() (response *GetAccountResponse)

func (*GetAccountResponse) FromJsonString

func (r *GetAccountResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetAccountResponse) ToJsonString

func (r *GetAccountResponse) ToJsonString() string

type GetAccountResponseParams

type GetAccountResponseParams struct {
	// Namespace usage information
	AccountUsage *UsageInfo `json:"AccountUsage,omitnil,omitempty" name:"AccountUsage"`

	// Namespace limit information
	AccountLimit *LimitsInfo `json:"AccountLimit,omitnil,omitempty" name:"AccountLimit"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetAliasRequest

type GetAliasRequest struct {
	*tchttp.BaseRequest

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Alias name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

func NewGetAliasRequest

func NewGetAliasRequest() (request *GetAliasRequest)

func (*GetAliasRequest) FromJsonString

func (r *GetAliasRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetAliasRequest) ToJsonString

func (r *GetAliasRequest) ToJsonString() string

type GetAliasRequestParams

type GetAliasRequestParams struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Alias name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

Predefined struct for user

type GetAliasResponse

type GetAliasResponse struct {
	*tchttp.BaseResponse
	Response *GetAliasResponseParams `json:"Response"`
}

func NewGetAliasResponse

func NewGetAliasResponse() (response *GetAliasResponse)

func (*GetAliasResponse) FromJsonString

func (r *GetAliasResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetAliasResponse) ToJsonString

func (r *GetAliasResponse) ToJsonString() string

type GetAliasResponseParams

type GetAliasResponseParams struct {
	// Master version pointed to by the alias
	FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"`

	// Alias name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Routing information of alias
	RoutingConfig *RoutingConfig `json:"RoutingConfig,omitnil,omitempty" name:"RoutingConfig"`

	// Alias description
	// Note: this field may return null, indicating that no valid values can be obtained.
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Creation time
	// Note: this field may return null, indicating that no valid values can be obtained.
	AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"`

	// Update time
	// Note: this field may return null, indicating that no valid values can be obtained.
	ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetAsyncEventStatusRequest

type GetAsyncEventStatusRequest struct {
	*tchttp.BaseRequest

	// ID of the async execution request
	InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"`
}

func NewGetAsyncEventStatusRequest

func NewGetAsyncEventStatusRequest() (request *GetAsyncEventStatusRequest)

func (*GetAsyncEventStatusRequest) FromJsonString

func (r *GetAsyncEventStatusRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetAsyncEventStatusRequest) ToJsonString

func (r *GetAsyncEventStatusRequest) ToJsonString() string

type GetAsyncEventStatusRequestParams

type GetAsyncEventStatusRequestParams struct {
	// ID of the async execution request
	InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"`
}

Predefined struct for user

type GetAsyncEventStatusResponse

type GetAsyncEventStatusResponse struct {
	*tchttp.BaseResponse
	Response *GetAsyncEventStatusResponseParams `json:"Response"`
}

func NewGetAsyncEventStatusResponse

func NewGetAsyncEventStatusResponse() (response *GetAsyncEventStatusResponse)

func (*GetAsyncEventStatusResponse) FromJsonString

func (r *GetAsyncEventStatusResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetAsyncEventStatusResponse) ToJsonString

func (r *GetAsyncEventStatusResponse) ToJsonString() string

type GetAsyncEventStatusResponseParams

type GetAsyncEventStatusResponseParams struct {
	// Async event status
	Result *AsyncEventStatus `json:"Result,omitnil,omitempty" name:"Result"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetFunctionAddressRequest

type GetFunctionAddressRequest struct {
	*tchttp.BaseRequest

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function version
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

func NewGetFunctionAddressRequest

func NewGetFunctionAddressRequest() (request *GetFunctionAddressRequest)

func (*GetFunctionAddressRequest) FromJsonString

func (r *GetFunctionAddressRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFunctionAddressRequest) ToJsonString

func (r *GetFunctionAddressRequest) ToJsonString() string

type GetFunctionAddressRequestParams

type GetFunctionAddressRequestParams struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function version
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

Predefined struct for user

type GetFunctionAddressResponse

type GetFunctionAddressResponse struct {
	*tchttp.BaseResponse
	Response *GetFunctionAddressResponseParams `json:"Response"`
}

func NewGetFunctionAddressResponse

func NewGetFunctionAddressResponse() (response *GetFunctionAddressResponse)

func (*GetFunctionAddressResponse) FromJsonString

func (r *GetFunctionAddressResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFunctionAddressResponse) ToJsonString

func (r *GetFunctionAddressResponse) ToJsonString() string

type GetFunctionAddressResponseParams

type GetFunctionAddressResponseParams struct {
	// Cos address of the function
	Url *string `json:"Url,omitnil,omitempty" name:"Url"`

	// SHA256 code of the function
	CodeSha256 *string `json:"CodeSha256,omitnil,omitempty" name:"CodeSha256"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetFunctionEventInvokeConfigRequest

type GetFunctionEventInvokeConfigRequest struct {
	*tchttp.BaseRequest

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace. Default value: default
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Function version. Default value: $LATEST
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`
}

func NewGetFunctionEventInvokeConfigRequest

func NewGetFunctionEventInvokeConfigRequest() (request *GetFunctionEventInvokeConfigRequest)

func (*GetFunctionEventInvokeConfigRequest) FromJsonString

func (r *GetFunctionEventInvokeConfigRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFunctionEventInvokeConfigRequest) ToJsonString

func (r *GetFunctionEventInvokeConfigRequest) ToJsonString() string

type GetFunctionEventInvokeConfigRequestParams

type GetFunctionEventInvokeConfigRequestParams struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace. Default value: default
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Function version. Default value: $LATEST
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`
}

Predefined struct for user

type GetFunctionEventInvokeConfigResponse

type GetFunctionEventInvokeConfigResponse struct {
	*tchttp.BaseResponse
	Response *GetFunctionEventInvokeConfigResponseParams `json:"Response"`
}

func NewGetFunctionEventInvokeConfigResponse

func NewGetFunctionEventInvokeConfigResponse() (response *GetFunctionEventInvokeConfigResponse)

func (*GetFunctionEventInvokeConfigResponse) FromJsonString

func (r *GetFunctionEventInvokeConfigResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFunctionEventInvokeConfigResponse) ToJsonString

func (r *GetFunctionEventInvokeConfigResponse) ToJsonString() string

type GetFunctionEventInvokeConfigResponseParams

type GetFunctionEventInvokeConfigResponseParams struct {
	// Async retry configuration information
	AsyncTriggerConfig *AsyncTriggerConfig `json:"AsyncTriggerConfig,omitnil,omitempty" name:"AsyncTriggerConfig"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetFunctionLogsRequest

type GetFunctionLogsRequest struct {
	*tchttp.BaseRequest

	// Function name.
	// - To ensure the compatibility of the [`GetFunctionLogs`](https://intl.cloud.tencent.com/document/product/583/18583?from_cn_redirect=1) API, the input parameter `FunctionName` is optional, but we recommend you enter it; otherwise, log acquisition may fail.
	// - After the function is connected to CLS, we recommend you use the [related CLS API](https://intl.cloud.tencent.com/document/product/614/16875?from_cn_redirect=1) to get the best log retrieval experience.
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Data offset. The addition of `Offset` and `Limit` cannot exceed 10,000.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Length of the return data. The addition of `Offset` and `Limit` cannot exceed 10,000.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// It specifies whether to sort the logs in an ascending or descending order. The value is `desc` or `asc`.
	Order *string `json:"Order,omitnil,omitempty" name:"Order"`

	// It specifies the sorting order of the logs based on a specified field, such as `function_name`, `duration`, `mem_usage`, and `start_time`.
	OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`

	// Log filter used to identify whether to return logs of successful or failed requests. `filter.RetCode=not0` indicates that only the logs of failed requests will be returned. `filter.RetCode=is0` indicates that only the logs of successful requests will be returned. If this parameter is left blank, all logs will be returned.
	Filter *LogFilter `json:"Filter,omitnil,omitempty" name:"Filter"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Function version
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// RequestId corresponding to the executed function
	FunctionRequestId *string `json:"FunctionRequestId,omitnil,omitempty" name:"FunctionRequestId"`

	// Query date, for example, 2017-05-16 20:00:00. The date must be within one day of the end time.
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// Query date, for example, 2017-05-16 20:59:59. The date must be within one day of the start time.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// This field is disused.
	SearchContext *LogSearchContext `json:"SearchContext,omitnil,omitempty" name:"SearchContext"`
}

func NewGetFunctionLogsRequest

func NewGetFunctionLogsRequest() (request *GetFunctionLogsRequest)

func (*GetFunctionLogsRequest) FromJsonString

func (r *GetFunctionLogsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFunctionLogsRequest) ToJsonString

func (r *GetFunctionLogsRequest) ToJsonString() string

type GetFunctionLogsRequestParams

type GetFunctionLogsRequestParams struct {
	// Function name.
	// - To ensure the compatibility of the [`GetFunctionLogs`](https://intl.cloud.tencent.com/document/product/583/18583?from_cn_redirect=1) API, the input parameter `FunctionName` is optional, but we recommend you enter it; otherwise, log acquisition may fail.
	// - After the function is connected to CLS, we recommend you use the [related CLS API](https://intl.cloud.tencent.com/document/product/614/16875?from_cn_redirect=1) to get the best log retrieval experience.
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Data offset. The addition of `Offset` and `Limit` cannot exceed 10,000.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Length of the return data. The addition of `Offset` and `Limit` cannot exceed 10,000.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// It specifies whether to sort the logs in an ascending or descending order. The value is `desc` or `asc`.
	Order *string `json:"Order,omitnil,omitempty" name:"Order"`

	// It specifies the sorting order of the logs based on a specified field, such as `function_name`, `duration`, `mem_usage`, and `start_time`.
	OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`

	// Log filter used to identify whether to return logs of successful or failed requests. `filter.RetCode=not0` indicates that only the logs of failed requests will be returned. `filter.RetCode=is0` indicates that only the logs of successful requests will be returned. If this parameter is left blank, all logs will be returned.
	Filter *LogFilter `json:"Filter,omitnil,omitempty" name:"Filter"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Function version
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// RequestId corresponding to the executed function
	FunctionRequestId *string `json:"FunctionRequestId,omitnil,omitempty" name:"FunctionRequestId"`

	// Query date, for example, 2017-05-16 20:00:00. The date must be within one day of the end time.
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// Query date, for example, 2017-05-16 20:59:59. The date must be within one day of the start time.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// This field is disused.
	SearchContext *LogSearchContext `json:"SearchContext,omitnil,omitempty" name:"SearchContext"`
}

Predefined struct for user

type GetFunctionLogsResponse

type GetFunctionLogsResponse struct {
	*tchttp.BaseResponse
	Response *GetFunctionLogsResponseParams `json:"Response"`
}

func NewGetFunctionLogsResponse

func NewGetFunctionLogsResponse() (response *GetFunctionLogsResponse)

func (*GetFunctionLogsResponse) FromJsonString

func (r *GetFunctionLogsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFunctionLogsResponse) ToJsonString

func (r *GetFunctionLogsResponse) ToJsonString() string

type GetFunctionLogsResponseParams

type GetFunctionLogsResponseParams struct {
	// Total number of function logs
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// Function log information
	Data []*FunctionLog `json:"Data,omitnil,omitempty" name:"Data"`

	// This field is disused.
	SearchContext *LogSearchContext `json:"SearchContext,omitnil,omitempty" name:"SearchContext"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetLayerVersionRequest

type GetLayerVersionRequest struct {
	*tchttp.BaseRequest

	// Layer name
	LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"`

	// Version number
	LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"`
}

func NewGetLayerVersionRequest

func NewGetLayerVersionRequest() (request *GetLayerVersionRequest)

func (*GetLayerVersionRequest) FromJsonString

func (r *GetLayerVersionRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetLayerVersionRequest) ToJsonString

func (r *GetLayerVersionRequest) ToJsonString() string

type GetLayerVersionRequestParams

type GetLayerVersionRequestParams struct {
	// Layer name
	LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"`

	// Version number
	LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"`
}

Predefined struct for user

type GetLayerVersionResponse

type GetLayerVersionResponse struct {
	*tchttp.BaseResponse
	Response *GetLayerVersionResponseParams `json:"Response"`
}

func NewGetLayerVersionResponse

func NewGetLayerVersionResponse() (response *GetLayerVersionResponse)

func (*GetLayerVersionResponse) FromJsonString

func (r *GetLayerVersionResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetLayerVersionResponse) ToJsonString

func (r *GetLayerVersionResponse) ToJsonString() string

type GetLayerVersionResponseParams

type GetLayerVersionResponseParams struct {
	// Compatible runtimes
	CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitnil,omitempty" name:"CompatibleRuntimes"`

	// SHA256 encoding of version file on the layer
	CodeSha256 *string `json:"CodeSha256,omitnil,omitempty" name:"CodeSha256"`

	// Download address of version file on the layer
	Location *string `json:"Location,omitnil,omitempty" name:"Location"`

	// Version creation time
	AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"`

	// Version description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// License information
	LicenseInfo *string `json:"LicenseInfo,omitnil,omitempty" name:"LicenseInfo"`

	// Version number
	LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"`

	// Layer name
	LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"`

	// Current status of specific layer version. For the status values, [see here](https://intl.cloud.tencent.com/document/product/583/47175?from_cn_redirect=1#.E5.B1.82.EF.BC.88layer.EF.BC.89.E7.8A.B6.E6.80.81)
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetProvisionedConcurrencyConfigRequest

type GetProvisionedConcurrencyConfigRequest struct {
	*tchttp.BaseRequest

	// Name of the function for which to get the provisioned concurrency details.
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace. Default value: default.
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Function version number. If this parameter is left empty, the provisioned concurrency information of all function versions will be returned.
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`
}

func NewGetProvisionedConcurrencyConfigRequest

func NewGetProvisionedConcurrencyConfigRequest() (request *GetProvisionedConcurrencyConfigRequest)

func (*GetProvisionedConcurrencyConfigRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetProvisionedConcurrencyConfigRequest) ToJsonString

type GetProvisionedConcurrencyConfigRequestParams

type GetProvisionedConcurrencyConfigRequestParams struct {
	// Name of the function for which to get the provisioned concurrency details.
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace. Default value: default.
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Function version number. If this parameter is left empty, the provisioned concurrency information of all function versions will be returned.
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`
}

Predefined struct for user

type GetProvisionedConcurrencyConfigResponse

type GetProvisionedConcurrencyConfigResponse struct {
	*tchttp.BaseResponse
	Response *GetProvisionedConcurrencyConfigResponseParams `json:"Response"`
}

func NewGetProvisionedConcurrencyConfigResponse

func NewGetProvisionedConcurrencyConfigResponse() (response *GetProvisionedConcurrencyConfigResponse)

func (*GetProvisionedConcurrencyConfigResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetProvisionedConcurrencyConfigResponse) ToJsonString

type GetProvisionedConcurrencyConfigResponseParams

type GetProvisionedConcurrencyConfigResponseParams struct {
	// Unallocated provisioned concurrency amount of function.
	UnallocatedConcurrencyNum *uint64 `json:"UnallocatedConcurrencyNum,omitnil,omitempty" name:"UnallocatedConcurrencyNum"`

	// Allocated provisioned concurrency amount of function.
	Allocated []*VersionProvisionedConcurrencyInfo `json:"Allocated,omitnil,omitempty" name:"Allocated"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetRequestStatusRequest

type GetRequestStatusRequest struct {
	*tchttp.BaseRequest

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// ID of the request to be queried
	FunctionRequestId *string `json:"FunctionRequestId,omitnil,omitempty" name:"FunctionRequestId"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Start time of the query, for example `2017-05-16 20:00:00`. If it’s left empty, it defaults to 15 minutes before the current time.
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time of the query. such as `2017-05-16 20:59:59`. If `StartTime` is not specified, `EndTime` defaults to the current time. If `StartTime` is specified, `EndTime` is required, and it need to be later than the `StartTime`.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

func NewGetRequestStatusRequest

func NewGetRequestStatusRequest() (request *GetRequestStatusRequest)

func (*GetRequestStatusRequest) FromJsonString

func (r *GetRequestStatusRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetRequestStatusRequest) ToJsonString

func (r *GetRequestStatusRequest) ToJsonString() string

type GetRequestStatusRequestParams

type GetRequestStatusRequestParams struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// ID of the request to be queried
	FunctionRequestId *string `json:"FunctionRequestId,omitnil,omitempty" name:"FunctionRequestId"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Start time of the query, for example `2017-05-16 20:00:00`. If it’s left empty, it defaults to 15 minutes before the current time.
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time of the query. such as `2017-05-16 20:59:59`. If `StartTime` is not specified, `EndTime` defaults to the current time. If `StartTime` is specified, `EndTime` is required, and it need to be later than the `StartTime`.
	EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

Predefined struct for user

type GetRequestStatusResponse

type GetRequestStatusResponse struct {
	*tchttp.BaseResponse
	Response *GetRequestStatusResponseParams `json:"Response"`
}

func NewGetRequestStatusResponse

func NewGetRequestStatusResponse() (response *GetRequestStatusResponse)

func (*GetRequestStatusResponse) FromJsonString

func (r *GetRequestStatusResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetRequestStatusResponse) ToJsonString

func (r *GetRequestStatusResponse) ToJsonString() string

type GetRequestStatusResponseParams

type GetRequestStatusResponseParams struct {
	// Total running functions
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// Details of the function running status
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	Data []*RequestStatus `json:"Data,omitnil,omitempty" name:"Data"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetReservedConcurrencyConfigRequest

type GetReservedConcurrencyConfigRequest struct {
	*tchttp.BaseRequest

	// Specifies the function of which you want to obtain the reserved quota
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace. Default value: default.
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

func NewGetReservedConcurrencyConfigRequest

func NewGetReservedConcurrencyConfigRequest() (request *GetReservedConcurrencyConfigRequest)

func (*GetReservedConcurrencyConfigRequest) FromJsonString

func (r *GetReservedConcurrencyConfigRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetReservedConcurrencyConfigRequest) ToJsonString

func (r *GetReservedConcurrencyConfigRequest) ToJsonString() string

type GetReservedConcurrencyConfigRequestParams

type GetReservedConcurrencyConfigRequestParams struct {
	// Specifies the function of which you want to obtain the reserved quota
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace. Default value: default.
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

Predefined struct for user

type GetReservedConcurrencyConfigResponse

type GetReservedConcurrencyConfigResponse struct {
	*tchttp.BaseResponse
	Response *GetReservedConcurrencyConfigResponseParams `json:"Response"`
}

func NewGetReservedConcurrencyConfigResponse

func NewGetReservedConcurrencyConfigResponse() (response *GetReservedConcurrencyConfigResponse)

func (*GetReservedConcurrencyConfigResponse) FromJsonString

func (r *GetReservedConcurrencyConfigResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetReservedConcurrencyConfigResponse) ToJsonString

func (r *GetReservedConcurrencyConfigResponse) ToJsonString() string

type GetReservedConcurrencyConfigResponseParams

type GetReservedConcurrencyConfigResponseParams struct {
	// The reserved quota of the function
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	ReservedMem *uint64 `json:"ReservedMem,omitnil,omitempty" name:"ReservedMem"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ImageConfig

type ImageConfig struct {
	// Image repository type, which can be `personal` or `enterprise`
	ImageType *string `json:"ImageType,omitnil,omitempty" name:"ImageType"`

	// {domain}/{namespace}/{imageName}:{tag}@{digest}
	ImageUri *string `json:"ImageUri,omitnil,omitempty" name:"ImageUri"`

	// The temp token that a TCR Enterprise instance uses to obtain an image. It’s required when `ImageType` is `enterprise`.
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	RegistryId *string `json:"RegistryId,omitnil,omitempty" name:"RegistryId"`

	// Disused
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	EntryPoint *string `json:"EntryPoint,omitnil,omitempty" name:"EntryPoint"`

	// The command to start up the container, such as `python`. If it’s not specified, Entrypoint in Dockerfile is used.
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	Command *string `json:"Command,omitnil,omitempty" name:"Command"`

	// The parameters to start up the container. Separate parameters with spaces, such as `u app.py`. If it’s not specified, `CMD in Dockerfile is used.
	// Note: This field may return `null`, indicating that no valid value can be found.
	Args *string `json:"Args,omitnil,omitempty" name:"Args"`

	// Whether to enable image acceleration. It defaults to `False`.
	// Note: This field may return `null`, indicating that no valid values can be obtained.
	ContainerImageAccelerate *bool `json:"ContainerImageAccelerate,omitnil,omitempty" name:"ContainerImageAccelerate"`

	// Image function port settings
	// `-1`: No port-specific image functions
	// `0`: Default port (Port 9000)
	// Others: Special ports
	// Note: This field may return null, indicating that no valid values can be obtained.
	ImagePort *int64 `json:"ImagePort,omitnil,omitempty" name:"ImagePort"`
}

type InvokeFunctionRequest

type InvokeFunctionRequest struct {
	*tchttp.BaseRequest

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Version or alias of the function. It defaults to `$DEFAULT`.
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to [event input parameter](https://intl.cloud.tencent.com/document/product/583/9210?from_cn_redirect=1#.E5.87.BD.E6.95.B0.E5.85.A5.E5.8F.82.3Ca-id.3D.22input.22.3E.3C.2Fa.3E).
	Event *string `json:"Event,omitnil,omitempty" name:"Event"`

	// Valid value: `None` (default) or `Tail`. If the value is `Tail`, `log` in the response will contain the corresponding function execution log (up to 4KB).
	LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`

	// Namespace. `default` is used if it’s left empty.
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Traffic routing config in json format, e.g., {"k":"v"}. Please note that both "k" and "v" must be strings. Up to 1024 bytes allowed.
	RoutingKey *string `json:"RoutingKey,omitnil,omitempty" name:"RoutingKey"`
}

func NewInvokeFunctionRequest

func NewInvokeFunctionRequest() (request *InvokeFunctionRequest)

func (*InvokeFunctionRequest) FromJsonString

func (r *InvokeFunctionRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InvokeFunctionRequest) ToJsonString

func (r *InvokeFunctionRequest) ToJsonString() string

type InvokeFunctionRequestParams

type InvokeFunctionRequestParams struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Version or alias of the function. It defaults to `$DEFAULT`.
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Function running parameter, which is in the JSON format. Maximum parameter size is 6 MB. This field corresponds to [event input parameter](https://intl.cloud.tencent.com/document/product/583/9210?from_cn_redirect=1#.E5.87.BD.E6.95.B0.E5.85.A5.E5.8F.82.3Ca-id.3D.22input.22.3E.3C.2Fa.3E).
	Event *string `json:"Event,omitnil,omitempty" name:"Event"`

	// Valid value: `None` (default) or `Tail`. If the value is `Tail`, `log` in the response will contain the corresponding function execution log (up to 4KB).
	LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`

	// Namespace. `default` is used if it’s left empty.
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Traffic routing config in json format, e.g., {"k":"v"}. Please note that both "k" and "v" must be strings. Up to 1024 bytes allowed.
	RoutingKey *string `json:"RoutingKey,omitnil,omitempty" name:"RoutingKey"`
}

Predefined struct for user

type InvokeFunctionResponse

type InvokeFunctionResponse struct {
	*tchttp.BaseResponse
	Response *InvokeFunctionResponseParams `json:"Response"`
}

func NewInvokeFunctionResponse

func NewInvokeFunctionResponse() (response *InvokeFunctionResponse)

func (*InvokeFunctionResponse) FromJsonString

func (r *InvokeFunctionResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InvokeFunctionResponse) ToJsonString

func (r *InvokeFunctionResponse) ToJsonString() string

type InvokeFunctionResponseParams

type InvokeFunctionResponseParams struct {
	// Function execution result
	Result *Result `json:"Result,omitnil,omitempty" name:"Result"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type InvokeRequest

type InvokeRequest struct {
	*tchttp.BaseRequest

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Fill in `RequestResponse` for synchronized invocations (default and recommended) and `Event` for asychronized invocations. Note that for synchronized invocations, the max timeout period is 300s. Choose asychronized invocations if the required timeout period is longer than 300 seconds. You can also use [InvokeFunction](https://intl.cloud.tencent.com/document/product/583/58400?from_cn_redirect=1) for synchronized invocations.
	InvocationType *string `json:"InvocationType,omitnil,omitempty" name:"InvocationType"`

	// The version or alias of the triggered function. It defaults to $LATEST
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Function running parameter, which is in the JSON format. The maximum parameter size is 6 MB for synchronized invocations and 128KB for asynchronized invocations. This field corresponds to [event input parameter](https://intl.cloud.tencent.com/document/product/583/9210?from_cn_redirect=1#.E5.87.BD.E6.95.B0.E5.85.A5.E5.8F.82.3Ca-id.3D.22input.22.3E.3C.2Fa.3E).
	ClientContext *string `json:"ClientContext,omitnil,omitempty" name:"ClientContext"`

	// Null for async invocations
	LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`

	// Namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Traffic routing config in json format, e.g., {"k":"v"}. Please note that both "k" and "v" must be strings. Up to 1024 bytes allowed.
	RoutingKey *string `json:"RoutingKey,omitnil,omitempty" name:"RoutingKey"`
}

func NewInvokeRequest

func NewInvokeRequest() (request *InvokeRequest)

func (*InvokeRequest) FromJsonString

func (r *InvokeRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InvokeRequest) ToJsonString

func (r *InvokeRequest) ToJsonString() string

type InvokeRequestParams

type InvokeRequestParams struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Fill in `RequestResponse` for synchronized invocations (default and recommended) and `Event` for asychronized invocations. Note that for synchronized invocations, the max timeout period is 300s. Choose asychronized invocations if the required timeout period is longer than 300 seconds. You can also use [InvokeFunction](https://intl.cloud.tencent.com/document/product/583/58400?from_cn_redirect=1) for synchronized invocations.
	InvocationType *string `json:"InvocationType,omitnil,omitempty" name:"InvocationType"`

	// The version or alias of the triggered function. It defaults to $LATEST
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Function running parameter, which is in the JSON format. The maximum parameter size is 6 MB for synchronized invocations and 128KB for asynchronized invocations. This field corresponds to [event input parameter](https://intl.cloud.tencent.com/document/product/583/9210?from_cn_redirect=1#.E5.87.BD.E6.95.B0.E5.85.A5.E5.8F.82.3Ca-id.3D.22input.22.3E.3C.2Fa.3E).
	ClientContext *string `json:"ClientContext,omitnil,omitempty" name:"ClientContext"`

	// Null for async invocations
	LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"`

	// Namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Traffic routing config in json format, e.g., {"k":"v"}. Please note that both "k" and "v" must be strings. Up to 1024 bytes allowed.
	RoutingKey *string `json:"RoutingKey,omitnil,omitempty" name:"RoutingKey"`
}

Predefined struct for user

type InvokeResponse

type InvokeResponse struct {
	*tchttp.BaseResponse
	Response *InvokeResponseParams `json:"Response"`
}

func NewInvokeResponse

func NewInvokeResponse() (response *InvokeResponse)

func (*InvokeResponse) FromJsonString

func (r *InvokeResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*InvokeResponse) ToJsonString

func (r *InvokeResponse) ToJsonString() string

type InvokeResponseParams

type InvokeResponseParams struct {
	// Function execution result
	Result *Result `json:"Result,omitnil,omitempty" name:"Result"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type LayerVersionInfo

type LayerVersionInfo struct {
	// Runtime applicable to a version
	// Note: This field may return null, indicating that no valid values can be obtained.
	CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitnil,omitempty" name:"CompatibleRuntimes"`

	// Creation time
	AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"`

	// Version description
	// Note: This field may return null, indicating that no valid values can be obtained.
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// License information
	// Note: This field may return null, indicating that no valid values can be obtained.
	LicenseInfo *string `json:"LicenseInfo,omitnil,omitempty" name:"LicenseInfo"`

	// Version number
	LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"`

	// Layer name
	LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"`

	// Current status of specific layer version. For valid values, please see [here](https://intl.cloud.tencent.com/document/product/583/47175?from_cn_redirect=1#.E5.B1.82.EF.BC.88layer.EF.BC.89.E7.8A.B6.E6.80.81)
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// Stamp
	// Note: This field may return null, indicating that no valid values can be obtained.
	Stamp *string `json:"Stamp,omitnil,omitempty" name:"Stamp"`
}

type LimitsInfo

type LimitsInfo struct {
	// Limit of namespace quantity
	NamespacesCount *int64 `json:"NamespacesCount,omitnil,omitempty" name:"NamespacesCount"`

	// Namespace limit information
	Namespace []*NamespaceLimit `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

type ListAliasesRequest

type ListAliasesRequest struct {
	*tchttp.BaseRequest

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// If this parameter is provided, only aliases associated with this function version will be returned.
	FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"`

	// Data offset. Default value: 0
	Offset *string `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Number of results to be returned. Default value: 20
	Limit *string `json:"Limit,omitnil,omitempty" name:"Limit"`
}

func NewListAliasesRequest

func NewListAliasesRequest() (request *ListAliasesRequest)

func (*ListAliasesRequest) FromJsonString

func (r *ListAliasesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListAliasesRequest) ToJsonString

func (r *ListAliasesRequest) ToJsonString() string

type ListAliasesRequestParams

type ListAliasesRequestParams struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// If this parameter is provided, only aliases associated with this function version will be returned.
	FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"`

	// Data offset. Default value: 0
	Offset *string `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Number of results to be returned. Default value: 20
	Limit *string `json:"Limit,omitnil,omitempty" name:"Limit"`
}

Predefined struct for user

type ListAliasesResponse

type ListAliasesResponse struct {
	*tchttp.BaseResponse
	Response *ListAliasesResponseParams `json:"Response"`
}

func NewListAliasesResponse

func NewListAliasesResponse() (response *ListAliasesResponse)

func (*ListAliasesResponse) FromJsonString

func (r *ListAliasesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListAliasesResponse) ToJsonString

func (r *ListAliasesResponse) ToJsonString() string

type ListAliasesResponseParams

type ListAliasesResponseParams struct {
	// Alias list
	Aliases []*Alias `json:"Aliases,omitnil,omitempty" name:"Aliases"`

	// Total number of aliases
	// Note: this field may return null, indicating that no valid values can be obtained.
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ListAsyncEventsRequest

type ListAsyncEventsRequest struct {
	*tchttp.BaseRequest

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Filter (function version)
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Filter (invocation type list)
	InvokeType []*string `json:"InvokeType,omitnil,omitempty" name:"InvokeType"`

	// Filter (event status list)
	Status []*string `json:"Status,omitnil,omitempty" name:"Status"`

	// Filter (left-closed-right-open range of execution start time)
	StartTimeInterval *TimeInterval `json:"StartTimeInterval,omitnil,omitempty" name:"StartTimeInterval"`

	// Filter (left-closed-right-open range of execution end time)
	EndTimeInterval *TimeInterval `json:"EndTimeInterval,omitnil,omitempty" name:"EndTimeInterval"`

	// Valid values: ASC, DESC. Default value: DESC
	Order *string `json:"Order,omitnil,omitempty" name:"Order"`

	// Valid values: StartTime, EndTime. Default value: StartTime
	Orderby *string `json:"Orderby,omitnil,omitempty" name:"Orderby"`

	// Data offset. Default value: 0
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Number of results to be returned. Default value: 20. Maximum value: 100
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Filter (event invocation request ID)
	InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"`
}

func NewListAsyncEventsRequest

func NewListAsyncEventsRequest() (request *ListAsyncEventsRequest)

func (*ListAsyncEventsRequest) FromJsonString

func (r *ListAsyncEventsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListAsyncEventsRequest) ToJsonString

func (r *ListAsyncEventsRequest) ToJsonString() string

type ListAsyncEventsRequestParams

type ListAsyncEventsRequestParams struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Filter (function version)
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Filter (invocation type list)
	InvokeType []*string `json:"InvokeType,omitnil,omitempty" name:"InvokeType"`

	// Filter (event status list)
	Status []*string `json:"Status,omitnil,omitempty" name:"Status"`

	// Filter (left-closed-right-open range of execution start time)
	StartTimeInterval *TimeInterval `json:"StartTimeInterval,omitnil,omitempty" name:"StartTimeInterval"`

	// Filter (left-closed-right-open range of execution end time)
	EndTimeInterval *TimeInterval `json:"EndTimeInterval,omitnil,omitempty" name:"EndTimeInterval"`

	// Valid values: ASC, DESC. Default value: DESC
	Order *string `json:"Order,omitnil,omitempty" name:"Order"`

	// Valid values: StartTime, EndTime. Default value: StartTime
	Orderby *string `json:"Orderby,omitnil,omitempty" name:"Orderby"`

	// Data offset. Default value: 0
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Number of results to be returned. Default value: 20. Maximum value: 100
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Filter (event invocation request ID)
	InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"`
}

Predefined struct for user

type ListAsyncEventsResponse

type ListAsyncEventsResponse struct {
	*tchttp.BaseResponse
	Response *ListAsyncEventsResponseParams `json:"Response"`
}

func NewListAsyncEventsResponse

func NewListAsyncEventsResponse() (response *ListAsyncEventsResponse)

func (*ListAsyncEventsResponse) FromJsonString

func (r *ListAsyncEventsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListAsyncEventsResponse) ToJsonString

func (r *ListAsyncEventsResponse) ToJsonString() string

type ListAsyncEventsResponseParams

type ListAsyncEventsResponseParams struct {
	// Total number of events that meet the filter
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// Async event list
	EventList []*AsyncEvent `json:"EventList,omitnil,omitempty" name:"EventList"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ListFunctionsRequest

type ListFunctionsRequest struct {
	*tchttp.BaseRequest

	// It specifies whether to return the results in ascending or descending order. The value is `ASC` or `DESC`.
	Order *string `json:"Order,omitnil,omitempty" name:"Order"`

	// It specifies the sorting order of the results according to a specified field, such as `AddTime`, `ModTime`, and `FunctionName`.
	Orderby *string `json:"Orderby,omitnil,omitempty" name:"Orderby"`

	// Data offset. The default value is `0`.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Return data length. The default value is `20`.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// It specifies whether to support fuzzy matching for the function name.
	SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`

	// Namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Function description. Fuzzy search is supported.
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Filters
	// - tag:tag-key - String - Required: No - Filtering criteria based on tag-key - value pairs. Replace `tag-key` with a specific tag-key.
	//
	// The maximum number of `Filters` for each request is 10, and that of `Filter.Values` is 5.
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}

func NewListFunctionsRequest

func NewListFunctionsRequest() (request *ListFunctionsRequest)

func (*ListFunctionsRequest) FromJsonString

func (r *ListFunctionsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListFunctionsRequest) ToJsonString

func (r *ListFunctionsRequest) ToJsonString() string

type ListFunctionsRequestParams

type ListFunctionsRequestParams struct {
	// It specifies whether to return the results in ascending or descending order. The value is `ASC` or `DESC`.
	Order *string `json:"Order,omitnil,omitempty" name:"Order"`

	// It specifies the sorting order of the results according to a specified field, such as `AddTime`, `ModTime`, and `FunctionName`.
	Orderby *string `json:"Orderby,omitnil,omitempty" name:"Orderby"`

	// Data offset. The default value is `0`.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Return data length. The default value is `20`.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// It specifies whether to support fuzzy matching for the function name.
	SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`

	// Namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Function description. Fuzzy search is supported.
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Filters
	// - tag:tag-key - String - Required: No - Filtering criteria based on tag-key - value pairs. Replace `tag-key` with a specific tag-key.
	//
	// The maximum number of `Filters` for each request is 10, and that of `Filter.Values` is 5.
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}

Predefined struct for user

type ListFunctionsResponse

type ListFunctionsResponse struct {
	*tchttp.BaseResponse
	Response *ListFunctionsResponseParams `json:"Response"`
}

func NewListFunctionsResponse

func NewListFunctionsResponse() (response *ListFunctionsResponse)

func (*ListFunctionsResponse) FromJsonString

func (r *ListFunctionsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListFunctionsResponse) ToJsonString

func (r *ListFunctionsResponse) ToJsonString() string

type ListFunctionsResponseParams

type ListFunctionsResponseParams struct {
	// Function list
	Functions []*Function `json:"Functions,omitnil,omitempty" name:"Functions"`

	// Total number
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ListLayerVersionsRequest

type ListLayerVersionsRequest struct {
	*tchttp.BaseRequest

	// Layer name
	LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"`

	// Compatible runtimes
	CompatibleRuntime []*string `json:"CompatibleRuntime,omitnil,omitempty" name:"CompatibleRuntime"`
}

func NewListLayerVersionsRequest

func NewListLayerVersionsRequest() (request *ListLayerVersionsRequest)

func (*ListLayerVersionsRequest) FromJsonString

func (r *ListLayerVersionsRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListLayerVersionsRequest) ToJsonString

func (r *ListLayerVersionsRequest) ToJsonString() string

type ListLayerVersionsRequestParams

type ListLayerVersionsRequestParams struct {
	// Layer name
	LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"`

	// Compatible runtimes
	CompatibleRuntime []*string `json:"CompatibleRuntime,omitnil,omitempty" name:"CompatibleRuntime"`
}

Predefined struct for user

type ListLayerVersionsResponse

type ListLayerVersionsResponse struct {
	*tchttp.BaseResponse
	Response *ListLayerVersionsResponseParams `json:"Response"`
}

func NewListLayerVersionsResponse

func NewListLayerVersionsResponse() (response *ListLayerVersionsResponse)

func (*ListLayerVersionsResponse) FromJsonString

func (r *ListLayerVersionsResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListLayerVersionsResponse) ToJsonString

func (r *ListLayerVersionsResponse) ToJsonString() string

type ListLayerVersionsResponseParams

type ListLayerVersionsResponseParams struct {
	// Layer version list
	LayerVersions []*LayerVersionInfo `json:"LayerVersions,omitnil,omitempty" name:"LayerVersions"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ListLayersRequest

type ListLayersRequest struct {
	*tchttp.BaseRequest

	// Compatible runtimes
	CompatibleRuntime *string `json:"CompatibleRuntime,omitnil,omitempty" name:"CompatibleRuntime"`

	// Offset
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Limit
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Query key, which fuzzily matches the name
	SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
}

func NewListLayersRequest

func NewListLayersRequest() (request *ListLayersRequest)

func (*ListLayersRequest) FromJsonString

func (r *ListLayersRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListLayersRequest) ToJsonString

func (r *ListLayersRequest) ToJsonString() string

type ListLayersRequestParams

type ListLayersRequestParams struct {
	// Compatible runtimes
	CompatibleRuntime *string `json:"CompatibleRuntime,omitnil,omitempty" name:"CompatibleRuntime"`

	// Offset
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Limit
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Query key, which fuzzily matches the name
	SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
}

Predefined struct for user

type ListLayersResponse

type ListLayersResponse struct {
	*tchttp.BaseResponse
	Response *ListLayersResponseParams `json:"Response"`
}

func NewListLayersResponse

func NewListLayersResponse() (response *ListLayersResponse)

func (*ListLayersResponse) FromJsonString

func (r *ListLayersResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListLayersResponse) ToJsonString

func (r *ListLayersResponse) ToJsonString() string

type ListLayersResponseParams

type ListLayersResponseParams struct {
	// Layer list
	Layers []*LayerVersionInfo `json:"Layers,omitnil,omitempty" name:"Layers"`

	// Total number of layers
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ListNamespacesRequest

type ListNamespacesRequest struct {
	*tchttp.BaseRequest

	// Return data length. The default value is `20`.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Data offset. The default value is `0`.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// It specifies the sorting order of the results according to a specified field, such as `Name` and `Updatetime`.
	Orderby *string `json:"Orderby,omitnil,omitempty" name:"Orderby"`

	// It specifies whether to return the results in ascending or descending order. The value is `ASC` or `DESC`.
	Order *string `json:"Order,omitnil,omitempty" name:"Order"`

	// Specifies the range and keyword for search. The value of `Key` can be `Namespace` or `Description`. Multiple AND conditions can be specified.
	SearchKey []*SearchKey `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
}

func NewListNamespacesRequest

func NewListNamespacesRequest() (request *ListNamespacesRequest)

func (*ListNamespacesRequest) FromJsonString

func (r *ListNamespacesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListNamespacesRequest) ToJsonString

func (r *ListNamespacesRequest) ToJsonString() string

type ListNamespacesRequestParams

type ListNamespacesRequestParams struct {
	// Return data length. The default value is `20`.
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Data offset. The default value is `0`.
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// It specifies the sorting order of the results according to a specified field, such as `Name` and `Updatetime`.
	Orderby *string `json:"Orderby,omitnil,omitempty" name:"Orderby"`

	// It specifies whether to return the results in ascending or descending order. The value is `ASC` or `DESC`.
	Order *string `json:"Order,omitnil,omitempty" name:"Order"`

	// Specifies the range and keyword for search. The value of `Key` can be `Namespace` or `Description`. Multiple AND conditions can be specified.
	SearchKey []*SearchKey `json:"SearchKey,omitnil,omitempty" name:"SearchKey"`
}

Predefined struct for user

type ListNamespacesResponse

type ListNamespacesResponse struct {
	*tchttp.BaseResponse
	Response *ListNamespacesResponseParams `json:"Response"`
}

func NewListNamespacesResponse

func NewListNamespacesResponse() (response *ListNamespacesResponse)

func (*ListNamespacesResponse) FromJsonString

func (r *ListNamespacesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListNamespacesResponse) ToJsonString

func (r *ListNamespacesResponse) ToJsonString() string

type ListNamespacesResponseParams

type ListNamespacesResponseParams struct {
	// Namespace details
	Namespaces []*Namespace `json:"Namespaces,omitnil,omitempty" name:"Namespaces"`

	// Number of return namespaces
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ListTriggersRequest

type ListTriggersRequest struct {
	*tchttp.BaseRequest

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Namespace. Default value: default
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Data offset. Default value: 0
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Number of results to be returned. Default value: 20
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Indicates by which field to sort the returned results. Valid values: add_time, mod_time. Default value: mod_time
	OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`

	// Indicates whether the returned results are sorted in ascending or descending order. Valid values: ASC, DESC. Default value: DESC
	Order *string `json:"Order,omitnil,omitempty" name:"Order"`

	// * Qualifier: Version/Alias of trigger function
	// *TriggerName: Name of the trigger
	// *Description: Function trigger description
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}

func NewListTriggersRequest

func NewListTriggersRequest() (request *ListTriggersRequest)

func (*ListTriggersRequest) FromJsonString

func (r *ListTriggersRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListTriggersRequest) ToJsonString

func (r *ListTriggersRequest) ToJsonString() string

type ListTriggersRequestParams

type ListTriggersRequestParams struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Namespace. Default value: default
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Data offset. Default value: 0
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Number of results to be returned. Default value: 20
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Indicates by which field to sort the returned results. Valid values: add_time, mod_time. Default value: mod_time
	OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`

	// Indicates whether the returned results are sorted in ascending or descending order. Valid values: ASC, DESC. Default value: DESC
	Order *string `json:"Order,omitnil,omitempty" name:"Order"`

	// * Qualifier: Version/Alias of trigger function
	// *TriggerName: Name of the trigger
	// *Description: Function trigger description
	Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"`
}

Predefined struct for user

type ListTriggersResponse

type ListTriggersResponse struct {
	*tchttp.BaseResponse
	Response *ListTriggersResponseParams `json:"Response"`
}

func NewListTriggersResponse

func NewListTriggersResponse() (response *ListTriggersResponse)

func (*ListTriggersResponse) FromJsonString

func (r *ListTriggersResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListTriggersResponse) ToJsonString

func (r *ListTriggersResponse) ToJsonString() string

type ListTriggersResponseParams

type ListTriggersResponseParams struct {
	// Total number of triggers
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// Trigger list
	Triggers []*TriggerInfo `json:"Triggers,omitnil,omitempty" name:"Triggers"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ListVersionByFunctionRequest

type ListVersionByFunctionRequest struct {
	*tchttp.BaseRequest

	// Function Name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// The namespace where the function locates
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Data offset. The default value is `0`.
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Return data length. The default value is `20`.
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// It specifies whether to return the results in ascending or descending order. The value is `ASC` or `DESC`.
	Order *string `json:"Order,omitnil,omitempty" name:"Order"`

	// It specifies the sorting order of the results according to a specified field, such as `AddTime`, `ModTime`.
	OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
}

func NewListVersionByFunctionRequest

func NewListVersionByFunctionRequest() (request *ListVersionByFunctionRequest)

func (*ListVersionByFunctionRequest) FromJsonString

func (r *ListVersionByFunctionRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListVersionByFunctionRequest) ToJsonString

func (r *ListVersionByFunctionRequest) ToJsonString() string

type ListVersionByFunctionRequestParams

type ListVersionByFunctionRequestParams struct {
	// Function Name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// The namespace where the function locates
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Data offset. The default value is `0`.
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Return data length. The default value is `20`.
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// It specifies whether to return the results in ascending or descending order. The value is `ASC` or `DESC`.
	Order *string `json:"Order,omitnil,omitempty" name:"Order"`

	// It specifies the sorting order of the results according to a specified field, such as `AddTime`, `ModTime`.
	OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"`
}

Predefined struct for user

type ListVersionByFunctionResponse

type ListVersionByFunctionResponse struct {
	*tchttp.BaseResponse
	Response *ListVersionByFunctionResponseParams `json:"Response"`
}

func NewListVersionByFunctionResponse

func NewListVersionByFunctionResponse() (response *ListVersionByFunctionResponse)

func (*ListVersionByFunctionResponse) FromJsonString

func (r *ListVersionByFunctionResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListVersionByFunctionResponse) ToJsonString

func (r *ListVersionByFunctionResponse) ToJsonString() string

type ListVersionByFunctionResponseParams

type ListVersionByFunctionResponseParams struct {
	// Function version
	FunctionVersion []*string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"`

	// Function version list
	// Note: This field may return null, indicating that no valid values is found.
	Versions []*FunctionVersion `json:"Versions,omitnil,omitempty" name:"Versions"`

	// Total number of function versions
	// Note: This field may return null, indicating that no valid value was found.
	TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type LogFilter

type LogFilter struct {
	// Values of `filter.RetCode` include:
	// not0, indicating that only logs of failed execution will be returned.
	// is0, indicating that only logs of successful execution will be returned.
	// TimeLimitExceeded, indicating that logs of function invocations which timed out will be returned.
	// ResourceLimitExceeded, indicating that logs of function invocations during which resources exceeded the upper limit will be returned.
	// UserCodeException, indicating that logs of function invocations during which a user code error occurred will be returned.
	// Blank, indicating that all logs will be returned.
	RetCode *string `json:"RetCode,omitnil,omitempty" name:"RetCode"`
}

type LogSearchContext

type LogSearchContext struct {
	// Offset.
	Offset *string `json:"Offset,omitnil,omitempty" name:"Offset"`

	// Log record number
	Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// Log keyword
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// Log type. The value is `Application` (default) or `Platform`.
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`
}

type Namespace

type Namespace struct {
	// Creation time of the namespace
	ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"`

	// Modification time of the namespace
	AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"`

	// Namespace description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Namespace name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// The default value is default. TCB indicates that the namespace is developed and created through the mini-program cloud.
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`
}

type NamespaceLimit

type NamespaceLimit struct {
	// Total number of functions
	FunctionsCount *int64 `json:"FunctionsCount,omitnil,omitempty" name:"FunctionsCount"`

	// Trigger information
	Trigger *TriggerCount `json:"Trigger,omitnil,omitempty" name:"Trigger"`

	// Namespace name
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Concurrency
	ConcurrentExecutions *int64 `json:"ConcurrentExecutions,omitnil,omitempty" name:"ConcurrentExecutions"`

	// Timeout limit
	TimeoutLimit *int64 `json:"TimeoutLimit,omitnil,omitempty" name:"TimeoutLimit"`

	// Test event limit
	// Note: this field may return null, indicating that no valid values can be obtained.
	TestModelLimit *int64 `json:"TestModelLimit,omitnil,omitempty" name:"TestModelLimit"`

	// Initialization timeout limit
	InitTimeoutLimit *int64 `json:"InitTimeoutLimit,omitnil,omitempty" name:"InitTimeoutLimit"`

	// Limit of async retry attempt quantity
	RetryNumLimit *int64 `json:"RetryNumLimit,omitnil,omitempty" name:"RetryNumLimit"`

	// Lower limit of message retention time for async retry
	MinMsgTTL *int64 `json:"MinMsgTTL,omitnil,omitempty" name:"MinMsgTTL"`

	// Upper limit of message retention time for async retry
	MaxMsgTTL *int64 `json:"MaxMsgTTL,omitnil,omitempty" name:"MaxMsgTTL"`
}

type NamespaceUsage

type NamespaceUsage struct {
	// Function array
	Functions []*string `json:"Functions,omitnil,omitempty" name:"Functions"`

	// Namespace name
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Number of functions in namespace
	FunctionsCount *int64 `json:"FunctionsCount,omitnil,omitempty" name:"FunctionsCount"`

	// Total memory quota of the namespace
	// Note: This field may return `null`, indicating that no valid values can be obtained.
	TotalConcurrencyMem *int64 `json:"TotalConcurrencyMem,omitnil,omitempty" name:"TotalConcurrencyMem"`

	// Concurrency usage of the namespace
	// Note: This field may return `null`, indicating that no valid value can be obtained.
	TotalAllocatedConcurrencyMem *int64 `json:"TotalAllocatedConcurrencyMem,omitnil,omitempty" name:"TotalAllocatedConcurrencyMem"`

	// Provisioned concurrency usage of the namespace
	// Note: This field may return `null`, indicating that no valid value can be obtained.
	TotalAllocatedProvisionedMem *int64 `json:"TotalAllocatedProvisionedMem,omitnil,omitempty" name:"TotalAllocatedProvisionedMem"`
}

type PublishLayerVersionRequest

type PublishLayerVersionRequest struct {
	*tchttp.BaseRequest

	// Layer name, which can contain 1-64 English letters, digits, hyphens, and underscores, must begin with a letter, and cannot end with a hyphen or underscore
	LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"`

	// Runtimes compatible with layer. Multiple choices are allowed. The valid values of this parameter correspond to the valid values of the `Runtime` of the function.
	CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitnil,omitempty" name:"CompatibleRuntimes"`

	// Layer file source or content
	Content *Code `json:"Content,omitnil,omitempty" name:"Content"`

	// Layer version description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Software license of layer
	LicenseInfo *string `json:"LicenseInfo,omitnil,omitempty" name:"LicenseInfo"`
}

func NewPublishLayerVersionRequest

func NewPublishLayerVersionRequest() (request *PublishLayerVersionRequest)

func (*PublishLayerVersionRequest) FromJsonString

func (r *PublishLayerVersionRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PublishLayerVersionRequest) ToJsonString

func (r *PublishLayerVersionRequest) ToJsonString() string

type PublishLayerVersionRequestParams

type PublishLayerVersionRequestParams struct {
	// Layer name, which can contain 1-64 English letters, digits, hyphens, and underscores, must begin with a letter, and cannot end with a hyphen or underscore
	LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"`

	// Runtimes compatible with layer. Multiple choices are allowed. The valid values of this parameter correspond to the valid values of the `Runtime` of the function.
	CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitnil,omitempty" name:"CompatibleRuntimes"`

	// Layer file source or content
	Content *Code `json:"Content,omitnil,omitempty" name:"Content"`

	// Layer version description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Software license of layer
	LicenseInfo *string `json:"LicenseInfo,omitnil,omitempty" name:"LicenseInfo"`
}

Predefined struct for user

type PublishLayerVersionResponse

type PublishLayerVersionResponse struct {
	*tchttp.BaseResponse
	Response *PublishLayerVersionResponseParams `json:"Response"`
}

func NewPublishLayerVersionResponse

func NewPublishLayerVersionResponse() (response *PublishLayerVersionResponse)

func (*PublishLayerVersionResponse) FromJsonString

func (r *PublishLayerVersionResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PublishLayerVersionResponse) ToJsonString

func (r *PublishLayerVersionResponse) ToJsonString() string

type PublishLayerVersionResponseParams

type PublishLayerVersionResponseParams struct {
	// Version number of the layer created in this request
	LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type PublishVersionRequest

type PublishVersionRequest struct {
	*tchttp.BaseRequest

	// Name of the released function
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

func NewPublishVersionRequest

func NewPublishVersionRequest() (request *PublishVersionRequest)

func (*PublishVersionRequest) FromJsonString

func (r *PublishVersionRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PublishVersionRequest) ToJsonString

func (r *PublishVersionRequest) ToJsonString() string

type PublishVersionRequestParams

type PublishVersionRequestParams struct {
	// Name of the released function
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

Predefined struct for user

type PublishVersionResponse

type PublishVersionResponse struct {
	*tchttp.BaseResponse
	Response *PublishVersionResponseParams `json:"Response"`
}

func NewPublishVersionResponse

func NewPublishVersionResponse() (response *PublishVersionResponse)

func (*PublishVersionResponse) FromJsonString

func (r *PublishVersionResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PublishVersionResponse) ToJsonString

func (r *PublishVersionResponse) ToJsonString() string

type PublishVersionResponseParams

type PublishVersionResponseParams struct {
	// Function version
	FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"`

	// Code size
	CodeSize *int64 `json:"CodeSize,omitnil,omitempty" name:"CodeSize"`

	// Maximum available memory
	MemorySize *int64 `json:"MemorySize,omitnil,omitempty" name:"MemorySize"`

	// Function description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// Function entry
	Handler *string `json:"Handler,omitnil,omitempty" name:"Handler"`

	// Function timeout
	Timeout *int64 `json:"Timeout,omitnil,omitempty" name:"Timeout"`

	// Function running environment
	// Note: This parameter may return null, indicating that no valid values can be obtained.
	Runtime *string `json:"Runtime,omitnil,omitempty" name:"Runtime"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type PutProvisionedConcurrencyConfigRequest

type PutProvisionedConcurrencyConfigRequest struct {
	*tchttp.BaseRequest

	// Name of the function for which to set the provisioned concurrency
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function version number. Note: the `$LATEST` version does not support provisioned concurrency
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function's maximum concurrency quota minus 100
	VersionProvisionedConcurrencyNum *uint64 `json:"VersionProvisionedConcurrencyNum,omitnil,omitempty" name:"VersionProvisionedConcurrencyNum"`

	// Function namespace. Default value: `default`
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Scheduled provisioned concurrency scaling action
	TriggerActions []*TriggerAction `json:"TriggerActions,omitnil,omitempty" name:"TriggerActions"`

	// Specifies the provisioned concurrency type.
	// `Default`: Static provisioned concurrency.
	// `ConcurrencyUtilizationTracking`: Scales the concurrency automatically according to the concurrency utilization.
	// If `ConcurrencyUtilizationTracking` is passed in,
	//
	// `TrackingTarget`, `MinCapacity` and `MaxCapacity` are required, and `VersionProvisionedConcurrencyNum` must be `0`.
	ProvisionedType *string `json:"ProvisionedType,omitnil,omitempty" name:"ProvisionedType"`

	// The target concurrency utilization. Range: (0,1) (two decimal places)
	TrackingTarget *float64 `json:"TrackingTarget,omitnil,omitempty" name:"TrackingTarget"`

	// The minimum number of instances. It can not be smaller than `1`.
	MinCapacity *uint64 `json:"MinCapacity,omitnil,omitempty" name:"MinCapacity"`

	// The maximum number of instances
	MaxCapacity *uint64 `json:"MaxCapacity,omitnil,omitempty" name:"MaxCapacity"`
}

func NewPutProvisionedConcurrencyConfigRequest

func NewPutProvisionedConcurrencyConfigRequest() (request *PutProvisionedConcurrencyConfigRequest)

func (*PutProvisionedConcurrencyConfigRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PutProvisionedConcurrencyConfigRequest) ToJsonString

type PutProvisionedConcurrencyConfigRequestParams

type PutProvisionedConcurrencyConfigRequestParams struct {
	// Name of the function for which to set the provisioned concurrency
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function version number. Note: the `$LATEST` version does not support provisioned concurrency
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function's maximum concurrency quota minus 100
	VersionProvisionedConcurrencyNum *uint64 `json:"VersionProvisionedConcurrencyNum,omitnil,omitempty" name:"VersionProvisionedConcurrencyNum"`

	// Function namespace. Default value: `default`
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Scheduled provisioned concurrency scaling action
	TriggerActions []*TriggerAction `json:"TriggerActions,omitnil,omitempty" name:"TriggerActions"`

	// Specifies the provisioned concurrency type.
	// `Default`: Static provisioned concurrency.
	// `ConcurrencyUtilizationTracking`: Scales the concurrency automatically according to the concurrency utilization.
	// If `ConcurrencyUtilizationTracking` is passed in,
	//
	// `TrackingTarget`, `MinCapacity` and `MaxCapacity` are required, and `VersionProvisionedConcurrencyNum` must be `0`.
	ProvisionedType *string `json:"ProvisionedType,omitnil,omitempty" name:"ProvisionedType"`

	// The target concurrency utilization. Range: (0,1) (two decimal places)
	TrackingTarget *float64 `json:"TrackingTarget,omitnil,omitempty" name:"TrackingTarget"`

	// The minimum number of instances. It can not be smaller than `1`.
	MinCapacity *uint64 `json:"MinCapacity,omitnil,omitempty" name:"MinCapacity"`

	// The maximum number of instances
	MaxCapacity *uint64 `json:"MaxCapacity,omitnil,omitempty" name:"MaxCapacity"`
}

Predefined struct for user

type PutProvisionedConcurrencyConfigResponse

type PutProvisionedConcurrencyConfigResponse struct {
	*tchttp.BaseResponse
	Response *PutProvisionedConcurrencyConfigResponseParams `json:"Response"`
}

func NewPutProvisionedConcurrencyConfigResponse

func NewPutProvisionedConcurrencyConfigResponse() (response *PutProvisionedConcurrencyConfigResponse)

func (*PutProvisionedConcurrencyConfigResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PutProvisionedConcurrencyConfigResponse) ToJsonString

type PutProvisionedConcurrencyConfigResponseParams

type PutProvisionedConcurrencyConfigResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type PutReservedConcurrencyConfigRequest

type PutReservedConcurrencyConfigRequest struct {
	*tchttp.BaseRequest

	// Specifies the function of which you want to configure the reserved quota
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Reserved memory quota of the function. Note: the upper limit for the total reserved quota of the function is the user's total concurrency memory minus 12800
	ReservedConcurrencyMem *uint64 `json:"ReservedConcurrencyMem,omitnil,omitempty" name:"ReservedConcurrencyMem"`

	// Function namespace. Default value: `default`
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

func NewPutReservedConcurrencyConfigRequest

func NewPutReservedConcurrencyConfigRequest() (request *PutReservedConcurrencyConfigRequest)

func (*PutReservedConcurrencyConfigRequest) FromJsonString

func (r *PutReservedConcurrencyConfigRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PutReservedConcurrencyConfigRequest) ToJsonString

func (r *PutReservedConcurrencyConfigRequest) ToJsonString() string

type PutReservedConcurrencyConfigRequestParams

type PutReservedConcurrencyConfigRequestParams struct {
	// Specifies the function of which you want to configure the reserved quota
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Reserved memory quota of the function. Note: the upper limit for the total reserved quota of the function is the user's total concurrency memory minus 12800
	ReservedConcurrencyMem *uint64 `json:"ReservedConcurrencyMem,omitnil,omitempty" name:"ReservedConcurrencyMem"`

	// Function namespace. Default value: `default`
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

Predefined struct for user

type PutReservedConcurrencyConfigResponse

type PutReservedConcurrencyConfigResponse struct {
	*tchttp.BaseResponse
	Response *PutReservedConcurrencyConfigResponseParams `json:"Response"`
}

func NewPutReservedConcurrencyConfigResponse

func NewPutReservedConcurrencyConfigResponse() (response *PutReservedConcurrencyConfigResponse)

func (*PutReservedConcurrencyConfigResponse) FromJsonString

func (r *PutReservedConcurrencyConfigResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PutReservedConcurrencyConfigResponse) ToJsonString

func (r *PutReservedConcurrencyConfigResponse) ToJsonString() string

type PutReservedConcurrencyConfigResponseParams

type PutReservedConcurrencyConfigResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type PutTotalConcurrencyConfigRequest

type PutTotalConcurrencyConfigRequest struct {
	*tchttp.BaseRequest

	// Account concurrency memory quota. Note: the lower limit for the account concurrency memory quota is the user's total concurrency memory used + 12800
	TotalConcurrencyMem *uint64 `json:"TotalConcurrencyMem,omitnil,omitempty" name:"TotalConcurrencyMem"`

	// Namespace. Default value: `default`
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

func NewPutTotalConcurrencyConfigRequest

func NewPutTotalConcurrencyConfigRequest() (request *PutTotalConcurrencyConfigRequest)

func (*PutTotalConcurrencyConfigRequest) FromJsonString

func (r *PutTotalConcurrencyConfigRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PutTotalConcurrencyConfigRequest) ToJsonString

func (r *PutTotalConcurrencyConfigRequest) ToJsonString() string

type PutTotalConcurrencyConfigRequestParams

type PutTotalConcurrencyConfigRequestParams struct {
	// Account concurrency memory quota. Note: the lower limit for the account concurrency memory quota is the user's total concurrency memory used + 12800
	TotalConcurrencyMem *uint64 `json:"TotalConcurrencyMem,omitnil,omitempty" name:"TotalConcurrencyMem"`

	// Namespace. Default value: `default`
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

Predefined struct for user

type PutTotalConcurrencyConfigResponse

type PutTotalConcurrencyConfigResponse struct {
	*tchttp.BaseResponse
	Response *PutTotalConcurrencyConfigResponseParams `json:"Response"`
}

func NewPutTotalConcurrencyConfigResponse

func NewPutTotalConcurrencyConfigResponse() (response *PutTotalConcurrencyConfigResponse)

func (*PutTotalConcurrencyConfigResponse) FromJsonString

func (r *PutTotalConcurrencyConfigResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PutTotalConcurrencyConfigResponse) ToJsonString

func (r *PutTotalConcurrencyConfigResponse) ToJsonString() string

type PutTotalConcurrencyConfigResponseParams

type PutTotalConcurrencyConfigResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type RequestStatus

type RequestStatus struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Return value after the function is executed
	RetMsg *string `json:"RetMsg,omitnil,omitempty" name:"RetMsg"`

	// Request ID
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`

	// Request start time
	StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// Result of the request. `0`: succeeded, `1`: running, `-1`: exception
	RetCode *int64 `json:"RetCode,omitnil,omitempty" name:"RetCode"`

	// Time consumed for the request in ms
	Duration *float64 `json:"Duration,omitnil,omitempty" name:"Duration"`

	// Time consumed by the request in MB
	MemUsage *float64 `json:"MemUsage,omitnil,omitempty" name:"MemUsage"`

	// Retry Attempts
	RetryNum *int64 `json:"RetryNum,omitnil,omitempty" name:"RetryNum"`
}

type Result

type Result struct {
	// It indicates the log output during the function execution. Null is returned for asynchronous invocations.
	Log *string `json:"Log,omitnil,omitempty" name:"Log"`

	// It indicates the response from the executed function. Null is returned for asynchronous invocations.
	RetMsg *string `json:"RetMsg,omitnil,omitempty" name:"RetMsg"`

	// It indicates the error message of the executed function. Null is returned for asynchronous invocations.
	ErrMsg *string `json:"ErrMsg,omitnil,omitempty" name:"ErrMsg"`

	// It indicates the memory size (in bytes) when the function is running. Null is returned for asynchronous invocations.
	MemUsage *int64 `json:"MemUsage,omitnil,omitempty" name:"MemUsage"`

	// It indicates the duration (in milliseconds) required for running the function. Null is returned for asynchronous invocations.
	Duration *float64 `json:"Duration,omitnil,omitempty" name:"Duration"`

	// It indicates the billing duration (in milliseconds) for the function. Null is returned for asynchronous invocations.
	BillDuration *int64 `json:"BillDuration,omitnil,omitempty" name:"BillDuration"`

	// ID of the executed function
	FunctionRequestId *string `json:"FunctionRequestId,omitnil,omitempty" name:"FunctionRequestId"`

	// The [status code](https://intl.cloud.tencent.com/document/product/583/42611?from_cn_redirect=1) of the request. It’s not available for `Invoke` API.
	InvokeResult *int64 `json:"InvokeResult,omitnil,omitempty" name:"InvokeResult"`
}

type RetryConfig

type RetryConfig struct {
	// Number of retry attempts
	RetryNum *int64 `json:"RetryNum,omitnil,omitempty" name:"RetryNum"`
}

type RoutingConfig

type RoutingConfig struct {
	// Additional version with random weight-based routing
	AdditionalVersionWeights []*VersionWeight `json:"AdditionalVersionWeights,omitnil,omitempty" name:"AdditionalVersionWeights"`

	// Additional version with rule-based routing
	AddtionVersionMatchs []*VersionMatch `json:"AddtionVersionMatchs,omitnil,omitempty" name:"AddtionVersionMatchs"`
}

type SearchKey

type SearchKey struct {
	// Search range
	Key *string `json:"Key,omitnil,omitempty" name:"Key"`

	// Keyword for search
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`
}

type StatusReason

type StatusReason struct {
	// Error code
	ErrorCode *string `json:"ErrorCode,omitnil,omitempty" name:"ErrorCode"`

	// Error message
	ErrorMessage *string `json:"ErrorMessage,omitnil,omitempty" name:"ErrorMessage"`
}

type Tag

type Tag struct {
	// Tag key
	Key *string `json:"Key,omitnil,omitempty" name:"Key"`

	// Tag value
	Value *string `json:"Value,omitnil,omitempty" name:"Value"`
}

type TerminateAsyncEventRequest

type TerminateAsyncEventRequest struct {
	*tchttp.BaseRequest

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Terminated invocation request ID
	InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"`

	// Namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Whether to enable grace shutdown. If it’s `true`, a `SIGTERM` signal is sent to the specified request. See [Sending termination signal](https://intl.cloud.tencent.com/document/product/583/63969?from_cn_redirect=1#.E5.8F.91.E9.80.81.E7.BB.88.E6.AD.A2.E4.BF.A1.E5.8F.B7]. It’s set to `false` by default.
	GraceShutdown *bool `json:"GraceShutdown,omitnil,omitempty" name:"GraceShutdown"`
}

func NewTerminateAsyncEventRequest

func NewTerminateAsyncEventRequest() (request *TerminateAsyncEventRequest)

func (*TerminateAsyncEventRequest) FromJsonString

func (r *TerminateAsyncEventRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*TerminateAsyncEventRequest) ToJsonString

func (r *TerminateAsyncEventRequest) ToJsonString() string

type TerminateAsyncEventRequestParams

type TerminateAsyncEventRequestParams struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Terminated invocation request ID
	InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"`

	// Namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Whether to enable grace shutdown. If it’s `true`, a `SIGTERM` signal is sent to the specified request. See [Sending termination signal](https://intl.cloud.tencent.com/document/product/583/63969?from_cn_redirect=1#.E5.8F.91.E9.80.81.E7.BB.88.E6.AD.A2.E4.BF.A1.E5.8F.B7]. It’s set to `false` by default.
	GraceShutdown *bool `json:"GraceShutdown,omitnil,omitempty" name:"GraceShutdown"`
}

Predefined struct for user

type TerminateAsyncEventResponse

type TerminateAsyncEventResponse struct {
	*tchttp.BaseResponse
	Response *TerminateAsyncEventResponseParams `json:"Response"`
}

func NewTerminateAsyncEventResponse

func NewTerminateAsyncEventResponse() (response *TerminateAsyncEventResponse)

func (*TerminateAsyncEventResponse) FromJsonString

func (r *TerminateAsyncEventResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*TerminateAsyncEventResponse) ToJsonString

func (r *TerminateAsyncEventResponse) ToJsonString() string

type TerminateAsyncEventResponseParams

type TerminateAsyncEventResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type TimeInterval

type TimeInterval struct {
	// Start time (inclusive) in the format of "%Y-%m-%d %H:%M:%S"
	Start *string `json:"Start,omitnil,omitempty" name:"Start"`

	// End time (exclusive) in the format of "%Y-%m-%d %H:%M:%S"
	End *string `json:"End,omitnil,omitempty" name:"End"`
}

type Trigger

type Trigger struct {
	// Latest modification time of the trigger
	ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"`

	// Trigger type
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// Detailed trigger configuration
	TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"`

	// Trigger name
	TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"`

	// Creation time of the trigger
	AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"`

	// Enabling switch
	Enable *int64 `json:"Enable,omitnil,omitempty" name:"Enable"`

	// Custom parameter
	CustomArgument *string `json:"CustomArgument,omitnil,omitempty" name:"CustomArgument"`

	// Trigger status
	AvailableStatus *string `json:"AvailableStatus,omitnil,omitempty" name:"AvailableStatus"`

	// Minimum resource ID of trigger
	//
	// Deprecated: ResourceId is deprecated.
	ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"`

	// Trigger-Function binding status
	//
	// Deprecated: BindStatus is deprecated.
	BindStatus *string `json:"BindStatus,omitnil,omitempty" name:"BindStatus"`

	// Trigger type. Two-way means that the trigger can be manipulated in both consoles, while one-way means that the trigger can be created only in the SCF Console
	//
	// Deprecated: TriggerAttribute is deprecated.
	TriggerAttribute *string `json:"TriggerAttribute,omitnil,omitempty" name:"TriggerAttribute"`

	// The alias or version bound with the trigger
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Trigger description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

type TriggerAction

type TriggerAction struct {
	// Scheduled action name
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"`

	// Target provisioned concurrency of the scheduled scaling action
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	TriggerProvisionedConcurrencyNum *uint64 `json:"TriggerProvisionedConcurrencyNum,omitnil,omitempty" name:"TriggerProvisionedConcurrencyNum"`

	// Trigger time of the scheduled action in Cron expression. Seven fields are required and should be separated with a space.
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	TriggerCronConfig *string `json:"TriggerCronConfig,omitnil,omitempty" name:"TriggerCronConfig"`

	// The provision type. Value: `Default`
	// Note: This field may return `null`, indicating that no valid value can be found.
	ProvisionedType *string `json:"ProvisionedType,omitnil,omitempty" name:"ProvisionedType"`
}

type TriggerCount

type TriggerCount struct {
	// Number of COS triggers
	Cos *int64 `json:"Cos,omitnil,omitempty" name:"Cos"`

	// Number of timer triggers
	Timer *int64 `json:"Timer,omitnil,omitempty" name:"Timer"`

	// Number of CMQ triggers
	Cmq *int64 `json:"Cmq,omitnil,omitempty" name:"Cmq"`

	// Total number of triggers
	Total *int64 `json:"Total,omitnil,omitempty" name:"Total"`

	// Number of CKafka triggers
	Ckafka *int64 `json:"Ckafka,omitnil,omitempty" name:"Ckafka"`

	// Number of API Gateway triggers
	Apigw *int64 `json:"Apigw,omitnil,omitempty" name:"Apigw"`

	// Number of CLS triggers
	Cls *int64 `json:"Cls,omitnil,omitempty" name:"Cls"`

	// Number of CLB triggers
	Clb *int64 `json:"Clb,omitnil,omitempty" name:"Clb"`

	// Number of MPS triggers
	Mps *int64 `json:"Mps,omitnil,omitempty" name:"Mps"`

	// Number of CM triggers
	Cm *int64 `json:"Cm,omitnil,omitempty" name:"Cm"`

	// Number of VOD triggers
	Vod *int64 `json:"Vod,omitnil,omitempty" name:"Vod"`

	// Number of EventBridge triggers
	// Note: This field may return `null`, indicating that no valid values can be obtained.
	Eb *int64 `json:"Eb,omitnil,omitempty" name:"Eb"`
}

type TriggerInfo

type TriggerInfo struct {
	// Whether to enable
	Enable *uint64 `json:"Enable,omitnil,omitempty" name:"Enable"`

	// Function version or alias
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Trigger name
	TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"`

	// Trigger type
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// Detailed configuration of trigger
	TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"`

	// Whether the trigger is available
	AvailableStatus *string `json:"AvailableStatus,omitnil,omitempty" name:"AvailableStatus"`

	// Custom parameter
	// Note: this field may return null, indicating that no valid values can be obtained.
	CustomArgument *string `json:"CustomArgument,omitnil,omitempty" name:"CustomArgument"`

	// Trigger creation time
	AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"`

	// Trigger last modified time
	ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"`

	// Minimum resource ID of trigger
	//
	// Deprecated: ResourceId is deprecated.
	ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"`

	// Trigger-Function binding status
	//
	// Deprecated: BindStatus is deprecated.
	BindStatus *string `json:"BindStatus,omitnil,omitempty" name:"BindStatus"`

	// Trigger type. Two-way means that the trigger can be manipulated in both consoles, while one-way means that the trigger can be created only in the SCF Console
	//
	// Deprecated: TriggerAttribute is deprecated.
	TriggerAttribute *string `json:"TriggerAttribute,omitnil,omitempty" name:"TriggerAttribute"`

	// Description of a custom trigger
	// Note: This parameter may return null, indicating that no valid values can be obtained.
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

type UpdateAliasRequest

type UpdateAliasRequest struct {
	*tchttp.BaseRequest

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Alias name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Master version pointed to by the alias
	FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Routing information of alias, which is required if you need to specify an additional version for the alias.
	RoutingConfig *RoutingConfig `json:"RoutingConfig,omitnil,omitempty" name:"RoutingConfig"`

	// Alias description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

func NewUpdateAliasRequest

func NewUpdateAliasRequest() (request *UpdateAliasRequest)

func (*UpdateAliasRequest) FromJsonString

func (r *UpdateAliasRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateAliasRequest) ToJsonString

func (r *UpdateAliasRequest) ToJsonString() string

type UpdateAliasRequestParams

type UpdateAliasRequestParams struct {
	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Alias name
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// Master version pointed to by the alias
	FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Routing information of alias, which is required if you need to specify an additional version for the alias.
	RoutingConfig *RoutingConfig `json:"RoutingConfig,omitnil,omitempty" name:"RoutingConfig"`

	// Alias description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

Predefined struct for user

type UpdateAliasResponse

type UpdateAliasResponse struct {
	*tchttp.BaseResponse
	Response *UpdateAliasResponseParams `json:"Response"`
}

func NewUpdateAliasResponse

func NewUpdateAliasResponse() (response *UpdateAliasResponse)

func (*UpdateAliasResponse) FromJsonString

func (r *UpdateAliasResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateAliasResponse) ToJsonString

func (r *UpdateAliasResponse) ToJsonString() string

type UpdateAliasResponseParams

type UpdateAliasResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type UpdateFunctionCodeRequest

type UpdateFunctionCodeRequest struct {
	*tchttp.BaseRequest

	// Name of the function to be modified
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function handler name, which is in the `file name.function name` form. Use a period (.) to separate a file name and function name. The file name and function name must start and end with letters and contain 2-60 characters, including letters, digits, underscores (_), and hyphens (-).
	Handler *string `json:"Handler,omitnil,omitempty" name:"Handler"`

	// COS bucket name
	CosBucketName *string `json:"CosBucketName,omitnil,omitempty" name:"CosBucketName"`

	// COS object path
	CosObjectName *string `json:"CosObjectName,omitnil,omitempty" name:"CosObjectName"`

	// It contains a function code file and its dependencies in the ZIP format. When you use this API, the ZIP file needs to be encoded with Base64. Up to 20 MB is supported.
	ZipFile *string `json:"ZipFile,omitnil,omitempty" name:"ZipFile"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// COS region. Note: Beijing includes ap-beijing and ap-beijing-1.
	CosBucketRegion *string `json:"CosBucketRegion,omitnil,omitempty" name:"CosBucketRegion"`

	// Whether to install dependencies automatically
	InstallDependency *string `json:"InstallDependency,omitnil,omitempty" name:"InstallDependency"`

	// Function environment
	EnvId *string `json:"EnvId,omitnil,omitempty" name:"EnvId"`

	// It specifies whether to synchronously release a new version during the update. The default value is `FALSE`, indicating not to release a new version.
	Publish *string `json:"Publish,omitnil,omitempty" name:"Publish"`

	// Function code
	Code *Code `json:"Code,omitnil,omitempty" name:"Code"`

	// Code source. Valid values: ZipFile, Cos, Inline
	CodeSource *string `json:"CodeSource,omitnil,omitempty" name:"CodeSource"`
}

func NewUpdateFunctionCodeRequest

func NewUpdateFunctionCodeRequest() (request *UpdateFunctionCodeRequest)

func (*UpdateFunctionCodeRequest) FromJsonString

func (r *UpdateFunctionCodeRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateFunctionCodeRequest) ToJsonString

func (r *UpdateFunctionCodeRequest) ToJsonString() string

type UpdateFunctionCodeRequestParams

type UpdateFunctionCodeRequestParams struct {
	// Name of the function to be modified
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function handler name, which is in the `file name.function name` form. Use a period (.) to separate a file name and function name. The file name and function name must start and end with letters and contain 2-60 characters, including letters, digits, underscores (_), and hyphens (-).
	Handler *string `json:"Handler,omitnil,omitempty" name:"Handler"`

	// COS bucket name
	CosBucketName *string `json:"CosBucketName,omitnil,omitempty" name:"CosBucketName"`

	// COS object path
	CosObjectName *string `json:"CosObjectName,omitnil,omitempty" name:"CosObjectName"`

	// It contains a function code file and its dependencies in the ZIP format. When you use this API, the ZIP file needs to be encoded with Base64. Up to 20 MB is supported.
	ZipFile *string `json:"ZipFile,omitnil,omitempty" name:"ZipFile"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// COS region. Note: Beijing includes ap-beijing and ap-beijing-1.
	CosBucketRegion *string `json:"CosBucketRegion,omitnil,omitempty" name:"CosBucketRegion"`

	// Whether to install dependencies automatically
	InstallDependency *string `json:"InstallDependency,omitnil,omitempty" name:"InstallDependency"`

	// Function environment
	EnvId *string `json:"EnvId,omitnil,omitempty" name:"EnvId"`

	// It specifies whether to synchronously release a new version during the update. The default value is `FALSE`, indicating not to release a new version.
	Publish *string `json:"Publish,omitnil,omitempty" name:"Publish"`

	// Function code
	Code *Code `json:"Code,omitnil,omitempty" name:"Code"`

	// Code source. Valid values: ZipFile, Cos, Inline
	CodeSource *string `json:"CodeSource,omitnil,omitempty" name:"CodeSource"`
}

Predefined struct for user

type UpdateFunctionCodeResponse

type UpdateFunctionCodeResponse struct {
	*tchttp.BaseResponse
	Response *UpdateFunctionCodeResponseParams `json:"Response"`
}

func NewUpdateFunctionCodeResponse

func NewUpdateFunctionCodeResponse() (response *UpdateFunctionCodeResponse)

func (*UpdateFunctionCodeResponse) FromJsonString

func (r *UpdateFunctionCodeResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateFunctionCodeResponse) ToJsonString

func (r *UpdateFunctionCodeResponse) ToJsonString() string

type UpdateFunctionCodeResponseParams

type UpdateFunctionCodeResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type UpdateFunctionEventInvokeConfigRequest

type UpdateFunctionEventInvokeConfigRequest struct {
	*tchttp.BaseRequest

	// Async retry configuration information
	AsyncTriggerConfig *AsyncTriggerConfig `json:"AsyncTriggerConfig,omitnil,omitempty" name:"AsyncTriggerConfig"`

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace. Default value: default
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

func NewUpdateFunctionEventInvokeConfigRequest

func NewUpdateFunctionEventInvokeConfigRequest() (request *UpdateFunctionEventInvokeConfigRequest)

func (*UpdateFunctionEventInvokeConfigRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateFunctionEventInvokeConfigRequest) ToJsonString

type UpdateFunctionEventInvokeConfigRequestParams

type UpdateFunctionEventInvokeConfigRequestParams struct {
	// Async retry configuration information
	AsyncTriggerConfig *AsyncTriggerConfig `json:"AsyncTriggerConfig,omitnil,omitempty" name:"AsyncTriggerConfig"`

	// Function name
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Function namespace. Default value: default
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`
}

Predefined struct for user

type UpdateFunctionEventInvokeConfigResponse

type UpdateFunctionEventInvokeConfigResponse struct {
	*tchttp.BaseResponse
	Response *UpdateFunctionEventInvokeConfigResponseParams `json:"Response"`
}

func NewUpdateFunctionEventInvokeConfigResponse

func NewUpdateFunctionEventInvokeConfigResponse() (response *UpdateFunctionEventInvokeConfigResponse)

func (*UpdateFunctionEventInvokeConfigResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateFunctionEventInvokeConfigResponse) ToJsonString

type UpdateFunctionEventInvokeConfigResponseParams

type UpdateFunctionEventInvokeConfigResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type UpdateNamespaceRequest

type UpdateNamespaceRequest struct {
	*tchttp.BaseRequest

	// Namespace name
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Namespace description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

func NewUpdateNamespaceRequest

func NewUpdateNamespaceRequest() (request *UpdateNamespaceRequest)

func (*UpdateNamespaceRequest) FromJsonString

func (r *UpdateNamespaceRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateNamespaceRequest) ToJsonString

func (r *UpdateNamespaceRequest) ToJsonString() string

type UpdateNamespaceRequestParams

type UpdateNamespaceRequestParams struct {
	// Namespace name
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Namespace description
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

Predefined struct for user

type UpdateNamespaceResponse

type UpdateNamespaceResponse struct {
	*tchttp.BaseResponse
	Response *UpdateNamespaceResponseParams `json:"Response"`
}

func NewUpdateNamespaceResponse

func NewUpdateNamespaceResponse() (response *UpdateNamespaceResponse)

func (*UpdateNamespaceResponse) FromJsonString

func (r *UpdateNamespaceResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateNamespaceResponse) ToJsonString

func (r *UpdateNamespaceResponse) ToJsonString() string

type UpdateNamespaceResponseParams

type UpdateNamespaceResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type UpdateTriggerStatusRequest

type UpdateTriggerStatusRequest struct {
	*tchttp.BaseRequest

	// Initial status of the trigger. Values: `OPEN` (enabled); `CLOSE` disabled)
	Enable *string `json:"Enable,omitnil,omitempty" name:"Enable"`

	// Function name.
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Trigger name
	TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"`

	// Trigger Type
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// Function version. It defaults to `$LATEST`. It’s recommended to use `[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)` for canary release.
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// To update a COS trigger, this field is required. It stores the data {"event":"cos:ObjectCreated:*"} in the JSON format. The data content of this field is in the same format as that of SetTrigger. This field is optional if a scheduled trigger or CMQ trigger is to be deleted.
	TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"`
}

func NewUpdateTriggerStatusRequest

func NewUpdateTriggerStatusRequest() (request *UpdateTriggerStatusRequest)

func (*UpdateTriggerStatusRequest) FromJsonString

func (r *UpdateTriggerStatusRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateTriggerStatusRequest) ToJsonString

func (r *UpdateTriggerStatusRequest) ToJsonString() string

type UpdateTriggerStatusRequestParams

type UpdateTriggerStatusRequestParams struct {
	// Initial status of the trigger. Values: `OPEN` (enabled); `CLOSE` disabled)
	Enable *string `json:"Enable,omitnil,omitempty" name:"Enable"`

	// Function name.
	FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"`

	// Trigger name
	TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"`

	// Trigger Type
	Type *string `json:"Type,omitnil,omitempty" name:"Type"`

	// Function version. It defaults to `$LATEST`. It’s recommended to use `[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)` for canary release.
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// Function namespace
	Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// To update a COS trigger, this field is required. It stores the data {"event":"cos:ObjectCreated:*"} in the JSON format. The data content of this field is in the same format as that of SetTrigger. This field is optional if a scheduled trigger or CMQ trigger is to be deleted.
	TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"`
}

Predefined struct for user

type UpdateTriggerStatusResponse

type UpdateTriggerStatusResponse struct {
	*tchttp.BaseResponse
	Response *UpdateTriggerStatusResponseParams `json:"Response"`
}

func NewUpdateTriggerStatusResponse

func NewUpdateTriggerStatusResponse() (response *UpdateTriggerStatusResponse)

func (*UpdateTriggerStatusResponse) FromJsonString

func (r *UpdateTriggerStatusResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateTriggerStatusResponse) ToJsonString

func (r *UpdateTriggerStatusResponse) ToJsonString() string

type UpdateTriggerStatusResponseParams

type UpdateTriggerStatusResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type UsageInfo

type UsageInfo struct {
	// Number of namespaces
	NamespacesCount *int64 `json:"NamespacesCount,omitnil,omitempty" name:"NamespacesCount"`

	// Namespace details
	Namespace []*NamespaceUsage `json:"Namespace,omitnil,omitempty" name:"Namespace"`

	// Upper limit of user concurrency memory in the current region
	TotalConcurrencyMem *int64 `json:"TotalConcurrencyMem,omitnil,omitempty" name:"TotalConcurrencyMem"`

	// Quota of configured user concurrency memory in the current region
	TotalAllocatedConcurrencyMem *int64 `json:"TotalAllocatedConcurrencyMem,omitnil,omitempty" name:"TotalAllocatedConcurrencyMem"`

	// Quota of account concurrency actually configured by user
	UserConcurrencyMemLimit *int64 `json:"UserConcurrencyMemLimit,omitnil,omitempty" name:"UserConcurrencyMemLimit"`
}

type VersionMatch

type VersionMatch struct {
	// Function version name
	Version *string `json:"Version,omitnil,omitempty" name:"Version"`

	// Matching rule key. When the API is called, pass in the `key` to route the request to the specified version based on the matching rule
	// Header method:
	// Enter "invoke.headers.User" for `key` and pass in `RoutingKey:{"User":"value"}` when invoking a function through `invoke` for invocation based on rule matching
	Key *string `json:"Key,omitnil,omitempty" name:"Key"`

	// Match method. Valid values:
	// range: range match
	// exact: exact string match
	Method *string `json:"Method,omitnil,omitempty" name:"Method"`

	// Rule requirements for range match:
	// It should be described in an open or closed range, i.e., `(a,b)` or `[a,b]`, where both a and b are integers
	// Rule requirements for exact match:
	// Exact string match
	Expression *string `json:"Expression,omitnil,omitempty" name:"Expression"`
}

type VersionProvisionedConcurrencyInfo

type VersionProvisionedConcurrencyInfo struct {
	// Set provisioned concurrency amount.
	AllocatedProvisionedConcurrencyNum *uint64 `json:"AllocatedProvisionedConcurrencyNum,omitnil,omitempty" name:"AllocatedProvisionedConcurrencyNum"`

	// Currently available provisioned concurrency amount.
	AvailableProvisionedConcurrencyNum *uint64 `json:"AvailableProvisionedConcurrencyNum,omitnil,omitempty" name:"AvailableProvisionedConcurrencyNum"`

	// Provisioned concurrency setting task status. `Done`: completed; `InProgress`: in progress; `Failed`: partially or completely failed.
	Status *string `json:"Status,omitnil,omitempty" name:"Status"`

	// Status description of provisioned concurrency setting task.
	StatusReason *string `json:"StatusReason,omitnil,omitempty" name:"StatusReason"`

	// Function version number
	Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"`

	// List of scheduled provisioned concurrency scaling actions
	// Note: this field may return `null`, indicating that no valid values can be obtained.
	TriggerActions []*TriggerAction `json:"TriggerActions,omitnil,omitempty" name:"TriggerActions"`
}

type VersionWeight

type VersionWeight struct {
	// Function version name
	Version *string `json:"Version,omitnil,omitempty" name:"Version"`

	// Version weight
	Weight *float64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}

Jump to

Keyboard shortcuts

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