1. Packages
  2. Scaleway
  3. API Docs
  4. functions
  5. Function
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.functions.Function

Explore with Pulumi AI

Import

Functions can be imported using, {region}/{id}, as shown below:

bash

$ pulumi import scaleway:functions/function:Function main fr-par/11111111-1111-1111-1111-111111111111
Copy

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,
             namespace_id: Optional[str] = None,
             runtime: Optional[str] = None,
             privacy: Optional[str] = None,
             handler: Optional[str] = None,
             name: Optional[str] = None,
             project_id: Optional[str] = None,
             memory_limit: Optional[int] = None,
             min_scale: Optional[int] = None,
             deploy: Optional[bool] = None,
             http_option: Optional[str] = None,
             environment_variables: Optional[Mapping[str, str]] = None,
             max_scale: Optional[int] = None,
             region: Optional[str] = None,
             description: Optional[str] = None,
             sandbox: Optional[str] = None,
             secret_environment_variables: Optional[Mapping[str, str]] = None,
             timeout: Optional[int] = None,
             zip_file: Optional[str] = None,
             zip_hash: Optional[str] = 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: scaleway:functions:Function
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. FunctionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. FunctionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. FunctionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 Scaleway.Functions.Function("functionResource", new()
{
    NamespaceId = "string",
    Runtime = "string",
    Privacy = "string",
    Handler = "string",
    Name = "string",
    ProjectId = "string",
    MemoryLimit = 0,
    MinScale = 0,
    Deploy = false,
    HttpOption = "string",
    EnvironmentVariables = 
    {
        { "string", "string" },
    },
    MaxScale = 0,
    Region = "string",
    Description = "string",
    Sandbox = "string",
    SecretEnvironmentVariables = 
    {
        { "string", "string" },
    },
    Timeout = 0,
    ZipFile = "string",
    ZipHash = "string",
});
Copy
example, err := functions.NewFunction(ctx, "functionResource", &functions.FunctionArgs{
	NamespaceId: pulumi.String("string"),
	Runtime:     pulumi.String("string"),
	Privacy:     pulumi.String("string"),
	Handler:     pulumi.String("string"),
	Name:        pulumi.String("string"),
	ProjectId:   pulumi.String("string"),
	MemoryLimit: pulumi.Int(0),
	MinScale:    pulumi.Int(0),
	Deploy:      pulumi.Bool(false),
	HttpOption:  pulumi.String("string"),
	EnvironmentVariables: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	MaxScale:    pulumi.Int(0),
	Region:      pulumi.String("string"),
	Description: pulumi.String("string"),
	Sandbox:     pulumi.String("string"),
	SecretEnvironmentVariables: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Timeout: pulumi.Int(0),
	ZipFile: pulumi.String("string"),
	ZipHash: pulumi.String("string"),
})
Copy
var functionResource = new Function("functionResource", FunctionArgs.builder()
    .namespaceId("string")
    .runtime("string")
    .privacy("string")
    .handler("string")
    .name("string")
    .projectId("string")
    .memoryLimit(0)
    .minScale(0)
    .deploy(false)
    .httpOption("string")
    .environmentVariables(Map.of("string", "string"))
    .maxScale(0)
    .region("string")
    .description("string")
    .sandbox("string")
    .secretEnvironmentVariables(Map.of("string", "string"))
    .timeout(0)
    .zipFile("string")
    .zipHash("string")
    .build());
Copy
function_resource = scaleway.functions.Function("functionResource",
    namespace_id="string",
    runtime="string",
    privacy="string",
    handler="string",
    name="string",
    project_id="string",
    memory_limit=0,
    min_scale=0,
    deploy=False,
    http_option="string",
    environment_variables={
        "string": "string",
    },
    max_scale=0,
    region="string",
    description="string",
    sandbox="string",
    secret_environment_variables={
        "string": "string",
    },
    timeout=0,
    zip_file="string",
    zip_hash="string")
Copy
const functionResource = new scaleway.functions.Function("functionResource", {
    namespaceId: "string",
    runtime: "string",
    privacy: "string",
    handler: "string",
    name: "string",
    projectId: "string",
    memoryLimit: 0,
    minScale: 0,
    deploy: false,
    httpOption: "string",
    environmentVariables: {
        string: "string",
    },
    maxScale: 0,
    region: "string",
    description: "string",
    sandbox: "string",
    secretEnvironmentVariables: {
        string: "string",
    },
    timeout: 0,
    zipFile: "string",
    zipHash: "string",
});
Copy
type: scaleway:functions:Function
properties:
    deploy: false
    description: string
    environmentVariables:
        string: string
    handler: string
    httpOption: string
    maxScale: 0
    memoryLimit: 0
    minScale: 0
    name: string
    namespaceId: string
    privacy: string
    projectId: string
    region: string
    runtime: string
    sandbox: string
    secretEnvironmentVariables:
        string: string
    timeout: 0
    zipFile: string
    zipHash: string
