@pulumi/f5bigip
Version:
A Pulumi package for creating and managing F5 BigIP resources.
145 lines (144 loc) • 5.46 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* `f5bigip.ltm.ProfileRewriteUriRules` Configures uri rewrite rules attached to the ltm rewrite profile
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as f5bigip from "@pulumi/f5bigip";
*
* const tftest = new f5bigip.ltm.ProfileRewrite("tftest", {
* name: "/Common/tf_profile",
* defaultsFrom: "/Common/rewrite",
* rewriteMode: "uri-translation",
* });
* const tftestrule1 = new f5bigip.ltm.ProfileRewriteUriRules("tftestrule1", {
* profileName: tftest.name,
* ruleName: "tf_rule",
* ruleType: "request",
* clients: [{
* host: "www.foo.com",
* scheme: "https",
* }],
* servers: [{
* host: "www.bar.com",
* path: "/this/",
* scheme: "https",
* port: "8888",
* }],
* });
* const tftestrule2 = new f5bigip.ltm.ProfileRewriteUriRules("tftestrule2", {
* profileName: tftest.name,
* ruleName: "tf_rule2",
* clients: [{
* host: "www.baz.com",
* path: "/that/",
* scheme: "ftp",
* port: "8888",
* }],
* servers: [{
* host: "www.buz.com",
* path: "/those/",
* scheme: "ftps",
* }],
* });
* ```
*/
export declare class ProfileRewriteUriRules extends pulumi.CustomResource {
/**
* Get an existing ProfileRewriteUriRules 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?: ProfileRewriteUriRulesState, opts?: pulumi.CustomResourceOptions): ProfileRewriteUriRules;
/**
* Returns true if the given object is an instance of ProfileRewriteUriRules. 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 ProfileRewriteUriRules;
/**
* Block type. Each request is block type with following arguments.
*/
readonly clients: pulumi.Output<outputs.ltm.ProfileRewriteUriRulesClient[]>;
/**
* Name of the rewrite profile. ( policy name should be in full path which is combination of partition and policy name )
*/
readonly profileName: pulumi.Output<string>;
/**
* Specifies the name of the uri rule.
*/
readonly ruleName: pulumi.Output<string>;
/**
* Specifies the type of the uri rule. Valid choices are: `request, response, both`. Default value is: `both`
*/
readonly ruleType: pulumi.Output<string | undefined>;
/**
* Block type. Each request is block type with following arguments.
*/
readonly servers: pulumi.Output<outputs.ltm.ProfileRewriteUriRulesServer[]>;
/**
* Create a ProfileRewriteUriRules 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: ProfileRewriteUriRulesArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ProfileRewriteUriRules resources.
*/
export interface ProfileRewriteUriRulesState {
/**
* Block type. Each request is block type with following arguments.
*/
clients?: pulumi.Input<pulumi.Input<inputs.ltm.ProfileRewriteUriRulesClient>[]>;
/**
* Name of the rewrite profile. ( policy name should be in full path which is combination of partition and policy name )
*/
profileName?: pulumi.Input<string>;
/**
* Specifies the name of the uri rule.
*/
ruleName?: pulumi.Input<string>;
/**
* Specifies the type of the uri rule. Valid choices are: `request, response, both`. Default value is: `both`
*/
ruleType?: pulumi.Input<string>;
/**
* Block type. Each request is block type with following arguments.
*/
servers?: pulumi.Input<pulumi.Input<inputs.ltm.ProfileRewriteUriRulesServer>[]>;
}
/**
* The set of arguments for constructing a ProfileRewriteUriRules resource.
*/
export interface ProfileRewriteUriRulesArgs {
/**
* Block type. Each request is block type with following arguments.
*/
clients: pulumi.Input<pulumi.Input<inputs.ltm.ProfileRewriteUriRulesClient>[]>;
/**
* Name of the rewrite profile. ( policy name should be in full path which is combination of partition and policy name )
*/
profileName: pulumi.Input<string>;
/**
* Specifies the name of the uri rule.
*/
ruleName: pulumi.Input<string>;
/**
* Specifies the type of the uri rule. Valid choices are: `request, response, both`. Default value is: `both`
*/
ruleType?: pulumi.Input<string>;
/**
* Block type. Each request is block type with following arguments.
*/
servers: pulumi.Input<pulumi.Input<inputs.ltm.ProfileRewriteUriRulesServer>[]>;
}