CreateFunctionDetails¶
- class oci.functions.models.CreateFunctionDetails(**kwargs)¶
Bases:
objectProperties to create a new function.
Methods:
__init__(**kwargs)Initializes a new CreateFunctionDetails object with values from keyword arguments.
Attributes:
[Required] Gets the application_id of this CreateFunctionDetails.
Gets the config of this CreateFunctionDetails.
Gets the defined_tags of this CreateFunctionDetails.
Gets the detached_mode_timeout_in_seconds of this CreateFunctionDetails.
[Required] Gets the display_name of this CreateFunctionDetails.
Gets the failure_destination of this CreateFunctionDetails.
Gets the freeform_tags of this CreateFunctionDetails.
[Required] Gets the memory_in_mbs of this CreateFunctionDetails.
Gets the provisioned_concurrency_config of this CreateFunctionDetails.
[Required] Gets the source_details of this CreateFunctionDetails.
Gets the success_destination of this CreateFunctionDetails.
Gets the timeout_in_seconds of this CreateFunctionDetails.
Gets the trace_config of this CreateFunctionDetails.
- __init__(**kwargs)¶
Initializes a new CreateFunctionDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
display_name (str) – The value to assign to the display_name property of this CreateFunctionDetails.
application_id (str) – The value to assign to the application_id property of this CreateFunctionDetails.
source_details (oci.functions.models.CreateFunctionSourceDetails) – The value to assign to the source_details property of this CreateFunctionDetails.
memory_in_mbs (int) – The value to assign to the memory_in_mbs property of this CreateFunctionDetails.
config (dict(str, str)) – The value to assign to the config property of this CreateFunctionDetails.
timeout_in_seconds (int) – The value to assign to the timeout_in_seconds property of this CreateFunctionDetails.
provisioned_concurrency_config (oci.functions.models.FunctionProvisionedConcurrencyConfig) – The value to assign to the provisioned_concurrency_config property of this CreateFunctionDetails.
detached_mode_timeout_in_seconds (int) – The value to assign to the detached_mode_timeout_in_seconds property of this CreateFunctionDetails.
failure_destination (oci.functions.models.FailureDestinationDetails) – The value to assign to the failure_destination property of this CreateFunctionDetails.
success_destination (oci.functions.models.SuccessDestinationDetails) – The value to assign to the success_destination property of this CreateFunctionDetails.
trace_config (oci.functions.models.FunctionTraceConfig) – The value to assign to the trace_config property of this CreateFunctionDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateFunctionDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateFunctionDetails.
- property application_id¶
[Required] Gets the application_id of this CreateFunctionDetails. The OCID of the application this function belongs to.
- Returns
The application_id of this CreateFunctionDetails.
- Return type
str
- property config¶
Gets the config of this CreateFunctionDetails. Function configuration. These values are passed on to the function as environment variables, this overrides application configuration values. Keys must be ASCII strings consisting solely of letters, digits, and the ‘_’ (underscore) character, and must not begin with a digit. Values should be limited to printable unicode characters.
Example: {“MY_FUNCTION_CONFIG”: “ConfVal”}
The maximum size for all configuration keys and values is limited to 4KB. This is measured as the sum of octets necessary to represent each key and value in UTF-8.
- Returns
The config of this CreateFunctionDetails.
- Return type
dict(str, str)
- property defined_tags¶
Gets the defined_tags of this CreateFunctionDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Operations”: {“CostCenter”: “42”}}
- Returns
The defined_tags of this CreateFunctionDetails.
- Return type
dict(str, dict(str, object))
- property detached_mode_timeout_in_seconds¶
Gets the detached_mode_timeout_in_seconds of this CreateFunctionDetails. Timeout for detached function invocations. Value in seconds.
- Returns
The detached_mode_timeout_in_seconds of this CreateFunctionDetails.
- Return type
int
- property display_name¶
[Required] Gets the display_name of this CreateFunctionDetails. The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- Returns
The display_name of this CreateFunctionDetails.
- Return type
str
- property failure_destination¶
Gets the failure_destination of this CreateFunctionDetails.
- Returns
The failure_destination of this CreateFunctionDetails.
- Return type
- property freeform_tags¶
Gets the freeform_tags of this CreateFunctionDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {“Department”: “Finance”}
- Returns
The freeform_tags of this CreateFunctionDetails.
- Return type
dict(str, str)
- property memory_in_mbs¶
[Required] Gets the memory_in_mbs of this CreateFunctionDetails. Maximum usable memory for the function (MiB).
- Returns
The memory_in_mbs of this CreateFunctionDetails.
- Return type
int
- property provisioned_concurrency_config¶
Gets the provisioned_concurrency_config of this CreateFunctionDetails.
- Returns
The provisioned_concurrency_config of this CreateFunctionDetails.
- Return type
- property source_details¶
[Required] Gets the source_details of this CreateFunctionDetails.
- Returns
The source_details of this CreateFunctionDetails.
- Return type
- property success_destination¶
Gets the success_destination of this CreateFunctionDetails.
- Returns
The success_destination of this CreateFunctionDetails.
- Return type
- property timeout_in_seconds¶
Gets the timeout_in_seconds of this CreateFunctionDetails. Timeout for executions of the function. Value in seconds.
- Returns
The timeout_in_seconds of this CreateFunctionDetails.
- Return type
int
- property trace_config¶
Gets the trace_config of this CreateFunctionDetails.
- Returns
The trace_config of this CreateFunctionDetails.
- Return type