Copy

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:

Handler This property is required. string
Handler of the function, depends on the runtime. Refer to the dedicated documentation for the list of supported runtimes.
NamespaceId
This property is required.
Changes to this property will trigger replacement.
string

The Functions namespace ID of the function.

Important Updating the name argument will recreate the function.

Privacy This property is required. string
The privacy type defines the way to authenticate to your function. Please check our dedicated section.
Runtime This property is required. string
Runtime of the function. Runtimes can be fetched using specific route
Deploy bool
Description string
The description of the function.
EnvironmentVariables Dictionary<string, string>
The environment variables of the function.
HttpOption string
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
MaxScale int
The maximum number of instances this function can scale to. Default to 20. Your function will scale automatically based on the incoming workload, but will never exceed the configured max_scale value.
MemoryLimit int
The memory resources in MB to allocate to each function. Defaults to 256 MB.
MinScale int
The minimum number of function instances running continuously. Defaults to 0. Functions are billed when executed, and using a min_scale greater than 0 will cause your function to run constantly.
Name Changes to this property will trigger replacement. string
The unique name of the function name.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the functions namespace is associated with.
Region Changes to this property will trigger replacement. string
region). The region in which the namespace should be created.
Sandbox string
Execution environment of the function.
SecretEnvironmentVariables Dictionary<string, string>
The secret environment variables of the function.
Timeout int
The maximum amount of time your function can spend processing a request before being stopped. Defaults to 300s.
ZipFile string
Path to the zip file containing your function sources to upload.
ZipHash string
The hash of your source zip file, changing it will re-apply function. Can be any string
Handler This property is required. string
Handler of the function, depends on the runtime. Refer to the dedicated documentation for the list of supported runtimes.
NamespaceId
This property is required.
Changes to this property will trigger replacement.
string

The Functions namespace ID of the function.

Important Updating the name argument will recreate the function.

Privacy This property is required. string
The privacy type defines the way to authenticate to your function. Please check our dedicated section.
Runtime This property is required. string
Runtime of the function. Runtimes can be fetched using specific route
Deploy bool
Description string
The description of the function.
EnvironmentVariables map[string]string
The environment variables of the function.
HttpOption string
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
MaxScale int
The maximum number of instances this function can scale to. Default to 20. Your function will scale automatically based on the incoming workload, but will never exceed the configured max_scale value.
MemoryLimit int
The memory resources in MB to allocate to each function. Defaults to 256 MB.
MinScale int
The minimum number of function instances running continuously. Defaults to 0. Functions are billed when executed, and using a min_scale greater than 0 will cause your function to run constantly.
Name Changes to this property will trigger replacement. string
The unique name of the function name.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the functions namespace is associated with.
Region Changes to this property will trigger replacement. string
region). The region in which the namespace should be created.
Sandbox string
Execution environment of the function.
SecretEnvironmentVariables map[string]string
The secret environment variables of the function.
Timeout int
The maximum amount of time your function can spend processing a request before being stopped. Defaults to 300s.
ZipFile string
Path to the zip file containing your function sources to upload.
ZipHash string
The hash of your source zip file, changing it will re-apply function. Can be any string
handler This property is required. String
Handler of the function, depends on the runtime. Refer to the dedicated documentation for the list of supported runtimes.
namespaceId
This property is required.
Changes to this property will trigger replacement.
String

The Functions namespace ID of the function.

Important Updating the name argument will recreate the function.

