edit-icon download-icon

API specification

Last Updated: Jul 27, 2018

Overview

Version information

Version : 0.1

URI scheme

Host : $account-id.$region.fc.aliyuncs.comBasePath : /2016-08-15Schemes : HTTP, HTTPS

Tags

  • Service : Service operations
  • Function : Function operations
  • Trigger : Trigger operations

Consumes

  • application/json

Produces

  • application/json

Resources

Service

Service operations

CreateService

ListServices

GetService

UpdateService

DeleteService

Function

Function operations

CreateFunction

ListFunctions

GetFunction

UpdateFunction

DeleteFunction

GetFunctionCode

InvokeFunction

Trigger

Trigger operations

CreateTrigger

ListTriggers

GetTrigger

UpdateTrigger

DeleteTrigger

Operations

CreateFunction

  1. POST /services/{serviceName}/functions
Description

Create a function

Parameters
Type Name Description Schema
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Path serviceName
required
Service name string
Body body
required
Function resource Function
Responses
HTTP Code Description Schema
200 Successfully created the resource.
Headers :
ETag (string) : Ensures that the function that will be updated or deleted matches the etag.
FunctionResponse
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service does not exist. Error code is ServiceNotFound. Error
409 Function already exists. Error code is FunctionAlreadyExists. Error
500 Internal server error. Error code is InternalServerError. Error

CreateService

  1. POST /services
Description

create service

Parameters
Type Name Description Schema
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Body body
required
Service resource Service
Responses
HTTP Code Description Schema
200 Successfully created the resource.
Headers :
ETag (string) : Ensures that the service that will be updated or deleted matches the etag.
ServiceResponse
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
409 Service already exists. Error code is ServiceAlreadyExists. Error
500 Internal server error. Error code is InternalServerError. Error

CreateTrigger

  1. POST /services/{serviceName}/functions/{functionName}/triggers
Description

Create a trigger

Parameters
Type Name Description Schema
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Path functionName
required
Function name string
Path serviceName
required
Service name string
Body body
required
Trigger resource Trigger
Responses
HTTP Code Description Schema
200 Successfully created the resource
Headers :
ETag (string) : Ensures that the trigger that will be updated or deleted matches the etag.
TriggerResponse
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service or function does not exist. Error code is ServiceNotFound,FunctionNotFound. Error
409 Trigger already exists. Error code is TriggerAlreadyExists. Error
500 Internal server error. Error code is InternalServerError. Error

DeleteFunction

  1. DELETE /services/{serviceName}/functions/{functionName}
Description

Deletes the function

Parameters
Type Name Description Schema
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Header If-Match
optional
Ensures the resource that’s to be updated is the requested one. The value is included in the Create/Get/Update Service/Function/Trigger API response. string
Path functionName
required
Function name string
Path serviceName
required
Service name string
Responses
HTTP Code Description Schema
204 Successfully deleted the requested resource. No Content
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service or function does not exist. Error code is ServiceNotFound,FunctionNotFound. Error
409 Function has at least one trigger. Error code is FunctionNotEmpty. Error
500 Internal server error. Error code is InternalServerError. Error

DeleteService

  1. DELETE /services/{serviceName}
Description

Deletes the service

Parameters
Type Name Description Schema
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Header If-Match
optional
Ensures the resource that’s to be updated is the requested one. The value is included in the Create/Get/Update Service/Function/Trigger API response. string
Path serviceName
required
Service name string
Responses
HTTP Code Description Schema
204 Successfully deleted the requested resource. No Content
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service does not exist. Error code is ServiceNotFound. Error
409 Service has at least one function. Error code is ServiceNotEmpty. Error
500 Internal server error. Error code is InternalServerError. Error

DeleteTrigger

  1. DELETE /services/{serviceName}/functions/{functionName}/triggers/{triggerName}
Description

Deletes the trigger

Parameters
Type Name Description Schema
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Header If-Match
optional
Ensures the resource that’s to be updated is the requested one. The value is included in the Create/Get/Update Service/Function/Trigger API response. string
Path functionName
required
Function name string
Path serviceName
required
Service name string
Path triggerName
required
Trigger name string
Responses
HTTP Code Description Schema
204 Successfully deleted the requested resource. No Content
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service,function,trigger does not exist. Error code is ServiceNotFound,FunctionNotFound,TriggerNotFound. Error
500 Internal server error. Error code is InternalServerError. Error

GetFunction

  1. GET /services/{serviceName}/functions/{functionName}
