scaleway.EdgeServicesCacheStage
Explore with Pulumi AI
Creates and manages Scaleway Edge Services Cache Stages.
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.EdgeServicesCacheStage("main", {
pipelineId: mainScalewayEdgeServicesPipeline.id,
backendStageId: mainScalewayEdgeServicesBackendStage.id,
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.EdgeServicesCacheStage("main",
pipeline_id=main_scaleway_edge_services_pipeline["id"],
backend_stage_id=main_scaleway_edge_services_backend_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 {
_, err := scaleway.NewEdgeServicesCacheStage(ctx, "main", &scaleway.EdgeServicesCacheStageArgs{
PipelineId: pulumi.Any(mainScalewayEdgeServicesPipeline.Id),
BackendStageId: pulumi.Any(mainScalewayEdgeServicesBackendStage.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.EdgeServicesCacheStage("main", new()
{
PipelineId = mainScalewayEdgeServicesPipeline.Id,
BackendStageId = mainScalewayEdgeServicesBackendStage.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.EdgeServicesCacheStage;
import com.pulumi.scaleway.EdgeServicesCacheStageArgs;
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 EdgeServicesCacheStage("main", EdgeServicesCacheStageArgs.builder()
.pipelineId(mainScalewayEdgeServicesPipeline.id())
.backendStageId(mainScalewayEdgeServicesBackendStage.id())
.build());
}
}
resources:
main:
type: scaleway:EdgeServicesCacheStage
properties:
pipelineId: ${mainScalewayEdgeServicesPipeline.id}
backendStageId: ${mainScalewayEdgeServicesBackendStage.id}
Purge request
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
main:
type: scaleway:EdgeServicesCacheStage
properties:
pipelineId: ${mainScalewayEdgeServicesPipeline.id}
backendStageId: ${mainScalewayEdgeServicesBackendStage.id}
purge:
- pipelineId: ${mainScalewayEdgeServicesPipeline.id}
all: true
Create EdgeServicesCacheStage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EdgeServicesCacheStage(name: string, args: EdgeServicesCacheStageArgs, opts?: CustomResourceOptions);
@overload
def EdgeServicesCacheStage(resource_name: str,
args: EdgeServicesCacheStageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EdgeServicesCacheStage(resource_name: str,
opts: Optional[ResourceOptions] = None,
pipeline_id: Optional[str] = None,
backend_stage_id: Optional[str] = None,
fallback_ttl: Optional[int] = None,
project_id: Optional[str] = None,
purge_requests: Optional[Sequence[EdgeServicesCacheStagePurgeRequestArgs]] = None,
refresh_cache: Optional[str] = None,
route_stage_id: Optional[str] = None,
waf_stage_id: Optional[str] = None)
func NewEdgeServicesCacheStage(ctx *Context, name string, args EdgeServicesCacheStageArgs, opts ...ResourceOption) (*EdgeServicesCacheStage, error)
public EdgeServicesCacheStage(string name, EdgeServicesCacheStageArgs args, CustomResourceOptions? opts = null)
public EdgeServicesCacheStage(String name, EdgeServicesCacheStageArgs args)
public EdgeServicesCacheStage(String name, EdgeServicesCacheStageArgs args, CustomResourceOptions options)
type: scaleway:EdgeServicesCacheStage
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 EdgeServicesCacheStageArgs
- 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 EdgeServicesCacheStageArgs
- 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 EdgeServicesCacheStageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EdgeServicesCacheStageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EdgeServicesCacheStageArgs
- 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 edgeServicesCacheStageResource = new Scaleway.EdgeServicesCacheStage("edgeServicesCacheStageResource", new()
{
PipelineId = "string",
BackendStageId = "string",
FallbackTtl = 0,
ProjectId = "string",
PurgeRequests = new[]
{
new Scaleway.Inputs.EdgeServicesCacheStagePurgeRequestArgs
{
All = false,
Assets = new[]
{
"string",
},
PipelineId = "string",
},
},
RefreshCache = "string",
RouteStageId = "string",
WafStageId = "string",
});
example, err := scaleway.NewEdgeServicesCacheStage(ctx, "edgeServicesCacheStageResource", &scaleway.EdgeServicesCacheStageArgs{
PipelineId: pulumi.String("string"),
BackendStageId: pulumi.String("string"),
FallbackTtl: pulumi.Int(0),
ProjectId: pulumi.String("string"),
PurgeRequests: scaleway.EdgeServicesCacheStagePurgeRequestArray{
&scaleway.EdgeServicesCacheStagePurgeRequestArgs{
All: pulumi.Bool(false),
Assets: pulumi.StringArray{
pulumi.String("string"),
},
PipelineId: pulumi.String("string"),
},
},
RefreshCache: pulumi.String("string"),
RouteStageId: pulumi.String("string"),
WafStageId: pulumi.String("string"),
})
var edgeServicesCacheStageResource = new EdgeServicesCacheStage("edgeServicesCacheStageResource", EdgeServicesCacheStageArgs.builder()
.pipelineId("string")
.backendStageId("string")
.fallbackTtl(0)
.projectId("string")
.purgeRequests(EdgeServicesCacheStagePurgeRequestArgs.builder()
.all(false)
.assets("string")
.pipelineId("string")
.build())
.refreshCache("string")
.routeStageId("string")
.wafStageId("string")
.build());
edge_services_cache_stage_resource = scaleway.EdgeServicesCacheStage("edgeServicesCacheStageResource",
pipeline_id="string",
backend_stage_id="string",
fallback_ttl=0,
project_id="string",
purge_requests=[{
"all": False,
"assets": ["string"],
"pipeline_id": "string",
}],
refresh_cache="string",
route_stage_id="string",
waf_stage_id="string")
const edgeServicesCacheStageResource = new scaleway.EdgeServicesCacheStage("edgeServicesCacheStageResource", {
pipelineId: "string",
backendStageId: "string",
fallbackTtl: 0,
projectId: "string",
purgeRequests: [{
all: false,
assets: ["string"],
pipelineId: "string",
}],
refreshCache: "string",
routeStageId: "string",
wafStageId: "string",
});
type: scaleway:EdgeServicesCacheStage
properties:
backendStageId: string
fallbackTtl: 0
pipelineId: string
projectId: string
purgeRequests:
- all: false
assets:
- string
pipelineId: string
refreshCache: string
routeStageId: string
wafStageId: string
EdgeServicesCacheStage 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 EdgeServicesCacheStage resource accepts the following input properties:
- Pipeline
Id string - The ID of the pipeline.
- Backend
Stage stringId - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - Fallback
Ttl int - The Time To Live (TTL) in seconds. Defines how long content is cached.
- Project
Id string project_id
) The ID of the project the cache stage is associated with.- Purge
Requests List<Pulumiverse.Scaleway. Inputs. Edge Services Cache Stage Purge Request> - The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
- Refresh
Cache string - Trigger a refresh of the cache by changing this field's value.
- Route
Stage stringId - The route stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - Waf
Stage stringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified.
- Pipeline
Id string - The ID of the pipeline.
- Backend
Stage stringId - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - Fallback
Ttl int - The Time To Live (TTL) in seconds. Defines how long content is cached.
- Project
Id string project_id
) The ID of the project the cache stage is associated with.- Purge
Requests []EdgeServices Cache Stage Purge Request Args - The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
- Refresh
Cache string - Trigger a refresh of the cache by changing this field's value.
- Route
Stage stringId - The route stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - Waf
Stage stringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified.
- pipeline
Id String - The ID of the pipeline.
- backend
Stage StringId - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - fallback
Ttl Integer - The Time To Live (TTL) in seconds. Defines how long content is cached.
- project
Id String project_id
) The ID of the project the cache stage is associated with.- purge
Requests List<EdgeServices Cache Stage Purge Request> - The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
- refresh
Cache String - Trigger a refresh of the cache by changing this field's value.
- route
Stage StringId - The route stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - waf
Stage StringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified.
- pipeline
Id string - The ID of the pipeline.
- backend
Stage stringId - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - fallback
Ttl number - The Time To Live (TTL) in seconds. Defines how long content is cached.
- project
Id string project_id
) The ID of the project the cache stage is associated with.- purge
Requests EdgeServices Cache Stage Purge Request[] - The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
- refresh
Cache string - Trigger a refresh of the cache by changing this field's value.
- route
Stage stringId - The route stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - waf
Stage stringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified.
- pipeline_
id str - The ID of the pipeline.
- backend_
stage_ strid - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - fallback_
ttl int - The Time To Live (TTL) in seconds. Defines how long content is cached.
- project_
id str project_id
) The ID of the project the cache stage is associated with.- purge_
requests Sequence[EdgeServices Cache Stage Purge Request Args] - The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
- refresh_
cache str - Trigger a refresh of the cache by changing this field's value.
- route_
stage_ strid - The route stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - waf_
stage_ strid - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified.
- pipeline
Id String - The ID of the pipeline.
- backend
Stage StringId - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - fallback
Ttl Number - The Time To Live (TTL) in seconds. Defines how long content is cached.
- project
Id String project_id
) The ID of the project the cache stage is associated with.- purge
Requests List<Property Map> - The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
- refresh
Cache String - Trigger a refresh of the cache by changing this field's value.
- route
Stage StringId - The route stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - waf
Stage StringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the EdgeServicesCacheStage resource produces the following output properties:
- created_
at str - The date and time of the creation of the cache stage.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - The date and time of the last update of the cache stage.
Look up Existing EdgeServicesCacheStage Resource
Get an existing EdgeServicesCacheStage 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?: EdgeServicesCacheStageState, opts?: CustomResourceOptions): EdgeServicesCacheStage
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backend_stage_id: Optional[str] = None,
created_at: Optional[str] = None,
fallback_ttl: Optional[int] = None,
pipeline_id: Optional[str] = None,
project_id: Optional[str] = None,
purge_requests: Optional[Sequence[EdgeServicesCacheStagePurgeRequestArgs]] = None,
refresh_cache: Optional[str] = None,
route_stage_id: Optional[str] = None,
updated_at: Optional[str] = None,
waf_stage_id: Optional[str] = None) -> EdgeServicesCacheStage
func GetEdgeServicesCacheStage(ctx *Context, name string, id IDInput, state *EdgeServicesCacheStageState, opts ...ResourceOption) (*EdgeServicesCacheStage, error)
public static EdgeServicesCacheStage Get(string name, Input<string> id, EdgeServicesCacheStageState? state, CustomResourceOptions? opts = null)
public static EdgeServicesCacheStage get(String name, Output<String> id, EdgeServicesCacheStageState state, CustomResourceOptions options)
resources: _: type: scaleway:EdgeServicesCacheStage 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 cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - Created
At string - The date and time of the creation of the cache stage.
- Fallback
Ttl int - The Time To Live (TTL) in seconds. Defines how long content is cached.
- Pipeline
Id string - The ID of the pipeline.
- Project
Id string project_id
) The ID of the project the cache stage is associated with.- Purge
Requests List<Pulumiverse.Scaleway. Inputs. Edge Services Cache Stage Purge Request> - The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
- Refresh
Cache string - Trigger a refresh of the cache by changing this field's value.
- Route
Stage stringId - The route stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - Updated
At string - The date and time of the last update of the cache stage.
- Waf
Stage stringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified.
- Backend
Stage stringId - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - Created
At string - The date and time of the creation of the cache stage.
- Fallback
Ttl int - The Time To Live (TTL) in seconds. Defines how long content is cached.
- Pipeline
Id string - The ID of the pipeline.
- Project
Id string project_id
) The ID of the project the cache stage is associated with.- Purge
Requests []EdgeServices Cache Stage Purge Request Args - The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
- Refresh
Cache string - Trigger a refresh of the cache by changing this field's value.
- Route
Stage stringId - The route stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - Updated
At string - The date and time of the last update of the cache stage.
- Waf
Stage stringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified.
- backend
Stage StringId - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - created
At String - The date and time of the creation of the cache stage.
- fallback
Ttl Integer - The Time To Live (TTL) in seconds. Defines how long content is cached.
- pipeline
Id String - The ID of the pipeline.
- project
Id String project_id
) The ID of the project the cache stage is associated with.- purge
Requests List<EdgeServices Cache Stage Purge Request> - The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
- refresh
Cache String - Trigger a refresh of the cache by changing this field's value.
- route
Stage StringId - The route stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - updated
At String - The date and time of the last update of the cache stage.
- waf
Stage StringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified.
- backend
Stage stringId - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - created
At string - The date and time of the creation of the cache stage.
- fallback
Ttl number - The Time To Live (TTL) in seconds. Defines how long content is cached.
- pipeline
Id string - The ID of the pipeline.
- project
Id string project_id
) The ID of the project the cache stage is associated with.- purge
Requests EdgeServices Cache Stage Purge Request[] - The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
- refresh
Cache string - Trigger a refresh of the cache by changing this field's value.
- route
Stage stringId - The route stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - updated
At string - The date and time of the last update of the cache stage.
- waf
Stage stringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified.
- backend_
stage_ strid - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - created_
at str - The date and time of the creation of the cache stage.
- fallback_
ttl int - The Time To Live (TTL) in seconds. Defines how long content is cached.
- pipeline_
id str - The ID of the pipeline.
- project_
id str project_id
) The ID of the project the cache stage is associated with.- purge_
requests Sequence[EdgeServices Cache Stage Purge Request Args] - The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
- refresh_
cache str - Trigger a refresh of the cache by changing this field's value.
- route_
stage_ strid - The route stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - updated_
at str - The date and time of the last update of the cache stage.
- waf_
stage_ strid - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified.
- backend
Stage StringId - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - created
At String - The date and time of the creation of the cache stage.
- fallback
Ttl Number - The Time To Live (TTL) in seconds. Defines how long content is cached.
- pipeline
Id String - The ID of the pipeline.
- project
Id String project_id
) The ID of the project the cache stage is associated with.- purge
Requests List<Property Map> - The Scaleway Object Storage origin bucket (S3) linked to the backend stage.
- refresh
Cache String - Trigger a refresh of the cache by changing this field's value.
- route
Stage StringId - The route stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified. - updated
At String - The date and time of the last update of the cache stage.
- waf
Stage StringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id
,route_stage_id
andwaf_stage_id
should be specified.
Supporting Types
EdgeServicesCacheStagePurgeRequest, EdgeServicesCacheStagePurgeRequestArgs
- All bool
- Defines whether to purge all content.
- Assets List<string>
- The list of asserts to purge.
- Pipeline
Id string - The pipeline ID in which the purge request will be created.
- All bool
- Defines whether to purge all content.
- Assets []string
- The list of asserts to purge.
- Pipeline
Id string - The pipeline ID in which the purge request will be created.
- all Boolean
- Defines whether to purge all content.
- assets List<String>
- The list of asserts to purge.
- pipeline
Id String - The pipeline ID in which the purge request will be created.
- all boolean
- Defines whether to purge all content.
- assets string[]
- The list of asserts to purge.
- pipeline
Id string - The pipeline ID in which the purge request will be created.
- all bool
- Defines whether to purge all content.
- assets Sequence[str]
- The list of asserts to purge.
- pipeline_
id str - The pipeline ID in which the purge request will be created.
- all Boolean
- Defines whether to purge all content.
- assets List<String>
- The list of asserts to purge.
- pipeline
Id String - The pipeline ID in which the purge request will be created.
Import
Cache stages can be imported using the {id}
, e.g.
bash
$ pulumi import scaleway:index/edgeServicesCacheStage:EdgeServicesCacheStage 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.