privacy This property is required. String
The privacy type defines the way to authenticate to your function. Please check our dedicated section.
runtime This property is required. String
Runtime of the function. Runtimes can be fetched using specific route
deploy Boolean
description String
The description of the function.
environmentVariables Map<String,String>
The environment variables of the function.
httpOption String
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
maxScale Integer
The maximum number of instances this function can scale to. Default to 20. Your function will scale automatically based on the incoming workload, but will never exceed the configured max_scale value.
memoryLimit Integer
The memory resources in MB to allocate to each function. Defaults to 256 MB.
minScale Integer
The minimum number of function instances running continuously. Defaults to 0. Functions are billed when executed, and using a min_scale greater than 0 will cause your function to run constantly.
name Changes to this property will trigger replacement. String
The unique name of the function name.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the functions namespace is associated with.
region Changes to this property will trigger replacement. String
region). The region in which the namespace should be created.
sandbox String
Execution environment of the function.
secretEnvironmentVariables Map<String,String>
The secret environment variables of the function.
timeout Integer
The maximum amount of time your function can spend processing a request before being stopped. Defaults to 300s.
zipFile String
Path to the zip file containing your function sources to upload.
zipHash String
The hash of your source zip file, changing it will re-apply function. Can be any string
handler This property is required. string
Handler of the function, depends on the runtime. Refer to the dedicated documentation for the list of supported runtimes.
namespaceId
This property is required.
Changes to this property will trigger replacement.
string

The Functions namespace ID of the function.

Important Updating the name argument will recreate the function.

privacy This property is required. string
The privacy type defines the way to authenticate to your function. Please check our dedicated section.
runtime This property is required. string
Runtime of the function. Runtimes can be fetched using specific route
deploy boolean
description string
The description of the function.
environmentVariables {[key: string]: string}
The environment variables of the function.
httpOption string
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
maxScale number
The maximum number of instances this function can scale to. Default to 20. Your function will scale automatically based on the incoming workload, but will never exceed the configured max_scale value.
memoryLimit number
The memory resources in MB to allocate to each function. Defaults to 256 MB.
minScale number
The minimum number of function instances running continuously. Defaults to 0. Functions are billed when executed, and using a min_scale greater than 0 will cause your function to run constantly.
name Changes to this property will trigger replacement. string
The unique name of the function name.
projectId Changes to this property will trigger replacement. string
project_id) The ID of the project the functions namespace is associated with.
region Changes to this property will trigger replacement. string
region). The region in which the namespace should be created.
sandbox string
Execution environment of the function.
secretEnvironmentVariables {[key: string]: string}
The secret environment variables of the function.
timeout number
The maximum amount of time your function can spend processing a request before being stopped. Defaults to 300s.
zipFile string
Path to the zip file containing your function sources to upload.
zipHash string
The hash of your source zip file, changing it will re-apply function. Can be any string
handler This property is required. str
Handler of the function, depends on the runtime. Refer to the dedicated documentation for the list of supported runtimes.
namespace_id
This property is required.
Changes to this property will trigger replacement.
str

The Functions namespace ID of the function.

Important Updating the name argument will recreate the function.

privacy This property is required. str
The privacy type defines the way to authenticate to your function. Please check our dedicated section.
runtime This property is required. str
Runtime of the function. Runtimes can be fetched using specific route
deploy bool
description str
The description of the function.
environment_variables Mapping[str, str]
The environment variables of the function.
http_option str
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
max_scale int
The maximum number of instances this function can scale to. Default to 20. Your function will scale automatically based on the incoming workload, but will never exceed the configured max_scale value.
memory_limit int
The memory resources in MB to allocate to each function. Defaults to 256 MB.
min_scale int
The minimum number of function instances running continuously. Defaults to 0. Functions are billed when executed, and using a min_scale greater than 0 will cause your function to run constantly.
name Changes to this property will trigger replacement. str
The unique name of the function name.
project_id Changes to this property will trigger replacement. str
project_id) The ID of the project the functions namespace is associated with.
region Changes to this property will trigger replacement. str
region). The region in which the namespace should be created.
sandbox str
Execution environment of the function.
secret_environment_variables Mapping[str, str]
The secret environment variables of the function.
timeout int
The maximum amount of time your function can spend processing a request before being stopped. Defaults to 300s.
zip_file str
Path to the zip file containing your function sources to upload.
zip_hash str
The hash of your source zip file, changing it will re-apply function. Can be any string
handler This property is required. String
Handler of the function, depends on the runtime. Refer to the dedicated documentation for the list of supported runtimes.
namespaceId
This property is required.
Changes to this property will trigger replacement.
String

The Functions namespace ID of the function.

Important Updating the name argument will recreate the function.

