import * as pulumi from "@pulumi/pulumi"; /** * A flag to solve the challenge. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ctfd from "@ctfer-io/pulumi-ctfd"; * * const http = new ctfd.ChallengeDynamic("http", { * category: "misc", * description: "...", * value: 500, * decay: 100, * minimum: 50, * state: "visible", * "function": "logarithmic", * topics: ["Misc"], * tags: [ * "misc", * "basic", * ], * }); * const httpFlag = new ctfd.Flag("httpFlag", { * challengeId: http.id, * content: "CTF{some_flag}", * }); * ``` */ export declare class Flag extends pulumi.CustomResource { /** * Get an existing Flag 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, state?: FlagState, opts?: pulumi.CustomResourceOptions): Flag; /** * Returns true if the given object is an instance of Flag. 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 Flag; /** * Challenge of the flag. */ readonly challengeId: pulumi.Output; /** * The actual flag to match. Consider using the convention `MYCTF{value}` with `MYCTF` being the shortcode of your event's name and `value` depending on each challenge. */ readonly content: pulumi.Output; /** * The flag sensitivity information, either case*sensitive or case*insensitive */ readonly data: pulumi.Output; /** * The type of the flag, could be either static or regex */ readonly type: pulumi.Output; /** * Create a Flag 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: FlagArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Flag resources. */ export interface FlagState { /** * Challenge of the flag. */ challengeId?: pulumi.Input; /** * The actual flag to match. Consider using the convention `MYCTF{value}` with `MYCTF` being the shortcode of your event's name and `value` depending on each challenge. */ content?: pulumi.Input; /** * The flag sensitivity information, either case*sensitive or case*insensitive */ data?: pulumi.Input; /** * The type of the flag, could be either static or regex */ type?: pulumi.Input; } /** * The set of arguments for constructing a Flag resource. */ export interface FlagArgs { /** * Challenge of the flag. */ challengeId: pulumi.Input; /** * The actual flag to match. Consider using the convention `MYCTF{value}` with `MYCTF` being the shortcode of your event's name and `value` depending on each challenge. */ content: pulumi.Input; /** * The flag sensitivity information, either case*sensitive or case*insensitive */ data?: pulumi.Input; /** * The type of the flag, could be either static or regex */ type?: pulumi.Input; }