FaaSAction¶
-
class
oci.events.models.
FaaSAction
(**kwargs)¶ Bases:
oci.events.models.action.Action
An action that delivers to an Oracle Functions endpoint.
-
ACTION_TYPE_FAAS
= 'FAAS'¶
-
ACTION_TYPE_ONS
= 'ONS'¶
-
ACTION_TYPE_OSS
= 'OSS'¶
-
LIFECYCLE_STATE_ACTIVE
= 'ACTIVE'¶
-
LIFECYCLE_STATE_CREATING
= 'CREATING'¶
-
LIFECYCLE_STATE_DELETED
= 'DELETED'¶
-
LIFECYCLE_STATE_DELETING
= 'DELETING'¶
-
LIFECYCLE_STATE_FAILED
= 'FAILED'¶
-
LIFECYCLE_STATE_INACTIVE
= 'INACTIVE'¶
-
LIFECYCLE_STATE_UPDATING
= 'UPDATING'¶
-
__init__
(**kwargs)¶ Initializes a new FaaSAction object with values from keyword arguments. The default value of the
action_type
attribute of this class isFAAS
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - action_type (str) -- The value to assign to the action_type property of this FaaSAction. Allowed values for this property are: "ONS", "OSS", "FAAS"
- id (str) -- The value to assign to the id property of this FaaSAction.
- lifecycle_message (str) -- The value to assign to the lifecycle_message property of this FaaSAction.
- lifecycle_state (str) -- The value to assign to the lifecycle_state property of this FaaSAction. Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"
- description (str) -- The value to assign to the description property of this FaaSAction.
- function_id (str) -- The value to assign to the function_id property of this FaaSAction.
-
action_type
¶ [Required] Gets the action_type of this Action. The action to perform if the condition in the rule matches an event.
- ONS: Send to an Oracle Notification Service topic.
- OSS: Send to a stream from Oracle Streaming Service.
- FAAS: Send to an Oracle Functions Service endpoint.
Allowed values for this property are: "ONS", "OSS", "FAAS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
Returns: The action_type of this Action. Return type: str
-
description
¶ Gets the description of this Action. A string that describes the details of the action. It does not have to be unique, and you can change it. Avoid entering confidential information.
Returns: The description of this Action. Return type: str
-
function_id
¶ Gets the function_id of this FaaSAction. The OCID of a Function hosted by Oracle Functions Service.
Returns: The function_id of this FaaSAction. Return type: str
-
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
id
¶ [Required] Gets the id of this Action. The OCID of the action.
Returns: The id of this Action. Return type: str
-
lifecycle_message
¶ [Required] Gets the lifecycle_message of this Action. A message generated by the Events service about the current state of this rule.
Returns: The lifecycle_message of this Action. Return type: str
-
lifecycle_state
¶ [Required] Gets the lifecycle_state of this Action. The current state of the rule.
Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
Returns: The lifecycle_state of this Action. Return type: str
-