serverless

package
v0.0.0-...-c33e12d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	pulumi.CustomResourceState

	// The amount of vCPU computing resources to allocate to each container. Defaults to 140.
	CpuLimit pulumi.IntOutput `pulumi:"cpuLimit"`
	// The cron status of the container.
	CronStatus pulumi.StringOutput `pulumi:"cronStatus"`
	// Boolean controlling whether the container is on a production environment.
	//
	// Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/#configuration-restrictions) section.
	Deploy pulumi.BoolPtrOutput `pulumi:"deploy"`
	// The description of the container.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The native domain name of the container
	DomainName pulumi.StringOutput `pulumi:"domainName"`
	// The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) variables of the container.
	EnvironmentVariables pulumi.StringMapOutput `pulumi:"environmentVariables"`
	// The error message of the container.
	ErrorMessage pulumi.StringOutput `pulumi:"errorMessage"`
	// HTTP traffic configuration
	HttpOption pulumi.StringPtrOutput `pulumi:"httpOption"`
	// The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
	MaxConcurrency pulumi.IntOutput `pulumi:"maxConcurrency"`
	// The maximum of number of instances this container can scale to. Default to 20.
	MaxScale pulumi.IntOutput `pulumi:"maxScale"`
	// The memory computing resources in MB to allocate to each container. Defaults to 256.
	MemoryLimit pulumi.IntOutput `pulumi:"memoryLimit"`
	// The minimum of running container instances continuously. Defaults to 0.
	MinScale pulumi.IntOutput `pulumi:"minScale"`
	// The unique name of the container name.
	Name pulumi.StringOutput `pulumi:"name"`
	// The container namespace ID of the container.
	//
	// > **Important** Updates to `name` will recreate the container.
	//
	// The following arguments are optional:
	NamespaceId pulumi.StringOutput `pulumi:"namespaceId"`
	// The port to expose the container. Defaults to 8080.
	Port pulumi.IntOutput `pulumi:"port"`
	// The privacy type define the way to authenticate to your container. Please check our dedicated [section](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8).
	Privacy pulumi.StringPtrOutput `pulumi:"privacy"`
	// The communication [protocol](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8) http1 or h2c. Defaults to http1.
	Protocol pulumi.StringPtrOutput `pulumi:"protocol"`
	// (Defaults to provider `region`) The region in which the container was created.
	Region pulumi.StringOutput `pulumi:"region"`
	// The registry image address. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
	RegistryImage pulumi.StringOutput `pulumi:"registryImage"`
	// The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
	RegistrySha256 pulumi.StringPtrOutput `pulumi:"registrySha256"`
	// The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the container.
	SecretEnvironmentVariables pulumi.StringMapOutput `pulumi:"secretEnvironmentVariables"`
	// The container status.
	Status pulumi.StringOutput `pulumi:"status"`
	// The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
	Timeout pulumi.IntOutput `pulumi:"timeout"`
}

Creates and manages Scaleway Container.