Description

Get function resource

Parameters
Type Name Description Schema
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Path functionName
required
Function name string
Path serviceName
required
Service name string
Responses
HTTP Code Description Schema
200 Successfully retrieved the function
Headers :
ETag (string) : Ensures that the function that will be updated or deleted matches the etag.
FunctionResponse
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service or function does not exist. Error code is ServiceNotFound,FunctionNotFound. Error
500 Internal server error. Error code is InternalServerError. Error

GetFunctionCode

  1. GET /services/{serviceName}/functions/{functionName}/code
Description

Get function code

Parameters
Type Name Description Schema
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Path functionName
required
Function name string
Path serviceName
required
Service name string
Responses
HTTP Code Description Schema
200 Successfully retrieved function FunctionCodeResponse
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service or function does not exist. Error code is ServiceNotFound,FunctionNotFound. Error
500 Internal server error. Error code is InternalServerError. Error

GetService

  1. GET /services/{serviceName}
Description

Get service information

Parameters
Type Name Description Schema
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Path serviceName
required
Service name string
Responses
HTTP Code Description Schema
200 Successfully retrieved the service
Headers :
ETag (string) : Ensures that the service that will be updated or deleted matches the etag.
ServiceResponse
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service does not exist. Error code is ServiceNotFound. Error
500 Internal server error. Error code is InternalServerError. Error

GetTrigger

  1. GET /services/{serviceName}/functions/{functionName}/triggers/{triggerName}
Description

Get trigger resource

Parameters
Type Name Description Schema
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Path functionName
required
Function name string
Path serviceName
required
Service name string
Path triggerName
required
Trigger name string
Responses
HTTP Code Description Schema
200 Successfully retrieved trigger
Headers :
ETag (string) : Ensures that the trigger that will be updated or deleted matches the etag.
TriggerResponse
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service,function,trigger does not exist. Error code is ServiceNotFound,FunctionNotFound,TriggerNotFound. Error
500 Internal server error. Error code is InternalServerError. Error

InvokeFunction

  1. POST /services/{serviceName}/functions/{functionName}/invocations
Description

Invoke function synchronously or asynchronously

Parameters
Type Name Description Schema Default
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Header X-Fc-Invocation-Type
optional
Invocation type, Sync or Async. Defaults to Sync. string "Sync"
Path functionName
required
Function name string
Path serviceName
required
Service name string
Body body
required
Event,binary type. This value is passed to function without any transformation. It’s function’s responsibility to interpret the value. object
Responses
HTTP Code Description Schema
200 Successfully invoked function synchronously.
Headers :
X-Fc-Error-Type (string) : Error type, including HandledInvocationError and UnhandledInvocationError.
InvokeResponse
202 The async invocation request has been accepted, and the corresponding function will be invoked as soon as possible. No Content
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service or function does not exist. Error code is ServiceNotFound,FunctionNotFound. Error
500 Internal server error. Error code is InternalServerError. Error

ListFunctions

  1. GET /services/{serviceName}/functions
Description

Retrieve function records

Parameters
Type Name Description Schema Default
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Path serviceName
required
Service name string
Query limit
optional
Limits the number of returned resource records. Defaults to 20 and cannot exceed 100. integer (int32) 20
Query nextToken
optional
Is used to query more resource records. The token is included in the List API response. string
Query prefix
optional
Limits the resource names that begin with the specified prefix. string
Query startKey
optional
Specifies the resource name where to start the query. string
Responses
HTTP Code Description Schema
200 Successfully retrieved functions Response 200
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service does not exist. Error code is ServiceNotFound. Error
500 Internal server error. Error code is InternalServerError. Error

Response 200

Name Schema
functions
optional
< functions > array
nextToken
optional
NextToken

functions

Name Description Schema
codeChecksum
optional
The checksum (crc64) of the function code.
Example : "5434025278388143772"
string
codeSize
optional
The size of the function code, in bytes.
Example : 1024
integer (int64)
createdTime
optional
The UTC time string indicating the time the function was created
Example : "2016-08-15T15:00:00.000+0000"
string
description
optional
Example : "This is a demo hello world function." string
functionId
optional
A unique id generated by Function Compute to identify a function.
Example : "2d28e0e9-9ba5-4eed-8b1a-d3d9cd24e737"
string
functionName
optional
Example : "helloworld" string
handler
optional
The function execution entry point.
Example : "hello_world.main"
string
lastModifiedTime
optional
The UTC time string indicating the last time the function was updated
Example : "2016-08-15T17:00:00.000+0000"
string
memorySize
optional
The amount of memory that’s used to execute function, in MB. Function Compute uses this value to allocate CPU resources proportionally.
Example : 512
integer (int32)
runtime
optional
The function runtime environment. Supporting nodejs6, nodejs8, python2.7, python3, java8
Example : "nodejs4.4"
string
timeout
optional
The maximum time duration a function can execute, in seconds. After which Function Compute terminites the execution.
Example : 10
integer (int32)