privacy This property is required. String
The privacy type defines the way to authenticate to your function. Please check our dedicated section.
runtime This property is required. String
Runtime of the function. Runtimes can be fetched using specific route
deploy Boolean
description String
The description of the function.
environmentVariables Map<String>
The environment variables of the function.
httpOption String
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
maxScale Number
The maximum number of instances this function can scale to. Default to 20. Your function will scale automatically based on the incoming workload, but will never exceed the configured max_scale value.
memoryLimit Number
The memory resources in MB to allocate to each function. Defaults to 256 MB.
minScale Number
The minimum number of function instances running continuously. Defaults to 0. Functions are billed when executed, and using a min_scale greater than 0 will cause your function to run constantly.
name Changes to this property will trigger replacement. String
The unique name of the function name.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the functions namespace is associated with.
region Changes to this property will trigger replacement. String
region). The region in which the namespace should be created.
sandbox String
Execution environment of the function.
secretEnvironmentVariables Map<String>
The secret environment variables of the function.
timeout Number
The maximum amount of time your function can spend processing a request before being stopped. Defaults to 300s.
zipFile String
Path to the zip file containing your function sources to upload.
zipHash String
The hash of your source zip file, changing it will re-apply function. Can be any string

Outputs

All input properties are implicitly available as output properties. Additionally, the Function resource produces the following output properties:

CpuLimit int
The CPU limit in mVCPU for your function.
DomainName string
The native domain name of the function.
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
The organization ID the function is associated with.
CpuLimit int
The CPU limit in mVCPU for your function.
DomainName string
The native domain name of the function.
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
The organization ID the function is associated with.
cpuLimit Integer
The CPU limit in mVCPU for your function.
domainName String
The native domain name of the function.
id String
The provider-assigned unique ID for this managed resource.
organizationId String
The organization ID the function is associated with.
cpuLimit number
The CPU limit in mVCPU for your function.
domainName string
The native domain name of the function.
id string
The provider-assigned unique ID for this managed resource.
organizationId string
The organization ID the function is associated with.
cpu_limit int
The CPU limit in mVCPU for your function.
domain_name str
The native domain name of the function.
id str
The provider-assigned unique ID for this managed resource.
organization_id str
The organization ID the function is associated with.
cpuLimit Number
The CPU limit in mVCPU for your function.
domainName String
The native domain name of the function.
id String
The provider-assigned unique ID for this managed resource.
organizationId String
The organization ID the function is associated with.

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,
        cpu_limit: Optional[int] = None,
        deploy: Optional[bool] = None,
        description: Optional[str] = None,
        domain_name: Optional[str] = None,
        environment_variables: Optional[Mapping[str, str]] = None,
        handler: Optional[str] = None,
        http_option: Optional[str] = None,
        max_scale: Optional[int] = None,
        memory_limit: Optional[int] = None,
        min_scale: Optional[int] = None,
        name: Optional[str] = None,
        namespace_id: Optional[str] = None,
        organization_id: Optional[str] = None,
        privacy: Optional[str] = None,
        project_id: Optional[str] = None,
        region: Optional[str] = None,
        runtime: Optional[str] = None,
        sandbox: Optional[str] = None,
        secret_environment_variables: Optional[Mapping[str, str]] = None,
        timeout: Optional[int] = None,
        zip_file: Optional[str] = None,
        zip_hash: Optional[str] = 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)
resources:  _:    type: scaleway:functions:Function    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
CpuLimit int
The CPU limit in mVCPU for your function.
Deploy bool
Description string
The description of the function.
DomainName string
The native domain name of the function.
EnvironmentVariables Dictionary<string, string>
The environment variables of the function.
Handler string
Handler of the function, depends on the runtime. Refer to the dedicated documentation for the list of supported runtimes.
HttpOption string
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
MaxScale int
The maximum number of instances this function can scale to. Default to 20. Your function will scale automatically based on the incoming workload, but will never exceed the configured max_scale value.
MemoryLimit int
The memory resources in MB to allocate to each function. Defaults to 256 MB.
MinScale int
The minimum number of function instances running continuously. Defaults to 0. Functions are billed when executed, and using a min_scale greater than 0 will cause your function to run constantly.
Name Changes to this property will trigger replacement. string
The unique name of the function name.
NamespaceId Changes to this property will trigger replacement. string

The Functions namespace ID of the function.

Important Updating the name argument will recreate the function.

