oci.Functions.Function
Explore with Pulumi AI
This resource provides the Function resource in Oracle Cloud Infrastructure Functions service.
Creates a new function.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFunction = new oci.functions.Function("test_function", {
    applicationId: testApplication.id,
    displayName: functionDisplayName,
    memoryInMbs: functionMemoryInMbs,
    config: functionConfig,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    freeformTags: {
        Department: "Finance",
    },
    image: functionImage,
    imageDigest: functionImageDigest,
    provisionedConcurrencyConfig: {
        strategy: functionProvisionedConcurrencyConfigStrategy,
        count: functionProvisionedConcurrencyConfigCount,
    },
    sourceDetails: {
        pbfListingId: testPbfListing.id,
        sourceType: functionSourceDetailsSourceType,
    },
    timeoutInSeconds: functionTimeoutInSeconds,
    traceConfig: {
        isEnabled: functionTraceConfigIsEnabled,
    },
});
import pulumi
import pulumi_oci as oci
test_function = oci.functions.Function("test_function",
    application_id=test_application["id"],
    display_name=function_display_name,
    memory_in_mbs=function_memory_in_mbs,
    config=function_config,
    defined_tags={
        "Operations.CostCenter": "42",
    },
    freeform_tags={
        "Department": "Finance",
    },
    image=function_image,
    image_digest=function_image_digest,
    provisioned_concurrency_config={
        "strategy": function_provisioned_concurrency_config_strategy,
        "count": function_provisioned_concurrency_config_count,
    },
    source_details={
        "pbf_listing_id": test_pbf_listing["id"],
        "source_type": function_source_details_source_type,
    },
    timeout_in_seconds=function_timeout_in_seconds,
    trace_config={
        "is_enabled": function_trace_config_is_enabled,
    })
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/functions"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := functions.NewFunction(ctx, "test_function", &functions.FunctionArgs{
			ApplicationId: pulumi.Any(testApplication.Id),
			DisplayName:   pulumi.Any(functionDisplayName),
			MemoryInMbs:   pulumi.Any(functionMemoryInMbs),
			Config:        pulumi.Any(functionConfig),
			DefinedTags: pulumi.StringMap{
				"Operations.CostCenter": pulumi.String("42"),
			},
			FreeformTags: pulumi.StringMap{
				"Department": pulumi.String("Finance"),
			},
			Image:       pulumi.Any(functionImage),
			ImageDigest: pulumi.Any(functionImageDigest),
			ProvisionedConcurrencyConfig: &functions.FunctionProvisionedConcurrencyConfigArgs{
				Strategy: pulumi.Any(functionProvisionedConcurrencyConfigStrategy),
				Count:    pulumi.Any(functionProvisionedConcurrencyConfigCount),
			},
			SourceDetails: &functions.FunctionSourceDetailsArgs{
				PbfListingId: pulumi.Any(testPbfListing.Id),
				SourceType:   pulumi.Any(functionSourceDetailsSourceType),
			},
			TimeoutInSeconds: pulumi.Any(functionTimeoutInSeconds),
			TraceConfig: &functions.FunctionTraceConfigArgs{
				IsEnabled: pulumi.Any(functionTraceConfigIsEnabled),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testFunction = new Oci.Functions.Function("test_function", new()
    {
        ApplicationId = testApplication.Id,
        DisplayName = functionDisplayName,
        MemoryInMbs = functionMemoryInMbs,
        Config = functionConfig,
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
        Image = functionImage,
        ImageDigest = functionImageDigest,
        ProvisionedConcurrencyConfig = new Oci.Functions.Inputs.FunctionProvisionedConcurrencyConfigArgs
        {
            Strategy = functionProvisionedConcurrencyConfigStrategy,
            Count = functionProvisionedConcurrencyConfigCount,
        },
        SourceDetails = new Oci.Functions.Inputs.FunctionSourceDetailsArgs
        {
            PbfListingId = testPbfListing.Id,
            SourceType = functionSourceDetailsSourceType,
        },
        TimeoutInSeconds = functionTimeoutInSeconds,
        TraceConfig = new Oci.Functions.Inputs.FunctionTraceConfigArgs
        {
            IsEnabled = functionTraceConfigIsEnabled,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Functions.Function;
import com.pulumi.oci.Functions.FunctionArgs;
import com.pulumi.oci.Functions.inputs.FunctionProvisionedConcurrencyConfigArgs;
import com.pulumi.oci.Functions.inputs.FunctionSourceDetailsArgs;
import com.pulumi.oci.Functions.inputs.FunctionTraceConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var testFunction = new Function("testFunction", FunctionArgs.builder()
            .applicationId(testApplication.id())
            .displayName(functionDisplayName)
            .memoryInMbs(functionMemoryInMbs)
            .config(functionConfig)
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .freeformTags(Map.of("Department", "Finance"))
            .image(functionImage)
            .imageDigest(functionImageDigest)
            .provisionedConcurrencyConfig(FunctionProvisionedConcurrencyConfigArgs.builder()
                .strategy(functionProvisionedConcurrencyConfigStrategy)
                .count(functionProvisionedConcurrencyConfigCount)
                .build())
            .sourceDetails(FunctionSourceDetailsArgs.builder()
                .pbfListingId(testPbfListing.id())
                .sourceType(functionSourceDetailsSourceType)
                .build())
            .timeoutInSeconds(functionTimeoutInSeconds)
            .traceConfig(FunctionTraceConfigArgs.builder()
                .isEnabled(functionTraceConfigIsEnabled)
                .build())
            .build());
    }
}
resources:
  testFunction:
    type: oci:Functions:Function
    name: test_function
    properties:
      applicationId: ${testApplication.id}
      displayName: ${functionDisplayName}
      memoryInMbs: ${functionMemoryInMbs}
      config: ${functionConfig}
      definedTags:
        Operations.CostCenter: '42'
      freeformTags:
        Department: Finance
      image: ${functionImage}
      imageDigest: ${functionImageDigest}
      provisionedConcurrencyConfig:
        strategy: ${functionProvisionedConcurrencyConfigStrategy}
        count: ${functionProvisionedConcurrencyConfigCount}
      sourceDetails:
        pbfListingId: ${testPbfListing.id}
        sourceType: ${functionSourceDetailsSourceType}
      timeoutInSeconds: ${functionTimeoutInSeconds}
      traceConfig:
        isEnabled: ${functionTraceConfigIsEnabled}
Create Function Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Function(name: string, args: FunctionArgs, opts?: CustomResourceOptions);@overload
def Function(resource_name: str,
             args: FunctionArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Function(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             application_id: Optional[str] = None,
             display_name: Optional[str] = None,
             memory_in_mbs: Optional[str] = None,
             config: Optional[Mapping[str, str]] = None,
             defined_tags: Optional[Mapping[str, str]] = None,
             freeform_tags: Optional[Mapping[str, str]] = None,
             image: Optional[str] = None,
             image_digest: Optional[str] = None,
             provisioned_concurrency_config: Optional[FunctionProvisionedConcurrencyConfigArgs] = None,
             source_details: Optional[FunctionSourceDetailsArgs] = None,
             timeout_in_seconds: Optional[int] = None,
             trace_config: Optional[FunctionTraceConfigArgs] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var functionResource = new Oci.Functions.Function("functionResource", new()
{
    ApplicationId = "string",
    DisplayName = "string",
    MemoryInMbs = "string",
    Config = 
    {
        { "string", "string" },
    },
    DefinedTags = 
    {
        { "string", "string" },
    },
    FreeformTags = 
    {
        { "string", "string" },
    },
    Image = "string",
    ImageDigest = "string",
    ProvisionedConcurrencyConfig = new Oci.Functions.Inputs.FunctionProvisionedConcurrencyConfigArgs
    {
        Strategy = "string",
        Count = 0,
    },
    SourceDetails = new Oci.Functions.Inputs.FunctionSourceDetailsArgs
    {
        PbfListingId = "string",
        SourceType = "string",
    },
    TimeoutInSeconds = 0,
    TraceConfig = new Oci.Functions.Inputs.FunctionTraceConfigArgs
    {
        IsEnabled = false,
    },
});
example, err := functions.NewFunction(ctx, "functionResource", &functions.FunctionArgs{
	ApplicationId: pulumi.String("string"),
	DisplayName:   pulumi.String("string"),
	MemoryInMbs:   pulumi.String("string"),
	Config: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Image:       pulumi.String("string"),
	ImageDigest: pulumi.String("string"),
	ProvisionedConcurrencyConfig: &functions.FunctionProvisionedConcurrencyConfigArgs{
		Strategy: pulumi.String("string"),
		Count:    pulumi.Int(0),
	},
	SourceDetails: &functions.FunctionSourceDetailsArgs{
		PbfListingId: pulumi.String("string"),
		SourceType:   pulumi.String("string"),
	},
	TimeoutInSeconds: pulumi.Int(0),
	TraceConfig: &functions.FunctionTraceConfigArgs{
		IsEnabled: pulumi.Bool(false),
	},
})
var functionResource = new Function("functionResource", FunctionArgs.builder()
    .applicationId("string")
    .displayName("string")
    .memoryInMbs("string")
    .config(Map.of("string", "string"))
    .definedTags(Map.of("string", "string"))
    .freeformTags(Map.of("string", "string"))
    .image("string")
    .imageDigest("string")
    .provisionedConcurrencyConfig(FunctionProvisionedConcurrencyConfigArgs.builder()
        .strategy("string")
        .count(0)
        .build())
    .sourceDetails(FunctionSourceDetailsArgs.builder()
        .pbfListingId("string")
        .sourceType("string")
        .build())
    .timeoutInSeconds(0)
    .traceConfig(FunctionTraceConfigArgs.builder()
        .isEnabled(false)
        .build())
    .build());
function_resource = oci.functions.Function("functionResource",
    application_id="string",
    display_name="string",
    memory_in_mbs="string",
    config={
        "string": "string",
    },
    defined_tags={
        "string": "string",
    },
    freeform_tags={
        "string": "string",
    },
    image="string",
    image_digest="string",
    provisioned_concurrency_config={
        "strategy": "string",
        "count": 0,
    },
    source_details={
        "pbf_listing_id": "string",
        "source_type": "string",
    },
    timeout_in_seconds=0,
    trace_config={
        "is_enabled": False,
    })
const functionResource = new oci.functions.Function("functionResource", {
    applicationId: "string",
    displayName: "string",
    memoryInMbs: "string",
    config: {
        string: "string",
    },
    definedTags: {
        string: "string",
    },
    freeformTags: {
        string: "string",
    },
    image: "string",
    imageDigest: "string",
    provisionedConcurrencyConfig: {
        strategy: "string",
        count: 0,
    },
    sourceDetails: {
        pbfListingId: "string",
        sourceType: "string",
    },
    timeoutInSeconds: 0,
    traceConfig: {
        isEnabled: false,
    },
});
type: oci:Functions:Function
properties:
    applicationId: string
    config:
        string: string
    definedTags:
        string: string
    displayName: string
    freeformTags:
        string: string
    image: string
    imageDigest: string
    memoryInMbs: string
    provisionedConcurrencyConfig:
        count: 0
        strategy: string
    sourceDetails:
        pbfListingId: string
        sourceType: string
    timeoutInSeconds: 0
    traceConfig:
        isEnabled: false
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Function resource accepts the following input properties:
- ApplicationId string
- The OCID of the application this function belongs to.
- DisplayName string
- The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- MemoryIn stringMbs 
- (Updatable) Maximum usable memory for the function (MiB).
- Config Dictionary<string, string>
- (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"}- 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. 
- Dictionary<string, string>
- (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, string>
- (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
- ImageDigest 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
- ProvisionedConcurrency FunctionConfig Provisioned Concurrency Config 
- (Updatable) Define the strategy for provisioned concurrency for the function.
- SourceDetails FunctionSource Details 
- The source details for the Function. The function can be created from various sources.
- TimeoutIn intSeconds 
- (Updatable) Timeout for executions of the function. Value in seconds.
- TraceConfig FunctionTrace Config 
- (Updatable) Define the tracing configuration for a function.
- ApplicationId string
- The OCID of the application this function belongs to.
- DisplayName string
- The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- MemoryIn stringMbs 
- (Updatable) Maximum usable memory for the function (MiB).
- Config map[string]string
- (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"}- 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. 
- map[string]string
- (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]string
- (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
- ImageDigest 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
- ProvisionedConcurrency FunctionConfig Provisioned Concurrency Config Args 
- (Updatable) Define the strategy for provisioned concurrency for the function.
- SourceDetails FunctionSource Details Args 
- The source details for the Function. The function can be created from various sources.
- TimeoutIn intSeconds 
- (Updatable) Timeout for executions of the function. Value in seconds.
- TraceConfig FunctionTrace Config Args 
- (Updatable) Define the tracing configuration for a function.
- applicationId String
- The OCID of the application this function belongs to.
- displayName String
- The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- memoryIn StringMbs 
- (Updatable) Maximum usable memory for the function (MiB).
- config Map<String,String>
- (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"}- 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. 
- Map<String,String>
- (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,String>
- (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
- imageDigest 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
- provisionedConcurrency FunctionConfig Provisioned Concurrency Config 
- (Updatable) Define the strategy for provisioned concurrency for the function.
- sourceDetails FunctionSource Details 
- The source details for the Function. The function can be created from various sources.
- timeoutIn IntegerSeconds 
- (Updatable) Timeout for executions of the function. Value in seconds.
- traceConfig FunctionTrace Config 
- (Updatable) Define the tracing configuration for a function.
- applicationId string
- The OCID of the application this function belongs to.
- displayName string
- The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- memoryIn stringMbs 
- (Updatable) Maximum usable memory for the function (MiB).
- config {[key: string]: string}
- (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"}- 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. 
- {[key: string]: string}
- (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]: string}
- (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
- imageDigest 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
- provisionedConcurrency FunctionConfig Provisioned Concurrency Config 
- (Updatable) Define the strategy for provisioned concurrency for the function.
- sourceDetails FunctionSource Details 
- The source details for the Function. The function can be created from various sources.
- timeoutIn numberSeconds 
- (Updatable) Timeout for executions of the function. Value in seconds.
- traceConfig FunctionTrace Config 
- (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.
- memory_in_ strmbs 
- (Updatable) Maximum usable memory for the function (MiB).
- config Mapping[str, str]
- (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"}- 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. 
- Mapping[str, str]
- (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, str]
- (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
- provisioned_concurrency_ Functionconfig Provisioned Concurrency Config Args 
- (Updatable) Define the strategy for provisioned concurrency for the function.
- source_details FunctionSource Details Args 
- The source details for the Function. The function can be created from various sources.
- 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.
- applicationId String
- The OCID of the application this function belongs to.
- displayName String
- The display name of the function. The display name must be unique within the application containing the function. Avoid entering confidential information.
- memoryIn StringMbs 
- (Updatable) Maximum usable memory for the function (MiB).
- config Map<String>
- (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"}- 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. 
- Map<String>
- (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>
- (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
- imageDigest 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
- provisionedConcurrency Property MapConfig 
- (Updatable) Define the strategy for provisioned concurrency for the function.
- sourceDetails Property Map
- The source details for the Function. The function can be created from various sources.
- timeoutIn NumberSeconds 
- (Updatable) Timeout for executions of the function. Value in seconds.
- traceConfig 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:
- CompartmentId string
- The OCID of the compartment that contains the function.
- Id string
- The provider-assigned unique ID for this managed resource.
- InvokeEndpoint 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.
- Shape string
- The processor shape (GENERIC_X86/GENERIC_ARM) on which to run functions in the application, extracted from the image manifest.
- State string
- The current state of the function.
- TimeCreated string
- The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- TimeUpdated string
- The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- CompartmentId string
- The OCID of the compartment that contains the function.
- Id string
- The provider-assigned unique ID for this managed resource.
- InvokeEndpoint 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.
- Shape string
- The processor shape (GENERIC_X86/GENERIC_ARM) on which to run functions in the application, extracted from the image manifest.
- State string
- The current state of the function.
- TimeCreated string
- The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- TimeUpdated string
- The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- compartmentId String
- The OCID of the compartment that contains the function.
- id String
- The provider-assigned unique ID for this managed resource.
- invokeEndpoint 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.
- shape String
- The processor shape (GENERIC_X86/GENERIC_ARM) on which to run functions in the application, extracted from the image manifest.
- state String
- The current state of the function.
- timeCreated String
- The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- timeUpdated String
- The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- compartmentId string
- The OCID of the compartment that contains the function.
- id string
- The provider-assigned unique ID for this managed resource.
- invokeEndpoint 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.
- shape string
- The processor shape (GENERIC_X86/GENERIC_ARM) on which to run functions in the application, extracted from the image manifest.
- state string
- The current state of the function.
- timeCreated string
- The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- timeUpdated 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.
- shape str
- The processor shape (GENERIC_X86/GENERIC_ARM) on which to run functions in the application, extracted from the image manifest.
- 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
- compartmentId String
- The OCID of the compartment that contains the function.
- id String
- The provider-assigned unique ID for this managed resource.
- invokeEndpoint 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.
- shape String
- The processor shape (GENERIC_X86/GENERIC_ARM) on which to run functions in the application, extracted from the image manifest.
- state String
- The current state of the function.
- timeCreated String
- The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- timeUpdated String
- The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
Look up 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, str]] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        image: Optional[str] = None,
        image_digest: Optional[str] = None,
        invoke_endpoint: Optional[str] = None,
        memory_in_mbs: Optional[str] = None,
        provisioned_concurrency_config: Optional[FunctionProvisionedConcurrencyConfigArgs] = None,
        shape: Optional[str] = None,
        source_details: Optional[FunctionSourceDetailsArgs] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None,
        timeout_in_seconds: Optional[int] = None,
        trace_config: Optional[FunctionTraceConfigArgs] = None) -> Functionfunc 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)resources:  _:    type: oci:Functions:Function    get:      id: ${id}- 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.
- ApplicationId string
- The OCID of the application this function belongs to.
- CompartmentId string
- The OCID of the compartment that contains the function.
- Config Dictionary<string, string>
- (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"}- 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. 
- Dictionary<string, string>
- (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"}
- DisplayName 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, string>
- (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
- ImageDigest 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
- InvokeEndpoint 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.
- MemoryIn stringMbs 
- (Updatable) Maximum usable memory for the function (MiB).
- ProvisionedConcurrency FunctionConfig Provisioned Concurrency Config 
- (Updatable) Define the strategy for provisioned concurrency for the function.
- Shape string
- The processor shape (GENERIC_X86/GENERIC_ARM) on which to run functions in the application, extracted from the image manifest.
- SourceDetails FunctionSource Details 
- The source details for the Function. The function can be created from various sources.
- State string
- The current state of the function.
- TimeCreated string
- The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- TimeUpdated string
- The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- TimeoutIn intSeconds 
- (Updatable) Timeout for executions of the function. Value in seconds.
- TraceConfig FunctionTrace Config 
- (Updatable) Define the tracing configuration for a function.
- ApplicationId string
- The OCID of the application this function belongs to.
- CompartmentId string
- The OCID of the compartment that contains the function.
- Config map[string]string
- (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"}- 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. 
- map[string]string
- (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"}
- DisplayName 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]string
- (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
- ImageDigest 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
- InvokeEndpoint 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.
- MemoryIn stringMbs 
- (Updatable) Maximum usable memory for the function (MiB).
- ProvisionedConcurrency FunctionConfig Provisioned Concurrency Config Args 
- (Updatable) Define the strategy for provisioned concurrency for the function.
- Shape string
- The processor shape (GENERIC_X86/GENERIC_ARM) on which to run functions in the application, extracted from the image manifest.
- SourceDetails FunctionSource Details Args 
- The source details for the Function. The function can be created from various sources.
- State string
- The current state of the function.
- TimeCreated string
- The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- TimeUpdated string
- The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- TimeoutIn intSeconds 
- (Updatable) Timeout for executions of the function. Value in seconds.
- TraceConfig FunctionTrace Config Args 
- (Updatable) Define the tracing configuration for a function.
- applicationId String
- The OCID of the application this function belongs to.
- compartmentId String
- The OCID of the compartment that contains the function.
- config Map<String,String>
- (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"}- 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. 
- Map<String,String>
- (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"}
- displayName 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,String>
- (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
- imageDigest 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
- invokeEndpoint 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.
- memoryIn StringMbs 
- (Updatable) Maximum usable memory for the function (MiB).
- provisionedConcurrency FunctionConfig Provisioned Concurrency Config 
- (Updatable) Define the strategy for provisioned concurrency for the function.
- shape String
- The processor shape (GENERIC_X86/GENERIC_ARM) on which to run functions in the application, extracted from the image manifest.
- sourceDetails FunctionSource Details 
- The source details for the Function. The function can be created from various sources.
- state String
- The current state of the function.
- timeCreated String
- The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- timeUpdated String
- The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- timeoutIn IntegerSeconds 
- (Updatable) Timeout for executions of the function. Value in seconds.
- traceConfig FunctionTrace Config 
- (Updatable) Define the tracing configuration for a function.
- applicationId string
- The OCID of the application this function belongs to.
- compartmentId string
- The OCID of the compartment that contains the function.
- config {[key: string]: string}
- (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"}- 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. 
- {[key: string]: string}
- (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"}
- displayName 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]: string}
- (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
- imageDigest 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
- invokeEndpoint 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.
- memoryIn stringMbs 
- (Updatable) Maximum usable memory for the function (MiB).
- provisionedConcurrency FunctionConfig Provisioned Concurrency Config 
- (Updatable) Define the strategy for provisioned concurrency for the function.
- shape string
- The processor shape (GENERIC_X86/GENERIC_ARM) on which to run functions in the application, extracted from the image manifest.
- sourceDetails FunctionSource Details 
- The source details for the Function. The function can be created from various sources.
- state string
- The current state of the function.
- timeCreated string
- The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- timeUpdated string
- The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- timeoutIn numberSeconds 
- (Updatable) Timeout for executions of the function. Value in seconds.
- traceConfig FunctionTrace Config 
- (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, str]
- (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"}- 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. 
- Mapping[str, str]
- (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, str]
- (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).
- provisioned_concurrency_ Functionconfig Provisioned Concurrency Config Args 
- (Updatable) Define the strategy for provisioned concurrency for the function.
- shape str
- The processor shape (GENERIC_X86/GENERIC_ARM) on which to run functions in the application, extracted from the image manifest.
- source_details FunctionSource Details Args 
- The source details for the Function. The function can be created from various sources.
- 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.
- applicationId String
- The OCID of the application this function belongs to.
- compartmentId String
- The OCID of the compartment that contains the function.
- config Map<String>
- (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"}- 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. 
- Map<String>
- (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"}
- displayName 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>
- (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
- imageDigest 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
- invokeEndpoint 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.
- memoryIn StringMbs 
- (Updatable) Maximum usable memory for the function (MiB).
- provisionedConcurrency Property MapConfig 
- (Updatable) Define the strategy for provisioned concurrency for the function.
- shape String
- The processor shape (GENERIC_X86/GENERIC_ARM) on which to run functions in the application, extracted from the image manifest.
- sourceDetails Property Map
- The source details for the Function. The function can be created from various sources.
- state String
- The current state of the function.
- timeCreated String
- The time the function was created, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- timeUpdated String
- The time the function was updated, expressed in RFC 3339 timestamp format. Example: 2018-09-12T22:47:12.613Z
- timeoutIn NumberSeconds 
- (Updatable) Timeout for executions of the function. Value in seconds.
- traceConfig Property Map
- (Updatable) Define the tracing configuration for a function.
Supporting Types
FunctionProvisionedConcurrencyConfig, FunctionProvisionedConcurrencyConfigArgs        
FunctionSourceDetails, FunctionSourceDetailsArgs      
- PbfListing stringId 
- The OCID of the PbfListing this function is sourced from.
- SourceType string
- Type of the Function Source. Possible values: PRE_BUILT_FUNCTIONS.
- PbfListing stringId 
- The OCID of the PbfListing this function is sourced from.
- SourceType string
- Type of the Function Source. Possible values: PRE_BUILT_FUNCTIONS.
- pbfListing StringId 
- The OCID of the PbfListing this function is sourced from.
- sourceType String
- Type of the Function Source. Possible values: PRE_BUILT_FUNCTIONS.
- pbfListing stringId 
- The OCID of the PbfListing this function is sourced from.
- sourceType string
- Type of the Function Source. Possible values: PRE_BUILT_FUNCTIONS.
- pbf_listing_ strid 
- The OCID of the PbfListing this function is sourced from.
- source_type str
- Type of the Function Source. Possible values: PRE_BUILT_FUNCTIONS.
- pbfListing StringId 
- The OCID of the PbfListing this function is sourced from.
- sourceType String
- Type of the Function Source. Possible values: PRE_BUILT_FUNCTIONS.
FunctionTraceConfig, FunctionTraceConfigArgs      
- IsEnabled bool
- (Updatable) Define if tracing is enabled for the resource. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- IsEnabled bool
- (Updatable) Define if tracing is enabled for the resource. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- isEnabled Boolean
- (Updatable) Define if tracing is enabled for the resource. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- isEnabled boolean
- (Updatable) Define if tracing is enabled for the resource. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- is_enabled bool
- (Updatable) Define if tracing is enabled for the resource. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- isEnabled Boolean
- (Updatable) Define if tracing is enabled for the resource. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
Import
Functions can be imported using the id, e.g.
$ pulumi import oci:Functions/function:Function test_function "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.