ListServices

  1. GET /services
Description

Retrieve service records

Parameters
Type Name Description Schema Default
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Query limit
optional
Limits the number of returned resource records. Defaults to 20 and cannot exceed 100. integer (int32) 20
Query nextToken
optional
Is used to query more resource records. The token is included in the List API response. string
Query prefix
optional
Limits the resource names that begin with the specified prefix. string
Query startKey
optional
Specifies the resource name where to start the query. string
Responses
HTTP Code Description Schema
200 Successfully retrieved services Response 200
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
500 Internal server error. Error code is InternalServerError. Error

Response 200

Name Schema
nextToken
optional
NextToken
services
optional
< services > array

services

Name Description Schema
createdTime
optional
The UTC time string indicating the time the service was created.
Example : "2016-08-15T16:06:05.000+0000"
string
description
optional
Service description
Example : "This is a demo service."
string
internetAccess
optional
Set it to true to enable internet access.
Example : true
boolean
lastModifiedTime
optional
The UTC time string indicating the last time the function was updated
Example : "2016-08-16T18:00:00.000+0000"
string
logConfig
optional
Log configuration. Function Compute pushes function execution logs to the configured log store. LogConfig
role
optional
The role grants Function Compute the permission to access user’s cloud resources, such as pushing logs to user’s log store. The temporary STS token generated from this role can be retrieved from function context and used to access cloud resources.
Example : "acs:ram::1234567890:role/fc-test"
string
serviceId
optional
A unique id generated by Function Compute to identify a service.
Example : "2d28e0e9-9ba5-4eed-8b1a-d3d9cd24e737"
string
serviceName
optional
Example : "demo-service" string
vpcConfig
optional
VPC configuration. Function Compute uses the config to setup ENI in the specific VPC. VPCConfig

ListTriggers

  1. GET /services/{serviceName}/functions/{functionName}/triggers
Description

Retrieve trigger records

Parameters
Type Name Description Schema Default
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Path functionName
required
Function name string
Path serviceName
required
Service name string
Query limit
optional
Limits the number of returned resource records. Defaults to 20 and cannot exceed 100. integer (int32) 20
Query nextToken
optional
Is used to query more resource records. The token is included in the List API response. string
Query prefix
optional
Limits the resource names that begin with the specified prefix. string
Query startKey
optional
Specifies the resource name where to start the query. string
Responses
HTTP Code Description Schema
200 Successfully retrieved functions Response 200
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service or function does not exist. Error code is ServiceNotFound,FunctionNotFound. Error
500 Internal server error. Error code is InternalServerError. Error

Response 200

Name Schema
nextToken
optional
NextToken
triggers
optional
< TriggerResponse > array

UpdateFunction

  1. PUT /services/{serviceName}/functions/{functionName}
Description

Update the function

Parameters
Type Name Description Schema
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Header If-Match
optional
Ensures the resource that’s to be updated is the requested one. The value is included in the Create/Get/Update Service/Function/Trigger API response. string
Path functionName
required
Function name string
Path serviceName
required
Service name string
Body function
required
Function object that’s to be updated FunctionUpdateFields
Responses
HTTP Code Description Schema
200 Successfully updated function
Headers :
ETag (string) : Ensures that the function that will be updated or deleted matches the etag.
FunctionResponse
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service or function does not exist. Error code is ServiceNotFound,FunctionNotFound. Error
500 Internal server error. Error code is InternalServerError. Error

UpdateService

  1. PUT /services/{serviceName}
Description

Update the service

Parameters
Type Name Description Schema
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Header If-Match
optional
Ensures the resource that’s to be updated is the requested one. The value is included in the Create/Get/Update Service/Function/Trigger API response. string
Path serviceName
required
Service name string
Body body
required
Service object that will be updated. ServiceUpdateFields
Responses
HTTP Code Description Schema
200 Successfully updated the service
Headers :
ETag (string) : Ensures that the service that will be updated or deleted matches the etag.
ServiceResponse
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service does not exist. Error code is ServiceNotFound. Error
500 Internal server error. Error code is InternalServerError. Error

UpdateTrigger

  1. PUT /services/{serviceName}/functions/{functionName}/triggers/{triggerName}
Description

Update the trigger

Parameters
Type Name Description Schema
Header Host
required
Host name, $account-id.$region.fc.aliyuncs.com string
Header If-Match
optional
Ensures the resource that’s to be updated is the requested one. The value is included in the Create/Get/Update Service/Function/Trigger API response. string
Path functionName
required
Function name string
Path serviceName
required
Service name string
Path triggerName
required
Trigger name string
Body body
required
Trigger object that will be updated. TriggerUpdateFields
Responses
HTTP Code Description Schema
200 Successfully updated the trigger
Headers :
ETag (string) : Ensures that the trigger that will be updated or deleted matches the etag.
TriggerResponse
400 Invalid arguments. Error code is InvalidArgument. Error
403 Denied requests. Error code is AccessDenied,InvalidAccessKeyId,SignatureNotMatch,RequestTimeTooSkewed. Error
404 Service,function,trigger does not exist. Error code is ServiceNotFound,FunctionNotFound,TriggerNotFound. Error
500 Internal server error. Error code is InternalServerError. Error

Definitions

Code

Provides two ways to upload code 1. By specifying the OSS BucketName and ObjectName 2. By specifying zipFile with base64 encoded zip file content.

Name Description Schema
ossBucketName
optional
OSS bucket name string
ossObjectName
optional
OSS object name string
zipFile
optional
Base64 encoded zip file content string

Error

Error

Name Description Schema
errorCode
optional
Error code string
errorMessage
optional
Error message string

Function

Name Description Schema
code
required
The code that contains the function implementation. Code
description
optional
string
functionName
required
Function name string
handler
required
The function execution entry point. string
memorySize
optional
The amount of memory that’s used to execute function, in MB. Function Compute uses this value to allocate CPU resources proportionally. Defaults to 128MB. It should be multiple of 64 MB and between 128MB and 3072MB. integer
runtime
required
The function runtime environment. Supporting nodejs6, nodejs8, python2.7, python3, java8 string
timeout
optional
The maximum time duration a function can execute, in seconds. After which Function Compute terminates the execution. Defaults to 3 seconds, and should be between 1 to 300 seconds. integer

FunctionCodeResponse

Name Description Schema
checksum
optional
crc64 checksum
Example : "1234567890"
string
url
optional
A pre-signed OSS url that can be used to download function code.
Example : "http://func-code.oss-cn-shanghai.aliyuncs.com/1a2b3c4d5e6f"
string

FunctionResponse

Name Description Schema
codeChecksum
optional
The checksum (crc64) of the function code.
Example : "5434025278388143772"
string
codeSize
optional
The size of the function code, in bytes.
Example : 1024
integer (int64)
createdTime
optional
The UTC time string indicating the time the function was created
Example : "2016-08-15T15:00:00.000+0000"
string
description
optional
Example : "This is a demo hello world function." string
functionId
optional
A unique id generated by Function Compute to identify a function.
Example : "2d28e0e9-9ba5-4eed-8b1a-d3d9cd24e737"
string
functionName
optional
Function Name
Example : "helloworld"
string
handler
optional
The function execution entry point.
Example : "hello_world.main"
string
lastModifiedTime
optional
The UTC time string indicating the last time the function was updated
Example : "2016-08-15T17:00:00.000+0000"
string
memorySize
optional
The amount of memory that’s used to execute function, in MB. Function Compute uses this value to allocate CPU resources proportionally.
Example : 512
integer (int32)
runtime
optional
The function runtime environment. Supporting nodejs6, nodejs8, python2.7, python3, java8.
Example : "nodejs4.4"
string
timeout
optional
The maximum time duration a function can execute, in seconds. After which Function Compute terminates the execution.
Example : 10
integer (int32)

FunctionUpdateFields

Function update fields

Name Description Schema
code
optional
The code that contains the function implementation. Code
description
optional
string
handler
optional
The function execution entry point. string
memorySize
optional
The amount of memory that’s used to execute function, in MB. Function Compute uses this value to allocate CPU resources proportionally. Defaults to 128MB. It should be multiple of 64 MB and between 128MB and 3072MB. integer
runtime
optional
The function runtime environment. Supporting nodejs6, nodejs8, python2.7, python3, java8 string
timeout
optional
The maximum time duration function can execute, in seconds. After which Function Compute terminates the execution. Defaults to 3 seconds, and should be between 1 to 300 seconds. integer