OrganizationId string
The organization ID the function is associated with.
Privacy string
The privacy type defines the way to authenticate to your function. Please check our dedicated section.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the functions namespace is associated with.
Region Changes to this property will trigger replacement. string
region). The region in which the namespace should be created.
Runtime string
Runtime of the function. Runtimes can be fetched using specific route
Sandbox string
Execution environment of the function.
SecretEnvironmentVariables Dictionary<string, string>
The secret environment variables of the function.
Timeout int
The maximum amount of time your function can spend processing a request before being stopped. Defaults to 300s.
ZipFile string
Path to the zip file containing your function sources to upload.
ZipHash string
The hash of your source zip file, changing it will re-apply function. Can be any string
CpuLimit int
The CPU limit in mVCPU for your function.
Deploy bool
Description string
The description of the function.
DomainName string
The native domain name of the function.
EnvironmentVariables map[string]string
The environment variables of the function.
Handler string
Handler of the function, depends on the runtime. Refer to the dedicated documentation for the list of supported runtimes.
HttpOption string
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
MaxScale int
The maximum number of instances this function can scale to. Default to 20. Your function will scale automatically based on the incoming workload, but will never exceed the configured max_scale value.
MemoryLimit int
The memory resources in MB to allocate to each function. Defaults to 256 MB.
MinScale int
The minimum number of function instances running continuously. Defaults to 0. Functions are billed when executed, and using a min_scale greater than 0 will cause your function to run constantly.
Name Changes to this property will trigger replacement. string
The unique name of the function name.
NamespaceId Changes to this property will trigger replacement. string

The Functions namespace ID of the function.

Important Updating the name argument will recreate the function.

OrganizationId string
The organization ID the function is associated with.
Privacy string
The privacy type defines the way to authenticate to your function. Please check our dedicated section.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the functions namespace is associated with.
Region Changes to this property will trigger replacement. string
region). The region in which the namespace should be created.
Runtime string
Runtime of the function. Runtimes can be fetched using specific route
Sandbox string
Execution environment of the function.
SecretEnvironmentVariables map[string]string
The secret environment variables of the function.
Timeout int
The maximum amount of time your function can spend processing a request before being stopped. Defaults to 300s.
ZipFile string
Path to the zip file containing your function sources to upload.
ZipHash string
The hash of your source zip file, changing it will re-apply function. Can be any string
cpuLimit Integer
The CPU limit in mVCPU for your function.
deploy Boolean
description String
The description of the function.
domainName String
The native domain name of the function.
environmentVariables Map<String,String>
The environment variables of the function.
handler String
Handler of the function, depends on the runtime. Refer to the dedicated documentation for the list of supported runtimes.
httpOption String
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
maxScale Integer
The maximum number of instances this function can scale to. Default to 20. Your function will scale automatically based on the incoming workload, but will never exceed the configured max_scale value.
memoryLimit Integer
The memory resources in MB to allocate to each function. Defaults to 256 MB.
minScale Integer
The minimum number of function instances running continuously. Defaults to 0. Functions are billed when executed, and using a min_scale greater than 0 will cause your function to run constantly.
name Changes to this property will trigger replacement. String
The unique name of the function name.
namespaceId Changes to this property will trigger replacement. String

The Functions namespace ID of the function.

Important Updating the name argument will recreate the function.

organizationId String
The organization ID the function is associated with.
privacy String
The privacy type defines the way to authenticate to your function. Please check our dedicated section.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the functions namespace is associated with.
region Changes to this property will trigger replacement. String
region). The region in which the namespace should be created.
runtime String
Runtime of the function. Runtimes can be fetched using specific route
sandbox String
Execution environment of the function.
secretEnvironmentVariables Map<String,String>
The secret environment variables of the function.
timeout Integer
The maximum amount of time your function can spend processing a request before being stopped. Defaults to 300s.
zipFile String
Path to the zip file containing your function sources to upload.
zipHash String
The hash of your source zip file, changing it will re-apply function. Can be any string
cpuLimit number
The CPU limit in mVCPU for your function.
deploy boolean
description string
The description of the function.
domainName string
The native domain name of the function.
environmentVariables {[key: string]: string}
The environment variables of the function.
handler string
Handler of the function, depends on the runtime. Refer to the dedicated documentation for the list of supported runtimes.
httpOption string
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
maxScale number
The maximum number of instances this function can scale to. Default to 20. Your function will scale automatically based on the incoming workload, but will never exceed the configured max_scale value.
memoryLimit number
The memory resources in MB to allocate to each function. Defaults to 256 MB.
minScale number
The minimum number of function instances running continuously. Defaults to 0. Functions are billed when executed, and using a min_scale greater than 0 will cause your function to run constantly.
name Changes to this property will trigger replacement. string
The unique name of the function name.
namespaceId Changes to this property will trigger replacement. string

