CreateFaaSActionDetails¶
- class oci.events.models.CreateFaaSActionDetails(**kwargs)¶
Bases:
ActionDetailsCreate an action that delivers to an Oracle Functions Service endpoint.
Attributes:
A constant which can be used with the action_type property of a ActionDetails.
A constant which can be used with the action_type property of a ActionDetails.
A constant which can be used with the action_type property of a ActionDetails.
[Required] Gets the action_type of this ActionDetails.
Gets the description of this ActionDetails.
Gets the function_id of this CreateFaaSActionDetails.
[Required] Gets the is_enabled of this ActionDetails.
Methods:
__init__(**kwargs)Initializes a new CreateFaaSActionDetails object with values from keyword arguments.
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.
- ACTION_TYPE_FAAS = 'FAAS'¶
A constant which can be used with the action_type property of a ActionDetails. This constant has a value of “FAAS”
- ACTION_TYPE_ONS = 'ONS'¶
A constant which can be used with the action_type property of a ActionDetails. This constant has a value of “ONS”
- ACTION_TYPE_OSS = 'OSS'¶
A constant which can be used with the action_type property of a ActionDetails. This constant has a value of “OSS”
- __init__(**kwargs)¶
Initializes a new CreateFaaSActionDetails object with values from keyword arguments. The default value of the
action_typeattribute of this class isFAASand 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 CreateFaaSActionDetails. Allowed values for this property are: “ONS”, “OSS”, “FAAS”
is_enabled (bool) – The value to assign to the is_enabled property of this CreateFaaSActionDetails.
description (str) – The value to assign to the description property of this CreateFaaSActionDetails.
function_id (str) – The value to assign to the function_id property of this CreateFaaSActionDetails.
- property action_type¶
[Required] Gets the action_type of this ActionDetails. 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”
- Returns
The action_type of this ActionDetails.
- Return type
str
- property description¶
Gets the description of this ActionDetails. 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 ActionDetails.
- Return type
str
- property function_id¶
Gets the function_id of this CreateFaaSActionDetails. The OCID of a Function hosted by Oracle Functions Service.
- Returns
The function_id of this CreateFaaSActionDetails.
- Return type
str
- static 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.
- property is_enabled¶
[Required] Gets the is_enabled of this ActionDetails. Whether or not this action is currently enabled.
Example: true
- Returns
The is_enabled of this ActionDetails.
- Return type
bool