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

scaleway.EdgeServicesPlan

Explore with Pulumi AI

Creates and manages Scaleway Edge Services plans.

Example Usage

Basic

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const main = new scaleway.EdgeServicesPlan("main", {name: "starter"});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.EdgeServicesPlan("main", name="starter")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scaleway.NewEdgeServicesPlan(ctx, "main", &scaleway.EdgeServicesPlanArgs{
			Name: pulumi.String("starter"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var main = new Scaleway.EdgeServicesPlan("main", new()
    {
        Name = "starter",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.EdgeServicesPlan;
import com.pulumi.scaleway.EdgeServicesPlanArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var main = new EdgeServicesPlan("main", EdgeServicesPlanArgs.builder()
            .name("starter")
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:EdgeServicesPlan
    properties:
      name: starter
Copy

Create EdgeServicesPlan Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new EdgeServicesPlan(name: string, args?: EdgeServicesPlanArgs, opts?: CustomResourceOptions);
@overload
def EdgeServicesPlan(resource_name: str,
                     args: Optional[EdgeServicesPlanArgs] = None,
                     opts: Optional[ResourceOptions] = None)

@overload
def EdgeServicesPlan(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     name: Optional[str] = None,
                     project_id: Optional[str] = None)
func NewEdgeServicesPlan(ctx *Context, name string, args *EdgeServicesPlanArgs, opts ...ResourceOption) (*EdgeServicesPlan, error)
public EdgeServicesPlan(string name, EdgeServicesPlanArgs? args = null, CustomResourceOptions? opts = null)
public EdgeServicesPlan(String name, EdgeServicesPlanArgs args)
public EdgeServicesPlan(String name, EdgeServicesPlanArgs args, CustomResourceOptions options)
type: scaleway:EdgeServicesPlan
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args EdgeServicesPlanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args EdgeServicesPlanArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args EdgeServicesPlanArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args EdgeServicesPlanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. EdgeServicesPlanArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var edgeServicesPlanResource = new Scaleway.EdgeServicesPlan("edgeServicesPlanResource", new()
{
    Name = "string",
    ProjectId = "string",
});
Copy
example, err := scaleway.NewEdgeServicesPlan(ctx, "edgeServicesPlanResource", &scaleway.EdgeServicesPlanArgs{
	Name:      pulumi.String("string"),
	ProjectId: pulumi.String("string"),
})
Copy
var edgeServicesPlanResource = new EdgeServicesPlan("edgeServicesPlanResource", EdgeServicesPlanArgs.builder()
    .name("string")
    .projectId("string")
    .build());
Copy
edge_services_plan_resource = scaleway.EdgeServicesPlan("edgeServicesPlanResource",
    name="string",
    project_id="string")
Copy
const edgeServicesPlanResource = new scaleway.EdgeServicesPlan("edgeServicesPlanResource", {
    name: "string",
    projectId: "string",
});
Copy
type: scaleway:EdgeServicesPlan
properties:
    name: string
    projectId: string
Copy

EdgeServicesPlan Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The EdgeServicesPlan resource accepts the following input properties:

Name string
The name of the plan.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the plan is associated with.
Name string
The name of the plan.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the plan is associated with.
name String
The name of the plan.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the plan is associated with.
name string
The name of the plan.
projectId Changes to this property will trigger replacement. string
project_id) The ID of the project the plan is associated with.
name str
The name of the plan.
project_id Changes to this property will trigger replacement. str
project_id) The ID of the project the plan is associated with.
name String
The name of the plan.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the plan is associated with.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing EdgeServicesPlan Resource

Get an existing EdgeServicesPlan resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: EdgeServicesPlanState, opts?: CustomResourceOptions): EdgeServicesPlan
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        name: Optional[str] = None,
        project_id: Optional[str] = None) -> EdgeServicesPlan
func GetEdgeServicesPlan(ctx *Context, name string, id IDInput, state *EdgeServicesPlanState, opts ...ResourceOption) (*EdgeServicesPlan, error)
public static EdgeServicesPlan Get(string name, Input<string> id, EdgeServicesPlanState? state, CustomResourceOptions? opts = null)
public static EdgeServicesPlan get(String name, Output<String> id, EdgeServicesPlanState state, CustomResourceOptions options)
resources:  _:    type: scaleway:EdgeServicesPlan    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Name string
The name of the plan.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the plan is associated with.
Name string
The name of the plan.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the plan is associated with.
name String
The name of the plan.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the plan is associated with.
name string
The name of the plan.
projectId Changes to this property will trigger replacement. string
project_id) The ID of the project the plan is associated with.
name str
The name of the plan.
project_id Changes to this property will trigger replacement. str
project_id) The ID of the project the plan is associated with.
name String
The name of the plan.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the plan is associated with.

Import

Plans can be imported using {project_id}/{plan_name}, e.g.

bash

$ pulumi import scaleway:index/edgeServicesPlan:EdgeServicesPlan main 11111111-1111-1111-1111-111111111111/starter
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

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