Oracle Cloud Infrastructure
Function
This resource provides the Function resource in Oracle Cloud Infrastructure Functions service.
Creates a new function.
Example Usage
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testFunction = new Oci.Functions.Function("testFunction", new Oci.Functions.FunctionArgs
{
ApplicationId = oci_functions_application.Test_application.Id,
DisplayName = @var.Function_display_name,
Image = @var.Function_image,
MemoryInMbs = @var.Function_memory_in_mbs,
Config = @var.Function_config,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
FreeformTags =
{
{ "Department", "Finance" },
},
ImageDigest = @var.Function_image_digest,
TimeoutInSeconds = @var.Function_timeout_in_seconds,
TraceConfig = new Oci.Functions.Inputs.FunctionTraceConfigArgs
{
IsEnabled = @var.Function_trace_config_is_enabled,
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Functions"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Functions.NewFunction(ctx, "testFunction", &Functions.FunctionArgs{
ApplicationId: pulumi.Any(oci_functions_application.Test_application.Id),
DisplayName: pulumi.Any(_var.Function_display_name),
Image: pulumi.Any(_var.Function_image),
MemoryInMbs: pulumi.Any(_var.Function_memory_in_mbs),
Config: pulumi.Any(_var.Function_config),
DefinedTags: pulumi.AnyMap{
"Operations.CostCenter": pulumi.Any("42"),
},
FreeformTags: pulumi.AnyMap{
"Department": pulumi.Any("Finance"),
},
ImageDigest: pulumi.Any(_var.Function_image_digest),
TimeoutInSeconds: pulumi.Any(_var.Function_timeout_in_seconds),
TraceConfig: &functions.FunctionTraceConfigArgs{
IsEnabled: pulumi.Any(_var.Function_trace_config_is_enabled),
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_function = oci.functions.Function("testFunction",
application_id=oci_functions_application["test_application"]["id"],
display_name=var["function_display_name"],
image=var["function_image"],
memory_in_mbs=var["function_memory_in_mbs"],
config=var["function_config"],
defined_tags={
"Operations.CostCenter": "42",
},
freeform_tags={
"Department": "Finance",
},
image_digest=var["function_image_digest"],
timeout_in_seconds=var["function_timeout_in_seconds"],
trace_config=oci.functions.FunctionTraceConfigArgs(
is_enabled=var["function_trace_config_is_enabled"],
))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFunction = new oci.functions.Function("testFunction", {
applicationId: oci_functions_application.test_application.id,
displayName: _var.function_display_name,
image: _var.function_image,
memoryInMbs: _var.function_memory_in_mbs,
config: _var.function_config,
definedTags: {
"Operations.CostCenter": "42",
},
freeformTags: {
Department: "Finance",
},
imageDigest: _var.function_image_digest,
timeoutInSeconds: _var.function_timeout_in_seconds,
traceConfig: {
isEnabled: _var.function_trace_config_is_enabled,
},
});
Coming soon!
Create a Function Resource
new Function(name: string, args: FunctionArgs, opts?: CustomResourceOptions);
@overload
def Function(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
config: Optional[Mapping[str, Any]] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
image: Optional[str] = None,
image_digest: Optional[str] = None,
memory_in_mbs: Optional[str] = None,
timeout_in_seconds: Optional[int] = None,
trace_config: Optional[_functions.FunctionTraceConfigArgs] = None)
@overload
def Function(resource_name: str,
args: FunctionArgs,
opts: Optional[ResourceOptions] = None)
func NewFunction(ctx *Context, name string, args FunctionArgs, opts ...ResourceOption) (*Function, error)
public Function(string name, FunctionArgs args, CustomResourceOptions? opts = null)
public Function(String name, FunctionArgs args)
public Function(String name, FunctionArgs args, CustomResourceOptions options)
type: oci:Functions:Function
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FunctionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Function Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Function resource accepts the following input properties:
- Application
Id string The OCID of the application this function belongs to.
- Display
Name string The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- Image string
(Updatable) The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. This field must be updated if image_digest is updated. Example:
phx.ocir.io/ten/functions/function:0.0.1
- Memory
In stringMbs (Updatable) Maximum usable memory for the function (MiB).
- Config Dictionary<string, object>
(Updatable) 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"}
- Dictionary<string, object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Dictionary<string, object>
(Updatable) 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"}
- Image
Digest string (Updatable) 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 Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example:
sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
- Timeout
In intSeconds (Updatable) Timeout for executions of the function. Value in seconds.
- Trace
Config FunctionTrace Config Args (Updatable) Define the tracing configuration for a function.
- Application
Id string The OCID of the application this function belongs to.
- Display
Name string The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- Image string
(Updatable) The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. This field must be updated if image_digest is updated. Example:
phx.ocir.io/ten/functions/function:0.0.1
- Memory
In stringMbs (Updatable) Maximum usable memory for the function (MiB).
- Config map[string]interface{}
(Updatable) 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"}
- map[string]interface{}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- map[string]interface{}
(Updatable) 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"}
- Image
Digest string (Updatable) 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 Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example:
sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
- Timeout
In intSeconds (Updatable) Timeout for executions of the function. Value in seconds.
- Trace
Config FunctionTrace Config Args (Updatable) Define the tracing configuration for a function.
- application
Id String The OCID of the application this function belongs to.
- display
Name String The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- image String
(Updatable) The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. This field must be updated if image_digest is updated. Example:
phx.ocir.io/ten/functions/function:0.0.1
- memory
In StringMbs (Updatable) Maximum usable memory for the function (MiB).
- config Map<String,Object>
(Updatable) 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"}
- Map<String,Object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Map<String,Object>
(Updatable) 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"}
- image
Digest String (Updatable) 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 Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example:
sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
- timeout
In IntegerSeconds (Updatable) Timeout for executions of the function. Value in seconds.
- trace
Config FunctionTrace Config Args (Updatable) Define the tracing configuration for a function.
- application
Id string The OCID of the application this function belongs to.
- display
Name string The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- image string
(Updatable) The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. This field must be updated if image_digest is updated. Example:
phx.ocir.io/ten/functions/function:0.0.1
- memory
In stringMbs (Updatable) Maximum usable memory for the function (MiB).
- config {[key: string]: any}
(Updatable) 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"}
- {[key: string]: any}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- {[key: string]: any}
(Updatable) 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"}
- image
Digest string (Updatable) 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 Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example:
sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
- timeout
In numberSeconds (Updatable) Timeout for executions of the function. Value in seconds.
- trace
Config FunctionTrace Config Args (Updatable) Define the tracing configuration for a function.
- application_
id str The OCID of the application this function belongs to.
- display_
name str The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- image str
(Updatable) The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. This field must be updated if image_digest is updated. Example:
phx.ocir.io/ten/functions/function:0.0.1
- memory_
in_ strmbs (Updatable) Maximum usable memory for the function (MiB).
- config Mapping[str, Any]
(Updatable) 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"}
- Mapping[str, Any]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Mapping[str, Any]
(Updatable) 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"}
- image_
digest str (Updatable) 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 Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example:
sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
- timeout_
in_ intseconds (Updatable) Timeout for executions of the function. Value in seconds.
- trace_
config FunctionTrace Config Args (Updatable) Define the tracing configuration for a function.
- application
Id String The OCID of the application this function belongs to.
- display
Name String The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- image String
(Updatable) The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. This field must be updated if image_digest is updated. Example:
phx.ocir.io/ten/functions/function:0.0.1
- memory
In StringMbs (Updatable) Maximum usable memory for the function (MiB).
- config Map<Any>
(Updatable) 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"}
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Map<Any>
(Updatable) 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"}
- image
Digest String (Updatable) 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 Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example:
sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
- timeout
In NumberSeconds (Updatable) Timeout for executions of the function. Value in seconds.
- trace
Config Property Map (Updatable) Define the tracing configuration for a function.
Outputs
All input properties are implicitly available as output properties. Additionally, the Function resource produces the following output properties:
- Compartment
Id string The OCID of the compartment that contains the function.
- Id string
The provider-assigned unique ID for this managed resource.
- Invoke
Endpoint string The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.
- State string
The current state of the function.
- Time
Created string The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Time
Updated string The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Compartment
Id string The OCID of the compartment that contains the function.
- Id string
The provider-assigned unique ID for this managed resource.
- Invoke
Endpoint string The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.
- State string
The current state of the function.
- Time
Created string The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Time
Updated string The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- compartment
Id String The OCID of the compartment that contains the function.
- id String
The provider-assigned unique ID for this managed resource.
- invoke
Endpoint String The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.
- state String
The current state of the function.
- time
Created String The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time
Updated String The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- compartment
Id string The OCID of the compartment that contains the function.
- id string
The provider-assigned unique ID for this managed resource.
- invoke
Endpoint string The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.
- state string
The current state of the function.
- time
Created string The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time
Updated string The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- compartment_
id str The OCID of the compartment that contains the function.
- id str
The provider-assigned unique ID for this managed resource.
- invoke_
endpoint str The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.
- state str
The current state of the function.
- time_
created str The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time_
updated str The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- compartment
Id String The OCID of the compartment that contains the function.
- id String
The provider-assigned unique ID for this managed resource.
- invoke
Endpoint String The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.
- state String
The current state of the function.
- time
Created String The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time
Updated String The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
Look up an Existing Function Resource
Get an existing Function resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FunctionState, opts?: CustomResourceOptions): Function
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
compartment_id: Optional[str] = None,
config: Optional[Mapping[str, Any]] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
image: Optional[str] = None,
image_digest: Optional[str] = None,
invoke_endpoint: Optional[str] = None,
memory_in_mbs: Optional[str] = None,
state: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
timeout_in_seconds: Optional[int] = None,
trace_config: Optional[_functions.FunctionTraceConfigArgs] = None) -> Function
func GetFunction(ctx *Context, name string, id IDInput, state *FunctionState, opts ...ResourceOption) (*Function, error)
public static Function Get(string name, Input<string> id, FunctionState? state, CustomResourceOptions? opts = null)
public static Function get(String name, Output<String> id, FunctionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Application
Id string The OCID of the application this function belongs to.
- Compartment
Id string The OCID of the compartment that contains the function.
- Config Dictionary<string, object>
(Updatable) 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"}
- Dictionary<string, object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- Dictionary<string, object>
(Updatable) 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"}
- Image string
(Updatable) The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. This field must be updated if image_digest is updated. Example:
phx.ocir.io/ten/functions/function:0.0.1
- Image
Digest string (Updatable) 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 Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example:
sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
- Invoke
Endpoint string The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.
- Memory
In stringMbs (Updatable) Maximum usable memory for the function (MiB).
- State string
The current state of the function.
- Time
Created string The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Time
Updated string The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Timeout
In intSeconds (Updatable) Timeout for executions of the function. Value in seconds.
- Trace
Config FunctionTrace Config Args (Updatable) Define the tracing configuration for a function.
- Application
Id string The OCID of the application this function belongs to.
- Compartment
Id string The OCID of the compartment that contains the function.
- Config map[string]interface{}
(Updatable) 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"}
- map[string]interface{}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- map[string]interface{}
(Updatable) 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"}
- Image string
(Updatable) The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. This field must be updated if image_digest is updated. Example:
phx.ocir.io/ten/functions/function:0.0.1
- Image
Digest string (Updatable) 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 Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example:
sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
- Invoke
Endpoint string The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.
- Memory
In stringMbs (Updatable) Maximum usable memory for the function (MiB).
- State string
The current state of the function.
- Time
Created string The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Time
Updated string The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- Timeout
In intSeconds (Updatable) Timeout for executions of the function. Value in seconds.
- Trace
Config FunctionTrace Config Args (Updatable) Define the tracing configuration for a function.
- application
Id String The OCID of the application this function belongs to.
- compartment
Id String The OCID of the compartment that contains the function.
- config Map<String,Object>
(Updatable) 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"}
- Map<String,Object>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- Map<String,Object>
(Updatable) 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"}
- image String
(Updatable) The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. This field must be updated if image_digest is updated. Example:
phx.ocir.io/ten/functions/function:0.0.1
- image
Digest String (Updatable) 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 Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example:
sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
- invoke
Endpoint String The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.
- memory
In StringMbs (Updatable) Maximum usable memory for the function (MiB).
- state String
The current state of the function.
- time
Created String The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time
Updated String The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- timeout
In IntegerSeconds (Updatable) Timeout for executions of the function. Value in seconds.
- trace
Config FunctionTrace Config Args (Updatable) Define the tracing configuration for a function.
- application
Id string The OCID of the application this function belongs to.
- compartment
Id string The OCID of the compartment that contains the function.
- config {[key: string]: any}
(Updatable) 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"}
- {[key: string]: any}
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- {[key: string]: any}
(Updatable) 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"}
- image string
(Updatable) The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. This field must be updated if image_digest is updated. Example:
phx.ocir.io/ten/functions/function:0.0.1
- image
Digest string (Updatable) 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 Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example:
sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
- invoke
Endpoint string The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.
- memory
In stringMbs (Updatable) Maximum usable memory for the function (MiB).
- state string
The current state of the function.
- time
Created string The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time
Updated string The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- timeout
In numberSeconds (Updatable) Timeout for executions of the function. Value in seconds.
- trace
Config FunctionTrace Config Args (Updatable) Define the tracing configuration for a function.
- application_
id str The OCID of the application this function belongs to.
- compartment_
id str The OCID of the compartment that contains the function.
- config Mapping[str, Any]
(Updatable) 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"}
- Mapping[str, Any]
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- Mapping[str, Any]
(Updatable) 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"}
- image str
(Updatable) The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. This field must be updated if image_digest is updated. Example:
phx.ocir.io/ten/functions/function:0.0.1
- image_
digest str (Updatable) 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 Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example:
sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
- invoke_
endpoint str The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.
- memory_
in_ strmbs (Updatable) Maximum usable memory for the function (MiB).
- state str
The current state of the function.
- time_
created str The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time_
updated str The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- timeout_
in_ intseconds (Updatable) Timeout for executions of the function. Value in seconds.
- trace_
config FunctionTrace Config Args (Updatable) Define the tracing configuration for a function.
- application
Id String The OCID of the application this function belongs to.
- compartment
Id String The OCID of the compartment that contains the function.
- config Map<Any>
(Updatable) 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"}
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- Map<Any>
(Updatable) 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"}
- image String
(Updatable) The qualified name of the Docker image to use in the function, including the image tag. The image should be in the Oracle Cloud Infrastructure Registry that is in the same region as the function itself. This field must be updated if image_digest is updated. Example:
phx.ocir.io/ten/functions/function:0.0.1
- image
Digest String (Updatable) 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 Oracle Cloud Infrastructure Registry will be used. This field must be updated if image is updated. Example:
sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
- invoke
Endpoint String The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.
- memory
In StringMbs (Updatable) Maximum usable memory for the function (MiB).
- state String
The current state of the function.
- time
Created String The time the function was created, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- time
Updated String The time the function was updated, expressed in RFC 3339 timestamp format. Example:
2018-09-12T22:47:12.613Z
- timeout
In NumberSeconds (Updatable) Timeout for executions of the function. Value in seconds.
- trace
Config Property Map (Updatable) Define the tracing configuration for a function.
Supporting Types
FunctionTraceConfig
- Is
Enabled bool (Updatable) Define if tracing is enabled for the resource.
- Is
Enabled bool (Updatable) Define if tracing is enabled for the resource.
- is
Enabled Boolean (Updatable) Define if tracing is enabled for the resource.
- is
Enabled boolean (Updatable) Define if tracing is enabled for the resource.
- is_
enabled bool (Updatable) Define if tracing is enabled for the resource.
- is
Enabled Boolean (Updatable) Define if tracing is enabled for the resource.
Import
Functions can be imported using the id
, e.g.
$ pulumi import oci:Functions/function:Function test_function "id"
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.