FailureDestinationDetails¶
-
class
oci.functions.models.
FailureDestinationDetails
(**kwargs)¶ Bases:
object
An object that represents the destination to which Oracle Functions will send an invocation record with the details of the error of the failed detached function invocation. A notification is an example of a failure destination.
Example: {“kind”: “NOTIFICATION”, “topicId”: “topic_OCID”}
Attributes
KIND_NONE
A constant which can be used with the kind property of a FailureDestinationDetails. KIND_NOTIFICATION
A constant which can be used with the kind property of a FailureDestinationDetails. KIND_QUEUE
A constant which can be used with the kind property of a FailureDestinationDetails. KIND_STREAM
A constant which can be used with the kind property of a FailureDestinationDetails. kind
[Required] Gets the kind of this FailureDestinationDetails. Methods
__init__
(**kwargs)Initializes a new FailureDestinationDetails 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. -
KIND_NONE
= 'NONE'¶ A constant which can be used with the kind property of a FailureDestinationDetails. This constant has a value of “NONE”
-
KIND_NOTIFICATION
= 'NOTIFICATION'¶ A constant which can be used with the kind property of a FailureDestinationDetails. This constant has a value of “NOTIFICATION”
-
KIND_QUEUE
= 'QUEUE'¶ A constant which can be used with the kind property of a FailureDestinationDetails. This constant has a value of “QUEUE”
-
KIND_STREAM
= 'STREAM'¶ A constant which can be used with the kind property of a FailureDestinationDetails. This constant has a value of “STREAM”
-
__init__
(**kwargs)¶ Initializes a new FailureDestinationDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
StreamFailureDestinationDetails
QueueFailureDestinationDetails
NotificationFailureDestinationDetails
NoneFailureDestinationDetails
The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: kind (str) – The value to assign to the kind property of this FailureDestinationDetails. Allowed values for this property are: “NOTIFICATION”, “QUEUE”, “STREAM”, “NONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
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.
-
kind
¶ [Required] Gets the kind of this FailureDestinationDetails. The type of destination for the response to a failed detached function invocation.
Allowed values for this property are: “NOTIFICATION”, “QUEUE”, “STREAM”, “NONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The kind of this FailureDestinationDetails. Return type: str
-