For more information consult the [documentation](https://www.scaleway.com/en/docs/faq/serverless-containers/).

For more details about the limitation check [containers-limitations](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/).

You can check also our [containers guide](https://www.scaleway.com/en/docs/compute/containers/concepts/).

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"fmt"

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mainContainerNamespace, err := serverless.NewContainerNamespace(ctx, "mainContainerNamespace", &serverless.ContainerNamespaceArgs{
			Description: pulumi.String("test container"),
		})
		if err != nil {
			return err
		}
		_, err = serverless.NewContainer(ctx, "mainContainer", &serverless.ContainerArgs{
			Description: pulumi.String("environment variables test"),
			NamespaceId: mainContainerNamespace.ID(),
			RegistryImage: mainContainerNamespace.RegistryEndpoint.ApplyT(func(registryEndpoint string) (string, error) {
				return fmt.Sprintf("%v/alpine:test", registryEndpoint), nil
			}).(pulumi.StringOutput),
			Port:           pulumi.Int(9997),
			CpuLimit:       pulumi.Int(140),
			MemoryLimit:    pulumi.Int(256),
			MinScale:       pulumi.Int(3),
			MaxScale:       pulumi.Int(5),
			Timeout:        pulumi.Int(600),
			MaxConcurrency: pulumi.Int(80),
			Privacy:        pulumi.String("private"),
			Protocol:       pulumi.String("http1"),
			Deploy:         pulumi.Bool(true),
			EnvironmentVariables: pulumi.StringMap{
				"foo": pulumi.String("var"),
			},
			SecretEnvironmentVariables: pulumi.StringMap{
				"key": pulumi.String("secret"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Protocols

The supported protocols are:

* `h2c`: HTTP/2 over TCP. * `http1`: Hypertext Transfer Protocol.

**Important:** For details about the protocols check [this](https://httpd.apache.org/docs/2.4/howto/http2.html)

## Privacy

By default, creating a container will make it `public`, meaning that anybody knowing the endpoint could execute it. A container can be made `private` with the privacy parameter.

Please check our [authentication](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8) section

## Memory and vCPUs configuration

The vCPU represents a portion or share of the underlying, physical CPU that is assigned to a particular virtual machine (VM).

You may decide how much computing resources to allocate to each container. The `memoryLimit` (in MB) must correspond with the right amount of vCPU.

**Important:** The right choice for your container's resources is very important, as you will be billed based on compute usage over time and the number of Containers executions.

Please check our [price](https://www.scaleway.com/en/docs/faq/serverless-containers/#prices) section for more details.

| Memory (in MB) | vCPU | |----------------|------| | 128 | 70m | | 256 | 140m | | 512 | 280m | | 1024 | 560m |

**Note:** 560mCPU accounts roughly for half of one CPU power of a Scaleway General Purpose instance

## Import

Container can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/container:Container main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetContainer

func GetContainer(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContainerState, opts ...pulumi.ResourceOption) (*Container, error)

GetContainer gets an existing Container resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewContainer

func NewContainer(ctx *pulumi.Context,
	name string, args *ContainerArgs, opts ...pulumi.ResourceOption) (*Container, error)

NewContainer registers a new resource with the given unique name, arguments, and options.

func (*Container) ElementType

func (*Container) ElementType() reflect.Type

func (*Container) ToContainerOutput

func (i *Container) ToContainerOutput() ContainerOutput

func (*Container) ToContainerOutputWithContext

func (i *Container) ToContainerOutputWithContext(ctx context.Context) ContainerOutput

type ContainerArgs

type ContainerArgs struct {
	// The amount of vCPU computing resources to allocate to each container. Defaults to 140.
	CpuLimit pulumi.IntPtrInput
	// Boolean controlling whether the container is on a production environment.
	//
	// Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/#configuration-restrictions) section.
	Deploy pulumi.BoolPtrInput
	// The description of the container.
	Description pulumi.StringPtrInput
	// The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) variables of the container.
	EnvironmentVariables pulumi.StringMapInput
	// HTTP traffic configuration
	HttpOption pulumi.StringPtrInput
	// The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
	MaxConcurrency pulumi.IntPtrInput
	// The maximum of number of instances this container can scale to. Default to 20.
	MaxScale pulumi.IntPtrInput
	// The memory computing resources in MB to allocate to each container. Defaults to 256.
	MemoryLimit pulumi.IntPtrInput
	// The minimum of running container instances continuously. Defaults to 0.
	MinScale pulumi.IntPtrInput
	// The unique name of the container name.
	Name pulumi.StringPtrInput
	// The container namespace ID of the container.
	//
	// > **Important** Updates to `name` will recreate the container.
	//
	// The following arguments are optional:
	NamespaceId pulumi.StringInput
	// The port to expose the container. Defaults to 8080.
	Port pulumi.IntPtrInput
	// The privacy type define the way to authenticate to your container. Please check our dedicated [section](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8).
	Privacy pulumi.StringPtrInput
	// The communication [protocol](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8) http1 or h2c. Defaults to http1.
	Protocol pulumi.StringPtrInput
	// (Defaults to provider `region`) The region in which the container was created.
	Region pulumi.StringPtrInput
	// The registry image address. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
	RegistryImage pulumi.StringPtrInput
	// The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
	RegistrySha256 pulumi.StringPtrInput
	// The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the container.
	SecretEnvironmentVariables pulumi.StringMapInput
	// The container status.
	Status pulumi.StringPtrInput
	// The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
	Timeout pulumi.IntPtrInput
}

The set of arguments for constructing a Container resource.

func (ContainerArgs) ElementType

func (ContainerArgs) ElementType() reflect.Type

type ContainerArray

type ContainerArray []ContainerInput

func (ContainerArray) ElementType

func (ContainerArray) ElementType() reflect.Type

func (ContainerArray) ToContainerArrayOutput

func (i ContainerArray) ToContainerArrayOutput() ContainerArrayOutput

func (ContainerArray) ToContainerArrayOutputWithContext

func (i ContainerArray) ToContainerArrayOutputWithContext(ctx context.Context) ContainerArrayOutput

type ContainerArrayInput

type ContainerArrayInput interface {
	pulumi.Input

	ToContainerArrayOutput() ContainerArrayOutput
	ToContainerArrayOutputWithContext(context.Context) ContainerArrayOutput
}

ContainerArrayInput is an input type that accepts ContainerArray and ContainerArrayOutput values. You can construct a concrete instance of `ContainerArrayInput` via:

ContainerArray{ ContainerArgs{...} }

type ContainerArrayOutput

type ContainerArrayOutput struct{ *pulumi.OutputState }

func (ContainerArrayOutput) ElementType

func (ContainerArrayOutput) ElementType() reflect.Type

func (ContainerArrayOutput) Index

func (ContainerArrayOutput) ToContainerArrayOutput

func (o ContainerArrayOutput) ToContainerArrayOutput() ContainerArrayOutput

func (ContainerArrayOutput) ToContainerArrayOutputWithContext

func (o ContainerArrayOutput) ToContainerArrayOutputWithContext(ctx context.Context) ContainerArrayOutput

type ContainerCron

type ContainerCron struct {
	pulumi.CustomResourceState

	// The key-value mapping to define arguments that will be passed to your container’s event object
	// during
	Args pulumi.StringOutput `pulumi:"args"`
	// The container ID to link with your cron.
	ContainerId pulumi.StringOutput `pulumi:"containerId"`
	// The name of the container cron. If not provided, the name is generated.
	// during
	Name pulumi.StringOutput `pulumi:"name"`
	// (Defaults to provider `region`) The region
	// in where the job was created.
	Region pulumi.StringOutput `pulumi:"region"`
	// Cron format string, e.g. @hourly, as schedule time of its jobs to be created and
	// executed.
	Schedule pulumi.StringOutput `pulumi:"schedule"`
	// The cron status.
	Status pulumi.StringOutput `pulumi:"status"`
}

Creates and manages Scaleway Container Triggers. For the moment, the feature is limited to CRON Schedule (time-based).

For more information consult the [documentation](https://www.scaleway.com/en/docs/serverless/containers/) .

For more details about the limitation check [containers-limitations](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/) .

You can check also our [containers cron api documentation](https://developers.scaleway.com/en/products/containers/api/#crons-942bf4).

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"encoding/json"

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mainContainerNamespace, err := serverless.NewContainerNamespace(ctx, "mainContainerNamespace", nil)
		if err != nil {
			return err
		}
		mainContainer, err := serverless.NewContainer(ctx, "mainContainer", &serverless.ContainerArgs{
			NamespaceId: mainContainerNamespace.ID(),
		})
		if err != nil {
			return err
		}
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"address": map[string]interface{}{
				"city":    "Paris",
				"country": "FR",
			},
			"age":       23,
			"firstName": "John",
			"isAlive":   true,
			"lastName":  "Smith",
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		_, err = serverless.NewContainerCron(ctx, "mainContainerCron", &serverless.ContainerCronArgs{
			ContainerId: mainContainer.ID(),
			Schedule:    pulumi.String("5 4 1 * *"),
			Args:        pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Container Cron can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/containerCron:ContainerCron main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetContainerCron

func GetContainerCron(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContainerCronState, opts ...pulumi.ResourceOption) (*ContainerCron, error)

GetContainerCron gets an existing ContainerCron resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewContainerCron

func NewContainerCron(ctx *pulumi.Context,
	name string, args *ContainerCronArgs, opts ...pulumi.ResourceOption) (*ContainerCron, error)

NewContainerCron registers a new resource with the given unique name, arguments, and options.

func (*ContainerCron) ElementType

func (*ContainerCron) ElementType() reflect.Type

func (*ContainerCron) ToContainerCronOutput

func (i *ContainerCron) ToContainerCronOutput() ContainerCronOutput

func (*ContainerCron) ToContainerCronOutputWithContext

func (i *ContainerCron) ToContainerCronOutputWithContext(ctx context.Context) ContainerCronOutput

type ContainerCronArgs

type ContainerCronArgs struct {
	// The key-value mapping to define arguments that will be passed to your container’s event object
	// during
	Args pulumi.StringInput
	// The container ID to link with your cron.
	ContainerId pulumi.StringInput
	// The name of the container cron. If not provided, the name is generated.
	// during
	Name pulumi.StringPtrInput
	// (Defaults to provider `region`) The region
	// in where the job was created.
	Region pulumi.StringPtrInput
	// Cron format string, e.g. @hourly, as schedule time of its jobs to be created and
	// executed.
	Schedule pulumi.StringInput
}

The set of arguments for constructing a ContainerCron resource.

func (ContainerCronArgs) ElementType

func (ContainerCronArgs) ElementType() reflect.Type

type ContainerCronArray

type ContainerCronArray []ContainerCronInput

func (ContainerCronArray) ElementType

func (ContainerCronArray) ElementType() reflect.Type

func (ContainerCronArray) ToContainerCronArrayOutput

func (i ContainerCronArray) ToContainerCronArrayOutput() ContainerCronArrayOutput

func (ContainerCronArray) ToContainerCronArrayOutputWithContext

func (i ContainerCronArray) ToContainerCronArrayOutputWithContext(ctx context.Context) ContainerCronArrayOutput

type ContainerCronArrayInput

type ContainerCronArrayInput interface {
	pulumi.Input

	ToContainerCronArrayOutput() ContainerCronArrayOutput
	ToContainerCronArrayOutputWithContext(context.Context) ContainerCronArrayOutput
}

ContainerCronArrayInput is an input type that accepts ContainerCronArray and ContainerCronArrayOutput values. You can construct a concrete instance of `ContainerCronArrayInput` via:

ContainerCronArray{ ContainerCronArgs{...} }

type ContainerCronArrayOutput

type ContainerCronArrayOutput struct{ *pulumi.OutputState }

func (ContainerCronArrayOutput) ElementType

func (ContainerCronArrayOutput) ElementType() reflect.Type

func (ContainerCronArrayOutput) Index

func (ContainerCronArrayOutput) ToContainerCronArrayOutput

func (o ContainerCronArrayOutput) ToContainerCronArrayOutput() ContainerCronArrayOutput

func (ContainerCronArrayOutput) ToContainerCronArrayOutputWithContext

func (o ContainerCronArrayOutput) ToContainerCronArrayOutputWithContext(ctx context.Context) ContainerCronArrayOutput

type ContainerCronInput

type ContainerCronInput interface {
	pulumi.Input

	ToContainerCronOutput() ContainerCronOutput
	ToContainerCronOutputWithContext(ctx context.Context) ContainerCronOutput
}

type ContainerCronMap

type ContainerCronMap map[string]ContainerCronInput

func (ContainerCronMap) ElementType

func (ContainerCronMap) ElementType() reflect.Type

func (ContainerCronMap) ToContainerCronMapOutput

func (i ContainerCronMap) ToContainerCronMapOutput() ContainerCronMapOutput

func (ContainerCronMap) ToContainerCronMapOutputWithContext

func (i ContainerCronMap) ToContainerCronMapOutputWithContext(ctx context.Context) ContainerCronMapOutput

type ContainerCronMapInput

type ContainerCronMapInput interface {
	pulumi.Input

	ToContainerCronMapOutput() ContainerCronMapOutput
	ToContainerCronMapOutputWithContext(context.Context) ContainerCronMapOutput
}

ContainerCronMapInput is an input type that accepts ContainerCronMap and ContainerCronMapOutput values. You can construct a concrete instance of `ContainerCronMapInput` via:

ContainerCronMap{ "key": ContainerCronArgs{...} }

type ContainerCronMapOutput

type ContainerCronMapOutput struct{ *pulumi.OutputState }

func (ContainerCronMapOutput) ElementType

func (ContainerCronMapOutput) ElementType() reflect.Type

func (ContainerCronMapOutput) MapIndex

func (ContainerCronMapOutput) ToContainerCronMapOutput

func (o ContainerCronMapOutput) ToContainerCronMapOutput() ContainerCronMapOutput

func (ContainerCronMapOutput) ToContainerCronMapOutputWithContext

func (o ContainerCronMapOutput) ToContainerCronMapOutputWithContext(ctx context.Context) ContainerCronMapOutput

type ContainerCronOutput

type ContainerCronOutput struct{ *pulumi.OutputState }

func (ContainerCronOutput) Args

The key-value mapping to define arguments that will be passed to your container’s event object during

func (ContainerCronOutput) ContainerId

func (o ContainerCronOutput) ContainerId() pulumi.StringOutput

The container ID to link with your cron.

func (ContainerCronOutput) ElementType

func (ContainerCronOutput) ElementType() reflect.Type

func (ContainerCronOutput) Name

The name of the container cron. If not provided, the name is generated. during

func (ContainerCronOutput) Region

(Defaults to provider `region`) The region in where the job was created.

func (ContainerCronOutput) Schedule

Cron format string, e.g. @hourly, as schedule time of its jobs to be created and executed.

func (ContainerCronOutput) Status

The cron status.

func (ContainerCronOutput) ToContainerCronOutput

func (o ContainerCronOutput) ToContainerCronOutput() ContainerCronOutput

func (ContainerCronOutput) ToContainerCronOutputWithContext

func (o ContainerCronOutput) ToContainerCronOutputWithContext(ctx context.Context) ContainerCronOutput

type ContainerCronState

type ContainerCronState struct {
	// The key-value mapping to define arguments that will be passed to your container’s event object
	// during
	Args pulumi.StringPtrInput
	// The container ID to link with your cron.
	ContainerId pulumi.StringPtrInput
	// The name of the container cron. If not provided, the name is generated.
	// during
	Name pulumi.StringPtrInput
	// (Defaults to provider `region`) The region
	// in where the job was created.
	Region pulumi.StringPtrInput
	// Cron format string, e.g. @hourly, as schedule time of its jobs to be created and
	// executed.
	Schedule pulumi.StringPtrInput
	// The cron status.
	Status pulumi.StringPtrInput
}

func (ContainerCronState) ElementType

func (ContainerCronState) ElementType() reflect.Type

type ContainerDomain

type ContainerDomain struct {
	pulumi.CustomResourceState

	// The ID of the container.
	ContainerId pulumi.StringOutput `pulumi:"containerId"`
	// The hostname with a CNAME record.
	Hostname pulumi.StringOutput `pulumi:"hostname"`
	// `region`) The region in which the container exists
	Region pulumi.StringOutput `pulumi:"region"`
	// The URL used to query the container
	Url pulumi.StringOutput `pulumi:"url"`
}

Creates and manages Scaleway Container domain name bindings. You can check our [containers guide](https://www.scaleway.com/en/docs/compute/containers/how-to/add-a-custom-domain-to-a-container/) for further information.

## Example Usage

### Simple

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		appContainer, err := serverless.NewContainer(ctx, "appContainer", nil)
		if err != nil {
			return err
		}
		_, err = serverless.NewContainerDomain(ctx, "appContainerDomain", &serverless.ContainerDomainArgs{
			ContainerId: appContainer.ID(),
			Hostname:    pulumi.String("container.domain.tld"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

### Complete example with domain

<!--Start PulumiCodeChooser --> ```go package main

import (

"fmt"

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/dns"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		main, err := serverless.NewContainerNamespace(ctx, "main", &serverless.ContainerNamespaceArgs{
			Description: pulumi.String("test container"),
		})
		if err != nil {
			return err
		}
		appContainer, err := serverless.NewContainer(ctx, "appContainer", &serverless.ContainerArgs{
			NamespaceId: main.ID(),
			RegistryImage: main.RegistryEndpoint.ApplyT(func(registryEndpoint string) (string, error) {
				return fmt.Sprintf("%v/nginx:alpine", registryEndpoint), nil
			}).(pulumi.StringOutput),
			Port:           pulumi.Int(80),
			CpuLimit:       pulumi.Int(140),
			MemoryLimit:    pulumi.Int(256),
			MinScale:       pulumi.Int(1),
			MaxScale:       pulumi.Int(1),
			Timeout:        pulumi.Int(600),
			MaxConcurrency: pulumi.Int(80),
			Privacy:        pulumi.String("public"),
			Protocol:       pulumi.String("http1"),
			Deploy:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		appRecord, err := dns.NewRecord(ctx, "appRecord", &dns.RecordArgs{
			DnsZone: pulumi.String("domain.tld"),
			Type:    pulumi.String("CNAME"),
			Data: appContainer.DomainName.ApplyT(func(domainName string) (string, error) {
				return fmt.Sprintf("%v.", domainName), nil
			}).(pulumi.StringOutput),
			Ttl: pulumi.Int(3600),
		})
		if err != nil {
			return err
		}
		_, err = serverless.NewContainerDomain(ctx, "appContainerDomain", &serverless.ContainerDomainArgs{
			ContainerId: appContainer.ID(),
			Hostname: pulumi.All(appRecord.Name, appRecord.DnsZone).ApplyT(func(_args []interface{}) (string, error) {
				name := _args[0].(string)
				dnsZone := _args[1].(string)
				return fmt.Sprintf("%v.%v", name, dnsZone), nil
			}).(pulumi.StringOutput),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Container domain binding can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/containerDomain:ContainerDomain main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetContainerDomain

func GetContainerDomain(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContainerDomainState, opts ...pulumi.ResourceOption) (*ContainerDomain, error)

GetContainerDomain gets an existing ContainerDomain resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewContainerDomain

func NewContainerDomain(ctx *pulumi.Context,
	name string, args *ContainerDomainArgs, opts ...pulumi.ResourceOption) (*ContainerDomain, error)

NewContainerDomain registers a new resource with the given unique name, arguments, and options.

func (*ContainerDomain) ElementType

func (*ContainerDomain) ElementType() reflect.Type

func (*ContainerDomain) ToContainerDomainOutput

func (i *ContainerDomain) ToContainerDomainOutput() ContainerDomainOutput

func (*ContainerDomain) ToContainerDomainOutputWithContext

func (i *ContainerDomain) ToContainerDomainOutputWithContext(ctx context.Context) ContainerDomainOutput

type ContainerDomainArgs

type ContainerDomainArgs struct {
	// The ID of the container.
	ContainerId pulumi.StringInput
	// The hostname with a CNAME record.
	Hostname pulumi.StringInput
	// `region`) The region in which the container exists
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a ContainerDomain resource.

func (ContainerDomainArgs) ElementType

func (ContainerDomainArgs) ElementType() reflect.Type

type ContainerDomainArray

type ContainerDomainArray []ContainerDomainInput

func (ContainerDomainArray) ElementType

func (ContainerDomainArray) ElementType() reflect.Type

func (ContainerDomainArray) ToContainerDomainArrayOutput

func (i ContainerDomainArray) ToContainerDomainArrayOutput() ContainerDomainArrayOutput

func (ContainerDomainArray) ToContainerDomainArrayOutputWithContext

func (i ContainerDomainArray) ToContainerDomainArrayOutputWithContext(ctx context.Context) ContainerDomainArrayOutput

type ContainerDomainArrayInput

type ContainerDomainArrayInput interface {
	pulumi.Input

	ToContainerDomainArrayOutput() ContainerDomainArrayOutput
	ToContainerDomainArrayOutputWithContext(context.Context) ContainerDomainArrayOutput
}

ContainerDomainArrayInput is an input type that accepts ContainerDomainArray and ContainerDomainArrayOutput values. You can construct a concrete instance of `ContainerDomainArrayInput` via:

ContainerDomainArray{ ContainerDomainArgs{...} }

type ContainerDomainArrayOutput

type ContainerDomainArrayOutput struct{ *pulumi.OutputState }

func (ContainerDomainArrayOutput) ElementType

func (ContainerDomainArrayOutput) ElementType() reflect.Type

func (ContainerDomainArrayOutput) Index

func (ContainerDomainArrayOutput) ToContainerDomainArrayOutput

func (o ContainerDomainArrayOutput) ToContainerDomainArrayOutput() ContainerDomainArrayOutput

func (ContainerDomainArrayOutput) ToContainerDomainArrayOutputWithContext

func (o ContainerDomainArrayOutput) ToContainerDomainArrayOutputWithContext(ctx context.Context) ContainerDomainArrayOutput

type ContainerDomainInput

type ContainerDomainInput interface {
	pulumi.Input

	ToContainerDomainOutput() ContainerDomainOutput
	ToContainerDomainOutputWithContext(ctx context.Context) ContainerDomainOutput
}

type ContainerDomainMap

type ContainerDomainMap map[string]ContainerDomainInput

func (ContainerDomainMap) ElementType

func (ContainerDomainMap) ElementType() reflect.Type

func (ContainerDomainMap) ToContainerDomainMapOutput

func (i ContainerDomainMap) ToContainerDomainMapOutput() ContainerDomainMapOutput

func (ContainerDomainMap) ToContainerDomainMapOutputWithContext

func (i ContainerDomainMap) ToContainerDomainMapOutputWithContext(ctx context.Context) ContainerDomainMapOutput

type ContainerDomainMapInput

type ContainerDomainMapInput interface {
	pulumi.Input

	ToContainerDomainMapOutput() ContainerDomainMapOutput
	ToContainerDomainMapOutputWithContext(context.Context) ContainerDomainMapOutput
}

ContainerDomainMapInput is an input type that accepts ContainerDomainMap and ContainerDomainMapOutput values. You can construct a concrete instance of `ContainerDomainMapInput` via:

ContainerDomainMap{ "key": ContainerDomainArgs{...} }

type ContainerDomainMapOutput

type ContainerDomainMapOutput struct{ *pulumi.OutputState }

func (ContainerDomainMapOutput) ElementType

func (ContainerDomainMapOutput) ElementType() reflect.Type

func (ContainerDomainMapOutput) MapIndex

func (ContainerDomainMapOutput) ToContainerDomainMapOutput

func (o ContainerDomainMapOutput) ToContainerDomainMapOutput() ContainerDomainMapOutput

func (ContainerDomainMapOutput) ToContainerDomainMapOutputWithContext

func (o ContainerDomainMapOutput) ToContainerDomainMapOutputWithContext(ctx context.Context) ContainerDomainMapOutput

type ContainerDomainOutput

type ContainerDomainOutput struct{ *pulumi.OutputState }

func (ContainerDomainOutput) ContainerId

func (o ContainerDomainOutput) ContainerId() pulumi.StringOutput

The ID of the container.

func (ContainerDomainOutput) ElementType

func (ContainerDomainOutput) ElementType() reflect.Type

func (ContainerDomainOutput) Hostname

The hostname with a CNAME record.

func (ContainerDomainOutput) Region

`region`) The region in which the container exists

func (ContainerDomainOutput) ToContainerDomainOutput

func (o ContainerDomainOutput) ToContainerDomainOutput() ContainerDomainOutput

func (ContainerDomainOutput) ToContainerDomainOutputWithContext

func (o ContainerDomainOutput) ToContainerDomainOutputWithContext(ctx context.Context) ContainerDomainOutput

func (ContainerDomainOutput) Url

The URL used to query the container

type ContainerDomainState

type ContainerDomainState struct {
	// The ID of the container.
	ContainerId pulumi.StringPtrInput
	// The hostname with a CNAME record.
	Hostname pulumi.StringPtrInput
	// `region`) The region in which the container exists
	Region pulumi.StringPtrInput
	// The URL used to query the container
	Url pulumi.StringPtrInput
}

func (ContainerDomainState) ElementType

func (ContainerDomainState) ElementType() reflect.Type

type ContainerInput

type ContainerInput interface {
	pulumi.Input

	ToContainerOutput() ContainerOutput
	ToContainerOutputWithContext(ctx context.Context) ContainerOutput
}

type ContainerMap

type ContainerMap map[string]ContainerInput

func (ContainerMap) ElementType

func (ContainerMap) ElementType() reflect.Type

func (ContainerMap) ToContainerMapOutput

func (i ContainerMap) ToContainerMapOutput() ContainerMapOutput

func (ContainerMap) ToContainerMapOutputWithContext

func (i ContainerMap) ToContainerMapOutputWithContext(ctx context.Context) ContainerMapOutput

type ContainerMapInput

type ContainerMapInput interface {
	pulumi.Input

	ToContainerMapOutput() ContainerMapOutput
	ToContainerMapOutputWithContext(context.Context) ContainerMapOutput
}

ContainerMapInput is an input type that accepts ContainerMap and ContainerMapOutput values. You can construct a concrete instance of `ContainerMapInput` via:

ContainerMap{ "key": ContainerArgs{...} }

type ContainerMapOutput

type ContainerMapOutput struct{ *pulumi.OutputState }

func (ContainerMapOutput) ElementType

func (ContainerMapOutput) ElementType() reflect.Type

func (ContainerMapOutput) MapIndex

func (ContainerMapOutput) ToContainerMapOutput

func (o ContainerMapOutput) ToContainerMapOutput() ContainerMapOutput

func (ContainerMapOutput) ToContainerMapOutputWithContext

func (o ContainerMapOutput) ToContainerMapOutputWithContext(ctx context.Context) ContainerMapOutput

type ContainerNamespace

type ContainerNamespace struct {
	pulumi.CustomResourceState

	// The description of the namespace.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Destroy registry on deletion
	//
	// Deprecated: Registry namespace is automatically destroyed with namespace
	DestroyRegistry pulumi.BoolPtrOutput `pulumi:"destroyRegistry"`
	// The environment variables of the namespace.
	EnvironmentVariables pulumi.StringMapOutput `pulumi:"environmentVariables"`
	// The unique name of the container namespace.
	//
	// > **Important** Updates to `name` will recreate the namespace.
	Name pulumi.StringOutput `pulumi:"name"`
	// The organization ID the namespace is associated with.
	OrganizationId pulumi.StringOutput `pulumi:"organizationId"`
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringOutput `pulumi:"region"`
	// The registry endpoint of the namespace.
	RegistryEndpoint pulumi.StringOutput `pulumi:"registryEndpoint"`
	// The registry namespace ID of the namespace.
	RegistryNamespaceId pulumi.StringOutput `pulumi:"registryNamespaceId"`
	// The secret environment variables of the namespace.
	SecretEnvironmentVariables pulumi.StringMapOutput `pulumi:"secretEnvironmentVariables"`
}

Creates and manages Scaleway Serverless Container Namespace. For more information see [the documentation](https://developers.scaleway.com/en/products/containers/api/#namespaces-cdce79).

## Example Usage

### Basic

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := serverless.NewContainerNamespace(ctx, "main", &serverless.ContainerNamespaceArgs{
			Description: pulumi.String("Main container namespace"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Namespaces can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/containerNamespace:ContainerNamespace main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetContainerNamespace

func GetContainerNamespace(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContainerNamespaceState, opts ...pulumi.ResourceOption) (*ContainerNamespace, error)

GetContainerNamespace gets an existing ContainerNamespace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewContainerNamespace

func NewContainerNamespace(ctx *pulumi.Context,
	name string, args *ContainerNamespaceArgs, opts ...pulumi.ResourceOption) (*ContainerNamespace, error)

NewContainerNamespace registers a new resource with the given unique name, arguments, and options.

func (*ContainerNamespace) ElementType

func (*ContainerNamespace) ElementType() reflect.Type

func (*ContainerNamespace) ToContainerNamespaceOutput

func (i *ContainerNamespace) ToContainerNamespaceOutput() ContainerNamespaceOutput

func (*ContainerNamespace) ToContainerNamespaceOutputWithContext

func (i *ContainerNamespace) ToContainerNamespaceOutputWithContext(ctx context.Context) ContainerNamespaceOutput

type ContainerNamespaceArgs

type ContainerNamespaceArgs struct {
	// The description of the namespace.
	Description pulumi.StringPtrInput
	// Destroy registry on deletion
	//
	// Deprecated: Registry namespace is automatically destroyed with namespace
	DestroyRegistry pulumi.BoolPtrInput
	// The environment variables of the namespace.
	EnvironmentVariables pulumi.StringMapInput
	// The unique name of the container namespace.
	//
	// > **Important** Updates to `name` will recreate the namespace.
	Name pulumi.StringPtrInput
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringPtrInput
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput
	// The secret environment variables of the namespace.
	SecretEnvironmentVariables pulumi.StringMapInput
}

The set of arguments for constructing a ContainerNamespace resource.

func (ContainerNamespaceArgs) ElementType

func (ContainerNamespaceArgs) ElementType() reflect.Type

type ContainerNamespaceArray

type ContainerNamespaceArray []ContainerNamespaceInput

func (ContainerNamespaceArray) ElementType

func (ContainerNamespaceArray) ElementType() reflect.Type

func (ContainerNamespaceArray) ToContainerNamespaceArrayOutput

func (i ContainerNamespaceArray) ToContainerNamespaceArrayOutput() ContainerNamespaceArrayOutput

func (ContainerNamespaceArray) ToContainerNamespaceArrayOutputWithContext

func (i ContainerNamespaceArray) ToContainerNamespaceArrayOutputWithContext(ctx context.Context) ContainerNamespaceArrayOutput

type ContainerNamespaceArrayInput

type ContainerNamespaceArrayInput interface {
	pulumi.Input

	ToContainerNamespaceArrayOutput() ContainerNamespaceArrayOutput
	ToContainerNamespaceArrayOutputWithContext(context.Context) ContainerNamespaceArrayOutput
}

ContainerNamespaceArrayInput is an input type that accepts ContainerNamespaceArray and ContainerNamespaceArrayOutput values. You can construct a concrete instance of `ContainerNamespaceArrayInput` via:

ContainerNamespaceArray{ ContainerNamespaceArgs{...} }

type ContainerNamespaceArrayOutput

type ContainerNamespaceArrayOutput struct{ *pulumi.OutputState }

func (ContainerNamespaceArrayOutput) ElementType

func (ContainerNamespaceArrayOutput) Index

func (ContainerNamespaceArrayOutput) ToContainerNamespaceArrayOutput

func (o ContainerNamespaceArrayOutput) ToContainerNamespaceArrayOutput() ContainerNamespaceArrayOutput

func (ContainerNamespaceArrayOutput) ToContainerNamespaceArrayOutputWithContext

func (o ContainerNamespaceArrayOutput) ToContainerNamespaceArrayOutputWithContext(ctx context.Context) ContainerNamespaceArrayOutput

type ContainerNamespaceInput

type ContainerNamespaceInput interface {
	pulumi.Input

	ToContainerNamespaceOutput() ContainerNamespaceOutput
	ToContainerNamespaceOutputWithContext(ctx context.Context) ContainerNamespaceOutput
}

type ContainerNamespaceMap

type ContainerNamespaceMap map[string]ContainerNamespaceInput

func (ContainerNamespaceMap) ElementType

func (ContainerNamespaceMap) ElementType() reflect.Type

func (ContainerNamespaceMap) ToContainerNamespaceMapOutput

func (i ContainerNamespaceMap) ToContainerNamespaceMapOutput() ContainerNamespaceMapOutput

func (ContainerNamespaceMap) ToContainerNamespaceMapOutputWithContext

func (i ContainerNamespaceMap) ToContainerNamespaceMapOutputWithContext(ctx context.Context) ContainerNamespaceMapOutput

type ContainerNamespaceMapInput

type ContainerNamespaceMapInput interface {
	pulumi.Input

	ToContainerNamespaceMapOutput() ContainerNamespaceMapOutput
	ToContainerNamespaceMapOutputWithContext(context.Context) ContainerNamespaceMapOutput
}

ContainerNamespaceMapInput is an input type that accepts ContainerNamespaceMap and ContainerNamespaceMapOutput values. You can construct a concrete instance of `ContainerNamespaceMapInput` via:

ContainerNamespaceMap{ "key": ContainerNamespaceArgs{...} }

type ContainerNamespaceMapOutput

type ContainerNamespaceMapOutput struct{ *pulumi.OutputState }

func (ContainerNamespaceMapOutput) ElementType

func (ContainerNamespaceMapOutput) MapIndex

func (ContainerNamespaceMapOutput) ToContainerNamespaceMapOutput

func (o ContainerNamespaceMapOutput) ToContainerNamespaceMapOutput() ContainerNamespaceMapOutput

func (ContainerNamespaceMapOutput) ToContainerNamespaceMapOutputWithContext

func (o ContainerNamespaceMapOutput) ToContainerNamespaceMapOutputWithContext(ctx context.Context) ContainerNamespaceMapOutput

type ContainerNamespaceOutput

type ContainerNamespaceOutput struct{ *pulumi.OutputState }

func (ContainerNamespaceOutput) Description

The description of the namespace.

func (ContainerNamespaceOutput) DestroyRegistry deprecated

func (o ContainerNamespaceOutput) DestroyRegistry() pulumi.BoolPtrOutput

Destroy registry on deletion

Deprecated: Registry namespace is automatically destroyed with namespace

func (ContainerNamespaceOutput) ElementType

func (ContainerNamespaceOutput) ElementType() reflect.Type

func (ContainerNamespaceOutput) EnvironmentVariables

func (o ContainerNamespaceOutput) EnvironmentVariables() pulumi.StringMapOutput

The environment variables of the namespace.

func (ContainerNamespaceOutput) Name

The unique name of the container namespace.

> **Important** Updates to `name` will recreate the namespace.

func (ContainerNamespaceOutput) OrganizationId

func (o ContainerNamespaceOutput) OrganizationId() pulumi.StringOutput

The organization ID the namespace is associated with.

func (ContainerNamespaceOutput) ProjectId

`projectId`) The ID of the project the namespace is associated with.

func (ContainerNamespaceOutput) Region

`region`). The region in which the namespace should be created.

func (ContainerNamespaceOutput) RegistryEndpoint

func (o ContainerNamespaceOutput) RegistryEndpoint() pulumi.StringOutput

The registry endpoint of the namespace.

func (ContainerNamespaceOutput) RegistryNamespaceId

func (o ContainerNamespaceOutput) RegistryNamespaceId() pulumi.StringOutput

The registry namespace ID of the namespace.

func (ContainerNamespaceOutput) SecretEnvironmentVariables

func (o ContainerNamespaceOutput) SecretEnvironmentVariables() pulumi.StringMapOutput

The secret environment variables of the namespace.

func (ContainerNamespaceOutput) ToContainerNamespaceOutput

func (o ContainerNamespaceOutput) ToContainerNamespaceOutput() ContainerNamespaceOutput

func (ContainerNamespaceOutput) ToContainerNamespaceOutputWithContext

func (o ContainerNamespaceOutput) ToContainerNamespaceOutputWithContext(ctx context.Context) ContainerNamespaceOutput

type ContainerNamespaceState

type ContainerNamespaceState struct {
	// The description of the namespace.
	Description pulumi.StringPtrInput
	// Destroy registry on deletion
	//
	// Deprecated: Registry namespace is automatically destroyed with namespace
	DestroyRegistry pulumi.BoolPtrInput
	// The environment variables of the namespace.
	EnvironmentVariables pulumi.StringMapInput
	// The unique name of the container namespace.
	//
	// > **Important** Updates to `name` will recreate the namespace.
	Name pulumi.StringPtrInput
	// The organization ID the namespace is associated with.
	OrganizationId pulumi.StringPtrInput
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringPtrInput
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput
	// The registry endpoint of the namespace.
	RegistryEndpoint pulumi.StringPtrInput
	// The registry namespace ID of the namespace.
	RegistryNamespaceId pulumi.StringPtrInput
	// The secret environment variables of the namespace.
	SecretEnvironmentVariables pulumi.StringMapInput
}

func (ContainerNamespaceState) ElementType

func (ContainerNamespaceState) ElementType() reflect.Type

type ContainerOutput

type ContainerOutput struct{ *pulumi.OutputState }

func (ContainerOutput) CpuLimit

func (o ContainerOutput) CpuLimit() pulumi.IntOutput

The amount of vCPU computing resources to allocate to each container. Defaults to 140.

func (ContainerOutput) CronStatus

func (o ContainerOutput) CronStatus() pulumi.StringOutput

The cron status of the container.

func (ContainerOutput) Deploy

Boolean controlling whether the container is on a production environment.

Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/#configuration-restrictions) section.

func (ContainerOutput) Description

func (o ContainerOutput) Description() pulumi.StringPtrOutput

The description of the container.

func (ContainerOutput) DomainName

func (o ContainerOutput) DomainName() pulumi.StringOutput

The native domain name of the container

func (ContainerOutput) ElementType

func (ContainerOutput) ElementType() reflect.Type

func (ContainerOutput) EnvironmentVariables

func (o ContainerOutput) EnvironmentVariables() pulumi.StringMapOutput

The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) variables of the container.

func (ContainerOutput) ErrorMessage

func (o ContainerOutput) ErrorMessage() pulumi.StringOutput

The error message of the container.

func (ContainerOutput) HttpOption

func (o ContainerOutput) HttpOption() pulumi.StringPtrOutput

HTTP traffic configuration

func (ContainerOutput) MaxConcurrency

func (o ContainerOutput) MaxConcurrency() pulumi.IntOutput

The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

func (ContainerOutput) MaxScale

func (o ContainerOutput) MaxScale() pulumi.IntOutput

The maximum of number of instances this container can scale to. Default to 20.

func (ContainerOutput) MemoryLimit

func (o ContainerOutput) MemoryLimit() pulumi.IntOutput

The memory computing resources in MB to allocate to each container. Defaults to 256.

func (ContainerOutput) MinScale

func (o ContainerOutput) MinScale() pulumi.IntOutput

The minimum of running container instances continuously. Defaults to 0.

func (ContainerOutput) Name

The unique name of the container name.

func (ContainerOutput) NamespaceId

func (o ContainerOutput) NamespaceId() pulumi.StringOutput

The container namespace ID of the container.

> **Important** Updates to `name` will recreate the container.

The following arguments are optional:

func (ContainerOutput) Port

func (o ContainerOutput) Port() pulumi.IntOutput

The port to expose the container. Defaults to 8080.

func (ContainerOutput) Privacy

The privacy type define the way to authenticate to your container. Please check our dedicated [section](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8).

func (ContainerOutput) Protocol

func (o ContainerOutput) Protocol() pulumi.StringPtrOutput

The communication [protocol](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8) http1 or h2c. Defaults to http1.

func (ContainerOutput) Region

func (o ContainerOutput) Region() pulumi.StringOutput

(Defaults to provider `region`) The region in which the container was created.

func (ContainerOutput) RegistryImage

func (o ContainerOutput) RegistryImage() pulumi.StringOutput

The registry image address. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.

func (ContainerOutput) RegistrySha256

func (o ContainerOutput) RegistrySha256() pulumi.StringPtrOutput

The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.

func (ContainerOutput) SecretEnvironmentVariables

func (o ContainerOutput) SecretEnvironmentVariables() pulumi.StringMapOutput

The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the container.

func (ContainerOutput) Status

func (o ContainerOutput) Status() pulumi.StringOutput

The container status.

func (ContainerOutput) Timeout

func (o ContainerOutput) Timeout() pulumi.IntOutput

The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

func (ContainerOutput) ToContainerOutput

func (o ContainerOutput) ToContainerOutput() ContainerOutput

func (ContainerOutput) ToContainerOutputWithContext

func (o ContainerOutput) ToContainerOutputWithContext(ctx context.Context) ContainerOutput

type ContainerState

type ContainerState struct {
	// The amount of vCPU computing resources to allocate to each container. Defaults to 140.
	CpuLimit pulumi.IntPtrInput
	// The cron status of the container.
	CronStatus pulumi.StringPtrInput
	// Boolean controlling whether the container is on a production environment.
	//
	// Note that if you want to use your own configuration, you must consult our configuration [restrictions](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/#configuration-restrictions) section.
	Deploy pulumi.BoolPtrInput
	// The description of the container.
	Description pulumi.StringPtrInput
	// The native domain name of the container
	DomainName pulumi.StringPtrInput
	// The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) variables of the container.
	EnvironmentVariables pulumi.StringMapInput
	// The error message of the container.
	ErrorMessage pulumi.StringPtrInput
	// HTTP traffic configuration
	HttpOption pulumi.StringPtrInput
	// The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
	MaxConcurrency pulumi.IntPtrInput
	// The maximum of number of instances this container can scale to. Default to 20.
	MaxScale pulumi.IntPtrInput
	// The memory computing resources in MB to allocate to each container. Defaults to 256.
	MemoryLimit pulumi.IntPtrInput
	// The minimum of running container instances continuously. Defaults to 0.
	MinScale pulumi.IntPtrInput
	// The unique name of the container name.
	Name pulumi.StringPtrInput
	// The container namespace ID of the container.
	//
	// > **Important** Updates to `name` will recreate the container.
	//
	// The following arguments are optional:
	NamespaceId pulumi.StringPtrInput
	// The port to expose the container. Defaults to 8080.
	Port pulumi.IntPtrInput
	// The privacy type define the way to authenticate to your container. Please check our dedicated [section](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8).
	Privacy pulumi.StringPtrInput
	// The communication [protocol](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8) http1 or h2c. Defaults to http1.
	Protocol pulumi.StringPtrInput
	// (Defaults to provider `region`) The region in which the container was created.
	Region pulumi.StringPtrInput
	// The registry image address. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
	RegistryImage pulumi.StringPtrInput
	// The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
	RegistrySha256 pulumi.StringPtrInput
	// The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the container.
	SecretEnvironmentVariables pulumi.StringMapInput
	// The container status.
	Status pulumi.StringPtrInput
	// The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
	Timeout pulumi.IntPtrInput
}

func (ContainerState) ElementType

func (ContainerState) ElementType() reflect.Type

type ContainerToken

type ContainerToken struct {
	pulumi.CustomResourceState

	// The ID of the container.
	//
	// > Only one of `namespaceId` or `containerId` must be set.
	ContainerId pulumi.StringPtrOutput `pulumi:"containerId"`
	// The description of the token.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The expiration date of the token.
	ExpiresAt pulumi.StringPtrOutput `pulumi:"expiresAt"`
	// The ID of the container namespace.
	NamespaceId pulumi.StringPtrOutput `pulumi:"namespaceId"`
	// `region`). The region in which the namespace should be created.
	//
	// > **Important** Updates to any fields will recreate the token.
	Region pulumi.StringOutput `pulumi:"region"`
	// The token.
	Token pulumi.StringOutput `pulumi:"token"`
}

Creates and manages Scaleway Container Token. For more information see [the documentation](https://developers.scaleway.com/en/products/containers/api/#tokens-26b085).

## Example Usage

### Basic

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mainContainerNamespace, err := serverless.NewContainerNamespace(ctx, "mainContainerNamespace", nil)
		if err != nil {
			return err
		}
		mainContainer, err := serverless.NewContainer(ctx, "mainContainer", &serverless.ContainerArgs{
			NamespaceId: mainContainerNamespace.ID(),
		})
		if err != nil {
			return err
		}
		// Namespace Token
		_, err = serverless.NewContainerToken(ctx, "namespace", &serverless.ContainerTokenArgs{
			NamespaceId: mainContainerNamespace.ID(),
			ExpiresAt:   pulumi.String("2022-10-18T11:35:15+02:00"),
		})
		if err != nil {
			return err
		}
		// Container Token
		_, err = serverless.NewContainerToken(ctx, "container", &serverless.ContainerTokenArgs{
			ContainerId: mainContainer.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Tokens can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/containerToken:ContainerToken main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetContainerToken

func GetContainerToken(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContainerTokenState, opts ...pulumi.ResourceOption) (*ContainerToken, error)

GetContainerToken gets an existing ContainerToken resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewContainerToken

func NewContainerToken(ctx *pulumi.Context,
	name string, args *ContainerTokenArgs, opts ...pulumi.ResourceOption) (*ContainerToken, error)

NewContainerToken registers a new resource with the given unique name, arguments, and options.

func (*ContainerToken) ElementType

func (*ContainerToken) ElementType() reflect.Type

func (*ContainerToken) ToContainerTokenOutput

func (i *ContainerToken) ToContainerTokenOutput() ContainerTokenOutput

func (*ContainerToken) ToContainerTokenOutputWithContext

func (i *ContainerToken) ToContainerTokenOutputWithContext(ctx context.Context) ContainerTokenOutput

type ContainerTokenArgs

type ContainerTokenArgs struct {
	// The ID of the container.
	//
	// > Only one of `namespaceId` or `containerId` must be set.
	ContainerId pulumi.StringPtrInput
	// The description of the token.
	Description pulumi.StringPtrInput
	// The expiration date of the token.
	ExpiresAt pulumi.StringPtrInput
	// The ID of the container namespace.
	NamespaceId pulumi.StringPtrInput
	// `region`). The region in which the namespace should be created.
	//
	// > **Important** Updates to any fields will recreate the token.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a ContainerToken resource.

func (ContainerTokenArgs) ElementType

func (ContainerTokenArgs) ElementType() reflect.Type

type ContainerTokenArray

type ContainerTokenArray []ContainerTokenInput

func (ContainerTokenArray) ElementType

func (ContainerTokenArray) ElementType() reflect.Type

func (ContainerTokenArray) ToContainerTokenArrayOutput

func (i ContainerTokenArray) ToContainerTokenArrayOutput() ContainerTokenArrayOutput

func (ContainerTokenArray) ToContainerTokenArrayOutputWithContext

func (i ContainerTokenArray) ToContainerTokenArrayOutputWithContext(ctx context.Context) ContainerTokenArrayOutput

type ContainerTokenArrayInput

type ContainerTokenArrayInput interface {
	pulumi.Input

	ToContainerTokenArrayOutput() ContainerTokenArrayOutput
	ToContainerTokenArrayOutputWithContext(context.Context) ContainerTokenArrayOutput
}

ContainerTokenArrayInput is an input type that accepts ContainerTokenArray and ContainerTokenArrayOutput values. You can construct a concrete instance of `ContainerTokenArrayInput` via:

ContainerTokenArray{ ContainerTokenArgs{...} }

type ContainerTokenArrayOutput

type ContainerTokenArrayOutput struct{ *pulumi.OutputState }

func (ContainerTokenArrayOutput) ElementType

func (ContainerTokenArrayOutput) ElementType() reflect.Type

func (ContainerTokenArrayOutput) Index

func (ContainerTokenArrayOutput) ToContainerTokenArrayOutput

func (o ContainerTokenArrayOutput) ToContainerTokenArrayOutput() ContainerTokenArrayOutput

func (ContainerTokenArrayOutput) ToContainerTokenArrayOutputWithContext

func (o ContainerTokenArrayOutput) ToContainerTokenArrayOutputWithContext(ctx context.Context) ContainerTokenArrayOutput

type ContainerTokenInput

type ContainerTokenInput interface {
	pulumi.Input

	ToContainerTokenOutput() ContainerTokenOutput
	ToContainerTokenOutputWithContext(ctx context.Context) ContainerTokenOutput
}

type ContainerTokenMap

type ContainerTokenMap map[string]ContainerTokenInput

func (ContainerTokenMap) ElementType

func (ContainerTokenMap) ElementType() reflect.Type

func (ContainerTokenMap) ToContainerTokenMapOutput

func (i ContainerTokenMap) ToContainerTokenMapOutput() ContainerTokenMapOutput

func (ContainerTokenMap) ToContainerTokenMapOutputWithContext

func (i ContainerTokenMap) ToContainerTokenMapOutputWithContext(ctx context.Context) ContainerTokenMapOutput

type ContainerTokenMapInput

type ContainerTokenMapInput interface {
	pulumi.Input

	ToContainerTokenMapOutput() ContainerTokenMapOutput
	ToContainerTokenMapOutputWithContext(context.Context) ContainerTokenMapOutput
}

ContainerTokenMapInput is an input type that accepts ContainerTokenMap and ContainerTokenMapOutput values. You can construct a concrete instance of `ContainerTokenMapInput` via:

ContainerTokenMap{ "key": ContainerTokenArgs{...} }

type ContainerTokenMapOutput

type ContainerTokenMapOutput struct{ *pulumi.OutputState }

func (ContainerTokenMapOutput) ElementType

func (ContainerTokenMapOutput) ElementType() reflect.Type

func (ContainerTokenMapOutput) MapIndex

func (ContainerTokenMapOutput) ToContainerTokenMapOutput

func (o ContainerTokenMapOutput) ToContainerTokenMapOutput() ContainerTokenMapOutput

func (ContainerTokenMapOutput) ToContainerTokenMapOutputWithContext

func (o ContainerTokenMapOutput) ToContainerTokenMapOutputWithContext(ctx context.Context) ContainerTokenMapOutput

type ContainerTokenOutput

type ContainerTokenOutput struct{ *pulumi.OutputState }

func (ContainerTokenOutput) ContainerId

The ID of the container.

> Only one of `namespaceId` or `containerId` must be set.

func (ContainerTokenOutput) Description

The description of the token.

func (ContainerTokenOutput) ElementType

func (ContainerTokenOutput) ElementType() reflect.Type

func (ContainerTokenOutput) ExpiresAt

The expiration date of the token.

func (ContainerTokenOutput) NamespaceId

The ID of the container namespace.

func (ContainerTokenOutput) Region

`region`). The region in which the namespace should be created.

> **Important** Updates to any fields will recreate the token.

func (ContainerTokenOutput) ToContainerTokenOutput

func (o ContainerTokenOutput) ToContainerTokenOutput() ContainerTokenOutput

func (ContainerTokenOutput) ToContainerTokenOutputWithContext

func (o ContainerTokenOutput) ToContainerTokenOutputWithContext(ctx context.Context) ContainerTokenOutput

func (ContainerTokenOutput) Token

The token.

type ContainerTokenState

type ContainerTokenState struct {
	// The ID of the container.
	//
	// > Only one of `namespaceId` or `containerId` must be set.
	ContainerId pulumi.StringPtrInput
	// The description of the token.
	Description pulumi.StringPtrInput
	// The expiration date of the token.
	ExpiresAt pulumi.StringPtrInput
	// The ID of the container namespace.
	NamespaceId pulumi.StringPtrInput
	// `region`). The region in which the namespace should be created.
	//
	// > **Important** Updates to any fields will recreate the token.
	Region pulumi.StringPtrInput
	// The token.
	Token pulumi.StringPtrInput
}

func (ContainerTokenState) ElementType

func (ContainerTokenState) ElementType() reflect.Type

type ContainerTrigger

type ContainerTrigger struct {
	pulumi.CustomResourceState

	// The ID of the container to create a trigger for
	ContainerId pulumi.StringOutput `pulumi:"containerId"`
	// The description of the trigger.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The unique name of the trigger. Default to a generated name.
	Name pulumi.StringOutput `pulumi:"name"`
	// The configuration for the Scaleway's Nats used by the trigger
	Nats ContainerTriggerNatsPtrOutput `pulumi:"nats"`
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringOutput `pulumi:"region"`
	// The configuration of the Scaleway's SQS used by the trigger
	Sqs ContainerTriggerSqsPtrOutput `pulumi:"sqs"`
}

Creates and manages Scaleway Container Triggers. For more information see [the documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#path-triggers).

## Example Usage

### SQS

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := serverless.NewContainerTrigger(ctx, "main", &serverless.ContainerTriggerArgs{
			ContainerId: pulumi.Any(scaleway_container.Main.Id),
			Sqs: &serverless.ContainerTriggerSqsArgs{
				ProjectId: pulumi.Any(scaleway_mnq_sqs.Main.Project_id),
				Queue:     pulumi.String("MyQueue"),
				Region:    pulumi.Any(scaleway_mnq_sqs.Main.Region),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

### Nats

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := serverless.NewContainerTrigger(ctx, "main", &serverless.ContainerTriggerArgs{
			ContainerId: pulumi.Any(scaleway_container.Main.Id),
			Nats: &serverless.ContainerTriggerNatsArgs{
				AccountId: pulumi.Any(scaleway_mnq_nats_account.Main.Id),
				Subject:   pulumi.String("MySubject"),
				Region:    pulumi.Any(scaleway_mnq_nats_account.Main.Region),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Container Triggers can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/containerTrigger:ContainerTrigger main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetContainerTrigger

func GetContainerTrigger(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContainerTriggerState, opts ...pulumi.ResourceOption) (*ContainerTrigger, error)

GetContainerTrigger gets an existing ContainerTrigger resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewContainerTrigger

func NewContainerTrigger(ctx *pulumi.Context,
	name string, args *ContainerTriggerArgs, opts ...pulumi.ResourceOption) (*ContainerTrigger, error)

NewContainerTrigger registers a new resource with the given unique name, arguments, and options.

func (*ContainerTrigger) ElementType

func (*ContainerTrigger) ElementType() reflect.Type

func (*ContainerTrigger) ToContainerTriggerOutput

func (i *ContainerTrigger) ToContainerTriggerOutput() ContainerTriggerOutput

func (*ContainerTrigger) ToContainerTriggerOutputWithContext

func (i *ContainerTrigger) ToContainerTriggerOutputWithContext(ctx context.Context) ContainerTriggerOutput

type ContainerTriggerArgs

type ContainerTriggerArgs struct {
	// The ID of the container to create a trigger for
	ContainerId pulumi.StringInput
	// The description of the trigger.
	Description pulumi.StringPtrInput
	// The unique name of the trigger. Default to a generated name.
	Name pulumi.StringPtrInput
	// The configuration for the Scaleway's Nats used by the trigger
	Nats ContainerTriggerNatsPtrInput
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput
	// The configuration of the Scaleway's SQS used by the trigger
	Sqs ContainerTriggerSqsPtrInput
}

The set of arguments for constructing a ContainerTrigger resource.

func (ContainerTriggerArgs) ElementType

func (ContainerTriggerArgs) ElementType() reflect.Type

type ContainerTriggerArray

type ContainerTriggerArray []ContainerTriggerInput

func (ContainerTriggerArray) ElementType

func (ContainerTriggerArray) ElementType() reflect.Type

func (ContainerTriggerArray) ToContainerTriggerArrayOutput

func (i ContainerTriggerArray) ToContainerTriggerArrayOutput() ContainerTriggerArrayOutput

func (ContainerTriggerArray) ToContainerTriggerArrayOutputWithContext

func (i ContainerTriggerArray) ToContainerTriggerArrayOutputWithContext(ctx context.Context) ContainerTriggerArrayOutput

type ContainerTriggerArrayInput

type ContainerTriggerArrayInput interface {
	pulumi.Input

	ToContainerTriggerArrayOutput() ContainerTriggerArrayOutput
	ToContainerTriggerArrayOutputWithContext(context.Context) ContainerTriggerArrayOutput
}

ContainerTriggerArrayInput is an input type that accepts ContainerTriggerArray and ContainerTriggerArrayOutput values. You can construct a concrete instance of `ContainerTriggerArrayInput` via:

ContainerTriggerArray{ ContainerTriggerArgs{...} }

type ContainerTriggerArrayOutput

type ContainerTriggerArrayOutput struct{ *pulumi.OutputState }

func (ContainerTriggerArrayOutput) ElementType

func (ContainerTriggerArrayOutput) Index

func (ContainerTriggerArrayOutput) ToContainerTriggerArrayOutput

func (o ContainerTriggerArrayOutput) ToContainerTriggerArrayOutput() ContainerTriggerArrayOutput

func (ContainerTriggerArrayOutput) ToContainerTriggerArrayOutputWithContext

func (o ContainerTriggerArrayOutput) ToContainerTriggerArrayOutputWithContext(ctx context.Context) ContainerTriggerArrayOutput

type ContainerTriggerInput

type ContainerTriggerInput interface {
	pulumi.Input

	ToContainerTriggerOutput() ContainerTriggerOutput
	ToContainerTriggerOutputWithContext(ctx context.Context) ContainerTriggerOutput
}

type ContainerTriggerMap

type ContainerTriggerMap map[string]ContainerTriggerInput

func (ContainerTriggerMap) ElementType

func (ContainerTriggerMap) ElementType() reflect.Type

func (ContainerTriggerMap) ToContainerTriggerMapOutput

func (i ContainerTriggerMap) ToContainerTriggerMapOutput() ContainerTriggerMapOutput

func (ContainerTriggerMap) ToContainerTriggerMapOutputWithContext

func (i ContainerTriggerMap) ToContainerTriggerMapOutputWithContext(ctx context.Context) ContainerTriggerMapOutput

type ContainerTriggerMapInput

type ContainerTriggerMapInput interface {
	pulumi.Input

	ToContainerTriggerMapOutput() ContainerTriggerMapOutput
	ToContainerTriggerMapOutputWithContext(context.Context) ContainerTriggerMapOutput
}

ContainerTriggerMapInput is an input type that accepts ContainerTriggerMap and ContainerTriggerMapOutput values. You can construct a concrete instance of `ContainerTriggerMapInput` via:

ContainerTriggerMap{ "key": ContainerTriggerArgs{...} }

type ContainerTriggerMapOutput

type ContainerTriggerMapOutput struct{ *pulumi.OutputState }

func (ContainerTriggerMapOutput) ElementType

func (ContainerTriggerMapOutput) ElementType() reflect.Type

func (ContainerTriggerMapOutput) MapIndex

func (ContainerTriggerMapOutput) ToContainerTriggerMapOutput

func (o ContainerTriggerMapOutput) ToContainerTriggerMapOutput() ContainerTriggerMapOutput

func (ContainerTriggerMapOutput) ToContainerTriggerMapOutputWithContext

func (o ContainerTriggerMapOutput) ToContainerTriggerMapOutputWithContext(ctx context.Context) ContainerTriggerMapOutput

type ContainerTriggerNats

type ContainerTriggerNats struct {
	// ID of the mnq nats account.
	AccountId *string `pulumi:"accountId"`
	// ID of the project that contain the mnq nats account, defaults to provider's project
	ProjectId *string `pulumi:"projectId"`
	// `region`). The region in which the namespace should be created.
	Region *string `pulumi:"region"`
	// The subject to listen to
	Subject string `pulumi:"subject"`
}

type ContainerTriggerNatsArgs

type ContainerTriggerNatsArgs struct {
	// ID of the mnq nats account.
	AccountId pulumi.StringPtrInput `pulumi:"accountId"`
	// ID of the project that contain the mnq nats account, defaults to provider's project
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// The subject to listen to
	Subject pulumi.StringInput `pulumi:"subject"`
}

func (ContainerTriggerNatsArgs) ElementType

func (ContainerTriggerNatsArgs) ElementType() reflect.Type

func (ContainerTriggerNatsArgs) ToContainerTriggerNatsOutput

func (i ContainerTriggerNatsArgs) ToContainerTriggerNatsOutput() ContainerTriggerNatsOutput

func (ContainerTriggerNatsArgs) ToContainerTriggerNatsOutputWithContext

func (i ContainerTriggerNatsArgs) ToContainerTriggerNatsOutputWithContext(ctx context.Context) ContainerTriggerNatsOutput

func (ContainerTriggerNatsArgs) ToContainerTriggerNatsPtrOutput

func (i ContainerTriggerNatsArgs) ToContainerTriggerNatsPtrOutput() ContainerTriggerNatsPtrOutput

func (ContainerTriggerNatsArgs) ToContainerTriggerNatsPtrOutputWithContext

func (i ContainerTriggerNatsArgs) ToContainerTriggerNatsPtrOutputWithContext(ctx context.Context) ContainerTriggerNatsPtrOutput

type ContainerTriggerNatsInput

type ContainerTriggerNatsInput interface {
	pulumi.Input

	ToContainerTriggerNatsOutput() ContainerTriggerNatsOutput
	ToContainerTriggerNatsOutputWithContext(context.Context) ContainerTriggerNatsOutput
}

ContainerTriggerNatsInput is an input type that accepts ContainerTriggerNatsArgs and ContainerTriggerNatsOutput values. You can construct a concrete instance of `ContainerTriggerNatsInput` via:

ContainerTriggerNatsArgs{...}

type ContainerTriggerNatsOutput

type ContainerTriggerNatsOutput struct{ *pulumi.OutputState }

func (ContainerTriggerNatsOutput) AccountId

ID of the mnq nats account.

func (ContainerTriggerNatsOutput) ElementType

func (ContainerTriggerNatsOutput) ElementType() reflect.Type

func (ContainerTriggerNatsOutput) ProjectId

ID of the project that contain the mnq nats account, defaults to provider's project

func (ContainerTriggerNatsOutput) Region

`region`). The region in which the namespace should be created.

func (ContainerTriggerNatsOutput) Subject

The subject to listen to

func (ContainerTriggerNatsOutput) ToContainerTriggerNatsOutput

func (o ContainerTriggerNatsOutput) ToContainerTriggerNatsOutput() ContainerTriggerNatsOutput

func (ContainerTriggerNatsOutput) ToContainerTriggerNatsOutputWithContext

func (o ContainerTriggerNatsOutput) ToContainerTriggerNatsOutputWithContext(ctx context.Context) ContainerTriggerNatsOutput

func (ContainerTriggerNatsOutput) ToContainerTriggerNatsPtrOutput

func (o ContainerTriggerNatsOutput) ToContainerTriggerNatsPtrOutput() ContainerTriggerNatsPtrOutput

func (ContainerTriggerNatsOutput) ToContainerTriggerNatsPtrOutputWithContext

func (o ContainerTriggerNatsOutput) ToContainerTriggerNatsPtrOutputWithContext(ctx context.Context) ContainerTriggerNatsPtrOutput

type ContainerTriggerNatsPtrInput

type ContainerTriggerNatsPtrInput interface {
	pulumi.Input

	ToContainerTriggerNatsPtrOutput() ContainerTriggerNatsPtrOutput
	ToContainerTriggerNatsPtrOutputWithContext(context.Context) ContainerTriggerNatsPtrOutput
}

ContainerTriggerNatsPtrInput is an input type that accepts ContainerTriggerNatsArgs, ContainerTriggerNatsPtr and ContainerTriggerNatsPtrOutput values. You can construct a concrete instance of `ContainerTriggerNatsPtrInput` via:

        ContainerTriggerNatsArgs{...}

or:

        nil

type ContainerTriggerNatsPtrOutput

type ContainerTriggerNatsPtrOutput struct{ *pulumi.OutputState }

func (ContainerTriggerNatsPtrOutput) AccountId

ID of the mnq nats account.

func (ContainerTriggerNatsPtrOutput) Elem

func (ContainerTriggerNatsPtrOutput) ElementType

func (ContainerTriggerNatsPtrOutput) ProjectId

ID of the project that contain the mnq nats account, defaults to provider's project

func (ContainerTriggerNatsPtrOutput) Region

`region`). The region in which the namespace should be created.

func (ContainerTriggerNatsPtrOutput) Subject

The subject to listen to

func (ContainerTriggerNatsPtrOutput) ToContainerTriggerNatsPtrOutput

func (o ContainerTriggerNatsPtrOutput) ToContainerTriggerNatsPtrOutput() ContainerTriggerNatsPtrOutput

func (ContainerTriggerNatsPtrOutput) ToContainerTriggerNatsPtrOutputWithContext

func (o ContainerTriggerNatsPtrOutput) ToContainerTriggerNatsPtrOutputWithContext(ctx context.Context) ContainerTriggerNatsPtrOutput

type ContainerTriggerOutput

type ContainerTriggerOutput struct{ *pulumi.OutputState }

func (ContainerTriggerOutput) ContainerId

func (o ContainerTriggerOutput) ContainerId() pulumi.StringOutput

The ID of the container to create a trigger for

func (ContainerTriggerOutput) Description

The description of the trigger.

func (ContainerTriggerOutput) ElementType

func (ContainerTriggerOutput) ElementType() reflect.Type

func (ContainerTriggerOutput) Name

The unique name of the trigger. Default to a generated name.

func (ContainerTriggerOutput) Nats

The configuration for the Scaleway's Nats used by the trigger

func (ContainerTriggerOutput) Region

`region`). The region in which the namespace should be created.

func (ContainerTriggerOutput) Sqs

The configuration of the Scaleway's SQS used by the trigger

func (ContainerTriggerOutput) ToContainerTriggerOutput

func (o ContainerTriggerOutput) ToContainerTriggerOutput() ContainerTriggerOutput

func (ContainerTriggerOutput) ToContainerTriggerOutputWithContext

func (o ContainerTriggerOutput) ToContainerTriggerOutputWithContext(ctx context.Context) ContainerTriggerOutput

type ContainerTriggerSqs

type ContainerTriggerSqs struct {
	// ID of the mnq namespace. Deprecated.
	NamespaceId *string `pulumi:"namespaceId"`
	// ID of the project that contain the mnq nats account, defaults to provider's project
	ProjectId *string `pulumi:"projectId"`
	// Name of the queue
	Queue string `pulumi:"queue"`
	// `region`). The region in which the namespace should be created.
	Region *string `pulumi:"region"`
}

type ContainerTriggerSqsArgs

type ContainerTriggerSqsArgs struct {
	// ID of the mnq namespace. Deprecated.
	NamespaceId pulumi.StringPtrInput `pulumi:"namespaceId"`
	// ID of the project that contain the mnq nats account, defaults to provider's project
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// Name of the queue
	Queue pulumi.StringInput `pulumi:"queue"`
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

func (ContainerTriggerSqsArgs) ElementType

func (ContainerTriggerSqsArgs) ElementType() reflect.Type

func (ContainerTriggerSqsArgs) ToContainerTriggerSqsOutput

func (i ContainerTriggerSqsArgs) ToContainerTriggerSqsOutput() ContainerTriggerSqsOutput

func (ContainerTriggerSqsArgs) ToContainerTriggerSqsOutputWithContext

func (i ContainerTriggerSqsArgs) ToContainerTriggerSqsOutputWithContext(ctx context.Context) ContainerTriggerSqsOutput

func (ContainerTriggerSqsArgs) ToContainerTriggerSqsPtrOutput

func (i ContainerTriggerSqsArgs) ToContainerTriggerSqsPtrOutput() ContainerTriggerSqsPtrOutput

func (ContainerTriggerSqsArgs) ToContainerTriggerSqsPtrOutputWithContext

func (i ContainerTriggerSqsArgs) ToContainerTriggerSqsPtrOutputWithContext(ctx context.Context) ContainerTriggerSqsPtrOutput

type ContainerTriggerSqsInput

type ContainerTriggerSqsInput interface {
	pulumi.Input

	ToContainerTriggerSqsOutput() ContainerTriggerSqsOutput
	ToContainerTriggerSqsOutputWithContext(context.Context) ContainerTriggerSqsOutput
}

ContainerTriggerSqsInput is an input type that accepts ContainerTriggerSqsArgs and ContainerTriggerSqsOutput values. You can construct a concrete instance of `ContainerTriggerSqsInput` via:

ContainerTriggerSqsArgs{...}

type ContainerTriggerSqsOutput

type ContainerTriggerSqsOutput struct{ *pulumi.OutputState }

func (ContainerTriggerSqsOutput) ElementType

func (ContainerTriggerSqsOutput) ElementType() reflect.Type

func (ContainerTriggerSqsOutput) NamespaceId

ID of the mnq namespace. Deprecated.

func (ContainerTriggerSqsOutput) ProjectId

ID of the project that contain the mnq nats account, defaults to provider's project

func (ContainerTriggerSqsOutput) Queue

Name of the queue

func (ContainerTriggerSqsOutput) Region

`region`). The region in which the namespace should be created.

func (ContainerTriggerSqsOutput) ToContainerTriggerSqsOutput

func (o ContainerTriggerSqsOutput) ToContainerTriggerSqsOutput() ContainerTriggerSqsOutput

func (ContainerTriggerSqsOutput) ToContainerTriggerSqsOutputWithContext

func (o ContainerTriggerSqsOutput) ToContainerTriggerSqsOutputWithContext(ctx context.Context) ContainerTriggerSqsOutput

func (ContainerTriggerSqsOutput) ToContainerTriggerSqsPtrOutput

func (o ContainerTriggerSqsOutput) ToContainerTriggerSqsPtrOutput() ContainerTriggerSqsPtrOutput

func (ContainerTriggerSqsOutput) ToContainerTriggerSqsPtrOutputWithContext

func (o ContainerTriggerSqsOutput) ToContainerTriggerSqsPtrOutputWithContext(ctx context.Context) ContainerTriggerSqsPtrOutput

type ContainerTriggerSqsPtrInput

type ContainerTriggerSqsPtrInput interface {
	pulumi.Input

	ToContainerTriggerSqsPtrOutput() ContainerTriggerSqsPtrOutput
	ToContainerTriggerSqsPtrOutputWithContext(context.Context) ContainerTriggerSqsPtrOutput
}

ContainerTriggerSqsPtrInput is an input type that accepts ContainerTriggerSqsArgs, ContainerTriggerSqsPtr and ContainerTriggerSqsPtrOutput values. You can construct a concrete instance of `ContainerTriggerSqsPtrInput` via:

        ContainerTriggerSqsArgs{...}

or:

        nil

type ContainerTriggerSqsPtrOutput

type ContainerTriggerSqsPtrOutput struct{ *pulumi.OutputState }

func (ContainerTriggerSqsPtrOutput) Elem

func (ContainerTriggerSqsPtrOutput) ElementType

func (ContainerTriggerSqsPtrOutput) NamespaceId

ID of the mnq namespace. Deprecated.

func (ContainerTriggerSqsPtrOutput) ProjectId

ID of the project that contain the mnq nats account, defaults to provider's project

func (ContainerTriggerSqsPtrOutput) Queue

Name of the queue

func (ContainerTriggerSqsPtrOutput) Region

`region`). The region in which the namespace should be created.

func (ContainerTriggerSqsPtrOutput) ToContainerTriggerSqsPtrOutput

func (o ContainerTriggerSqsPtrOutput) ToContainerTriggerSqsPtrOutput() ContainerTriggerSqsPtrOutput

func (ContainerTriggerSqsPtrOutput) ToContainerTriggerSqsPtrOutputWithContext

func (o ContainerTriggerSqsPtrOutput) ToContainerTriggerSqsPtrOutputWithContext(ctx context.Context) ContainerTriggerSqsPtrOutput

type ContainerTriggerState

type ContainerTriggerState struct {
	// The ID of the container to create a trigger for
	ContainerId pulumi.StringPtrInput
	// The description of the trigger.
	Description pulumi.StringPtrInput
	// The unique name of the trigger. Default to a generated name.
	Name pulumi.StringPtrInput
	// The configuration for the Scaleway's Nats used by the trigger
	Nats ContainerTriggerNatsPtrInput
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput
	// The configuration of the Scaleway's SQS used by the trigger
	Sqs ContainerTriggerSqsPtrInput
}

func (ContainerTriggerState) ElementType

func (ContainerTriggerState) ElementType() reflect.Type

type Function

type Function struct {
	pulumi.CustomResourceState

	// The CPU limit in mCPU for your function. More infos on resources [here](https://developers.scaleway.com/en/products/functions/api/#functions)
	CpuLimit pulumi.IntOutput `pulumi:"cpuLimit"`
	// Define if the function should be deployed, terraform will wait for function to be deployed
	Deploy pulumi.BoolPtrOutput `pulumi:"deploy"`
	// The description of the function.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The native domain name of the function
	DomainName pulumi.StringOutput `pulumi:"domainName"`
	// The environment variables of the function.
	EnvironmentVariables pulumi.StringMapOutput `pulumi:"environmentVariables"`
	// Handler of the function. Depends on the runtime ([function guide](https://developers.scaleway.com/en/products/functions/api/#create-a-function))
	Handler pulumi.StringOutput `pulumi:"handler"`
	// HTTP traffic configuration
	HttpOption pulumi.StringPtrOutput `pulumi:"httpOption"`
	// Maximum replicas for your function (defaults to 20), our system will scale your functions automatically based on incoming workload, but will never scale the number of replicas above the configured max_scale.
	MaxScale pulumi.IntPtrOutput `pulumi:"maxScale"`
	// Memory limit in MB for your function, defaults to 128MB
	MemoryLimit pulumi.IntPtrOutput `pulumi:"memoryLimit"`
	// Minimum replicas for your function, defaults to 0, Note that a function is billed when it gets executed, and using a minScale greater than 0 will cause your function container to run constantly.
	MinScale pulumi.IntPtrOutput `pulumi:"minScale"`
	// The unique name of the function.
	//
	// > **Important** Updates to `name` will recreate the function.
	Name pulumi.StringOutput `pulumi:"name"`
	// The namespace ID the function is associated with.
	NamespaceId pulumi.StringOutput `pulumi:"namespaceId"`
	// The organization ID the function is associated with.
	OrganizationId pulumi.StringOutput `pulumi:"organizationId"`
	// Privacy of the function. Can be either `private` or `public`. Read more on [authentication](https://developers.scaleway.com/en/products/functions/api/#authentication)
	Privacy pulumi.StringOutput `pulumi:"privacy"`
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringOutput `pulumi:"region"`
	// Runtime of the function. Runtimes can be fetched using [specific route](https://developers.scaleway.com/en/products/functions/api/#get-f7de6a)
	Runtime pulumi.StringOutput `pulumi:"runtime"`
	// The [secret environment](https://www.scaleway.com/en/docs/compute/functions/concepts/#secrets) variables of the function.
	SecretEnvironmentVariables pulumi.StringMapOutput `pulumi:"secretEnvironmentVariables"`
	// Holds the max duration (in seconds) the function is allowed for responding to a request
	Timeout pulumi.IntOutput `pulumi:"timeout"`
	// Location of the zip file to upload containing your function sources
	ZipFile pulumi.StringPtrOutput `pulumi:"zipFile"`
	// The hash of your source zip file, changing it will re-apply function. Can be any string
	ZipHash pulumi.StringPtrOutput `pulumi:"zipHash"`
}

Creates and manages Scaleway Functions. For more information see [the documentation](https://developers.scaleway.com/en/products/functions/api/).

## Example Usage

### Basic

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mainFunctionNamespace, err := serverless.NewFunctionNamespace(ctx, "mainFunctionNamespace", &serverless.FunctionNamespaceArgs{
			Description: pulumi.String("Main function namespace"),
		})
		if err != nil {
			return err
		}
		_, err = serverless.NewFunction(ctx, "mainFunction", &serverless.FunctionArgs{
			NamespaceId: mainFunctionNamespace.ID(),
			Runtime:     pulumi.String("go118"),
			Handler:     pulumi.String("Handle"),
			Privacy:     pulumi.String("private"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Functions can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/function:Function main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetFunction

func GetFunction(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionState, opts ...pulumi.ResourceOption) (*Function, error)

GetFunction gets an existing Function resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunction

func NewFunction(ctx *pulumi.Context,
	name string, args *FunctionArgs, opts ...pulumi.ResourceOption) (*Function, error)

NewFunction registers a new resource with the given unique name, arguments, and options.

func (*Function) ElementType

func (*Function) ElementType() reflect.Type

func (*Function) ToFunctionOutput

func (i *Function) ToFunctionOutput() FunctionOutput

func (*Function) ToFunctionOutputWithContext

func (i *Function) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput

type FunctionArgs

type FunctionArgs struct {
	// Define if the function should be deployed, terraform will wait for function to be deployed
	Deploy pulumi.BoolPtrInput
	// The description of the function.
	Description pulumi.StringPtrInput
	// The environment variables of the function.
	EnvironmentVariables pulumi.StringMapInput
	// Handler of the function. Depends on the runtime ([function guide](https://developers.scaleway.com/en/products/functions/api/#create-a-function))
	Handler pulumi.StringInput
	// HTTP traffic configuration
	HttpOption pulumi.StringPtrInput
	// Maximum replicas for your function (defaults to 20), our system will scale your functions automatically based on incoming workload, but will never scale the number of replicas above the configured max_scale.
	MaxScale pulumi.IntPtrInput
	// Memory limit in MB for your function, defaults to 128MB
	MemoryLimit pulumi.IntPtrInput
	// Minimum replicas for your function, defaults to 0, Note that a function is billed when it gets executed, and using a minScale greater than 0 will cause your function container to run constantly.
	MinScale pulumi.IntPtrInput
	// The unique name of the function.
	//
	// > **Important** Updates to `name` will recreate the function.
	Name pulumi.StringPtrInput
	// The namespace ID the function is associated with.
	NamespaceId pulumi.StringInput
	// Privacy of the function. Can be either `private` or `public`. Read more on [authentication](https://developers.scaleway.com/en/products/functions/api/#authentication)
	Privacy pulumi.StringInput
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringPtrInput
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput
	// Runtime of the function. Runtimes can be fetched using [specific route](https://developers.scaleway.com/en/products/functions/api/#get-f7de6a)
	Runtime pulumi.StringInput
	// The [secret environment](https://www.scaleway.com/en/docs/compute/functions/concepts/#secrets) variables of the function.
	SecretEnvironmentVariables pulumi.StringMapInput
	// Holds the max duration (in seconds) the function is allowed for responding to a request
	Timeout pulumi.IntPtrInput
	// Location of the zip file to upload containing your function sources
	ZipFile pulumi.StringPtrInput
	// The hash of your source zip file, changing it will re-apply function. Can be any string
	ZipHash pulumi.StringPtrInput
}

The set of arguments for constructing a Function resource.

func (FunctionArgs) ElementType

func (FunctionArgs) ElementType() reflect.Type

type FunctionArray

type FunctionArray []FunctionInput

func (FunctionArray) ElementType

func (FunctionArray) ElementType() reflect.Type

func (FunctionArray) ToFunctionArrayOutput

func (i FunctionArray) ToFunctionArrayOutput() FunctionArrayOutput

func (FunctionArray) ToFunctionArrayOutputWithContext

func (i FunctionArray) ToFunctionArrayOutputWithContext(ctx context.Context) FunctionArrayOutput

type FunctionArrayInput

type FunctionArrayInput interface {
	pulumi.Input

	ToFunctionArrayOutput() FunctionArrayOutput
	ToFunctionArrayOutputWithContext(context.Context) FunctionArrayOutput
}

FunctionArrayInput is an input type that accepts FunctionArray and FunctionArrayOutput values. You can construct a concrete instance of `FunctionArrayInput` via:

FunctionArray{ FunctionArgs{...} }

type FunctionArrayOutput

type FunctionArrayOutput struct{ *pulumi.OutputState }

func (FunctionArrayOutput) ElementType

func (FunctionArrayOutput) ElementType() reflect.Type

func (FunctionArrayOutput) Index

func (FunctionArrayOutput) ToFunctionArrayOutput

func (o FunctionArrayOutput) ToFunctionArrayOutput() FunctionArrayOutput

func (FunctionArrayOutput) ToFunctionArrayOutputWithContext

func (o FunctionArrayOutput) ToFunctionArrayOutputWithContext(ctx context.Context) FunctionArrayOutput

type FunctionCron

type FunctionCron struct {
	pulumi.CustomResourceState

	// The key-value mapping to define arguments that will be passed to your function’s event object
	// during
	Args pulumi.StringOutput `pulumi:"args"`
	// The function ID to link with your cron.
	FunctionId pulumi.StringOutput `pulumi:"functionId"`
	// The name of the cron. If not provided, the name is generated.
	Name pulumi.StringOutput `pulumi:"name"`
	// `region`) The region
	// in where the job was created.
	Region pulumi.StringOutput `pulumi:"region"`
	// Cron format string, e.g. @hourly, as schedule time of its jobs to be created and
	// executed.
	Schedule pulumi.StringOutput `pulumi:"schedule"`
	// The cron status.
	Status pulumi.StringOutput `pulumi:"status"`
}

Creates and manages Scaleway Function Triggers. For the moment, the feature is limited to CRON Schedule (time-based).

For more details about the limitation check [functions-limitations](https://www.scaleway.com/en/docs/compute/functions/reference-content/functions-limitations/).

You can check also our [functions cron api documentation](https://developers.scaleway.com/en/products/functions/api/#crons-942bf4).

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"encoding/json"

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mainFunctionNamespace, err := serverless.NewFunctionNamespace(ctx, "mainFunctionNamespace", nil)
		if err != nil {
			return err
		}
		mainFunction, err := serverless.NewFunction(ctx, "mainFunction", &serverless.FunctionArgs{
			NamespaceId: mainFunctionNamespace.ID(),
			Runtime:     pulumi.String("node14"),
			Privacy:     pulumi.String("private"),
			Handler:     pulumi.String("handler.handle"),
		})
		if err != nil {
			return err
		}
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"test": "scw",
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		_, err = serverless.NewFunctionCron(ctx, "mainFunctionCron", &serverless.FunctionCronArgs{
			FunctionId: mainFunction.ID(),
			Schedule:   pulumi.String("0 0 * * *"),
			Args:       pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		tmpJSON1, err := json.Marshal(map[string]interface{}{
			"my_var": "terraform",
		})
		if err != nil {
			return err
		}
		json1 := string(tmpJSON1)
		_, err = serverless.NewFunctionCron(ctx, "func", &serverless.FunctionCronArgs{
			FunctionId: mainFunction.ID(),
			Schedule:   pulumi.String("0 1 * * *"),
			Args:       pulumi.String(json1),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Container Cron can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/functionCron:FunctionCron main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetFunctionCron

func GetFunctionCron(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionCronState, opts ...pulumi.ResourceOption) (*FunctionCron, error)

GetFunctionCron gets an existing FunctionCron resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunctionCron

func NewFunctionCron(ctx *pulumi.Context,
	name string, args *FunctionCronArgs, opts ...pulumi.ResourceOption) (*FunctionCron, error)

NewFunctionCron registers a new resource with the given unique name, arguments, and options.

func (*FunctionCron) ElementType

func (*FunctionCron) ElementType() reflect.Type

func (*FunctionCron) ToFunctionCronOutput

func (i *FunctionCron) ToFunctionCronOutput() FunctionCronOutput

func (*FunctionCron) ToFunctionCronOutputWithContext

func (i *FunctionCron) ToFunctionCronOutputWithContext(ctx context.Context) FunctionCronOutput

type FunctionCronArgs

type FunctionCronArgs struct {
	// The key-value mapping to define arguments that will be passed to your function’s event object
	// during
	Args pulumi.StringInput
	// The function ID to link with your cron.
	FunctionId pulumi.StringInput
	// The name of the cron. If not provided, the name is generated.
	Name pulumi.StringPtrInput
	// `region`) The region
	// in where the job was created.
	Region pulumi.StringPtrInput
	// Cron format string, e.g. @hourly, as schedule time of its jobs to be created and
	// executed.
	Schedule pulumi.StringInput
}

The set of arguments for constructing a FunctionCron resource.

func (FunctionCronArgs) ElementType

func (FunctionCronArgs) ElementType() reflect.Type

type FunctionCronArray

type FunctionCronArray []FunctionCronInput

func (FunctionCronArray) ElementType

func (FunctionCronArray) ElementType() reflect.Type

func (FunctionCronArray) ToFunctionCronArrayOutput

func (i FunctionCronArray) ToFunctionCronArrayOutput() FunctionCronArrayOutput

func (FunctionCronArray) ToFunctionCronArrayOutputWithContext

func (i FunctionCronArray) ToFunctionCronArrayOutputWithContext(ctx context.Context) FunctionCronArrayOutput

type FunctionCronArrayInput

type FunctionCronArrayInput interface {
	pulumi.Input

	ToFunctionCronArrayOutput() FunctionCronArrayOutput
	ToFunctionCronArrayOutputWithContext(context.Context) FunctionCronArrayOutput
}

FunctionCronArrayInput is an input type that accepts FunctionCronArray and FunctionCronArrayOutput values. You can construct a concrete instance of `FunctionCronArrayInput` via:

FunctionCronArray{ FunctionCronArgs{...} }

type FunctionCronArrayOutput

type FunctionCronArrayOutput struct{ *pulumi.OutputState }

func (FunctionCronArrayOutput) ElementType

func (FunctionCronArrayOutput) ElementType() reflect.Type

func (FunctionCronArrayOutput) Index

func (FunctionCronArrayOutput) ToFunctionCronArrayOutput

func (o FunctionCronArrayOutput) ToFunctionCronArrayOutput() FunctionCronArrayOutput

func (FunctionCronArrayOutput) ToFunctionCronArrayOutputWithContext

func (o FunctionCronArrayOutput) ToFunctionCronArrayOutputWithContext(ctx context.Context) FunctionCronArrayOutput

type FunctionCronInput

type FunctionCronInput interface {
	pulumi.Input

	ToFunctionCronOutput() FunctionCronOutput
	ToFunctionCronOutputWithContext(ctx context.Context) FunctionCronOutput
}

type FunctionCronMap

type FunctionCronMap map[string]FunctionCronInput

func (FunctionCronMap) ElementType

func (FunctionCronMap) ElementType() reflect.Type

func (FunctionCronMap) ToFunctionCronMapOutput

func (i FunctionCronMap) ToFunctionCronMapOutput() FunctionCronMapOutput

func (FunctionCronMap) ToFunctionCronMapOutputWithContext

func (i FunctionCronMap) ToFunctionCronMapOutputWithContext(ctx context.Context) FunctionCronMapOutput

type FunctionCronMapInput

type FunctionCronMapInput interface {
	pulumi.Input

	ToFunctionCronMapOutput() FunctionCronMapOutput
	ToFunctionCronMapOutputWithContext(context.Context) FunctionCronMapOutput
}

FunctionCronMapInput is an input type that accepts FunctionCronMap and FunctionCronMapOutput values. You can construct a concrete instance of `FunctionCronMapInput` via:

FunctionCronMap{ "key": FunctionCronArgs{...} }

type FunctionCronMapOutput

type FunctionCronMapOutput struct{ *pulumi.OutputState }

func (FunctionCronMapOutput) ElementType

func (FunctionCronMapOutput) ElementType() reflect.Type

func (FunctionCronMapOutput) MapIndex

func (FunctionCronMapOutput) ToFunctionCronMapOutput

func (o FunctionCronMapOutput) ToFunctionCronMapOutput() FunctionCronMapOutput

func (FunctionCronMapOutput) ToFunctionCronMapOutputWithContext

func (o FunctionCronMapOutput) ToFunctionCronMapOutputWithContext(ctx context.Context) FunctionCronMapOutput

type FunctionCronOutput

type FunctionCronOutput struct{ *pulumi.OutputState }

func (FunctionCronOutput) Args

The key-value mapping to define arguments that will be passed to your function’s event object during

func (FunctionCronOutput) ElementType

func (FunctionCronOutput) ElementType() reflect.Type

func (FunctionCronOutput) FunctionId

func (o FunctionCronOutput) FunctionId() pulumi.StringOutput

The function ID to link with your cron.

func (FunctionCronOutput) Name

The name of the cron. If not provided, the name is generated.

func (FunctionCronOutput) Region

`region`) The region in where the job was created.

func (FunctionCronOutput) Schedule

func (o FunctionCronOutput) Schedule() pulumi.StringOutput

Cron format string, e.g. @hourly, as schedule time of its jobs to be created and executed.

func (FunctionCronOutput) Status

The cron status.

func (FunctionCronOutput) ToFunctionCronOutput

func (o FunctionCronOutput) ToFunctionCronOutput() FunctionCronOutput

func (FunctionCronOutput) ToFunctionCronOutputWithContext

func (o FunctionCronOutput) ToFunctionCronOutputWithContext(ctx context.Context) FunctionCronOutput

type FunctionCronState

type FunctionCronState struct {
	// The key-value mapping to define arguments that will be passed to your function’s event object
	// during
	Args pulumi.StringPtrInput
	// The function ID to link with your cron.
	FunctionId pulumi.StringPtrInput
	// The name of the cron. If not provided, the name is generated.
	Name pulumi.StringPtrInput
	// `region`) The region
	// in where the job was created.
	Region pulumi.StringPtrInput
	// Cron format string, e.g. @hourly, as schedule time of its jobs to be created and
	// executed.
	Schedule pulumi.StringPtrInput
	// The cron status.
	Status pulumi.StringPtrInput
}

func (FunctionCronState) ElementType

func (FunctionCronState) ElementType() reflect.Type

type FunctionDomain

type FunctionDomain struct {
	pulumi.CustomResourceState

	// The ID of the function you want to create a domain with.
	FunctionId pulumi.StringOutput `pulumi:"functionId"`
	// The hostname that should resolve to your function id native domain.
	// You should use a CNAME domain record that point to your native function `domainName` for it.
	//
	// > **Important** Updates to `functionId` or `hostname` will recreate the domain.
	Hostname pulumi.StringOutput `pulumi:"hostname"`
	// (Defaults to provider `region`) The region in where the domain was created.
	Region pulumi.StringOutput `pulumi:"region"`
	// The URL that triggers the function
	Url pulumi.StringOutput `pulumi:"url"`
}

Creates and manages Scaleway Function Domain bindings. For more information see [the documentation](https://developers.scaleway.com/en/products/functions/api/).

## Example Usage

### Basic

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mainFunctionNamespace, err := serverless.NewFunctionNamespace(ctx, "mainFunctionNamespace", nil)
		if err != nil {
			return err
		}
		mainFunction, err := serverless.NewFunction(ctx, "mainFunction", &serverless.FunctionArgs{
			NamespaceId: mainFunctionNamespace.ID(),
			Runtime:     pulumi.String("go118"),
			Privacy:     pulumi.String("private"),
			Handler:     pulumi.String("Handle"),
			ZipFile:     pulumi.String("testfixture/gofunction.zip"),
			Deploy:      pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = serverless.NewFunctionDomain(ctx, "mainFunctionDomain", &serverless.FunctionDomainArgs{
			FunctionId: mainFunction.ID(),
			Hostname:   pulumi.String("example.com"),
		}, pulumi.DependsOn([]pulumi.Resource{
			mainFunction,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Domain can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/functionDomain:FunctionDomain main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetFunctionDomain

func GetFunctionDomain(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionDomainState, opts ...pulumi.ResourceOption) (*FunctionDomain, error)

GetFunctionDomain gets an existing FunctionDomain resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunctionDomain

func NewFunctionDomain(ctx *pulumi.Context,
	name string, args *FunctionDomainArgs, opts ...pulumi.ResourceOption) (*FunctionDomain, error)

NewFunctionDomain registers a new resource with the given unique name, arguments, and options.

func (*FunctionDomain) ElementType

func (*FunctionDomain) ElementType() reflect.Type

func (*FunctionDomain) ToFunctionDomainOutput

func (i *FunctionDomain) ToFunctionDomainOutput() FunctionDomainOutput

func (*FunctionDomain) ToFunctionDomainOutputWithContext

func (i *FunctionDomain) ToFunctionDomainOutputWithContext(ctx context.Context) FunctionDomainOutput

type FunctionDomainArgs

type FunctionDomainArgs struct {
	// The ID of the function you want to create a domain with.
	FunctionId pulumi.StringInput
	// The hostname that should resolve to your function id native domain.
	// You should use a CNAME domain record that point to your native function `domainName` for it.
	//
	// > **Important** Updates to `functionId` or `hostname` will recreate the domain.
	Hostname pulumi.StringInput
	// (Defaults to provider `region`) The region in where the domain was created.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a FunctionDomain resource.

func (FunctionDomainArgs) ElementType

func (FunctionDomainArgs) ElementType() reflect.Type

type FunctionDomainArray

type FunctionDomainArray []FunctionDomainInput

func (FunctionDomainArray) ElementType

func (FunctionDomainArray) ElementType() reflect.Type

func (FunctionDomainArray) ToFunctionDomainArrayOutput

func (i FunctionDomainArray) ToFunctionDomainArrayOutput() FunctionDomainArrayOutput

func (FunctionDomainArray) ToFunctionDomainArrayOutputWithContext

func (i FunctionDomainArray) ToFunctionDomainArrayOutputWithContext(ctx context.Context) FunctionDomainArrayOutput

type FunctionDomainArrayInput

type FunctionDomainArrayInput interface {
	pulumi.Input

	ToFunctionDomainArrayOutput() FunctionDomainArrayOutput
	ToFunctionDomainArrayOutputWithContext(context.Context) FunctionDomainArrayOutput
}

FunctionDomainArrayInput is an input type that accepts FunctionDomainArray and FunctionDomainArrayOutput values. You can construct a concrete instance of `FunctionDomainArrayInput` via:

FunctionDomainArray{ FunctionDomainArgs{...} }

type FunctionDomainArrayOutput

type FunctionDomainArrayOutput struct{ *pulumi.OutputState }

func (FunctionDomainArrayOutput) ElementType

func (FunctionDomainArrayOutput) ElementType() reflect.Type

func (FunctionDomainArrayOutput) Index

func (FunctionDomainArrayOutput) ToFunctionDomainArrayOutput

func (o FunctionDomainArrayOutput) ToFunctionDomainArrayOutput() FunctionDomainArrayOutput

func (FunctionDomainArrayOutput) ToFunctionDomainArrayOutputWithContext

func (o FunctionDomainArrayOutput) ToFunctionDomainArrayOutputWithContext(ctx context.Context) FunctionDomainArrayOutput

type FunctionDomainInput

type FunctionDomainInput interface {
	pulumi.Input

	ToFunctionDomainOutput() FunctionDomainOutput
	ToFunctionDomainOutputWithContext(ctx context.Context) FunctionDomainOutput
}

type FunctionDomainMap

type FunctionDomainMap map[string]FunctionDomainInput

func (FunctionDomainMap) ElementType

func (FunctionDomainMap) ElementType() reflect.Type

func (FunctionDomainMap) ToFunctionDomainMapOutput

func (i FunctionDomainMap) ToFunctionDomainMapOutput() FunctionDomainMapOutput

func (FunctionDomainMap) ToFunctionDomainMapOutputWithContext

func (i FunctionDomainMap) ToFunctionDomainMapOutputWithContext(ctx context.Context) FunctionDomainMapOutput

type FunctionDomainMapInput

type FunctionDomainMapInput interface {
	pulumi.Input

	ToFunctionDomainMapOutput() FunctionDomainMapOutput
	ToFunctionDomainMapOutputWithContext(context.Context) FunctionDomainMapOutput
}

FunctionDomainMapInput is an input type that accepts FunctionDomainMap and FunctionDomainMapOutput values. You can construct a concrete instance of `FunctionDomainMapInput` via:

FunctionDomainMap{ "key": FunctionDomainArgs{...} }

type FunctionDomainMapOutput

type FunctionDomainMapOutput struct{ *pulumi.OutputState }

func (FunctionDomainMapOutput) ElementType

func (FunctionDomainMapOutput) ElementType() reflect.Type

func (FunctionDomainMapOutput) MapIndex

func (FunctionDomainMapOutput) ToFunctionDomainMapOutput

func (o FunctionDomainMapOutput) ToFunctionDomainMapOutput() FunctionDomainMapOutput

func (FunctionDomainMapOutput) ToFunctionDomainMapOutputWithContext

func (o FunctionDomainMapOutput) ToFunctionDomainMapOutputWithContext(ctx context.Context) FunctionDomainMapOutput

type FunctionDomainOutput

type FunctionDomainOutput struct{ *pulumi.OutputState }

func (FunctionDomainOutput) ElementType

func (FunctionDomainOutput) ElementType() reflect.Type

func (FunctionDomainOutput) FunctionId

func (o FunctionDomainOutput) FunctionId() pulumi.StringOutput

The ID of the function you want to create a domain with.

func (FunctionDomainOutput) Hostname

The hostname that should resolve to your function id native domain. You should use a CNAME domain record that point to your native function `domainName` for it.

> **Important** Updates to `functionId` or `hostname` will recreate the domain.

func (FunctionDomainOutput) Region

(Defaults to provider `region`) The region in where the domain was created.

func (FunctionDomainOutput) ToFunctionDomainOutput

func (o FunctionDomainOutput) ToFunctionDomainOutput() FunctionDomainOutput

func (FunctionDomainOutput) ToFunctionDomainOutputWithContext

func (o FunctionDomainOutput) ToFunctionDomainOutputWithContext(ctx context.Context) FunctionDomainOutput

func (FunctionDomainOutput) Url

The URL that triggers the function

type FunctionDomainState

type FunctionDomainState struct {
	// The ID of the function you want to create a domain with.
	FunctionId pulumi.StringPtrInput
	// The hostname that should resolve to your function id native domain.
	// You should use a CNAME domain record that point to your native function `domainName` for it.
	//
	// > **Important** Updates to `functionId` or `hostname` will recreate the domain.
	Hostname pulumi.StringPtrInput
	// (Defaults to provider `region`) The region in where the domain was created.
	Region pulumi.StringPtrInput
	// The URL that triggers the function
	Url pulumi.StringPtrInput
}

func (FunctionDomainState) ElementType

func (FunctionDomainState) ElementType() reflect.Type

type FunctionInput

type FunctionInput interface {
	pulumi.Input

	ToFunctionOutput() FunctionOutput
	ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
}

type FunctionMap

type FunctionMap map[string]FunctionInput

func (FunctionMap) ElementType

func (FunctionMap) ElementType() reflect.Type

func (FunctionMap) ToFunctionMapOutput

func (i FunctionMap) ToFunctionMapOutput() FunctionMapOutput

func (FunctionMap) ToFunctionMapOutputWithContext

func (i FunctionMap) ToFunctionMapOutputWithContext(ctx context.Context) FunctionMapOutput

type FunctionMapInput

type FunctionMapInput interface {
	pulumi.Input

	ToFunctionMapOutput() FunctionMapOutput
	ToFunctionMapOutputWithContext(context.Context) FunctionMapOutput
}

FunctionMapInput is an input type that accepts FunctionMap and FunctionMapOutput values. You can construct a concrete instance of `FunctionMapInput` via:

FunctionMap{ "key": FunctionArgs{...} }

type FunctionMapOutput

type FunctionMapOutput struct{ *pulumi.OutputState }

func (FunctionMapOutput) ElementType

func (FunctionMapOutput) ElementType() reflect.Type

func (FunctionMapOutput) MapIndex

func (FunctionMapOutput) ToFunctionMapOutput

func (o FunctionMapOutput) ToFunctionMapOutput() FunctionMapOutput

func (FunctionMapOutput) ToFunctionMapOutputWithContext

func (o FunctionMapOutput) ToFunctionMapOutputWithContext(ctx context.Context) FunctionMapOutput

type FunctionNamespace

type FunctionNamespace struct {
	pulumi.CustomResourceState

	// The description of the namespace.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The environment variables of the namespace.
	EnvironmentVariables pulumi.StringMapOutput `pulumi:"environmentVariables"`
	// The unique name of the function namespace.
	//
	// > **Important** Updates to `name` will recreate the namespace.
	Name pulumi.StringOutput `pulumi:"name"`
	// The organization ID the namespace is associated with.
	OrganizationId pulumi.StringOutput `pulumi:"organizationId"`
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringOutput `pulumi:"region"`
	// The registry endpoint of the namespace.
	RegistryEndpoint pulumi.StringOutput `pulumi:"registryEndpoint"`
	// The registry namespace ID of the namespace.
	RegistryNamespaceId pulumi.StringOutput `pulumi:"registryNamespaceId"`
	// The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the namespace.
	SecretEnvironmentVariables pulumi.StringMapOutput `pulumi:"secretEnvironmentVariables"`
}

Creates and manages Scaleway Function Namespace. For more information see [the documentation](https://developers.scaleway.com/en/products/functions/api/).

## Example Usage

### Basic

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := serverless.NewFunctionNamespace(ctx, "main", &serverless.FunctionNamespaceArgs{
			Description: pulumi.String("Main function namespace"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Namespaces can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/functionNamespace:FunctionNamespace main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetFunctionNamespace

func GetFunctionNamespace(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionNamespaceState, opts ...pulumi.ResourceOption) (*FunctionNamespace, error)

GetFunctionNamespace gets an existing FunctionNamespace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunctionNamespace

func NewFunctionNamespace(ctx *pulumi.Context,
	name string, args *FunctionNamespaceArgs, opts ...pulumi.ResourceOption) (*FunctionNamespace, error)

NewFunctionNamespace registers a new resource with the given unique name, arguments, and options.

func (*FunctionNamespace) ElementType

func (*FunctionNamespace) ElementType() reflect.Type

func (*FunctionNamespace) ToFunctionNamespaceOutput

func (i *FunctionNamespace) ToFunctionNamespaceOutput() FunctionNamespaceOutput

func (*FunctionNamespace) ToFunctionNamespaceOutputWithContext

func (i *FunctionNamespace) ToFunctionNamespaceOutputWithContext(ctx context.Context) FunctionNamespaceOutput

type FunctionNamespaceArgs

type FunctionNamespaceArgs struct {
	// The description of the namespace.
	Description pulumi.StringPtrInput
	// The environment variables of the namespace.
	EnvironmentVariables pulumi.StringMapInput
	// The unique name of the function namespace.
	//
	// > **Important** Updates to `name` will recreate the namespace.
	Name pulumi.StringPtrInput
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringPtrInput
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput
	// The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the namespace.
	SecretEnvironmentVariables pulumi.StringMapInput
}

The set of arguments for constructing a FunctionNamespace resource.

func (FunctionNamespaceArgs) ElementType

func (FunctionNamespaceArgs) ElementType() reflect.Type

type FunctionNamespaceArray

type FunctionNamespaceArray []FunctionNamespaceInput

func (FunctionNamespaceArray) ElementType

func (FunctionNamespaceArray) ElementType() reflect.Type

func (FunctionNamespaceArray) ToFunctionNamespaceArrayOutput

func (i FunctionNamespaceArray) ToFunctionNamespaceArrayOutput() FunctionNamespaceArrayOutput

func (FunctionNamespaceArray) ToFunctionNamespaceArrayOutputWithContext

func (i FunctionNamespaceArray) ToFunctionNamespaceArrayOutputWithContext(ctx context.Context) FunctionNamespaceArrayOutput

type FunctionNamespaceArrayInput

type FunctionNamespaceArrayInput interface {
	pulumi.Input

	ToFunctionNamespaceArrayOutput() FunctionNamespaceArrayOutput
	ToFunctionNamespaceArrayOutputWithContext(context.Context) FunctionNamespaceArrayOutput
}

FunctionNamespaceArrayInput is an input type that accepts FunctionNamespaceArray and FunctionNamespaceArrayOutput values. You can construct a concrete instance of `FunctionNamespaceArrayInput` via:

FunctionNamespaceArray{ FunctionNamespaceArgs{...} }

type FunctionNamespaceArrayOutput

type FunctionNamespaceArrayOutput struct{ *pulumi.OutputState }

func (FunctionNamespaceArrayOutput) ElementType

func (FunctionNamespaceArrayOutput) Index

func (FunctionNamespaceArrayOutput) ToFunctionNamespaceArrayOutput

func (o FunctionNamespaceArrayOutput) ToFunctionNamespaceArrayOutput() FunctionNamespaceArrayOutput

func (FunctionNamespaceArrayOutput) ToFunctionNamespaceArrayOutputWithContext

func (o FunctionNamespaceArrayOutput) ToFunctionNamespaceArrayOutputWithContext(ctx context.Context) FunctionNamespaceArrayOutput

type FunctionNamespaceInput

type FunctionNamespaceInput interface {
	pulumi.Input

	ToFunctionNamespaceOutput() FunctionNamespaceOutput
	ToFunctionNamespaceOutputWithContext(ctx context.Context) FunctionNamespaceOutput
}

type FunctionNamespaceMap

type FunctionNamespaceMap map[string]FunctionNamespaceInput

func (FunctionNamespaceMap) ElementType

func (FunctionNamespaceMap) ElementType() reflect.Type

func (FunctionNamespaceMap) ToFunctionNamespaceMapOutput

func (i FunctionNamespaceMap) ToFunctionNamespaceMapOutput() FunctionNamespaceMapOutput

func (FunctionNamespaceMap) ToFunctionNamespaceMapOutputWithContext

func (i FunctionNamespaceMap) ToFunctionNamespaceMapOutputWithContext(ctx context.Context) FunctionNamespaceMapOutput

type FunctionNamespaceMapInput

type FunctionNamespaceMapInput interface {
	pulumi.Input

	ToFunctionNamespaceMapOutput() FunctionNamespaceMapOutput
	ToFunctionNamespaceMapOutputWithContext(context.Context) FunctionNamespaceMapOutput
}

FunctionNamespaceMapInput is an input type that accepts FunctionNamespaceMap and FunctionNamespaceMapOutput values. You can construct a concrete instance of `FunctionNamespaceMapInput` via:

FunctionNamespaceMap{ "key": FunctionNamespaceArgs{...} }

type FunctionNamespaceMapOutput

type FunctionNamespaceMapOutput struct{ *pulumi.OutputState }

func (FunctionNamespaceMapOutput) ElementType

func (FunctionNamespaceMapOutput) ElementType() reflect.Type

func (FunctionNamespaceMapOutput) MapIndex

func (FunctionNamespaceMapOutput) ToFunctionNamespaceMapOutput

func (o FunctionNamespaceMapOutput) ToFunctionNamespaceMapOutput() FunctionNamespaceMapOutput

func (FunctionNamespaceMapOutput) ToFunctionNamespaceMapOutputWithContext

func (o FunctionNamespaceMapOutput) ToFunctionNamespaceMapOutputWithContext(ctx context.Context) FunctionNamespaceMapOutput

type FunctionNamespaceOutput

type FunctionNamespaceOutput struct{ *pulumi.OutputState }

func (FunctionNamespaceOutput) Description

The description of the namespace.

func (FunctionNamespaceOutput) ElementType

func (FunctionNamespaceOutput) ElementType() reflect.Type

func (FunctionNamespaceOutput) EnvironmentVariables

func (o FunctionNamespaceOutput) EnvironmentVariables() pulumi.StringMapOutput

The environment variables of the namespace.

func (FunctionNamespaceOutput) Name

The unique name of the function namespace.

> **Important** Updates to `name` will recreate the namespace.

func (FunctionNamespaceOutput) OrganizationId

func (o FunctionNamespaceOutput) OrganizationId() pulumi.StringOutput

The organization ID the namespace is associated with.

func (FunctionNamespaceOutput) ProjectId

`projectId`) The ID of the project the namespace is associated with.

func (FunctionNamespaceOutput) Region

`region`). The region in which the namespace should be created.

func (FunctionNamespaceOutput) RegistryEndpoint

func (o FunctionNamespaceOutput) RegistryEndpoint() pulumi.StringOutput

The registry endpoint of the namespace.

func (FunctionNamespaceOutput) RegistryNamespaceId

func (o FunctionNamespaceOutput) RegistryNamespaceId() pulumi.StringOutput

The registry namespace ID of the namespace.

func (FunctionNamespaceOutput) SecretEnvironmentVariables

func (o FunctionNamespaceOutput) SecretEnvironmentVariables() pulumi.StringMapOutput

The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the namespace.

func (FunctionNamespaceOutput) ToFunctionNamespaceOutput

func (o FunctionNamespaceOutput) ToFunctionNamespaceOutput() FunctionNamespaceOutput

func (FunctionNamespaceOutput) ToFunctionNamespaceOutputWithContext

func (o FunctionNamespaceOutput) ToFunctionNamespaceOutputWithContext(ctx context.Context) FunctionNamespaceOutput

type FunctionNamespaceState

type FunctionNamespaceState struct {
	// The description of the namespace.
	Description pulumi.StringPtrInput
	// The environment variables of the namespace.
	EnvironmentVariables pulumi.StringMapInput
	// The unique name of the function namespace.
	//
	// > **Important** Updates to `name` will recreate the namespace.
	Name pulumi.StringPtrInput
	// The organization ID the namespace is associated with.
	OrganizationId pulumi.StringPtrInput
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringPtrInput
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput
	// The registry endpoint of the namespace.
	RegistryEndpoint pulumi.StringPtrInput
	// The registry namespace ID of the namespace.
	RegistryNamespaceId pulumi.StringPtrInput
	// The [secret environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#secrets) variables of the namespace.
	SecretEnvironmentVariables pulumi.StringMapInput
}

func (FunctionNamespaceState) ElementType

func (FunctionNamespaceState) ElementType() reflect.Type

type FunctionOutput

type FunctionOutput struct{ *pulumi.OutputState }

func (FunctionOutput) CpuLimit

func (o FunctionOutput) CpuLimit() pulumi.IntOutput

The CPU limit in mCPU for your function. More infos on resources [here](https://developers.scaleway.com/en/products/functions/api/#functions)

func (FunctionOutput) Deploy

func (o FunctionOutput) Deploy() pulumi.BoolPtrOutput

Define if the function should be deployed, terraform will wait for function to be deployed

func (FunctionOutput) Description

func (o FunctionOutput) Description() pulumi.StringPtrOutput

The description of the function.

func (FunctionOutput) DomainName

func (o FunctionOutput) DomainName() pulumi.StringOutput

The native domain name of the function

func (FunctionOutput) ElementType

func (FunctionOutput) ElementType() reflect.Type

func (FunctionOutput) EnvironmentVariables

func (o FunctionOutput) EnvironmentVariables() pulumi.StringMapOutput

The environment variables of the function.

func (FunctionOutput) Handler

func (o FunctionOutput) Handler() pulumi.StringOutput

Handler of the function. Depends on the runtime ([function guide](https://developers.scaleway.com/en/products/functions/api/#create-a-function))

func (FunctionOutput) HttpOption

func (o FunctionOutput) HttpOption() pulumi.StringPtrOutput

HTTP traffic configuration

func (FunctionOutput) MaxScale

func (o FunctionOutput) MaxScale() pulumi.IntPtrOutput

Maximum replicas for your function (defaults to 20), our system will scale your functions automatically based on incoming workload, but will never scale the number of replicas above the configured max_scale.

func (FunctionOutput) MemoryLimit

func (o FunctionOutput) MemoryLimit() pulumi.IntPtrOutput

Memory limit in MB for your function, defaults to 128MB

func (FunctionOutput) MinScale

func (o FunctionOutput) MinScale() pulumi.IntPtrOutput

Minimum replicas for your function, defaults to 0, Note that a function is billed when it gets executed, and using a minScale greater than 0 will cause your function container to run constantly.

func (FunctionOutput) Name

The unique name of the function.

> **Important** Updates to `name` will recreate the function.

func (FunctionOutput) NamespaceId

func (o FunctionOutput) NamespaceId() pulumi.StringOutput

The namespace ID the function is associated with.

func (FunctionOutput) OrganizationId

func (o FunctionOutput) OrganizationId() pulumi.StringOutput

The organization ID the function is associated with.

func (FunctionOutput) Privacy

func (o FunctionOutput) Privacy() pulumi.StringOutput

Privacy of the function. Can be either `private` or `public`. Read more on [authentication](https://developers.scaleway.com/en/products/functions/api/#authentication)

func (FunctionOutput) ProjectId

func (o FunctionOutput) ProjectId() pulumi.StringOutput

`projectId`) The ID of the project the namespace is associated with.

func (FunctionOutput) Region

func (o FunctionOutput) Region() pulumi.StringOutput

`region`). The region in which the namespace should be created.

func (FunctionOutput) Runtime

func (o FunctionOutput) Runtime() pulumi.StringOutput

Runtime of the function. Runtimes can be fetched using [specific route](https://developers.scaleway.com/en/products/functions/api/#get-f7de6a)

func (FunctionOutput) SecretEnvironmentVariables

func (o FunctionOutput) SecretEnvironmentVariables() pulumi.StringMapOutput

The [secret environment](https://www.scaleway.com/en/docs/compute/functions/concepts/#secrets) variables of the function.

func (FunctionOutput) Timeout

func (o FunctionOutput) Timeout() pulumi.IntOutput

Holds the max duration (in seconds) the function is allowed for responding to a request

func (FunctionOutput) ToFunctionOutput

func (o FunctionOutput) ToFunctionOutput() FunctionOutput

func (FunctionOutput) ToFunctionOutputWithContext

func (o FunctionOutput) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput

func (FunctionOutput) ZipFile

Location of the zip file to upload containing your function sources

func (FunctionOutput) ZipHash

The hash of your source zip file, changing it will re-apply function. Can be any string

type FunctionState

type FunctionState struct {
	// The CPU limit in mCPU for your function. More infos on resources [here](https://developers.scaleway.com/en/products/functions/api/#functions)
	CpuLimit pulumi.IntPtrInput
	// Define if the function should be deployed, terraform will wait for function to be deployed
	Deploy pulumi.BoolPtrInput
	// The description of the function.
	Description pulumi.StringPtrInput
	// The native domain name of the function
	DomainName pulumi.StringPtrInput
	// The environment variables of the function.
	EnvironmentVariables pulumi.StringMapInput
	// Handler of the function. Depends on the runtime ([function guide](https://developers.scaleway.com/en/products/functions/api/#create-a-function))
	Handler pulumi.StringPtrInput
	// HTTP traffic configuration
	HttpOption pulumi.StringPtrInput
	// Maximum replicas for your function (defaults to 20), our system will scale your functions automatically based on incoming workload, but will never scale the number of replicas above the configured max_scale.
	MaxScale pulumi.IntPtrInput
	// Memory limit in MB for your function, defaults to 128MB
	MemoryLimit pulumi.IntPtrInput
	// Minimum replicas for your function, defaults to 0, Note that a function is billed when it gets executed, and using a minScale greater than 0 will cause your function container to run constantly.
	MinScale pulumi.IntPtrInput
	// The unique name of the function.
	//
	// > **Important** Updates to `name` will recreate the function.
	Name pulumi.StringPtrInput
	// The namespace ID the function is associated with.
	NamespaceId pulumi.StringPtrInput
	// The organization ID the function is associated with.
	OrganizationId pulumi.StringPtrInput
	// Privacy of the function. Can be either `private` or `public`. Read more on [authentication](https://developers.scaleway.com/en/products/functions/api/#authentication)
	Privacy pulumi.StringPtrInput
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringPtrInput
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput
	// Runtime of the function. Runtimes can be fetched using [specific route](https://developers.scaleway.com/en/products/functions/api/#get-f7de6a)
	Runtime pulumi.StringPtrInput
	// The [secret environment](https://www.scaleway.com/en/docs/compute/functions/concepts/#secrets) variables of the function.
	SecretEnvironmentVariables pulumi.StringMapInput
	// Holds the max duration (in seconds) the function is allowed for responding to a request
	Timeout pulumi.IntPtrInput
	// Location of the zip file to upload containing your function sources
	ZipFile pulumi.StringPtrInput
	// The hash of your source zip file, changing it will re-apply function. Can be any string
	ZipHash pulumi.StringPtrInput
}

func (FunctionState) ElementType

func (FunctionState) ElementType() reflect.Type

type FunctionToken

type FunctionToken struct {
	pulumi.CustomResourceState

	// The description of the token.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The expiration date of the token.
	ExpiresAt pulumi.StringPtrOutput `pulumi:"expiresAt"`
	// The ID of the function.
	//
	// > Only one of `namespaceId` or `functionId` must be set.
	FunctionId pulumi.StringPtrOutput `pulumi:"functionId"`
	// The ID of the function namespace.
	NamespaceId pulumi.StringPtrOutput `pulumi:"namespaceId"`
	// `region`). The region in which the namespace should be created.
	//
	// > **Important** Updates to any fields will recreate the token.
	Region pulumi.StringOutput `pulumi:"region"`
	// The token.
	Token pulumi.StringOutput `pulumi:"token"`
}

Creates and manages Scaleway Function Token. For more information see [the documentation](https://developers.scaleway.com/en/products/functions/api/#tokens-26b085).

## Example Usage

### Basic

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mainFunctionNamespace, err := serverless.NewFunctionNamespace(ctx, "mainFunctionNamespace", nil)
		if err != nil {
			return err
		}
		mainFunction, err := serverless.NewFunction(ctx, "mainFunction", &serverless.FunctionArgs{
			NamespaceId: mainFunctionNamespace.ID(),
			Runtime:     pulumi.String("go118"),
			Handler:     pulumi.String("Handle"),
			Privacy:     pulumi.String("private"),
		})
		if err != nil {
			return err
		}
		// Namespace Token
		_, err = serverless.NewFunctionToken(ctx, "namespace", &serverless.FunctionTokenArgs{
			NamespaceId: mainFunctionNamespace.ID(),
			ExpiresAt:   pulumi.String("2022-10-18T11:35:15+02:00"),
		})
		if err != nil {
			return err
		}
		// Function Token
		_, err = serverless.NewFunctionToken(ctx, "function", &serverless.FunctionTokenArgs{
			FunctionId: mainFunction.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Tokens can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/functionToken:FunctionToken main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetFunctionToken

func GetFunctionToken(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionTokenState, opts ...pulumi.ResourceOption) (*FunctionToken, error)

GetFunctionToken gets an existing FunctionToken resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunctionToken

func NewFunctionToken(ctx *pulumi.Context,
	name string, args *FunctionTokenArgs, opts ...pulumi.ResourceOption) (*FunctionToken, error)

NewFunctionToken registers a new resource with the given unique name, arguments, and options.

func (*FunctionToken) ElementType

func (*FunctionToken) ElementType() reflect.Type

func (*FunctionToken) ToFunctionTokenOutput

func (i *FunctionToken) ToFunctionTokenOutput() FunctionTokenOutput

func (*FunctionToken) ToFunctionTokenOutputWithContext

func (i *FunctionToken) ToFunctionTokenOutputWithContext(ctx context.Context) FunctionTokenOutput

type FunctionTokenArgs

type FunctionTokenArgs struct {
	// The description of the token.
	Description pulumi.StringPtrInput
	// The expiration date of the token.
	ExpiresAt pulumi.StringPtrInput
	// The ID of the function.
	//
	// > Only one of `namespaceId` or `functionId` must be set.
	FunctionId pulumi.StringPtrInput
	// The ID of the function namespace.
	NamespaceId pulumi.StringPtrInput
	// `region`). The region in which the namespace should be created.
	//
	// > **Important** Updates to any fields will recreate the token.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a FunctionToken resource.

func (FunctionTokenArgs) ElementType

func (FunctionTokenArgs) ElementType() reflect.Type

type FunctionTokenArray

type FunctionTokenArray []FunctionTokenInput

func (FunctionTokenArray) ElementType

func (FunctionTokenArray) ElementType() reflect.Type

func (FunctionTokenArray) ToFunctionTokenArrayOutput

func (i FunctionTokenArray) ToFunctionTokenArrayOutput() FunctionTokenArrayOutput

func (FunctionTokenArray) ToFunctionTokenArrayOutputWithContext

func (i FunctionTokenArray) ToFunctionTokenArrayOutputWithContext(ctx context.Context) FunctionTokenArrayOutput

type FunctionTokenArrayInput

type FunctionTokenArrayInput interface {
	pulumi.Input

	ToFunctionTokenArrayOutput() FunctionTokenArrayOutput
	ToFunctionTokenArrayOutputWithContext(context.Context) FunctionTokenArrayOutput
}

FunctionTokenArrayInput is an input type that accepts FunctionTokenArray and FunctionTokenArrayOutput values. You can construct a concrete instance of `FunctionTokenArrayInput` via:

FunctionTokenArray{ FunctionTokenArgs{...} }

type FunctionTokenArrayOutput

type FunctionTokenArrayOutput struct{ *pulumi.OutputState }

func (FunctionTokenArrayOutput) ElementType

func (FunctionTokenArrayOutput) ElementType() reflect.Type

func (FunctionTokenArrayOutput) Index

func (FunctionTokenArrayOutput) ToFunctionTokenArrayOutput

func (o FunctionTokenArrayOutput) ToFunctionTokenArrayOutput() FunctionTokenArrayOutput

func (FunctionTokenArrayOutput) ToFunctionTokenArrayOutputWithContext

func (o FunctionTokenArrayOutput) ToFunctionTokenArrayOutputWithContext(ctx context.Context) FunctionTokenArrayOutput

type FunctionTokenInput

type FunctionTokenInput interface {
	pulumi.Input

	ToFunctionTokenOutput() FunctionTokenOutput
	ToFunctionTokenOutputWithContext(ctx context.Context) FunctionTokenOutput
}

type FunctionTokenMap

type FunctionTokenMap map[string]FunctionTokenInput

func (FunctionTokenMap) ElementType

func (FunctionTokenMap) ElementType() reflect.Type

func (FunctionTokenMap) ToFunctionTokenMapOutput

func (i FunctionTokenMap) ToFunctionTokenMapOutput() FunctionTokenMapOutput

func (FunctionTokenMap) ToFunctionTokenMapOutputWithContext

func (i FunctionTokenMap) ToFunctionTokenMapOutputWithContext(ctx context.Context) FunctionTokenMapOutput

type FunctionTokenMapInput

type FunctionTokenMapInput interface {
	pulumi.Input

	ToFunctionTokenMapOutput() FunctionTokenMapOutput
	ToFunctionTokenMapOutputWithContext(context.Context) FunctionTokenMapOutput
}

FunctionTokenMapInput is an input type that accepts FunctionTokenMap and FunctionTokenMapOutput values. You can construct a concrete instance of `FunctionTokenMapInput` via:

FunctionTokenMap{ "key": FunctionTokenArgs{...} }

type FunctionTokenMapOutput

type FunctionTokenMapOutput struct{ *pulumi.OutputState }

func (FunctionTokenMapOutput) ElementType

func (FunctionTokenMapOutput) ElementType() reflect.Type

func (FunctionTokenMapOutput) MapIndex

func (FunctionTokenMapOutput) ToFunctionTokenMapOutput

func (o FunctionTokenMapOutput) ToFunctionTokenMapOutput() FunctionTokenMapOutput

func (FunctionTokenMapOutput) ToFunctionTokenMapOutputWithContext

func (o FunctionTokenMapOutput) ToFunctionTokenMapOutputWithContext(ctx context.Context) FunctionTokenMapOutput

type FunctionTokenOutput

type FunctionTokenOutput struct{ *pulumi.OutputState }

func (FunctionTokenOutput) Description

func (o FunctionTokenOutput) Description() pulumi.StringPtrOutput

The description of the token.

func (FunctionTokenOutput) ElementType

func (FunctionTokenOutput) ElementType() reflect.Type

func (FunctionTokenOutput) ExpiresAt

The expiration date of the token.

func (FunctionTokenOutput) FunctionId

The ID of the function.

> Only one of `namespaceId` or `functionId` must be set.

func (FunctionTokenOutput) NamespaceId

func (o FunctionTokenOutput) NamespaceId() pulumi.StringPtrOutput

The ID of the function namespace.

func (FunctionTokenOutput) Region

`region`). The region in which the namespace should be created.

> **Important** Updates to any fields will recreate the token.

func (FunctionTokenOutput) ToFunctionTokenOutput

func (o FunctionTokenOutput) ToFunctionTokenOutput() FunctionTokenOutput

func (FunctionTokenOutput) ToFunctionTokenOutputWithContext

func (o FunctionTokenOutput) ToFunctionTokenOutputWithContext(ctx context.Context) FunctionTokenOutput

func (FunctionTokenOutput) Token

The token.

type FunctionTokenState

type FunctionTokenState struct {
	// The description of the token.
	Description pulumi.StringPtrInput
	// The expiration date of the token.
	ExpiresAt pulumi.StringPtrInput
	// The ID of the function.
	//
	// > Only one of `namespaceId` or `functionId` must be set.
	FunctionId pulumi.StringPtrInput
	// The ID of the function namespace.
	NamespaceId pulumi.StringPtrInput
	// `region`). The region in which the namespace should be created.
	//
	// > **Important** Updates to any fields will recreate the token.
	Region pulumi.StringPtrInput
	// The token.
	Token pulumi.StringPtrInput
}

func (FunctionTokenState) ElementType

func (FunctionTokenState) ElementType() reflect.Type

type FunctionTrigger

type FunctionTrigger struct {
	pulumi.CustomResourceState

	// The description of the trigger.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The ID of the function to create a trigger for
	FunctionId pulumi.StringOutput `pulumi:"functionId"`
	// The unique name of the trigger. Default to a generated name.
	Name pulumi.StringOutput `pulumi:"name"`
	// The configuration for the Scaleway's Nats used by the trigger
	Nats FunctionTriggerNatsPtrOutput `pulumi:"nats"`
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringOutput `pulumi:"region"`
	// The configuration of the Scaleway's SQS used by the trigger
	Sqs FunctionTriggerSqsPtrOutput `pulumi:"sqs"`
}

Creates and manages Scaleway Function Triggers. For more information see [the documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#path-triggers).

## Example Usage

### SQS

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := serverless.NewFunctionTrigger(ctx, "main", &serverless.FunctionTriggerArgs{
			FunctionId: pulumi.Any(scaleway_function.Main.Id),
			Sqs: &serverless.FunctionTriggerSqsArgs{
				ProjectId: pulumi.Any(scaleway_mnq_sqs.Main.Project_id),
				Queue:     pulumi.String("MyQueue"),
				Region:    pulumi.Any(scaleway_mnq_sqs.Main.Region),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Function Triggers can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/functionTrigger:FunctionTrigger main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetFunctionTrigger

func GetFunctionTrigger(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionTriggerState, opts ...pulumi.ResourceOption) (*FunctionTrigger, error)

GetFunctionTrigger gets an existing FunctionTrigger resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunctionTrigger

func NewFunctionTrigger(ctx *pulumi.Context,
	name string, args *FunctionTriggerArgs, opts ...pulumi.ResourceOption) (*FunctionTrigger, error)

NewFunctionTrigger registers a new resource with the given unique name, arguments, and options.

func (*FunctionTrigger) ElementType

func (*FunctionTrigger) ElementType() reflect.Type

func (*FunctionTrigger) ToFunctionTriggerOutput

func (i *FunctionTrigger) ToFunctionTriggerOutput() FunctionTriggerOutput

func (*FunctionTrigger) ToFunctionTriggerOutputWithContext

func (i *FunctionTrigger) ToFunctionTriggerOutputWithContext(ctx context.Context) FunctionTriggerOutput

type FunctionTriggerArgs

type FunctionTriggerArgs struct {
	// The description of the trigger.
	Description pulumi.StringPtrInput
	// The ID of the function to create a trigger for
	FunctionId pulumi.StringInput
	// The unique name of the trigger. Default to a generated name.
	Name pulumi.StringPtrInput
	// The configuration for the Scaleway's Nats used by the trigger
	Nats FunctionTriggerNatsPtrInput
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput
	// The configuration of the Scaleway's SQS used by the trigger
	Sqs FunctionTriggerSqsPtrInput
}

The set of arguments for constructing a FunctionTrigger resource.

func (FunctionTriggerArgs) ElementType

func (FunctionTriggerArgs) ElementType() reflect.Type

type FunctionTriggerArray

type FunctionTriggerArray []FunctionTriggerInput

func (FunctionTriggerArray) ElementType

func (FunctionTriggerArray) ElementType() reflect.Type

func (FunctionTriggerArray) ToFunctionTriggerArrayOutput

func (i FunctionTriggerArray) ToFunctionTriggerArrayOutput() FunctionTriggerArrayOutput

func (FunctionTriggerArray) ToFunctionTriggerArrayOutputWithContext

func (i FunctionTriggerArray) ToFunctionTriggerArrayOutputWithContext(ctx context.Context) FunctionTriggerArrayOutput

type FunctionTriggerArrayInput

type FunctionTriggerArrayInput interface {
	pulumi.Input

	ToFunctionTriggerArrayOutput() FunctionTriggerArrayOutput
	ToFunctionTriggerArrayOutputWithContext(context.Context) FunctionTriggerArrayOutput
}

FunctionTriggerArrayInput is an input type that accepts FunctionTriggerArray and FunctionTriggerArrayOutput values. You can construct a concrete instance of `FunctionTriggerArrayInput` via:

FunctionTriggerArray{ FunctionTriggerArgs{...} }

type FunctionTriggerArrayOutput

type FunctionTriggerArrayOutput struct{ *pulumi.OutputState }

func (FunctionTriggerArrayOutput) ElementType

func (FunctionTriggerArrayOutput) ElementType() reflect.Type

func (FunctionTriggerArrayOutput) Index

func (FunctionTriggerArrayOutput) ToFunctionTriggerArrayOutput

func (o FunctionTriggerArrayOutput) ToFunctionTriggerArrayOutput() FunctionTriggerArrayOutput

func (FunctionTriggerArrayOutput) ToFunctionTriggerArrayOutputWithContext

func (o FunctionTriggerArrayOutput) ToFunctionTriggerArrayOutputWithContext(ctx context.Context) FunctionTriggerArrayOutput

type FunctionTriggerInput

type FunctionTriggerInput interface {
	pulumi.Input

	ToFunctionTriggerOutput() FunctionTriggerOutput
	ToFunctionTriggerOutputWithContext(ctx context.Context) FunctionTriggerOutput
}

type FunctionTriggerMap

type FunctionTriggerMap map[string]FunctionTriggerInput

func (FunctionTriggerMap) ElementType

func (FunctionTriggerMap) ElementType() reflect.Type

func (FunctionTriggerMap) ToFunctionTriggerMapOutput

func (i FunctionTriggerMap) ToFunctionTriggerMapOutput() FunctionTriggerMapOutput

func (FunctionTriggerMap) ToFunctionTriggerMapOutputWithContext

func (i FunctionTriggerMap) ToFunctionTriggerMapOutputWithContext(ctx context.Context) FunctionTriggerMapOutput

type FunctionTriggerMapInput

type FunctionTriggerMapInput interface {
	pulumi.Input

	ToFunctionTriggerMapOutput() FunctionTriggerMapOutput
	ToFunctionTriggerMapOutputWithContext(context.Context) FunctionTriggerMapOutput
}

FunctionTriggerMapInput is an input type that accepts FunctionTriggerMap and FunctionTriggerMapOutput values. You can construct a concrete instance of `FunctionTriggerMapInput` via:

FunctionTriggerMap{ "key": FunctionTriggerArgs{...} }

type FunctionTriggerMapOutput

type FunctionTriggerMapOutput struct{ *pulumi.OutputState }

func (FunctionTriggerMapOutput) ElementType

func (FunctionTriggerMapOutput) ElementType() reflect.Type

func (FunctionTriggerMapOutput) MapIndex

func (FunctionTriggerMapOutput) ToFunctionTriggerMapOutput

func (o FunctionTriggerMapOutput) ToFunctionTriggerMapOutput() FunctionTriggerMapOutput

func (FunctionTriggerMapOutput) ToFunctionTriggerMapOutputWithContext

func (o FunctionTriggerMapOutput) ToFunctionTriggerMapOutputWithContext(ctx context.Context) FunctionTriggerMapOutput

type FunctionTriggerNats

type FunctionTriggerNats struct {
	// ID of the mnq nats account.
	AccountId *string `pulumi:"accountId"`
	// ID of the project that contain the mnq nats account, defaults to provider's project
	ProjectId *string `pulumi:"projectId"`
	// `region`). The region in which the namespace should be created.
	Region *string `pulumi:"region"`
	// The subject to listen to
	Subject string `pulumi:"subject"`
}

type FunctionTriggerNatsArgs

type FunctionTriggerNatsArgs struct {
	// ID of the mnq nats account.
	AccountId pulumi.StringPtrInput `pulumi:"accountId"`
	// ID of the project that contain the mnq nats account, defaults to provider's project
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// The subject to listen to
	Subject pulumi.StringInput `pulumi:"subject"`
}

func (FunctionTriggerNatsArgs) ElementType

func (FunctionTriggerNatsArgs) ElementType() reflect.Type

func (FunctionTriggerNatsArgs) ToFunctionTriggerNatsOutput

func (i FunctionTriggerNatsArgs) ToFunctionTriggerNatsOutput() FunctionTriggerNatsOutput

func (FunctionTriggerNatsArgs) ToFunctionTriggerNatsOutputWithContext

func (i FunctionTriggerNatsArgs) ToFunctionTriggerNatsOutputWithContext(ctx context.Context) FunctionTriggerNatsOutput

func (FunctionTriggerNatsArgs) ToFunctionTriggerNatsPtrOutput

func (i FunctionTriggerNatsArgs) ToFunctionTriggerNatsPtrOutput() FunctionTriggerNatsPtrOutput

func (FunctionTriggerNatsArgs) ToFunctionTriggerNatsPtrOutputWithContext

func (i FunctionTriggerNatsArgs) ToFunctionTriggerNatsPtrOutputWithContext(ctx context.Context) FunctionTriggerNatsPtrOutput

type FunctionTriggerNatsInput

type FunctionTriggerNatsInput interface {
	pulumi.Input

	ToFunctionTriggerNatsOutput() FunctionTriggerNatsOutput
	ToFunctionTriggerNatsOutputWithContext(context.Context) FunctionTriggerNatsOutput
}

FunctionTriggerNatsInput is an input type that accepts FunctionTriggerNatsArgs and FunctionTriggerNatsOutput values. You can construct a concrete instance of `FunctionTriggerNatsInput` via:

FunctionTriggerNatsArgs{...}

type FunctionTriggerNatsOutput

type FunctionTriggerNatsOutput struct{ *pulumi.OutputState }

func (FunctionTriggerNatsOutput) AccountId

ID of the mnq nats account.

func (FunctionTriggerNatsOutput) ElementType

func (FunctionTriggerNatsOutput) ElementType() reflect.Type

func (FunctionTriggerNatsOutput) ProjectId

ID of the project that contain the mnq nats account, defaults to provider's project

func (FunctionTriggerNatsOutput) Region

`region`). The region in which the namespace should be created.

func (FunctionTriggerNatsOutput) Subject

The subject to listen to

func (FunctionTriggerNatsOutput) ToFunctionTriggerNatsOutput

func (o FunctionTriggerNatsOutput) ToFunctionTriggerNatsOutput() FunctionTriggerNatsOutput

func (FunctionTriggerNatsOutput) ToFunctionTriggerNatsOutputWithContext

func (o FunctionTriggerNatsOutput) ToFunctionTriggerNatsOutputWithContext(ctx context.Context) FunctionTriggerNatsOutput

func (FunctionTriggerNatsOutput) ToFunctionTriggerNatsPtrOutput

func (o FunctionTriggerNatsOutput) ToFunctionTriggerNatsPtrOutput() FunctionTriggerNatsPtrOutput

func (FunctionTriggerNatsOutput) ToFunctionTriggerNatsPtrOutputWithContext

func (o FunctionTriggerNatsOutput) ToFunctionTriggerNatsPtrOutputWithContext(ctx context.Context) FunctionTriggerNatsPtrOutput

type FunctionTriggerNatsPtrInput

type FunctionTriggerNatsPtrInput interface {
	pulumi.Input

	ToFunctionTriggerNatsPtrOutput() FunctionTriggerNatsPtrOutput
	ToFunctionTriggerNatsPtrOutputWithContext(context.Context) FunctionTriggerNatsPtrOutput
}

FunctionTriggerNatsPtrInput is an input type that accepts FunctionTriggerNatsArgs, FunctionTriggerNatsPtr and FunctionTriggerNatsPtrOutput values. You can construct a concrete instance of `FunctionTriggerNatsPtrInput` via:

        FunctionTriggerNatsArgs{...}

or:

        nil

type FunctionTriggerNatsPtrOutput

type FunctionTriggerNatsPtrOutput struct{ *pulumi.OutputState }

func (FunctionTriggerNatsPtrOutput) AccountId

ID of the mnq nats account.

func (FunctionTriggerNatsPtrOutput) Elem

func (FunctionTriggerNatsPtrOutput) ElementType

func (FunctionTriggerNatsPtrOutput) ProjectId

ID of the project that contain the mnq nats account, defaults to provider's project

func (FunctionTriggerNatsPtrOutput) Region

`region`). The region in which the namespace should be created.

func (FunctionTriggerNatsPtrOutput) Subject

The subject to listen to

func (FunctionTriggerNatsPtrOutput) ToFunctionTriggerNatsPtrOutput

func (o FunctionTriggerNatsPtrOutput) ToFunctionTriggerNatsPtrOutput() FunctionTriggerNatsPtrOutput

func (FunctionTriggerNatsPtrOutput) ToFunctionTriggerNatsPtrOutputWithContext

func (o FunctionTriggerNatsPtrOutput) ToFunctionTriggerNatsPtrOutputWithContext(ctx context.Context) FunctionTriggerNatsPtrOutput

type FunctionTriggerOutput

type FunctionTriggerOutput struct{ *pulumi.OutputState }

func (FunctionTriggerOutput) Description

The description of the trigger.

func (FunctionTriggerOutput) ElementType

func (FunctionTriggerOutput) ElementType() reflect.Type

func (FunctionTriggerOutput) FunctionId

func (o FunctionTriggerOutput) FunctionId() pulumi.StringOutput

The ID of the function to create a trigger for

func (FunctionTriggerOutput) Name

The unique name of the trigger. Default to a generated name.

func (FunctionTriggerOutput) Nats

The configuration for the Scaleway's Nats used by the trigger

func (FunctionTriggerOutput) Region

`region`). The region in which the namespace should be created.

func (FunctionTriggerOutput) Sqs

The configuration of the Scaleway's SQS used by the trigger

func (FunctionTriggerOutput) ToFunctionTriggerOutput

func (o FunctionTriggerOutput) ToFunctionTriggerOutput() FunctionTriggerOutput

func (FunctionTriggerOutput) ToFunctionTriggerOutputWithContext

func (o FunctionTriggerOutput) ToFunctionTriggerOutputWithContext(ctx context.Context) FunctionTriggerOutput

type FunctionTriggerSqs

type FunctionTriggerSqs struct {
	// ID of the mnq namespace. Deprecated.
	NamespaceId *string `pulumi:"namespaceId"`
	// ID of the project that contain the mnq nats account, defaults to provider's project
	ProjectId *string `pulumi:"projectId"`
	// Name of the queue
	Queue string `pulumi:"queue"`
	// `region`). The region in which the namespace should be created.
	Region *string `pulumi:"region"`
}

type FunctionTriggerSqsArgs

type FunctionTriggerSqsArgs struct {
	// ID of the mnq namespace. Deprecated.
	NamespaceId pulumi.StringPtrInput `pulumi:"namespaceId"`
	// ID of the project that contain the mnq nats account, defaults to provider's project
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// Name of the queue
	Queue pulumi.StringInput `pulumi:"queue"`
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

func (FunctionTriggerSqsArgs) ElementType

func (FunctionTriggerSqsArgs) ElementType() reflect.Type

func (FunctionTriggerSqsArgs) ToFunctionTriggerSqsOutput

func (i FunctionTriggerSqsArgs) ToFunctionTriggerSqsOutput() FunctionTriggerSqsOutput

func (FunctionTriggerSqsArgs) ToFunctionTriggerSqsOutputWithContext

func (i FunctionTriggerSqsArgs) ToFunctionTriggerSqsOutputWithContext(ctx context.Context) FunctionTriggerSqsOutput

func (FunctionTriggerSqsArgs) ToFunctionTriggerSqsPtrOutput

func (i FunctionTriggerSqsArgs) ToFunctionTriggerSqsPtrOutput() FunctionTriggerSqsPtrOutput

func (FunctionTriggerSqsArgs) ToFunctionTriggerSqsPtrOutputWithContext

func (i FunctionTriggerSqsArgs) ToFunctionTriggerSqsPtrOutputWithContext(ctx context.Context) FunctionTriggerSqsPtrOutput

type FunctionTriggerSqsInput

type FunctionTriggerSqsInput interface {
	pulumi.Input

	ToFunctionTriggerSqsOutput() FunctionTriggerSqsOutput
	ToFunctionTriggerSqsOutputWithContext(context.Context) FunctionTriggerSqsOutput
}

FunctionTriggerSqsInput is an input type that accepts FunctionTriggerSqsArgs and FunctionTriggerSqsOutput values. You can construct a concrete instance of `FunctionTriggerSqsInput` via:

FunctionTriggerSqsArgs{...}

type FunctionTriggerSqsOutput

type FunctionTriggerSqsOutput struct{ *pulumi.OutputState }

func (FunctionTriggerSqsOutput) ElementType

func (FunctionTriggerSqsOutput) ElementType() reflect.Type

func (FunctionTriggerSqsOutput) NamespaceId

ID of the mnq namespace. Deprecated.

func (FunctionTriggerSqsOutput) ProjectId

ID of the project that contain the mnq nats account, defaults to provider's project

func (FunctionTriggerSqsOutput) Queue

Name of the queue

func (FunctionTriggerSqsOutput) Region

`region`). The region in which the namespace should be created.

func (FunctionTriggerSqsOutput) ToFunctionTriggerSqsOutput

func (o FunctionTriggerSqsOutput) ToFunctionTriggerSqsOutput() FunctionTriggerSqsOutput

func (FunctionTriggerSqsOutput) ToFunctionTriggerSqsOutputWithContext

func (o FunctionTriggerSqsOutput) ToFunctionTriggerSqsOutputWithContext(ctx context.Context) FunctionTriggerSqsOutput

func (FunctionTriggerSqsOutput) ToFunctionTriggerSqsPtrOutput

func (o FunctionTriggerSqsOutput) ToFunctionTriggerSqsPtrOutput() FunctionTriggerSqsPtrOutput

func (FunctionTriggerSqsOutput) ToFunctionTriggerSqsPtrOutputWithContext

func (o FunctionTriggerSqsOutput) ToFunctionTriggerSqsPtrOutputWithContext(ctx context.Context) FunctionTriggerSqsPtrOutput

type FunctionTriggerSqsPtrInput

type FunctionTriggerSqsPtrInput interface {
	pulumi.Input

	ToFunctionTriggerSqsPtrOutput() FunctionTriggerSqsPtrOutput
	ToFunctionTriggerSqsPtrOutputWithContext(context.Context) FunctionTriggerSqsPtrOutput
}

FunctionTriggerSqsPtrInput is an input type that accepts FunctionTriggerSqsArgs, FunctionTriggerSqsPtr and FunctionTriggerSqsPtrOutput values. You can construct a concrete instance of `FunctionTriggerSqsPtrInput` via:

        FunctionTriggerSqsArgs{...}

or:

        nil

type FunctionTriggerSqsPtrOutput

type FunctionTriggerSqsPtrOutput struct{ *pulumi.OutputState }

func (FunctionTriggerSqsPtrOutput) Elem

func (FunctionTriggerSqsPtrOutput) ElementType

func (FunctionTriggerSqsPtrOutput) NamespaceId

ID of the mnq namespace. Deprecated.

func (FunctionTriggerSqsPtrOutput) ProjectId

ID of the project that contain the mnq nats account, defaults to provider's project

func (FunctionTriggerSqsPtrOutput) Queue

Name of the queue

func (FunctionTriggerSqsPtrOutput) Region

`region`). The region in which the namespace should be created.

func (FunctionTriggerSqsPtrOutput) ToFunctionTriggerSqsPtrOutput

func (o FunctionTriggerSqsPtrOutput) ToFunctionTriggerSqsPtrOutput() FunctionTriggerSqsPtrOutput

func (FunctionTriggerSqsPtrOutput) ToFunctionTriggerSqsPtrOutputWithContext

func (o FunctionTriggerSqsPtrOutput) ToFunctionTriggerSqsPtrOutputWithContext(ctx context.Context) FunctionTriggerSqsPtrOutput

type FunctionTriggerState

type FunctionTriggerState struct {
	// The description of the trigger.
	Description pulumi.StringPtrInput
	// The ID of the function to create a trigger for
	FunctionId pulumi.StringPtrInput
	// The unique name of the trigger. Default to a generated name.
	Name pulumi.StringPtrInput
	// The configuration for the Scaleway's Nats used by the trigger
	Nats FunctionTriggerNatsPtrInput
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput
	// The configuration of the Scaleway's SQS used by the trigger
	Sqs FunctionTriggerSqsPtrInput
}

func (FunctionTriggerState) ElementType

func (FunctionTriggerState) ElementType() reflect.Type

type JobDefinition

type JobDefinition struct {
	pulumi.CustomResourceState

	// The command that will be run in the container if specified.
	Command pulumi.StringPtrOutput `pulumi:"command"`
	// The amount of vCPU computing resources to allocate to each container running the job.
	CpuLimit pulumi.IntOutput           `pulumi:"cpuLimit"`
	Cron     JobDefinitionCronPtrOutput `pulumi:"cron"`
	// The description of the job
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The environment variables of the container.
	Env pulumi.StringMapOutput `pulumi:"env"`
	// The uri of the container image that will be used for the job run.
	ImageUri pulumi.StringPtrOutput `pulumi:"imageUri"`
	// The memory computing resources in MB to allocate to each container running the job.
	MemoryLimit pulumi.IntOutput `pulumi:"memoryLimit"`
	// The name of the job.
	Name pulumi.StringOutput `pulumi:"name"`
	// `projectId`) The ID of the project the Job is associated with.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// `region`) The region of the Job.
	Region pulumi.StringOutput `pulumi:"region"`
	// The job run timeout, in Go Time format (ex: `2h30m25s`)
	Timeout pulumi.StringOutput `pulumi:"timeout"`
}

Creates and manages a Scaleway Serverless Job Definition. For more information, see [the documentation](https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go@master/api/jobs/v1alpha1).

## Example Usage

### Basic

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := serverless.NewJobDefinition(ctx, "main", &serverless.JobDefinitionArgs{
			CpuLimit:    pulumi.Int(140),
			MemoryLimit: pulumi.Int(256),
			ImageUri:    pulumi.String("docker.io/alpine:latest"),
			Command:     pulumi.String("ls"),
			Timeout:     pulumi.String("10m"),
			Env: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Serverless Jobs can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/jobDefinition:JobDefinition job fr-par/11111111-1111-1111-1111-111111111111 ```

func GetJobDefinition

func GetJobDefinition(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *JobDefinitionState, opts ...pulumi.ResourceOption) (*JobDefinition, error)

GetJobDefinition gets an existing JobDefinition resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewJobDefinition

func NewJobDefinition(ctx *pulumi.Context,
	name string, args *JobDefinitionArgs, opts ...pulumi.ResourceOption) (*JobDefinition, error)

NewJobDefinition registers a new resource with the given unique name, arguments, and options.

func (*JobDefinition) ElementType

func (*JobDefinition) ElementType() reflect.Type

func (*JobDefinition) ToJobDefinitionOutput

func (i *JobDefinition) ToJobDefinitionOutput() JobDefinitionOutput

func (*JobDefinition) ToJobDefinitionOutputWithContext

func (i *JobDefinition) ToJobDefinitionOutputWithContext(ctx context.Context) JobDefinitionOutput

type JobDefinitionArgs

type JobDefinitionArgs struct {
	// The command that will be run in the container if specified.
	Command pulumi.StringPtrInput
	// The amount of vCPU computing resources to allocate to each container running the job.
	CpuLimit pulumi.IntInput
	Cron     JobDefinitionCronPtrInput
	// The description of the job
	Description pulumi.StringPtrInput
	// The environment variables of the container.
	Env pulumi.StringMapInput
	// The uri of the container image that will be used for the job run.
	ImageUri pulumi.StringPtrInput
	// The memory computing resources in MB to allocate to each container running the job.
	MemoryLimit pulumi.IntInput
	// The name of the job.
	Name pulumi.StringPtrInput
	// `projectId`) The ID of the project the Job is associated with.
	ProjectId pulumi.StringPtrInput
	// `region`) The region of the Job.
	Region pulumi.StringPtrInput
	// The job run timeout, in Go Time format (ex: `2h30m25s`)
	Timeout pulumi.StringPtrInput
}

The set of arguments for constructing a JobDefinition resource.

func (JobDefinitionArgs) ElementType

func (JobDefinitionArgs) ElementType() reflect.Type

type JobDefinitionArray

type JobDefinitionArray []JobDefinitionInput

func (JobDefinitionArray) ElementType

func (JobDefinitionArray) ElementType() reflect.Type

func (JobDefinitionArray) ToJobDefinitionArrayOutput

func (i JobDefinitionArray) ToJobDefinitionArrayOutput() JobDefinitionArrayOutput

func (JobDefinitionArray) ToJobDefinitionArrayOutputWithContext

func (i JobDefinitionArray) ToJobDefinitionArrayOutputWithContext(ctx context.Context) JobDefinitionArrayOutput

type JobDefinitionArrayInput

type JobDefinitionArrayInput interface {
	pulumi.Input

	ToJobDefinitionArrayOutput() JobDefinitionArrayOutput
	ToJobDefinitionArrayOutputWithContext(context.Context) JobDefinitionArrayOutput
}

JobDefinitionArrayInput is an input type that accepts JobDefinitionArray and JobDefinitionArrayOutput values. You can construct a concrete instance of `JobDefinitionArrayInput` via:

JobDefinitionArray{ JobDefinitionArgs{...} }

type JobDefinitionArrayOutput

type JobDefinitionArrayOutput struct{ *pulumi.OutputState }

func (JobDefinitionArrayOutput) ElementType

func (JobDefinitionArrayOutput) ElementType() reflect.Type

func (JobDefinitionArrayOutput) Index

func (JobDefinitionArrayOutput) ToJobDefinitionArrayOutput

func (o JobDefinitionArrayOutput) ToJobDefinitionArrayOutput() JobDefinitionArrayOutput

func (JobDefinitionArrayOutput) ToJobDefinitionArrayOutputWithContext

func (o JobDefinitionArrayOutput) ToJobDefinitionArrayOutputWithContext(ctx context.Context) JobDefinitionArrayOutput

type JobDefinitionCron

type JobDefinitionCron struct {
	Schedule string `pulumi:"schedule"`
	Timezone string `pulumi:"timezone"`
}

type JobDefinitionCronArgs

type JobDefinitionCronArgs struct {
	Schedule pulumi.StringInput `pulumi:"schedule"`
	Timezone pulumi.StringInput `pulumi:"timezone"`
}

func (JobDefinitionCronArgs) ElementType

func (JobDefinitionCronArgs) ElementType() reflect.Type

func (JobDefinitionCronArgs) ToJobDefinitionCronOutput

func (i JobDefinitionCronArgs) ToJobDefinitionCronOutput() JobDefinitionCronOutput

func (JobDefinitionCronArgs) ToJobDefinitionCronOutputWithContext

func (i JobDefinitionCronArgs) ToJobDefinitionCronOutputWithContext(ctx context.Context) JobDefinitionCronOutput

func (JobDefinitionCronArgs) ToJobDefinitionCronPtrOutput

func (i JobDefinitionCronArgs) ToJobDefinitionCronPtrOutput() JobDefinitionCronPtrOutput

func (JobDefinitionCronArgs) ToJobDefinitionCronPtrOutputWithContext

func (i JobDefinitionCronArgs) ToJobDefinitionCronPtrOutputWithContext(ctx context.Context) JobDefinitionCronPtrOutput

type JobDefinitionCronInput

type JobDefinitionCronInput interface {
	pulumi.Input

	ToJobDefinitionCronOutput() JobDefinitionCronOutput
	ToJobDefinitionCronOutputWithContext(context.Context) JobDefinitionCronOutput
}

JobDefinitionCronInput is an input type that accepts JobDefinitionCronArgs and JobDefinitionCronOutput values. You can construct a concrete instance of `JobDefinitionCronInput` via:

JobDefinitionCronArgs{...}

type JobDefinitionCronOutput

type JobDefinitionCronOutput struct{ *pulumi.OutputState }

func (JobDefinitionCronOutput) ElementType

func (JobDefinitionCronOutput) ElementType() reflect.Type

func (JobDefinitionCronOutput) Schedule

func (JobDefinitionCronOutput) Timezone

func (JobDefinitionCronOutput) ToJobDefinitionCronOutput

func (o JobDefinitionCronOutput) ToJobDefinitionCronOutput() JobDefinitionCronOutput

func (JobDefinitionCronOutput) ToJobDefinitionCronOutputWithContext

func (o JobDefinitionCronOutput) ToJobDefinitionCronOutputWithContext(ctx context.Context) JobDefinitionCronOutput

func (JobDefinitionCronOutput) ToJobDefinitionCronPtrOutput

func (o JobDefinitionCronOutput) ToJobDefinitionCronPtrOutput() JobDefinitionCronPtrOutput

func (JobDefinitionCronOutput) ToJobDefinitionCronPtrOutputWithContext

func (o JobDefinitionCronOutput) ToJobDefinitionCronPtrOutputWithContext(ctx context.Context) JobDefinitionCronPtrOutput

type JobDefinitionCronPtrInput

type JobDefinitionCronPtrInput interface {
	pulumi.Input

	ToJobDefinitionCronPtrOutput() JobDefinitionCronPtrOutput
	ToJobDefinitionCronPtrOutputWithContext(context.Context) JobDefinitionCronPtrOutput
}

JobDefinitionCronPtrInput is an input type that accepts JobDefinitionCronArgs, JobDefinitionCronPtr and JobDefinitionCronPtrOutput values. You can construct a concrete instance of `JobDefinitionCronPtrInput` via:

        JobDefinitionCronArgs{...}

or:

        nil

type JobDefinitionCronPtrOutput

type JobDefinitionCronPtrOutput struct{ *pulumi.OutputState }

func (JobDefinitionCronPtrOutput) Elem

func (JobDefinitionCronPtrOutput) ElementType

func (JobDefinitionCronPtrOutput) ElementType() reflect.Type

func (JobDefinitionCronPtrOutput) Schedule

func (JobDefinitionCronPtrOutput) Timezone

func (JobDefinitionCronPtrOutput) ToJobDefinitionCronPtrOutput

func (o JobDefinitionCronPtrOutput) ToJobDefinitionCronPtrOutput() JobDefinitionCronPtrOutput

func (JobDefinitionCronPtrOutput) ToJobDefinitionCronPtrOutputWithContext

func (o JobDefinitionCronPtrOutput) ToJobDefinitionCronPtrOutputWithContext(ctx context.Context) JobDefinitionCronPtrOutput

type JobDefinitionInput

type JobDefinitionInput interface {
	pulumi.Input

	ToJobDefinitionOutput() JobDefinitionOutput
	ToJobDefinitionOutputWithContext(ctx context.Context) JobDefinitionOutput
}

type JobDefinitionMap

type JobDefinitionMap map[string]JobDefinitionInput

func (JobDefinitionMap) ElementType

func (JobDefinitionMap) ElementType() reflect.Type

func (JobDefinitionMap) ToJobDefinitionMapOutput

func (i JobDefinitionMap) ToJobDefinitionMapOutput() JobDefinitionMapOutput

func (JobDefinitionMap) ToJobDefinitionMapOutputWithContext

func (i JobDefinitionMap) ToJobDefinitionMapOutputWithContext(ctx context.Context) JobDefinitionMapOutput

type JobDefinitionMapInput

type JobDefinitionMapInput interface {
	pulumi.Input

	ToJobDefinitionMapOutput() JobDefinitionMapOutput
	ToJobDefinitionMapOutputWithContext(context.Context) JobDefinitionMapOutput
}

JobDefinitionMapInput is an input type that accepts JobDefinitionMap and JobDefinitionMapOutput values. You can construct a concrete instance of `JobDefinitionMapInput` via:

JobDefinitionMap{ "key": JobDefinitionArgs{...} }

type JobDefinitionMapOutput

type JobDefinitionMapOutput struct{ *pulumi.OutputState }

func (JobDefinitionMapOutput) ElementType

func (JobDefinitionMapOutput) ElementType() reflect.Type

func (JobDefinitionMapOutput) MapIndex

func (JobDefinitionMapOutput) ToJobDefinitionMapOutput

func (o JobDefinitionMapOutput) ToJobDefinitionMapOutput() JobDefinitionMapOutput

func (JobDefinitionMapOutput) ToJobDefinitionMapOutputWithContext

func (o JobDefinitionMapOutput) ToJobDefinitionMapOutputWithContext(ctx context.Context) JobDefinitionMapOutput

type JobDefinitionOutput

type JobDefinitionOutput struct{ *pulumi.OutputState }

func (JobDefinitionOutput) Command

The command that will be run in the container if specified.

func (JobDefinitionOutput) CpuLimit

func (o JobDefinitionOutput) CpuLimit() pulumi.IntOutput

The amount of vCPU computing resources to allocate to each container running the job.

func (JobDefinitionOutput) Cron

func (JobDefinitionOutput) Description

func (o JobDefinitionOutput) Description() pulumi.StringPtrOutput

The description of the job

func (JobDefinitionOutput) ElementType

func (JobDefinitionOutput) ElementType() reflect.Type

func (JobDefinitionOutput) Env

The environment variables of the container.

func (JobDefinitionOutput) ImageUri

The uri of the container image that will be used for the job run.

func (JobDefinitionOutput) MemoryLimit

func (o JobDefinitionOutput) MemoryLimit() pulumi.IntOutput

The memory computing resources in MB to allocate to each container running the job.

func (JobDefinitionOutput) Name

The name of the job.

func (JobDefinitionOutput) ProjectId

func (o JobDefinitionOutput) ProjectId() pulumi.StringOutput

`projectId`) The ID of the project the Job is associated with.

func (JobDefinitionOutput) Region

`region`) The region of the Job.

func (JobDefinitionOutput) Timeout

The job run timeout, in Go Time format (ex: `2h30m25s`)

func (JobDefinitionOutput) ToJobDefinitionOutput

func (o JobDefinitionOutput) ToJobDefinitionOutput() JobDefinitionOutput

func (JobDefinitionOutput) ToJobDefinitionOutputWithContext

func (o JobDefinitionOutput) ToJobDefinitionOutputWithContext(ctx context.Context) JobDefinitionOutput

type JobDefinitionState

type JobDefinitionState struct {
	// The command that will be run in the container if specified.
	Command pulumi.StringPtrInput
	// The amount of vCPU computing resources to allocate to each container running the job.
	CpuLimit pulumi.IntPtrInput
	Cron     JobDefinitionCronPtrInput
	// The description of the job
	Description pulumi.StringPtrInput
	// The environment variables of the container.
	Env pulumi.StringMapInput
	// The uri of the container image that will be used for the job run.
	ImageUri pulumi.StringPtrInput
	// The memory computing resources in MB to allocate to each container running the job.
	MemoryLimit pulumi.IntPtrInput
	// The name of the job.
	Name pulumi.StringPtrInput
	// `projectId`) The ID of the project the Job is associated with.
	ProjectId pulumi.StringPtrInput
	// `region`) The region of the Job.
	Region pulumi.StringPtrInput
	// The job run timeout, in Go Time format (ex: `2h30m25s`)
	Timeout pulumi.StringPtrInput
}

func (JobDefinitionState) ElementType

func (JobDefinitionState) ElementType() reflect.Type

type LookupContainerArgs

type LookupContainerArgs struct {
	ContainerId *string `pulumi:"containerId"`
	// The unique name of the container name.
	Name *string `pulumi:"name"`
	// The container namespace ID of the container.
	NamespaceId string `pulumi:"namespaceId"`
	// The ID of the project the container is associated with.
	//
	// > **Important** Updates to `name` will recreate the container.
	ProjectId *string `pulumi:"projectId"`
	// (Defaults to provider `region`) The region in which the container was created.
	Region *string `pulumi:"region"`
}

A collection of arguments for invoking getContainer.

type LookupContainerNamespaceArgs

type LookupContainerNamespaceArgs struct {
	// The namespace name.
	// Only one of `name` and `namespaceId` should be specified.
	Name *string `pulumi:"name"`
	// The namespace id.
	// Only one of `name` and `namespaceId` should be specified.
	NamespaceId *string `pulumi:"namespaceId"`
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId *string `pulumi:"projectId"`
	// `region`) The region in which the namespace exists.
	Region *string `pulumi:"region"`
}

A collection of arguments for invoking getContainerNamespace.

type LookupContainerNamespaceOutputArgs

type LookupContainerNamespaceOutputArgs struct {
	// The namespace name.
	// Only one of `name` and `namespaceId` should be specified.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The namespace id.
	// Only one of `name` and `namespaceId` should be specified.
	NamespaceId pulumi.StringPtrInput `pulumi:"namespaceId"`
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// `region`) The region in which the namespace exists.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

A collection of arguments for invoking getContainerNamespace.

func (LookupContainerNamespaceOutputArgs) ElementType

type LookupContainerNamespaceResult

type LookupContainerNamespaceResult struct {
	// The description of the namespace.
	Description     string `pulumi:"description"`
	DestroyRegistry bool   `pulumi:"destroyRegistry"`
	// The environment variables of the namespace.
	EnvironmentVariables map[string]string `pulumi:"environmentVariables"`
	// The provider-assigned unique ID for this managed resource.
	Id          string  `pulumi:"id"`
	Name        *string `pulumi:"name"`
	NamespaceId *string `pulumi:"namespaceId"`
	// The organization ID the namespace is associated with.
	OrganizationId string  `pulumi:"organizationId"`
	ProjectId      *string `pulumi:"projectId"`
	Region         *string `pulumi:"region"`
	// The registry endpoint of the namespace.
	RegistryEndpoint string `pulumi:"registryEndpoint"`
	// The registry namespace ID of the namespace.
	RegistryNamespaceId        string            `pulumi:"registryNamespaceId"`
	SecretEnvironmentVariables map[string]string `pulumi:"secretEnvironmentVariables"`
}

A collection of values returned by getContainerNamespace.

func LookupContainerNamespace

func LookupContainerNamespace(ctx *pulumi.Context, args *LookupContainerNamespaceArgs, opts ...pulumi.InvokeOption) (*LookupContainerNamespaceResult, error)

Gets information about a container namespace.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := serverless.LookupContainerNamespace(ctx, &serverless.LookupContainerNamespaceArgs{
			Name: pulumi.StringRef("my-namespace-name"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = serverless.LookupContainerNamespace(ctx, &serverless.LookupContainerNamespaceArgs{
			NamespaceId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupContainerNamespaceResultOutput

type LookupContainerNamespaceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getContainerNamespace.

func (LookupContainerNamespaceResultOutput) Description

The description of the namespace.

func (LookupContainerNamespaceResultOutput) DestroyRegistry

func (LookupContainerNamespaceResultOutput) ElementType

func (LookupContainerNamespaceResultOutput) EnvironmentVariables

The environment variables of the namespace.

func (LookupContainerNamespaceResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupContainerNamespaceResultOutput) Name

func (LookupContainerNamespaceResultOutput) NamespaceId

func (LookupContainerNamespaceResultOutput) OrganizationId

The organization ID the namespace is associated with.

func (LookupContainerNamespaceResultOutput) ProjectId

func (LookupContainerNamespaceResultOutput) Region

func (LookupContainerNamespaceResultOutput) RegistryEndpoint

The registry endpoint of the namespace.

func (LookupContainerNamespaceResultOutput) RegistryNamespaceId

The registry namespace ID of the namespace.

func (LookupContainerNamespaceResultOutput) SecretEnvironmentVariables

func (o LookupContainerNamespaceResultOutput) SecretEnvironmentVariables() pulumi.StringMapOutput

func (LookupContainerNamespaceResultOutput) ToLookupContainerNamespaceResultOutput

func (o LookupContainerNamespaceResultOutput) ToLookupContainerNamespaceResultOutput() LookupContainerNamespaceResultOutput

func (LookupContainerNamespaceResultOutput) ToLookupContainerNamespaceResultOutputWithContext

func (o LookupContainerNamespaceResultOutput) ToLookupContainerNamespaceResultOutputWithContext(ctx context.Context) LookupContainerNamespaceResultOutput

type LookupContainerOutputArgs

type LookupContainerOutputArgs struct {
	ContainerId pulumi.StringPtrInput `pulumi:"containerId"`
	// The unique name of the container name.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The container namespace ID of the container.
	NamespaceId pulumi.StringInput `pulumi:"namespaceId"`
	// The ID of the project the container is associated with.
	//
	// > **Important** Updates to `name` will recreate the container.
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// (Defaults to provider `region`) The region in which the container was created.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

A collection of arguments for invoking getContainer.

func (LookupContainerOutputArgs) ElementType

func (LookupContainerOutputArgs) ElementType() reflect.Type

type LookupContainerResult

type LookupContainerResult struct {
	ContainerId *string `pulumi:"containerId"`
	// The amount of vCPU computing resources to allocate to each container. Defaults  to 70.
	CpuLimit int `pulumi:"cpuLimit"`
	// The cron status of the container.
	CronStatus string `pulumi:"cronStatus"`
	// Boolean indicating whether the container is on a production environment.
	Deploy bool `pulumi:"deploy"`
	// The description of the container.
	Description string `pulumi:"description"`
	// The container domain name.
	DomainName string `pulumi:"domainName"`
	// The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) variables of the container.
	EnvironmentVariables map[string]string `pulumi:"environmentVariables"`
	// The error message of the container.
	ErrorMessage string `pulumi:"errorMessage"`
	HttpOption   string `pulumi:"httpOption"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.
	MaxConcurrency int `pulumi:"maxConcurrency"`
	// The maximum of number of instances this container can scale to. Default to 20.
	MaxScale int `pulumi:"maxScale"`
	// The memory computing resources in MB to allocate to each container. Defaults to 128.
	MemoryLimit int `pulumi:"memoryLimit"`
	// The minimum of running container instances continuously. Defaults to 0.
	MinScale    int     `pulumi:"minScale"`
	Name        *string `pulumi:"name"`
	NamespaceId string  `pulumi:"namespaceId"`
	// The port to expose the container. Defaults to 8080.
	Port int `pulumi:"port"`
	// The privacy type define the way to authenticate to your container. Please check our dedicated [section](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8).
	Privacy   string  `pulumi:"privacy"`
	ProjectId *string `pulumi:"projectId"`
	// The communication [protocol](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8) http1 or h2c. Defaults to http1.
	Protocol string `pulumi:"protocol"`
	// (Defaults to provider `region`) The region in which the container was created.
	Region *string `pulumi:"region"`
	// The registry image address. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.
	RegistryImage string `pulumi:"registryImage"`
	// The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.
	RegistrySha256             string            `pulumi:"registrySha256"`
	SecretEnvironmentVariables map[string]string `pulumi:"secretEnvironmentVariables"`
	// The container status.
	Status string `pulumi:"status"`
	// The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.
	Timeout int `pulumi:"timeout"`
}

A collection of values returned by getContainer.

func LookupContainer

func LookupContainer(ctx *pulumi.Context, args *LookupContainerArgs, opts ...pulumi.InvokeOption) (*LookupContainerResult, error)

Gets information about the Scaleway Container.

For more information consult the [documentation](https://www.scaleway.com/en/docs/faq/serverless-containers/).

For more details about the limitation check [containers-limitations](https://www.scaleway.com/en/docs/compute/containers/reference-content/containers-limitations/).

You can check also our [containers guide](https://www.scaleway.com/en/docs/compute/containers/concepts/).

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mainContainerNamespace, err := serverless.NewContainerNamespace(ctx, "mainContainerNamespace", nil)
		if err != nil {
			return err
		}
		mainContainer, err := serverless.NewContainer(ctx, "mainContainer", &serverless.ContainerArgs{
			NamespaceId: mainContainerNamespace.ID(),
		})
		if err != nil {
			return err
		}
		_ = serverless.LookupContainerOutput(ctx, serverless.GetContainerOutputArgs{
			NamespaceId: mainContainerNamespace.ID(),
			Name:        mainContainer.Name,
		}, nil)
		_ = serverless.LookupContainerOutput(ctx, serverless.GetContainerOutputArgs{
			NamespaceId: mainContainerNamespace.ID(),
			ContainerId: mainContainer.ID(),
		}, nil)
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupContainerResultOutput

type LookupContainerResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getContainer.

func (LookupContainerResultOutput) ContainerId

func (LookupContainerResultOutput) CpuLimit

The amount of vCPU computing resources to allocate to each container. Defaults to 70.

func (LookupContainerResultOutput) CronStatus

The cron status of the container.

func (LookupContainerResultOutput) Deploy

Boolean indicating whether the container is on a production environment.

func (LookupContainerResultOutput) Description

The description of the container.

func (LookupContainerResultOutput) DomainName

The container domain name.

func (LookupContainerResultOutput) ElementType

func (LookupContainerResultOutput) EnvironmentVariables

func (o LookupContainerResultOutput) EnvironmentVariables() pulumi.StringMapOutput

The [environment](https://www.scaleway.com/en/docs/compute/containers/concepts/#environment-variables) variables of the container.

func (LookupContainerResultOutput) ErrorMessage

The error message of the container.

func (LookupContainerResultOutput) HttpOption

func (LookupContainerResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupContainerResultOutput) MaxConcurrency

func (o LookupContainerResultOutput) MaxConcurrency() pulumi.IntOutput

The maximum number of simultaneous requests your container can handle at the same time. Defaults to 50.

func (LookupContainerResultOutput) MaxScale

The maximum of number of instances this container can scale to. Default to 20.

func (LookupContainerResultOutput) MemoryLimit

The memory computing resources in MB to allocate to each container. Defaults to 128.

func (LookupContainerResultOutput) MinScale

The minimum of running container instances continuously. Defaults to 0.

func (LookupContainerResultOutput) Name

func (LookupContainerResultOutput) NamespaceId

func (LookupContainerResultOutput) Port

The port to expose the container. Defaults to 8080.

func (LookupContainerResultOutput) Privacy

The privacy type define the way to authenticate to your container. Please check our dedicated [section](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8).

func (LookupContainerResultOutput) ProjectId

func (LookupContainerResultOutput) Protocol

The communication [protocol](https://developers.scaleway.com/en/products/containers/api/#protocol-9dd4c8) http1 or h2c. Defaults to http1.

func (LookupContainerResultOutput) Region

(Defaults to provider `region`) The region in which the container was created.

func (LookupContainerResultOutput) RegistryImage

The registry image address. e.g: **"rg.fr-par.scw.cloud/$NAMESPACE/$IMAGE"**.

func (LookupContainerResultOutput) RegistrySha256

func (o LookupContainerResultOutput) RegistrySha256() pulumi.StringOutput

The sha256 of your source registry image, changing it will re-apply the deployment. Can be any string.

func (LookupContainerResultOutput) SecretEnvironmentVariables

func (o LookupContainerResultOutput) SecretEnvironmentVariables() pulumi.StringMapOutput

func (LookupContainerResultOutput) Status

The container status.

func (LookupContainerResultOutput) Timeout

The maximum amount of time in seconds during which your container can process a request before we stop it. Defaults to 300s.

func (LookupContainerResultOutput) ToLookupContainerResultOutput

func (o LookupContainerResultOutput) ToLookupContainerResultOutput() LookupContainerResultOutput

func (LookupContainerResultOutput) ToLookupContainerResultOutputWithContext

func (o LookupContainerResultOutput) ToLookupContainerResultOutputWithContext(ctx context.Context) LookupContainerResultOutput

type LookupFunctionArgs

type LookupFunctionArgs struct {
	// The function id. Only one of `name` and `functionId` should be specified.
	FunctionId *string `pulumi:"functionId"`
	// The function name. Only one of `name` and `namespaceId` should be specified.
	Name *string `pulumi:"name"`
	// The namespace id associated with this function.
	NamespaceId string `pulumi:"namespaceId"`
	// The ID of the project the function is associated with.
	ProjectId *string `pulumi:"projectId"`
	// `region`) The region in which the function exists.
	Region *string `pulumi:"region"`
}

A collection of arguments for invoking getFunction.

type LookupFunctionNamespaceArgs

type LookupFunctionNamespaceArgs struct {
	// The namespace name.
	// Only one of `name` and `namespaceId` should be specified.
	Name *string `pulumi:"name"`
	// The namespace id.
	// Only one of `name` and `namespaceId` should be specified.
	NamespaceId *string `pulumi:"namespaceId"`
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId *string `pulumi:"projectId"`
	// `region`) The region in which the namespace exists.
	Region *string `pulumi:"region"`
}

A collection of arguments for invoking getFunctionNamespace.

type LookupFunctionNamespaceOutputArgs

type LookupFunctionNamespaceOutputArgs struct {
	// The namespace name.
	// Only one of `name` and `namespaceId` should be specified.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The namespace id.
	// Only one of `name` and `namespaceId` should be specified.
	NamespaceId pulumi.StringPtrInput `pulumi:"namespaceId"`
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// `region`) The region in which the namespace exists.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

A collection of arguments for invoking getFunctionNamespace.

func (LookupFunctionNamespaceOutputArgs) ElementType

type LookupFunctionNamespaceResult

type LookupFunctionNamespaceResult struct {
	// The description of the namespace.
	Description string `pulumi:"description"`
	// The environment variables of the namespace.
	EnvironmentVariables map[string]string `pulumi:"environmentVariables"`
	// The provider-assigned unique ID for this managed resource.
	Id          string  `pulumi:"id"`
	Name        *string `pulumi:"name"`
	NamespaceId *string `pulumi:"namespaceId"`
	// The organization ID the namespace is associated with.
	OrganizationId string  `pulumi:"organizationId"`
	ProjectId      *string `pulumi:"projectId"`
	Region         *string `pulumi:"region"`
	// The registry endpoint of the namespace.
	RegistryEndpoint string `pulumi:"registryEndpoint"`
	// The registry namespace ID of the namespace.
	RegistryNamespaceId        string            `pulumi:"registryNamespaceId"`
	SecretEnvironmentVariables map[string]string `pulumi:"secretEnvironmentVariables"`
}

A collection of values returned by getFunctionNamespace.

func LookupFunctionNamespace

func LookupFunctionNamespace(ctx *pulumi.Context, args *LookupFunctionNamespaceArgs, opts ...pulumi.InvokeOption) (*LookupFunctionNamespaceResult, error)

Gets information about a function namespace.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := serverless.LookupFunctionNamespace(ctx, &serverless.LookupFunctionNamespaceArgs{
			NamespaceId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupFunctionNamespaceResultOutput

type LookupFunctionNamespaceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFunctionNamespace.

func (LookupFunctionNamespaceResultOutput) Description

The description of the namespace.

func (LookupFunctionNamespaceResultOutput) ElementType

func (LookupFunctionNamespaceResultOutput) EnvironmentVariables

The environment variables of the namespace.

func (LookupFunctionNamespaceResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupFunctionNamespaceResultOutput) Name

func (LookupFunctionNamespaceResultOutput) NamespaceId

func (LookupFunctionNamespaceResultOutput) OrganizationId

The organization ID the namespace is associated with.

func (LookupFunctionNamespaceResultOutput) ProjectId

func (LookupFunctionNamespaceResultOutput) Region

func (LookupFunctionNamespaceResultOutput) RegistryEndpoint

The registry endpoint of the namespace.

func (LookupFunctionNamespaceResultOutput) RegistryNamespaceId

The registry namespace ID of the namespace.

func (LookupFunctionNamespaceResultOutput) SecretEnvironmentVariables

func (o LookupFunctionNamespaceResultOutput) SecretEnvironmentVariables() pulumi.StringMapOutput

func (LookupFunctionNamespaceResultOutput) ToLookupFunctionNamespaceResultOutput

func (o LookupFunctionNamespaceResultOutput) ToLookupFunctionNamespaceResultOutput() LookupFunctionNamespaceResultOutput

func (LookupFunctionNamespaceResultOutput) ToLookupFunctionNamespaceResultOutputWithContext

func (o LookupFunctionNamespaceResultOutput) ToLookupFunctionNamespaceResultOutputWithContext(ctx context.Context) LookupFunctionNamespaceResultOutput

type LookupFunctionOutputArgs

type LookupFunctionOutputArgs struct {
	// The function id. Only one of `name` and `functionId` should be specified.
	FunctionId pulumi.StringPtrInput `pulumi:"functionId"`
	// The function name. Only one of `name` and `namespaceId` should be specified.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The namespace id associated with this function.
	NamespaceId pulumi.StringInput `pulumi:"namespaceId"`
	// The ID of the project the function is associated with.
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// `region`) The region in which the function exists.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

A collection of arguments for invoking getFunction.

func (LookupFunctionOutputArgs) ElementType

func (LookupFunctionOutputArgs) ElementType() reflect.Type

type LookupFunctionResult

type LookupFunctionResult struct {
	CpuLimit             int               `pulumi:"cpuLimit"`
	Deploy               bool              `pulumi:"deploy"`
	Description          string            `pulumi:"description"`
	DomainName           string            `pulumi:"domainName"`
	EnvironmentVariables map[string]string `pulumi:"environmentVariables"`
	FunctionId           *string           `pulumi:"functionId"`
	Handler              string            `pulumi:"handler"`
	HttpOption           string            `pulumi:"httpOption"`
	// The provider-assigned unique ID for this managed resource.
	Id                         string            `pulumi:"id"`
	MaxScale                   int               `pulumi:"maxScale"`
	MemoryLimit                int               `pulumi:"memoryLimit"`
	MinScale                   int               `pulumi:"minScale"`
	Name                       *string           `pulumi:"name"`
	NamespaceId                string            `pulumi:"namespaceId"`
	OrganizationId             string            `pulumi:"organizationId"`
	Privacy                    string            `pulumi:"privacy"`
	ProjectId                  *string           `pulumi:"projectId"`
	Region                     *string           `pulumi:"region"`
	Runtime                    string            `pulumi:"runtime"`
	SecretEnvironmentVariables map[string]string `pulumi:"secretEnvironmentVariables"`
	Timeout                    int               `pulumi:"timeout"`
	ZipFile                    string            `pulumi:"zipFile"`
	ZipHash                    string            `pulumi:"zipHash"`
}

A collection of values returned by getFunction.

func LookupFunction

func LookupFunction(ctx *pulumi.Context, args *LookupFunctionArgs, opts ...pulumi.InvokeOption) (*LookupFunctionResult, error)

Gets information about a function.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := serverless.LookupFunction(ctx, &serverless.LookupFunctionArgs{
			FunctionId:  pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
			NamespaceId: "11111111-1111-1111-1111-111111111111",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupFunctionResultOutput

type LookupFunctionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFunction.

func (LookupFunctionResultOutput) CpuLimit

func (LookupFunctionResultOutput) Deploy

func (LookupFunctionResultOutput) Description

func (LookupFunctionResultOutput) DomainName

func (LookupFunctionResultOutput) ElementType

func (LookupFunctionResultOutput) ElementType() reflect.Type

func (LookupFunctionResultOutput) EnvironmentVariables

func (o LookupFunctionResultOutput) EnvironmentVariables() pulumi.StringMapOutput

func (LookupFunctionResultOutput) FunctionId

func (LookupFunctionResultOutput) Handler

func (LookupFunctionResultOutput) HttpOption

func (LookupFunctionResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupFunctionResultOutput) MaxScale

func (LookupFunctionResultOutput) MemoryLimit

func (LookupFunctionResultOutput) MinScale

func (LookupFunctionResultOutput) Name

func (LookupFunctionResultOutput) NamespaceId

func (LookupFunctionResultOutput) OrganizationId

func (o LookupFunctionResultOutput) OrganizationId() pulumi.StringOutput

func (LookupFunctionResultOutput) Privacy

func (LookupFunctionResultOutput) ProjectId

func (LookupFunctionResultOutput) Region

func (LookupFunctionResultOutput) Runtime

func (LookupFunctionResultOutput) SecretEnvironmentVariables

func (o LookupFunctionResultOutput) SecretEnvironmentVariables() pulumi.StringMapOutput

func (LookupFunctionResultOutput) Timeout

func (LookupFunctionResultOutput) ToLookupFunctionResultOutput

func (o LookupFunctionResultOutput) ToLookupFunctionResultOutput() LookupFunctionResultOutput

func (LookupFunctionResultOutput) ToLookupFunctionResultOutputWithContext

func (o LookupFunctionResultOutput) ToLookupFunctionResultOutputWithContext(ctx context.Context) LookupFunctionResultOutput

func (LookupFunctionResultOutput) ZipFile

func (LookupFunctionResultOutput) ZipHash

type SDBDatabase

type SDBDatabase struct {
	pulumi.CustomResourceState

	// Endpoint of the database
	Endpoint pulumi.StringOutput `pulumi:"endpoint"`
	// The maximum number of CPU units for your database. Defaults to 15.
	MaxCpu pulumi.IntPtrOutput `pulumi:"maxCpu"`
	// The minimum number of CPU units for your database. Defaults to 0.
	MinCpu pulumi.IntPtrOutput `pulumi:"minCpu"`
	// Name of the database (e.g. `my-new-database`).
	//
	// > **Important:** Updates to `name` will recreate the database.
	Name pulumi.StringOutput `pulumi:"name"`
	// The project_id you want to attach the resource to
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// `region`) The region in which the resource exists.
	Region pulumi.StringOutput `pulumi:"region"`
}

Creates and manages Scaleway Serverless SQL Databases. For more information, see [the documentation](https://www.scaleway.com/en/developers/api/serverless-databases/).

## Example Usage

### Basic

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/serverless"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := serverless.NewSDBDatabase(ctx, "database", &serverless.SDBDatabaseArgs{
			MaxCpu: pulumi.Int(8),
			MinCpu: pulumi.Int(0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Serverless SQL Database can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:serverless/sDBDatabase:SDBDatabase database fr-par/11111111-1111-1111-1111-111111111111 ```

func GetSDBDatabase

func GetSDBDatabase(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SDBDatabaseState, opts ...pulumi.ResourceOption) (*SDBDatabase, error)

GetSDBDatabase gets an existing SDBDatabase resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSDBDatabase

func NewSDBDatabase(ctx *pulumi.Context,
	name string, args *SDBDatabaseArgs, opts ...pulumi.ResourceOption) (*SDBDatabase, error)

NewSDBDatabase registers a new resource with the given unique name, arguments, and options.

func (*SDBDatabase) ElementType

func (*SDBDatabase) ElementType() reflect.Type

func (*SDBDatabase) ToSDBDatabaseOutput

func (i *SDBDatabase) ToSDBDatabaseOutput() SDBDatabaseOutput

func (*SDBDatabase) ToSDBDatabaseOutputWithContext

func (i *SDBDatabase) ToSDBDatabaseOutputWithContext(ctx context.Context) SDBDatabaseOutput

type SDBDatabaseArgs

type SDBDatabaseArgs struct {
	// The maximum number of CPU units for your database. Defaults to 15.
	MaxCpu pulumi.IntPtrInput
	// The minimum number of CPU units for your database. Defaults to 0.
	MinCpu pulumi.IntPtrInput
	// Name of the database (e.g. `my-new-database`).
	//
	// > **Important:** Updates to `name` will recreate the database.
	Name pulumi.StringPtrInput
	// The project_id you want to attach the resource to
	ProjectId pulumi.StringPtrInput
	// `region`) The region in which the resource exists.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a SDBDatabase resource.

func (SDBDatabaseArgs) ElementType

func (SDBDatabaseArgs) ElementType() reflect.Type

type SDBDatabaseArray

type SDBDatabaseArray []SDBDatabaseInput

func (SDBDatabaseArray) ElementType

func (SDBDatabaseArray) ElementType() reflect.Type

func (SDBDatabaseArray) ToSDBDatabaseArrayOutput

func (i SDBDatabaseArray) ToSDBDatabaseArrayOutput() SDBDatabaseArrayOutput

func (SDBDatabaseArray) ToSDBDatabaseArrayOutputWithContext

func (i SDBDatabaseArray) ToSDBDatabaseArrayOutputWithContext(ctx context.Context) SDBDatabaseArrayOutput

type SDBDatabaseArrayInput

type SDBDatabaseArrayInput interface {
	pulumi.Input

	ToSDBDatabaseArrayOutput() SDBDatabaseArrayOutput
	ToSDBDatabaseArrayOutputWithContext(context.Context) SDBDatabaseArrayOutput
}

SDBDatabaseArrayInput is an input type that accepts SDBDatabaseArray and SDBDatabaseArrayOutput values. You can construct a concrete instance of `SDBDatabaseArrayInput` via:

SDBDatabaseArray{ SDBDatabaseArgs{...} }

type SDBDatabaseArrayOutput

type SDBDatabaseArrayOutput struct{ *pulumi.OutputState }

func (SDBDatabaseArrayOutput) ElementType

func (SDBDatabaseArrayOutput) ElementType() reflect.Type

func (SDBDatabaseArrayOutput) Index

func (SDBDatabaseArrayOutput) ToSDBDatabaseArrayOutput

func (o SDBDatabaseArrayOutput) ToSDBDatabaseArrayOutput() SDBDatabaseArrayOutput

func (SDBDatabaseArrayOutput) ToSDBDatabaseArrayOutputWithContext

func (o SDBDatabaseArrayOutput) ToSDBDatabaseArrayOutputWithContext(ctx context.Context) SDBDatabaseArrayOutput

type SDBDatabaseInput

type SDBDatabaseInput interface {
	pulumi.Input

	ToSDBDatabaseOutput() SDBDatabaseOutput
	ToSDBDatabaseOutputWithContext(ctx context.Context) SDBDatabaseOutput
}

type SDBDatabaseMap

type SDBDatabaseMap map[string]SDBDatabaseInput

func (SDBDatabaseMap) ElementType

func (SDBDatabaseMap) ElementType() reflect.Type

func (SDBDatabaseMap) ToSDBDatabaseMapOutput

func (i SDBDatabaseMap) ToSDBDatabaseMapOutput() SDBDatabaseMapOutput

func (SDBDatabaseMap) ToSDBDatabaseMapOutputWithContext

func (i SDBDatabaseMap) ToSDBDatabaseMapOutputWithContext(ctx context.Context) SDBDatabaseMapOutput

type SDBDatabaseMapInput

type SDBDatabaseMapInput interface {
	pulumi.Input

	ToSDBDatabaseMapOutput() SDBDatabaseMapOutput
	ToSDBDatabaseMapOutputWithContext(context.Context) SDBDatabaseMapOutput
}

SDBDatabaseMapInput is an input type that accepts SDBDatabaseMap and SDBDatabaseMapOutput values. You can construct a concrete instance of `SDBDatabaseMapInput` via:

SDBDatabaseMap{ "key": SDBDatabaseArgs{...} }

type SDBDatabaseMapOutput

type SDBDatabaseMapOutput struct{ *pulumi.OutputState }

func (SDBDatabaseMapOutput) ElementType

func (SDBDatabaseMapOutput) ElementType() reflect.Type

func (SDBDatabaseMapOutput) MapIndex

func (SDBDatabaseMapOutput) ToSDBDatabaseMapOutput

func (o SDBDatabaseMapOutput) ToSDBDatabaseMapOutput() SDBDatabaseMapOutput

func (SDBDatabaseMapOutput) ToSDBDatabaseMapOutputWithContext

func (o SDBDatabaseMapOutput) ToSDBDatabaseMapOutputWithContext(ctx context.Context) SDBDatabaseMapOutput

type SDBDatabaseOutput

type SDBDatabaseOutput struct{ *pulumi.OutputState }

func (SDBDatabaseOutput) ElementType

func (SDBDatabaseOutput) ElementType() reflect.Type

func (SDBDatabaseOutput) Endpoint

func (o SDBDatabaseOutput) Endpoint() pulumi.StringOutput

Endpoint of the database

func (SDBDatabaseOutput) MaxCpu

The maximum number of CPU units for your database. Defaults to 15.

func (SDBDatabaseOutput) MinCpu

The minimum number of CPU units for your database. Defaults to 0.

func (SDBDatabaseOutput) Name

Name of the database (e.g. `my-new-database`).

> **Important:** Updates to `name` will recreate the database.

func (SDBDatabaseOutput) ProjectId

func (o SDBDatabaseOutput) ProjectId() pulumi.StringOutput

The project_id you want to attach the resource to

func (SDBDatabaseOutput) Region

`region`) The region in which the resource exists.

func (SDBDatabaseOutput) ToSDBDatabaseOutput

func (o SDBDatabaseOutput) ToSDBDatabaseOutput() SDBDatabaseOutput

func (SDBDatabaseOutput) ToSDBDatabaseOutputWithContext

func (o SDBDatabaseOutput) ToSDBDatabaseOutputWithContext(ctx context.Context) SDBDatabaseOutput

type SDBDatabaseState

type SDBDatabaseState struct {
	// Endpoint of the database
	Endpoint pulumi.StringPtrInput
	// The maximum number of CPU units for your database. Defaults to 15.
	MaxCpu pulumi.IntPtrInput
	// The minimum number of CPU units for your database. Defaults to 0.
	MinCpu pulumi.IntPtrInput
	// Name of the database (e.g. `my-new-database`).
	//
	// > **Important:** Updates to `name` will recreate the database.
	Name pulumi.StringPtrInput
	// The project_id you want to attach the resource to
	ProjectId pulumi.StringPtrInput
	// `region`) The region in which the resource exists.
	Region pulumi.StringPtrInput
}

func (SDBDatabaseState) ElementType

func (SDBDatabaseState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL