UNPKG

@formalco/pulumi

Version:

A Pulumi package for creating and managing Formal resources.

152 lines (151 loc) 5.5 kB
import * as pulumi from "@pulumi/pulumi"; /** * Registering a policy data loader with Formal. */ export declare class PolicyDataLoader extends pulumi.CustomResource { /** * Get an existing PolicyDataLoader 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?: PolicyDataLoaderState, opts?: pulumi.CustomResourceOptions): PolicyDataLoader; /** * Returns true if the given object is an instance of PolicyDataLoader. 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 PolicyDataLoader; /** * When the policy data loader was created. */ readonly createdAt: pulumi.Output<string>; /** * Policy data loader description. */ readonly description: pulumi.Output<string>; /** * The key to access the output data of this policy data loader. */ readonly key: pulumi.Output<string>; /** * Friendly name for this policy data loader. */ readonly name: pulumi.Output<string>; /** * Defines the current status of the policy data loader. It can be one of the following: 'draft' or 'active'. */ readonly status: pulumi.Output<string>; /** * If set to true, this policy data loader cannot be deleted. */ readonly terminationProtection: pulumi.Output<boolean | undefined>; /** * Last update time. */ readonly updatedAt: pulumi.Output<string>; /** * The code that will be executed to fetch and output the data. */ readonly workerCode: pulumi.Output<string>; /** * The execution environment for the code. It can be one of the following: 'python3.11' or 'nodejs18.x'. */ readonly workerRuntime: pulumi.Output<string>; /** * Second-based 'cron' expression specifying when the data should be fetched. For example, use '*&#47;10 * * * * *' to run the code every 10 seconds. */ readonly workerSchedule: pulumi.Output<string>; /** * Create a PolicyDataLoader 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: PolicyDataLoaderArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PolicyDataLoader resources. */ export interface PolicyDataLoaderState { /** * When the policy data loader was created. */ createdAt?: pulumi.Input<string>; /** * Policy data loader description. */ description?: pulumi.Input<string>; /** * The key to access the output data of this policy data loader. */ key?: pulumi.Input<string>; /** * Friendly name for this policy data loader. */ name?: pulumi.Input<string>; /** * Defines the current status of the policy data loader. It can be one of the following: 'draft' or 'active'. */ status?: pulumi.Input<string>; /** * If set to true, this policy data loader cannot be deleted. */ terminationProtection?: pulumi.Input<boolean>; /** * Last update time. */ updatedAt?: pulumi.Input<string>; /** * The code that will be executed to fetch and output the data. */ workerCode?: pulumi.Input<string>; /** * The execution environment for the code. It can be one of the following: 'python3.11' or 'nodejs18.x'. */ workerRuntime?: pulumi.Input<string>; /** * Second-based 'cron' expression specifying when the data should be fetched. For example, use '*&#47;10 * * * * *' to run the code every 10 seconds. */ workerSchedule?: pulumi.Input<string>; } /** * The set of arguments for constructing a PolicyDataLoader resource. */ export interface PolicyDataLoaderArgs { /** * Policy data loader description. */ description: pulumi.Input<string>; /** * The key to access the output data of this policy data loader. */ key: pulumi.Input<string>; /** * Friendly name for this policy data loader. */ name?: pulumi.Input<string>; /** * Defines the current status of the policy data loader. It can be one of the following: 'draft' or 'active'. */ status: pulumi.Input<string>; /** * If set to true, this policy data loader cannot be deleted. */ terminationProtection?: pulumi.Input<boolean>; /** * The code that will be executed to fetch and output the data. */ workerCode: pulumi.Input<string>; /** * The execution environment for the code. It can be one of the following: 'python3.11' or 'nodejs18.x'. */ workerRuntime: pulumi.Input<string>; /** * Second-based 'cron' expression specifying when the data should be fetched. For example, use '*&#47;10 * * * * *' to run the code every 10 seconds. */ workerSchedule: pulumi.Input<string>; }