scaleway.EdgeServicesDnsStage
Explore with Pulumi AI
Creates and manages Scaleway Edge Services DNS Stages.
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.EdgeServicesDnsStage("main", {
pipelineId: mainScalewayEdgeServicesPipeline.id,
fqdns: ["subdomain.example.com"],
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.EdgeServicesDnsStage("main",
pipeline_id=main_scaleway_edge_services_pipeline["id"],
fqdns=["subdomain.example.com"])
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.NewEdgeServicesDnsStage(ctx, "main", &scaleway.EdgeServicesDnsStageArgs{
PipelineId: pulumi.Any(mainScalewayEdgeServicesPipeline.Id),
Fqdns: pulumi.StringArray{
pulumi.String("subdomain.example.com"),
},
})
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.EdgeServicesDnsStage("main", new()
{
PipelineId = mainScalewayEdgeServicesPipeline.Id,
Fqdns = new[]
{
"subdomain.example.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.EdgeServicesDnsStage;
import com.pulumi.scaleway.EdgeServicesDnsStageArgs;
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 EdgeServicesDnsStage("main", EdgeServicesDnsStageArgs.builder()
.pipelineId(mainScalewayEdgeServicesPipeline.id())
.fqdns("subdomain.example.com")
.build());
}
}
resources:
main:
type: scaleway:EdgeServicesDnsStage
properties:
pipelineId: ${mainScalewayEdgeServicesPipeline.id}
fqdns:
- subdomain.example.com
Create EdgeServicesDnsStage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EdgeServicesDnsStage(name: string, args: EdgeServicesDnsStageArgs, opts?: CustomResourceOptions);
@overload
def EdgeServicesDnsStage(resource_name: str,
args: EdgeServicesDnsStageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EdgeServicesDnsStage(resource_name: str,
opts: Optional[ResourceOptions] = None,
pipeline_id: Optional[str] = None,
backend_stage_id: Optional[str] = None,
cache_stage_id: Optional[str] = None,
fqdns: Optional[Sequence[str]] = None,
project_id: Optional[str] = None,
tls_stage_id: Optional[str] = None)
func NewEdgeServicesDnsStage(ctx *Context, name string, args EdgeServicesDnsStageArgs, opts ...ResourceOption) (*EdgeServicesDnsStage, error)
public EdgeServicesDnsStage(string name, EdgeServicesDnsStageArgs args, CustomResourceOptions? opts = null)
public EdgeServicesDnsStage(String name, EdgeServicesDnsStageArgs args)
public EdgeServicesDnsStage(String name, EdgeServicesDnsStageArgs args, CustomResourceOptions options)
type: scaleway:EdgeServicesDnsStage
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 EdgeServicesDnsStageArgs
- 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 EdgeServicesDnsStageArgs
- 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 EdgeServicesDnsStageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EdgeServicesDnsStageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EdgeServicesDnsStageArgs
- 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 edgeServicesDnsStageResource = new Scaleway.EdgeServicesDnsStage("edgeServicesDnsStageResource", new()
{
PipelineId = "string",
BackendStageId = "string",
CacheStageId = "string",
Fqdns = new[]
{
"string",
},
ProjectId = "string",
TlsStageId = "string",
});
example, err := scaleway.NewEdgeServicesDnsStage(ctx, "edgeServicesDnsStageResource", &scaleway.EdgeServicesDnsStageArgs{
PipelineId: pulumi.String("string"),
BackendStageId: pulumi.String("string"),
CacheStageId: pulumi.String("string"),
Fqdns: pulumi.StringArray{
pulumi.String("string"),
},
ProjectId: pulumi.String("string"),
TlsStageId: pulumi.String("string"),
})
var edgeServicesDnsStageResource = new EdgeServicesDnsStage("edgeServicesDnsStageResource", EdgeServicesDnsStageArgs.builder()
.pipelineId("string")
.backendStageId("string")
.cacheStageId("string")
.fqdns("string")
.projectId("string")
.tlsStageId("string")
.build());
edge_services_dns_stage_resource = scaleway.EdgeServicesDnsStage("edgeServicesDnsStageResource",
pipeline_id="string",
backend_stage_id="string",
cache_stage_id="string",
fqdns=["string"],
project_id="string",
tls_stage_id="string")
const edgeServicesDnsStageResource = new scaleway.EdgeServicesDnsStage("edgeServicesDnsStageResource", {
pipelineId: "string",
backendStageId: "string",
cacheStageId: "string",
fqdns: ["string"],
projectId: "string",
tlsStageId: "string",
});
type: scaleway:EdgeServicesDnsStage
properties:
backendStageId: string
cacheStageId: string
fqdns:
- string
pipelineId: string
projectId: string
tlsStageId: string
EdgeServicesDnsStage 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 EdgeServicesDnsStage resource accepts the following input properties:
- Pipeline
Id string - The ID of the pipeline.
- Backend
Stage stringId - The backend stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - Cache
Stage stringId - The cache stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - Fqdns List<string>
- Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- Project
Id string project_id
) The ID of the project the DNS stage is associated with.- Tls
Stage stringId - The TLS stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified.
- Pipeline
Id string - The ID of the pipeline.
- Backend
Stage stringId - The backend stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - Cache
Stage stringId - The cache stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - Fqdns []string
- Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- Project
Id string project_id
) The ID of the project the DNS stage is associated with.- Tls
Stage stringId - The TLS stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified.
- pipeline
Id String - The ID of the pipeline.
- backend
Stage StringId - The backend stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - cache
Stage StringId - The cache stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - fqdns List<String>
- Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- project
Id String project_id
) The ID of the project the DNS stage is associated with.- tls
Stage StringId - The TLS stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified.
- pipeline
Id string - The ID of the pipeline.
- backend
Stage stringId - The backend stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - cache
Stage stringId - The cache stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - fqdns string[]
- Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- project
Id string project_id
) The ID of the project the DNS stage is associated with.- tls
Stage stringId - The TLS stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified.
- pipeline_
id str - The ID of the pipeline.
- backend_
stage_ strid - The backend stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - cache_
stage_ strid - The cache stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - fqdns Sequence[str]
- Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- project_
id str project_id
) The ID of the project the DNS stage is associated with.- tls_
stage_ strid - The TLS stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified.
- pipeline
Id String - The ID of the pipeline.
- backend
Stage StringId - The backend stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - cache
Stage StringId - The cache stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - fqdns List<String>
- Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- project
Id String project_id
) The ID of the project the DNS stage is associated with.- tls
Stage StringId - The TLS stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the EdgeServicesDnsStage resource produces the following output properties:
- created_
at str - The date and time of the creation of the DNS stage.
- id str
- The provider-assigned unique ID for this managed resource.
- type str
- The type of the stage.
- updated_
at str - The date and time of the last update of the DNS stage.
Look up Existing EdgeServicesDnsStage Resource
Get an existing EdgeServicesDnsStage 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?: EdgeServicesDnsStageState, opts?: CustomResourceOptions): EdgeServicesDnsStage
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backend_stage_id: Optional[str] = None,
cache_stage_id: Optional[str] = None,
created_at: Optional[str] = None,
fqdns: Optional[Sequence[str]] = None,
pipeline_id: Optional[str] = None,
project_id: Optional[str] = None,
tls_stage_id: Optional[str] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None) -> EdgeServicesDnsStage
func GetEdgeServicesDnsStage(ctx *Context, name string, id IDInput, state *EdgeServicesDnsStageState, opts ...ResourceOption) (*EdgeServicesDnsStage, error)
public static EdgeServicesDnsStage Get(string name, Input<string> id, EdgeServicesDnsStageState? state, CustomResourceOptions? opts = null)
public static EdgeServicesDnsStage get(String name, Output<String> id, EdgeServicesDnsStageState state, CustomResourceOptions options)
resources: _: type: scaleway:EdgeServicesDnsStage 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.
- Backend
Stage stringId - The backend stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - Cache
Stage stringId - The cache stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - Created
At string - The date and time of the creation of the DNS stage.
- Fqdns List<string>
- Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- Pipeline
Id string - The ID of the pipeline.
- Project
Id string project_id
) The ID of the project the DNS stage is associated with.- Tls
Stage stringId - The TLS stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - Type string
- The type of the stage.
- Updated
At string - The date and time of the last update of the DNS stage.
- Backend
Stage stringId - The backend stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - Cache
Stage stringId - The cache stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - Created
At string - The date and time of the creation of the DNS stage.
- Fqdns []string
- Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- Pipeline
Id string - The ID of the pipeline.
- Project
Id string project_id
) The ID of the project the DNS stage is associated with.- Tls
Stage stringId - The TLS stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - Type string
- The type of the stage.
- Updated
At string - The date and time of the last update of the DNS stage.
- backend
Stage StringId - The backend stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - cache
Stage StringId - The cache stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - created
At String - The date and time of the creation of the DNS stage.
- fqdns List<String>
- Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- pipeline
Id String - The ID of the pipeline.
- project
Id String project_id
) The ID of the project the DNS stage is associated with.- tls
Stage StringId - The TLS stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - type String
- The type of the stage.
- updated
At String - The date and time of the last update of the DNS stage.
- backend
Stage stringId - The backend stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - cache
Stage stringId - The cache stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - created
At string - The date and time of the creation of the DNS stage.
- fqdns string[]
- Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- pipeline
Id string - The ID of the pipeline.
- project
Id string project_id
) The ID of the project the DNS stage is associated with.- tls
Stage stringId - The TLS stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - type string
- The type of the stage.
- updated
At string - The date and time of the last update of the DNS stage.
- backend_
stage_ strid - The backend stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - cache_
stage_ strid - The cache stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - created_
at str - The date and time of the creation of the DNS stage.
- fqdns Sequence[str]
- Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- pipeline_
id str - The ID of the pipeline.
- project_
id str project_id
) The ID of the project the DNS stage is associated with.- tls_
stage_ strid - The TLS stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - type str
- The type of the stage.
- updated_
at str - The date and time of the last update of the DNS stage.
- backend
Stage StringId - The backend stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - cache
Stage StringId - The cache stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - created
At String - The date and time of the creation of the DNS stage.
- fqdns List<String>
- Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- pipeline
Id String - The ID of the pipeline.
- project
Id String project_id
) The ID of the project the DNS stage is associated with.- tls
Stage StringId - The TLS stage ID the DNS stage will be linked to. Only one of
backend_stage_id
,cache_stage_id
andtls_stage_id
should be specified. - type String
- The type of the stage.
- updated
At String - The date and time of the last update of the DNS stage.
Import
DNS stages can be imported using the {id}
, e.g.
bash
$ pulumi import scaleway:index/edgeServicesDnsStage:EdgeServicesDnsStage basic 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.