UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

204 lines 7.88 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Creates and manages Scaleway Edge Services Cache Stages. * * ## Example Usage * * ### Basic * * ```typescript * 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 request * * ```typescript * 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 * * Cache stages can be imported using the `{id}`, e.g. * * ```sh * $ pulumi import scaleway:edgeservices/cacheStage:CacheStage basic 11111111-1111-1111-1111-111111111111 * ``` */ export declare class CacheStage extends pulumi.CustomResource { /** * Get an existing CacheStage resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CacheStageState, opts?: pulumi.CustomResourceOptions): CacheStage; /** * Returns true if the given object is an instance of CacheStage. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is CacheStage; /** * The backend stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified. */ readonly backendStageId: pulumi.Output<string>; /** * The date and time of the creation of the cache stage. */ readonly createdAt: pulumi.Output<string>; /** * The Time To Live (TTL) in seconds. Defines how long content is cached. */ readonly fallbackTtl: pulumi.Output<number | undefined>; /** * Defines whether responses to requests with cookies must be stored in the cache. */ readonly includeCookies: pulumi.Output<boolean | undefined>; /** * The ID of the pipeline. */ readonly pipelineId: pulumi.Output<string>; /** * `projectId`) The ID of the project the cache stage is associated with. */ readonly projectId: pulumi.Output<string>; /** * The Scaleway Object Storage origin bucket (S3) linked to the backend stage. */ readonly purgeRequests: pulumi.Output<outputs.edgeservices.CacheStagePurgeRequest[] | undefined>; /** * Trigger a refresh of the cache by changing this field's value. */ readonly refreshCache: pulumi.Output<string | undefined>; /** * The route stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified. */ readonly routeStageId: pulumi.Output<string>; /** * The date and time of the last update of the cache stage. */ readonly updatedAt: pulumi.Output<string>; /** * The WAF stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified. */ readonly wafStageId: pulumi.Output<string>; /** * Create a CacheStage resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: CacheStageArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CacheStage resources. */ export interface CacheStageState { /** * The backend stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified. */ backendStageId?: pulumi.Input<string | undefined>; /** * The date and time of the creation of the cache stage. */ createdAt?: pulumi.Input<string | undefined>; /** * The Time To Live (TTL) in seconds. Defines how long content is cached. */ fallbackTtl?: pulumi.Input<number | undefined>; /** * Defines whether responses to requests with cookies must be stored in the cache. */ includeCookies?: pulumi.Input<boolean | undefined>; /** * The ID of the pipeline. */ pipelineId?: pulumi.Input<string | undefined>; /** * `projectId`) The ID of the project the cache stage is associated with. */ projectId?: pulumi.Input<string | undefined>; /** * The Scaleway Object Storage origin bucket (S3) linked to the backend stage. */ purgeRequests?: pulumi.Input<pulumi.Input<inputs.edgeservices.CacheStagePurgeRequest>[] | undefined>; /** * Trigger a refresh of the cache by changing this field's value. */ refreshCache?: pulumi.Input<string | undefined>; /** * The route stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified. */ routeStageId?: pulumi.Input<string | undefined>; /** * The date and time of the last update of the cache stage. */ updatedAt?: pulumi.Input<string | undefined>; /** * The WAF stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified. */ wafStageId?: pulumi.Input<string | undefined>; } /** * The set of arguments for constructing a CacheStage resource. */ export interface CacheStageArgs { /** * The backend stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified. */ backendStageId?: pulumi.Input<string | undefined>; /** * The Time To Live (TTL) in seconds. Defines how long content is cached. */ fallbackTtl?: pulumi.Input<number | undefined>; /** * Defines whether responses to requests with cookies must be stored in the cache. */ includeCookies?: pulumi.Input<boolean | undefined>; /** * The ID of the pipeline. */ pipelineId: pulumi.Input<string>; /** * `projectId`) The ID of the project the cache stage is associated with. */ projectId?: pulumi.Input<string | undefined>; /** * The Scaleway Object Storage origin bucket (S3) linked to the backend stage. */ purgeRequests?: pulumi.Input<pulumi.Input<inputs.edgeservices.CacheStagePurgeRequest>[] | undefined>; /** * Trigger a refresh of the cache by changing this field's value. */ refreshCache?: pulumi.Input<string | undefined>; /** * The route stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified. */ routeStageId?: pulumi.Input<string | undefined>; /** * The WAF stage ID the cache stage will be linked to. Only one of `backendStageId`, `routeStageId` and `wafStageId` should be specified. */ wafStageId?: pulumi.Input<string | undefined>; } //# sourceMappingURL=cacheStage.d.ts.map