@pulumi/f5bigip
Version:
A Pulumi package for creating and managing F5 BigIP resources.
91 lines (90 loc) • 2.84 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* `f5bigip.ltm.IRule` Creates iRule on BIG-IP F5 device
*
* For resources should be named with their "full path". The full path is the combination of the partition + name of the resource. For example /Common/my-pool.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as f5bigip from "@pulumi/f5bigip";
* import * as std from "@pulumi/std";
*
* // Loading from a file is the preferred method
* const rule = new f5bigip.ltm.IRule("rule", {
* name: "/Common/terraform_irule",
* irule: std.file({
* input: "myirule.tcl",
* }).then(invoke => invoke.result),
* });
* const rule2 = new f5bigip.ltm.IRule("rule2", {
* name: "/Common/terraform_irule2",
* irule: `when CLIENT_ACCEPTED {
* log local0. "test"
* }
* `,
* });
* ```
*
* ##myirule.tcl
*/
export declare class IRule extends pulumi.CustomResource {
/**
* Get an existing IRule 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?: IRuleState, opts?: pulumi.CustomResourceOptions): IRule;
/**
* Returns true if the given object is an instance of IRule. 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 IRule;
/**
* Body of the iRule
*/
readonly irule: pulumi.Output<string>;
/**
* Name of the iRule
*/
readonly name: pulumi.Output<string>;
/**
* Create a IRule 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: IRuleArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering IRule resources.
*/
export interface IRuleState {
/**
* Body of the iRule
*/
irule?: pulumi.Input<string>;
/**
* Name of the iRule
*/
name?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a IRule resource.
*/
export interface IRuleArgs {
/**
* Body of the iRule
*/
irule: pulumi.Input<string>;
/**
* Name of the iRule
*/
name: pulumi.Input<string>;
}