InvokeResponse

The response of invoke function. It’s in binary format. Users should interpret the data according to their function implementation.

Type : binary

LogConfig

Log configuration

Name Description Schema
logstore
optional
The log store name of Logs service string
project
optional
The project name of Logs service string

NextToken

Is used to query more resource records.

Type : string

Service

Service resource

Name Description Schema
description
optional
Service description string
internetAccess
optional
Set it to true to enable internet access.
Example : true
boolean
logConfig
optional
Log configuration. Function Compute pushes function execution logs to the configured log store. LogConfig
role
optional
The role grants Function Compute the permission to access user’s cloud resources, such as pushing logs to user’s log store. The temporary STS token generated from this role can be retrieved from function context and used to access cloud resources.
Example : "acs:ram::1234567890:role/fc-test"
string
serviceName
required
Service name string
vpcConfig
optional
VPC configuration. Function Compute uses the config to setup ENI in the specific VPC. VPCConfig

ServiceResponse

Name Description Schema
createdTime
optional
The UTC time string indicating the time the service was created
Example : "2016-08-15T16:06:05.000+0000"
string
description
optional
Service description
Example : "This is a demo service."
string
internetAccess
optional
Set it to true to enable internet access.
Example : true
boolean
lastModifiedTime
optional
The UTC time string indicating the last time the service was updated
Example : "2016-08-16T18:00:00.000+0000"
string
logConfig
optional
Log configuration. Function Compute pushes function execution logs to the configured log store. LogConfig
role
optional
The role grants Function Compute the permission to access user’s cloud resources, such as pushing logs to user’s log store. The temporary STS token generated from this role can be retrieved from function context and used to access cloud resources.
Example : "acs:ram::1234567890:role/fc-test"
string
serviceId
optional
A unique id generated by Function Compute to identify a service.
Example : "2d28e0e9-9ba5-4eed-8b1a-d3d9cd24e737"
string
serviceName
optional
Example : "demo-service" string
vpcConfig
optional
VPC configuration. Function Compute uses the config to setup ENI in the specific VPC. VPCConfig

ServiceUpdateFields

Service resource that can be updated.

Name Description Schema
description
optional
string
internetAccess
optional
Set it to true to enable internet access.
Example : true
boolean
logConfig
optional
Log configuration. Function Compute pushes function execution logs to the configured log store. LogConfig
role
optional
The role grants Function Compute the permission to access user’s cloud resources, such as pushing logs to user’s log store. The temporary STS token generated from this role can be retrieved from function context and used to access cloud resources.
Example : "acs:ram::1234567890:role/fc-test"
string
vpcConfig
optional
VPC configuration. Function Compute uses the config to setup ENI in the specific VPC. VPCConfig

Trigger

Name Description Schema
invocationRole
required
The role grants event source the permission to invoke function on behalf of user. This is optional for some triggers.
Example : "acs:ram::1234567890:role/fc-test"
string
sourceArn
required
The Aliyun Resource Name(ARN)of event source. This is optional for some triggers.
Example : "acs:oss:cn-shanghai:12345:mybucket"
string
triggerConfig
required
Event source specific trigger configuration. The value is different according to trigger type. object
triggerName
required
Trigger name
Example : "image_resize"
string
triggerType
required
Trigger type, e.g. oss, timer, logs. This determines how the trigger config is interpreted.
Example : "oss"
string

TriggerResponse

Name Description Schema
createdTime
optional
The UTC time string indicating the time the trigger was created
Example : "2016-08-15T15:00:00.000+0000"
string
invocationRole
optional
string
lastModifiedTime
optional
The UTC time string indicating the last time the trigger was updated
Example : "2016-08-15T17:00:00.000+0000"
string
sourceArn
optional
string
triggerConfig
optional
object
triggerName
optional
string
triggerType
optional
string

TriggerUpdateFields

Name Description Schema
invocationRole
optional
The role grants event source the permission to invoke function on behalf of user. This is optional for some triggers.
Example : "acs:ram::1234567890:role/fc-test"
string
triggerConfig
optional
Event source specific trigger configuration. The value is different according to trigger type. object

VPCConfig

VPC configuration

Name Description Schema
securityGroupId
required
Security group ID string
vSwitchIds
required
List of VSwitch IDs < string > array
vpcId
required
VPC ID string
Thank you! We've received your feedback.