The Functions namespace ID of the function.

Important Updating the name argument will recreate the function.

organizationId string
The organization ID the function is associated with.
privacy string
The privacy type defines the way to authenticate to your function. Please check our dedicated section.
projectId Changes to this property will trigger replacement. string
project_id) The ID of the project the functions namespace is associated with.
region Changes to this property will trigger replacement. string
region). The region in which the namespace should be created.
runtime string
Runtime of the function. Runtimes can be fetched using specific route
sandbox string
Execution environment of the function.
secretEnvironmentVariables {[key: string]: string}
The secret environment variables of the function.
timeout number
The maximum amount of time your function can spend processing a request before being stopped. Defaults to 300s.
zipFile string
Path to the zip file containing your function sources to upload.
zipHash string
The hash of your source zip file, changing it will re-apply function. Can be any string
cpu_limit int
The CPU limit in mVCPU for your function.
deploy bool
description str
The description of the function.
domain_name str
The native domain name of the function.
environment_variables Mapping[str, str]
The environment variables of the function.
handler str
Handler of the function, depends on the runtime. Refer to the dedicated documentation for the list of supported runtimes.
http_option str
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
max_scale int
The maximum number of instances this function can scale to. Default to 20. Your function will scale automatically based on the incoming workload, but will never exceed the configured max_scale value.
memory_limit int
The memory resources in MB to allocate to each function. Defaults to 256 MB.
min_scale int
The minimum number of function instances running continuously. Defaults to 0. Functions are billed when executed, and using a min_scale greater than 0 will cause your function to run constantly.
name Changes to this property will trigger replacement. str
The unique name of the function name.
namespace_id Changes to this property will trigger replacement. str

The Functions namespace ID of the function.

Important Updating the name argument will recreate the function.

organization_id str
The organization ID the function is associated with.
privacy str
The privacy type defines the way to authenticate to your function. Please check our dedicated section.
project_id Changes to this property will trigger replacement. str
project_id) The ID of the project the functions namespace is associated with.
region Changes to this property will trigger replacement. str
region). The region in which the namespace should be created.
runtime str
Runtime of the function. Runtimes can be fetched using specific route
sandbox str
Execution environment of the function.
secret_environment_variables Mapping[str, str]
The secret environment variables of the function.
timeout int
The maximum amount of time your function can spend processing a request before being stopped. Defaults to 300s.
zip_file str
Path to the zip file containing your function sources to upload.
zip_hash str
The hash of your source zip file, changing it will re-apply function. Can be any string
cpuLimit Number
The CPU limit in mVCPU for your function.
deploy Boolean
description String
The description of the function.
domainName String
The native domain name of the function.
environmentVariables Map<String>
The environment variables of the function.
handler String
Handler of the function, depends on the runtime. Refer to the dedicated documentation for the list of supported runtimes.
httpOption String
Allows both HTTP and HTTPS (enabled) or redirect HTTP to HTTPS (redirected). Defaults to enabled.
maxScale Number
The maximum number of instances this function can scale to. Default to 20. Your function will scale automatically based on the incoming workload, but will never exceed the configured max_scale value.
memoryLimit Number
The memory resources in MB to allocate to each function. Defaults to 256 MB.
minScale Number
The minimum number of function instances running continuously. Defaults to 0. Functions are billed when executed, and using a min_scale greater than 0 will cause your function to run constantly.
name Changes to this property will trigger replacement. String
The unique name of the function name.
namespaceId Changes to this property will trigger replacement. String

The Functions namespace ID of the function.

Important Updating the name argument will recreate the function.

organizationId String
The organization ID the function is associated with.
privacy String
The privacy type defines the way to authenticate to your function. Please check our dedicated section.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the functions namespace is associated with.
region Changes to this property will trigger replacement. String
region). The region in which the namespace should be created.
runtime String
Runtime of the function. Runtimes can be fetched using specific route
sandbox String
Execution environment of the function.
secretEnvironmentVariables Map<String>
The secret environment variables of the function.
timeout Number
The maximum amount of time your function can spend processing a request before being stopped. Defaults to 300s.
zipFile String
Path to the zip file containing your function sources to upload.
zipHash String
The hash of your source zip file, changing it will re-apply function. Can be any string

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.