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,
});
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)
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
})
}
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,
});
});
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());
}
}
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}
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 string
- The unique name of the resource.
- args EdgeServicesHeadStageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args EdgeServicesHeadStageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EdgeServicesHeadStageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := scaleway.NewEdgeServicesHeadStage(ctx, "edgeServicesHeadStageResource", &scaleway.EdgeServicesHeadStageArgs{
PipelineId: pulumi.String("string"),
HeadStageId: pulumi.String("string"),
})
var edgeServicesHeadStageResource = new EdgeServicesHeadStage("edgeServicesHeadStageResource", EdgeServicesHeadStageArgs.builder()
.pipelineId("string")
.headStageId("string")
.build());
edge_services_head_stage_resource = scaleway.EdgeServicesHeadStage("edgeServicesHeadStageResource",
pipeline_id="string",
head_stage_id="string")
const edgeServicesHeadStageResource = new scaleway.EdgeServicesHeadStage("edgeServicesHeadStageResource", {
pipelineId: "string",
headStageId: "string",
});
type: scaleway:EdgeServicesHeadStage
properties:
headStageId: string
pipelineId: string
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:
- Pipeline
Id string - The ID of the pipeline.
- Head
Stage stringId - The ID of head stage of the pipeline.
- Pipeline
Id string - The ID of the pipeline.
- Head
Stage stringId - The ID of head stage of the pipeline.
- pipeline
Id String - The ID of the pipeline.
- head
Stage StringId - The ID of head stage of the pipeline.
- pipeline
Id string - The ID of the pipeline.
- head
Stage stringId - The ID of head stage of the pipeline.
- pipeline_
id str - The ID of the pipeline.
- head_
stage_ strid - The ID of head stage of the pipeline.
- pipeline
Id String - The ID of the pipeline.
- head
Stage StringId - 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Head
Stage stringId - The ID of head stage of the pipeline.
- Pipeline
Id string - The ID of the pipeline.
- Head
Stage stringId - The ID of head stage of the pipeline.
- Pipeline
Id string - The ID of the pipeline.
- head
Stage StringId - The ID of head stage of the pipeline.
- pipeline
Id String - The ID of the pipeline.
- head
Stage stringId - The ID of head stage of the pipeline.
- pipeline
Id string - The ID of the pipeline.
- head_
stage_ strid - The ID of head stage of the pipeline.
- pipeline_
id str - The ID of the pipeline.
- head
Stage StringId - The ID of head stage of the pipeline.
- pipeline
Id 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
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.