@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
110 lines • 3.54 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets information about an Edge Services cache stage.
*
* A cache stage defines the caching behavior for an Edge Services pipeline, including TTL and whether cookies are included in cache keys.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Retrieve an Edge Services cache stage by its ID
* const byId = scaleway.edgeservices.getCacheStage({
* cacheStageId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Retrieve an Edge Services cache stage by pipeline ID
* const byPipeline = scaleway.edgeservices.getCacheStage({
* pipelineId: main.id,
* });
* ```
*/
export declare function getCacheStage(args?: GetCacheStageArgs, opts?: pulumi.InvokeOptions): Promise<GetCacheStageResult>;
/**
* A collection of arguments for invoking getCacheStage.
*/
export interface GetCacheStageArgs {
/**
* The ID of the cache stage. Conflicts with all filter arguments below.
*
* The following filter arguments are supported (cannot be used with `cacheStageId`):
*/
cacheStageId?: string;
/**
* The ID of the pipeline.
*/
pipelineId?: string;
}
/**
* A collection of values returned by getCacheStage.
*/
export interface GetCacheStageResult {
readonly backendStageId: string;
readonly cacheStageId?: string;
readonly createdAt: string;
readonly fallbackTtl: number;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly includeCookies: boolean;
readonly pipelineId?: string;
readonly projectId: string;
readonly purgeRequests: outputs.edgeservices.GetCacheStagePurgeRequest[];
readonly refreshCache: string;
readonly routeStageId: string;
readonly updatedAt: string;
readonly wafStageId: string;
}
/**
* Gets information about an Edge Services cache stage.
*
* A cache stage defines the caching behavior for an Edge Services pipeline, including TTL and whether cookies are included in cache keys.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Retrieve an Edge Services cache stage by its ID
* const byId = scaleway.edgeservices.getCacheStage({
* cacheStageId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Retrieve an Edge Services cache stage by pipeline ID
* const byPipeline = scaleway.edgeservices.getCacheStage({
* pipelineId: main.id,
* });
* ```
*/
export declare function getCacheStageOutput(args?: GetCacheStageOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCacheStageResult>;
/**
* A collection of arguments for invoking getCacheStage.
*/
export interface GetCacheStageOutputArgs {
/**
* The ID of the cache stage. Conflicts with all filter arguments below.
*
* The following filter arguments are supported (cannot be used with `cacheStageId`):
*/
cacheStageId?: pulumi.Input<string | undefined>;
/**
* The ID of the pipeline.
*/
pipelineId?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getCacheStage.d.ts.map