@ctfer-io/pulumi-ctfd
Version:
The CTFd provider for Pulumi, to manage its resources as code.
94 lines • 3.05 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The solution to a challenge.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as ctfd from "@ctfer-io/pulumi-ctfd";
*
* const example = new ctfd.ChallengeStandard("example", {
* category: "test",
* description: "Example challenge description...",
* value: 500,
* });
* const wu = new ctfd.Solution("wu", {
* challengeId: example.id,
* content: "Here is how to solve the challenge: ...",
* state: "visible",
* });
* ```
*/
export declare class Solution extends pulumi.CustomResource {
/**
* Get an existing Solution 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?: SolutionState, opts?: pulumi.CustomResourceOptions): Solution;
/**
* Returns true if the given object is an instance of Solution. 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 Solution;
/**
* Challenge of the solution.
*/
readonly challengeId: pulumi.Output<string>;
/**
* The solution to the challenge, in markdown.
*/
readonly content: pulumi.Output<string | undefined>;
/**
* State of the solution, either hidden or visible.
*/
readonly state: pulumi.Output<string>;
/**
* Create a Solution 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: SolutionArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Solution resources.
*/
export interface SolutionState {
/**
* Challenge of the solution.
*/
challengeId?: pulumi.Input<string>;
/**
* The solution to the challenge, in markdown.
*/
content?: pulumi.Input<string>;
/**
* State of the solution, either hidden or visible.
*/
state?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Solution resource.
*/
export interface SolutionArgs {
/**
* Challenge of the solution.
*/
challengeId: pulumi.Input<string>;
/**
* The solution to the challenge, in markdown.
*/
content?: pulumi.Input<string>;
/**
* State of the solution, either hidden or visible.
*/
state?: pulumi.Input<string>;
}
//# sourceMappingURL=solution.d.ts.map