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.edgeservices.CacheStage("main", {
pipelineId: mainScalewayEdgeServicesPipeline.id,
backendStageId: mainScalewayEdgeServicesBackendStage.id,
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.edgeservices.CacheStage("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/edgeservices"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := edgeservices.NewCacheStage(ctx, "main", &edgeservices.CacheStageArgs{
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.Edgeservices.CacheStage("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.edgeservices.CacheStage;
import com.pulumi.scaleway.edgeservices.CacheStageArgs;
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 CacheStage("main", CacheStageArgs.builder()
.pipelineId(mainScalewayEdgeServicesPipeline.id())
.backendStageId(mainScalewayEdgeServicesBackendStage.id())
.build());
}
}
resources:
main:
type: scaleway:edgeservices:CacheStage
properties:
pipelineId: ${mainScalewayEdgeServicesPipeline.id}
backendStageId: ${mainScalewayEdgeServicesBackendStage.id}
Purge request
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.edgeservices.CacheStage("main", {
pipelineId: mainScalewayEdgeServicesPipeline.id,
backendStageId: mainScalewayEdgeServicesBackendStage.id,
purge: [{
pipelineId: mainScalewayEdgeServicesPipeline.id,
all: true,
}],
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.edgeservices.CacheStage("main",
pipeline_id=main_scaleway_edge_services_pipeline["id"],
backend_stage_id=main_scaleway_edge_services_backend_stage["id"],
purge=[{
"pipelineId": main_scaleway_edge_services_pipeline["id"],
"all": True,
}])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/edgeservices"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := edgeservices.NewCacheStage(ctx, "main", &edgeservices.CacheStageArgs{
PipelineId: pulumi.Any(mainScalewayEdgeServicesPipeline.Id),
BackendStageId: pulumi.Any(mainScalewayEdgeServicesBackendStage.Id),
Purge: []map[string]interface{}{
map[string]interface{}{
"pipelineId": mainScalewayEdgeServicesPipeline.Id,
"all": true,
},
},
})
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.Edgeservices.CacheStage("main", new()
{
PipelineId = mainScalewayEdgeServicesPipeline.Id,
BackendStageId = mainScalewayEdgeServicesBackendStage.Id,
Purge = new[]
{
{
{ "pipelineId", mainScalewayEdgeServicesPipeline.Id },
{ "all", true },
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.edgeservices.CacheStage;
import com.pulumi.scaleway.edgeservices.CacheStageArgs;
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 CacheStage("main", CacheStageArgs.builder()
.pipelineId(mainScalewayEdgeServicesPipeline.id())
.backendStageId(mainScalewayEdgeServicesBackendStage.id())
.purge(List.of(Map.ofEntries(
Map.entry("pipelineId", mainScalewayEdgeServicesPipeline.id()),
Map.entry("all", true)
)))
.build());
}
}
resources:
main:
type: scaleway:edgeservices:CacheStage
properties:
pipelineId: ${mainScalewayEdgeServicesPipeline.id}
backendStageId: ${mainScalewayEdgeServicesBackendStage.id}
purge:
- pipelineId: ${mainScalewayEdgeServicesPipeline.id}
all: true
Create CacheStage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CacheStage(name: string, args: CacheStageArgs, opts?: CustomResourceOptions);@overload
def CacheStage(resource_name: str,
args: CacheStageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CacheStage(resource_name: str,
opts: Optional[ResourceOptions] = None,
pipeline_id: Optional[str] = None,
backend_stage_id: Optional[str] = None,
fallback_ttl: Optional[int] = None,
include_cookies: Optional[bool] = None,
project_id: Optional[str] = None,
purge_requests: Optional[Sequence[CacheStagePurgeRequestArgs]] = None,
refresh_cache: Optional[str] = None,
route_stage_id: Optional[str] = None,
waf_stage_id: Optional[str] = None)func NewCacheStage(ctx *Context, name string, args CacheStageArgs, opts ...ResourceOption) (*CacheStage, error)public CacheStage(string name, CacheStageArgs args, CustomResourceOptions? opts = null)
public CacheStage(String name, CacheStageArgs args)
public CacheStage(String name, CacheStageArgs args, CustomResourceOptions options)
type: scaleway:edgeservices:CacheStage
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 CacheStageArgs
- 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 CacheStageArgs
- 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 CacheStageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CacheStageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CacheStageArgs
- 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 cacheStageResource = new Scaleway.Edgeservices.CacheStage("cacheStageResource", new()
{
PipelineId = "string",
BackendStageId = "string",
FallbackTtl = 0,
IncludeCookies = false,
ProjectId = "string",
PurgeRequests = new[]
{
new Scaleway.Edgeservices.Inputs.CacheStagePurgeRequestArgs
{
All = false,
Assets = new[]
{
"string",
},
PipelineId = "string",
},
},
RefreshCache = "string",
RouteStageId = "string",
WafStageId = "string",
});
example, err := edgeservices.NewCacheStage(ctx, "cacheStageResource", &edgeservices.CacheStageArgs{
PipelineId: pulumi.String("string"),
BackendStageId: pulumi.String("string"),
FallbackTtl: pulumi.Int(0),
IncludeCookies: pulumi.Bool(false),
ProjectId: pulumi.String("string"),
PurgeRequests: edgeservices.CacheStagePurgeRequestArray{
&edgeservices.CacheStagePurgeRequestArgs{
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 cacheStageResource = new CacheStage("cacheStageResource", CacheStageArgs.builder()
.pipelineId("string")
.backendStageId("string")
.fallbackTtl(0)
.includeCookies(false)
.projectId("string")
.purgeRequests(CacheStagePurgeRequestArgs.builder()
.all(false)
.assets("string")
.pipelineId("string")
.build())
.refreshCache("string")
.routeStageId("string")
.wafStageId("string")
.build());
cache_stage_resource = scaleway.edgeservices.CacheStage("cacheStageResource",
pipeline_id="string",
backend_stage_id="string",
fallback_ttl=0,
include_cookies=False,
project_id="string",
purge_requests=[{
"all": False,
"assets": ["string"],
"pipeline_id": "string",
}],
refresh_cache="string",
route_stage_id="string",
waf_stage_id="string")
const cacheStageResource = new scaleway.edgeservices.CacheStage("cacheStageResource", {
pipelineId: "string",
backendStageId: "string",
fallbackTtl: 0,
includeCookies: false,
projectId: "string",
purgeRequests: [{
all: false,
assets: ["string"],
pipelineId: "string",
}],
refreshCache: "string",
routeStageId: "string",
wafStageId: "string",
});
type: scaleway:edgeservices:CacheStage
properties:
backendStageId: string
fallbackTtl: 0
includeCookies: false
pipelineId: string
projectId: string
purgeRequests:
- all: false
assets:
- string
pipelineId: string
refreshCache: string
routeStageId: string
wafStageId: string
CacheStage 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 CacheStage 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_idandwaf_stage_idshould be specified. - Fallback
Ttl int - The Time To Live (TTL) in seconds. Defines how long content is cached.
- bool
- Defines whether responses to requests with cookies must be stored in the cache.
- Project
Id string project_id) The ID of the project the cache stage is associated with.- Purge
Requests List<Pulumiverse.Scaleway. Edgeservices. Inputs. 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_idandwaf_stage_idshould be specified. - Waf
Stage stringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id,route_stage_idandwaf_stage_idshould 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_idandwaf_stage_idshould be specified. - Fallback
Ttl int - The Time To Live (TTL) in seconds. Defines how long content is cached.
- bool
- Defines whether responses to requests with cookies must be stored in the cache.
- Project
Id string project_id) The ID of the project the cache stage is associated with.- Purge
Requests []CacheStage 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_idandwaf_stage_idshould be specified. - Waf
Stage stringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id,route_stage_idandwaf_stage_idshould 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_idandwaf_stage_idshould be specified. - fallback
Ttl Integer - The Time To Live (TTL) in seconds. Defines how long content is cached.
- Boolean
- Defines whether responses to requests with cookies must be stored in the cache.
- project
Id String project_id) The ID of the project the cache stage is associated with.- purge
Requests List<CacheStage 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_idandwaf_stage_idshould be specified. - waf
Stage StringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id,route_stage_idandwaf_stage_idshould 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_idandwaf_stage_idshould be specified. - fallback
Ttl number - The Time To Live (TTL) in seconds. Defines how long content is cached.
- boolean
- Defines whether responses to requests with cookies must be stored in the cache.
- project
Id string project_id) The ID of the project the cache stage is associated with.- purge
Requests CacheStage 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_idandwaf_stage_idshould be specified. - waf
Stage stringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id,route_stage_idandwaf_stage_idshould 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_idandwaf_stage_idshould be specified. - fallback_
ttl int - The Time To Live (TTL) in seconds. Defines how long content is cached.
- bool
- Defines whether responses to requests with cookies must be stored in the cache.
- project_
id str project_id) The ID of the project the cache stage is associated with.- purge_
requests Sequence[CacheStage 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_idandwaf_stage_idshould be specified. - waf_
stage_ strid - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id,route_stage_idandwaf_stage_idshould 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_idandwaf_stage_idshould be specified. - fallback
Ttl Number - The Time To Live (TTL) in seconds. Defines how long content is cached.
- Boolean
- Defines whether responses to requests with cookies must be stored in the cache.
- 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_idandwaf_stage_idshould be specified. - waf
Stage StringId - The WAF stage ID the cache stage will be linked to. Only one of
backend_stage_id,route_stage_idandwaf_stage_idshould be specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the CacheStage 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 CacheStage Resource
Get an existing CacheStage 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?: CacheStageState, opts?: CustomResourceOptions): CacheStage@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,
include_cookies: Optional[bool] = None,
pipeline_id: Optional[str] = None,
project_id: Optional[str] = None,
purge_requests: Optional[Sequence[CacheStagePurgeRequestArgs]] = None,
refresh_cache: Optional[str] = None,
route_stage_id: Optional[str] = None,
updated_at: Optional[str] = None,
waf_stage_id: Optional[str] = None) -> CacheStagefunc GetCacheStage(ctx *Context, name string, id IDInput, state *CacheStageState, opts ...ResourceOption) (*CacheStage, error)public static CacheStage Get(string name, Input<string> id, CacheStageState? state, CustomResourceOptions? opts = null)public static CacheStage get(String name, Output<String> id, CacheStageState state, CustomResourceOptions options)resources: _: type: scaleway:edgeservices:CacheStage 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_idandwaf_stage_idshould 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.
- bool
- Defines whether responses to requests with cookies must be stored in the cache.
- 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. Edgeservices. Inputs. 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_idandwaf_stage_idshould 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_idandwaf_stage_idshould be specified.
- Backend
Stage stringId - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id,route_stage_idandwaf_stage_idshould 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.
- bool
- Defines whether responses to requests with cookies must be stored in the cache.
- 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 []CacheStage 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_idandwaf_stage_idshould 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_idandwaf_stage_idshould be specified.
- backend
Stage StringId - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id,route_stage_idandwaf_stage_idshould 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.
- Boolean
- Defines whether responses to requests with cookies must be stored in the cache.
- 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<CacheStage 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_idandwaf_stage_idshould 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_idandwaf_stage_idshould be specified.
- backend
Stage stringId - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id,route_stage_idandwaf_stage_idshould 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.
- boolean
- Defines whether responses to requests with cookies must be stored in the cache.
- 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 CacheStage 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_idandwaf_stage_idshould 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_idandwaf_stage_idshould be specified.
- backend_
stage_ strid - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id,route_stage_idandwaf_stage_idshould 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.
- bool
- Defines whether responses to requests with cookies must be stored in the cache.
- 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[CacheStage 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_idandwaf_stage_idshould 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_idandwaf_stage_idshould be specified.
- backend
Stage StringId - The backend stage ID the cache stage will be linked to. Only one of
backend_stage_id,route_stage_idandwaf_stage_idshould 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.
- Boolean
- Defines whether responses to requests with cookies must be stored in the cache.
- 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_idandwaf_stage_idshould 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_idandwaf_stage_idshould be specified.
Supporting Types
CacheStagePurgeRequest, CacheStagePurgeRequestArgs
- 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:edgeservices/cacheStage:CacheStage 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
scalewayTerraform Provider.
