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

scaleway.EdgeServicesHeadStage

Explore with Pulumi AI

Sets the Scaleway Edge Services head stage of your pipeline.

Example Usage

Basic

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

const main = new scaleway.EdgeServicesPipeline("main", {
    name: "my-edge_services-pipeline",
    description: "pipeline description",
});
const mainEdgeServicesDnsStage = new scaleway.EdgeServicesDnsStage("main", {
    pipelineId: main.id,
    tlsStageId: mainScalewayEdgeServicesTlsStage.id,
    fqdns: ["subdomain.example.com"],
});
const mainEdgeServicesHeadStage = new scaleway.EdgeServicesHeadStage("main", {
    pipelineId: main.id,
    headStageId: mainEdgeServicesDnsStage.id,
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.EdgeServicesPipeline("main",
    name="my-edge_services-pipeline",
    description="pipeline description")
main_edge_services_dns_stage = scaleway.EdgeServicesDnsStage("main",
    pipeline_id=main.id,
    tls_stage_id=main_scaleway_edge_services_tls_stage["id"],
    fqdns=["subdomain.example.com"])
main_edge_services_head_stage = scaleway.EdgeServicesHeadStage("main",
    pipeline_id=main.id,
    head_stage_id=main_edge_services_dns_stage.id)
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 {
		main, err := scaleway.NewEdgeServicesPipeline(ctx, "main", &scaleway.EdgeServicesPipelineArgs{
			Name:        pulumi.String("my-edge_services-pipeline"),
			Description: pulumi.String("pipeline description"),
		})
		if err != nil {
			return err
		}
		mainEdgeServicesDnsStage, err := scaleway.NewEdgeServicesDnsStage(ctx, "main", &scaleway.EdgeServicesDnsStageArgs{
			PipelineId: main.ID(),
			TlsStageId: pulumi.Any(mainScalewayEdgeServicesTlsStage.Id),
			Fqdns: pulumi.StringArray{
				pulumi.String("subdomain.example.com"),
			},
		})
		if err != nil {
			return err
		}
		_, err = scaleway.NewEdgeServicesHeadStage(ctx, "main", &scaleway.EdgeServicesHeadStageArgs{
			PipelineId:  main.ID(),
			HeadStageId: mainEdgeServicesDnsStage.ID(),
		})
		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.EdgeServicesPipeline("main", new()
    {
        Name = "my-edge_services-pipeline",
        Description = "pipeline description",
    });

    var mainEdgeServicesDnsStage = new Scaleway.EdgeServicesDnsStage("main", new()
    {
        PipelineId = main.Id,
        TlsStageId = mainScalewayEdgeServicesTlsStage.Id,
        Fqdns = new[]
        {
            "subdomain.example.com",
        },
    });

    var mainEdgeServicesHeadStage = new Scaleway.EdgeServicesHeadStage("main", new()
    {
        PipelineId = main.Id,
        HeadStageId = mainEdgeServicesDnsStage.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.EdgeServicesPipeline;
import com.pulumi.scaleway.EdgeServicesPipelineArgs;
import com.pulumi.scaleway.EdgeServicesDnsStage;
import com.pulumi.scaleway.EdgeServicesDnsStageArgs;
import com.pulumi.scaleway.EdgeServicesHeadStage;
import com.pulumi.scaleway.EdgeServicesHeadStageArgs;
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 EdgeServicesPipeline("main", EdgeServicesPipelineArgs.builder()
            .name("my-edge_services-pipeline")
            .description("pipeline description")
            .build());

        var mainEdgeServicesDnsStage = new EdgeServicesDnsStage("mainEdgeServicesDnsStage", EdgeServicesDnsStageArgs.builder()
            .pipelineId(main.id())
            .tlsStageId(mainScalewayEdgeServicesTlsStage.id())
            .fqdns("subdomain.example.com")
            .build());

        var mainEdgeServicesHeadStage = new EdgeServicesHeadStage("mainEdgeServicesHeadStage", EdgeServicesHeadStageArgs.builder()
            .pipelineId(main.id())
            .headStageId(mainEdgeServicesDnsStage.id())
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:EdgeServicesPipeline
    properties:
      name: my-edge_services-pipeline
      description: pipeline description
  mainEdgeServicesDnsStage:
    type: scaleway:EdgeServicesDnsStage
    name: main
    properties:
      pipelineId: ${main.id}
      tlsStageId: ${mainScalewayEdgeServicesTlsStage.id}
      fqdns:
        - subdomain.example.com
  mainEdgeServicesHeadStage:
    type: scaleway:EdgeServicesHeadStage
    name: main
    properties:
      pipelineId: ${main.id}
      headStageId: ${mainEdgeServicesDnsStage.id}
Copy

Create EdgeServicesHeadStage Resource

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

Constructor syntax

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

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

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. EdgeServicesHeadStageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. EdgeServicesHeadStageArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. EdgeServicesHeadStageArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. EdgeServicesHeadStageArgs
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. EdgeServicesHeadStageArgs
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 edgeServicesHeadStageResource = new Scaleway.EdgeServicesHeadStage("edgeServicesHeadStageResource", new()
{
    PipelineId = "string",
    HeadStageId = "string",
});
Copy
example, err := scaleway.NewEdgeServicesHeadStage(ctx, "edgeServicesHeadStageResource", &scaleway.EdgeServicesHeadStageArgs{
	PipelineId:  pulumi.String("string"),
	HeadStageId: pulumi.String("string"),
})
Copy
var edgeServicesHeadStageResource = new EdgeServicesHeadStage("edgeServicesHeadStageResource", EdgeServicesHeadStageArgs.builder()
    .pipelineId("string")
    .headStageId("string")
    .build());
Copy
edge_services_head_stage_resource = scaleway.EdgeServicesHeadStage("edgeServicesHeadStageResource",
    pipeline_id="string",
    head_stage_id="string")
Copy
const edgeServicesHeadStageResource = new scaleway.EdgeServicesHeadStage("edgeServicesHeadStageResource", {
    pipelineId: "string",
    headStageId: "string",
});
Copy
type: scaleway:EdgeServicesHeadStage
properties:
    headStageId: string
    pipelineId: string
Copy

EdgeServicesHeadStage 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 EdgeServicesHeadStage resource accepts the following input properties:

PipelineId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the pipeline.
HeadStageId string
The ID of head stage of the pipeline.
PipelineId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the pipeline.
HeadStageId string
The ID of head stage of the pipeline.
pipelineId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the pipeline.
headStageId String
The ID of head stage of the pipeline.
pipelineId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the pipeline.
headStageId string
The ID of head stage of the pipeline.
pipeline_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the pipeline.
head_stage_id str
The ID of head stage of the pipeline.
pipelineId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the pipeline.
headStageId String
The ID of head stage of the pipeline.

Outputs

All input properties are implicitly available as output properties. Additionally, the EdgeServicesHeadStage 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 EdgeServicesHeadStage Resource

Get an existing EdgeServicesHeadStage 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?: EdgeServicesHeadStageState, opts?: CustomResourceOptions): EdgeServicesHeadStage
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        head_stage_id: Optional[str] = None,
        pipeline_id: Optional[str] = None) -> EdgeServicesHeadStage
func GetEdgeServicesHeadStage(ctx *Context, name string, id IDInput, state *EdgeServicesHeadStageState, opts ...ResourceOption) (*EdgeServicesHeadStage, error)
public static EdgeServicesHeadStage Get(string name, Input<string> id, EdgeServicesHeadStageState? state, CustomResourceOptions? opts = null)
public static EdgeServicesHeadStage get(String name, Output<String> id, EdgeServicesHeadStageState state, CustomResourceOptions options)
resources:  _:    type: scaleway:EdgeServicesHeadStage    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:
HeadStageId string
The ID of head stage of the pipeline.
PipelineId Changes to this property will trigger replacement. string
The ID of the pipeline.
HeadStageId string
The ID of head stage of the pipeline.
PipelineId Changes to this property will trigger replacement. string
The ID of the pipeline.
headStageId String
The ID of head stage of the pipeline.
pipelineId Changes to this property will trigger replacement. String
The ID of the pipeline.
headStageId string
The ID of head stage of the pipeline.
pipelineId Changes to this property will trigger replacement. string
The ID of the pipeline.
head_stage_id str
The ID of head stage of the pipeline.
pipeline_id Changes to this property will trigger replacement. str
The ID of the pipeline.
headStageId String
The ID of head stage of the pipeline.
pipelineId Changes to this property will trigger replacement. String
The ID of the pipeline.

Import

Head stages can be imported using the {id}, e.g.

bash

$ pulumi import scaleway:index/edgeServicesHeadStage:EdgeServicesHeadStage main 11111111-1111-1111-1111-111111111111
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.