CreateFunctionDetails

class oci.functions.models.CreateFunctionDetails(**kwargs)

Bases: object

Properties to create a new function.

Methods

__init__(**kwargs) Initializes a new CreateFunctionDetails object with values from keyword arguments.

Attributes

application_id [Required] Gets the application_id of this CreateFunctionDetails.
config Gets the config of this CreateFunctionDetails.
defined_tags Gets the defined_tags of this CreateFunctionDetails.
display_name [Required] Gets the display_name of this CreateFunctionDetails.
freeform_tags Gets the freeform_tags of this CreateFunctionDetails.
image Gets the image of this CreateFunctionDetails.
image_digest Gets the image_digest of this CreateFunctionDetails.
memory_in_mbs [Required] Gets the memory_in_mbs of this CreateFunctionDetails.
provisioned_concurrency_config Gets the provisioned_concurrency_config of this CreateFunctionDetails.
source_details Gets the source_details of this CreateFunctionDetails.
timeout_in_seconds Gets the timeout_in_seconds of this CreateFunctionDetails.
trace_config 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.
  • image (str) – The value to assign to the image property of this CreateFunctionDetails.
  • image_digest (str) – The value to assign to the image_digest property of this CreateFunctionDetails.
  • source_details (oci.functions.models.FunctionSourceDetails) – 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.
  • 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.
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
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)
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))
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
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)
image

Gets the image of this CreateFunctionDetails. The qualified name of the Docker image to use in the function, including the image tag. The image should be in the OCI Registry that is in the same region as the function itself. Example: phx.ocir.io/ten/functions/function:0.0.1

Returns:The image of this CreateFunctionDetails.
Return type:str
image_digest

Gets the image_digest of this CreateFunctionDetails. The image digest for the version of the image that will be pulled when invoking this function. If no value is specified, the digest currently associated with the image in the OCI Registry will be used. Example: sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7

Returns:The image_digest of this CreateFunctionDetails.
Return type:str
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
provisioned_concurrency_config

Gets the provisioned_concurrency_config of this CreateFunctionDetails.

Returns:The provisioned_concurrency_config of this CreateFunctionDetails.
Return type:oci.functions.models.FunctionProvisionedConcurrencyConfig
source_details

Gets the source_details of this CreateFunctionDetails.

Returns:The source_details of this CreateFunctionDetails.
Return type:oci.functions.models.FunctionSourceDetails
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
trace_config

Gets the trace_config of this CreateFunctionDetails.

Returns:The trace_config of this CreateFunctionDetails.
Return type:oci.functions.models.FunctionTraceConfig