@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
155 lines (154 loc) • 6 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a V2 load balancer flavorprofile resource within OpenStack.
*
* > **Note:** This usually requires admin privileges.
*
* ## Example Usage
*
* ### Using jsonencode
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const flavorprofile1 = new openstack.loadbalancer.FlavorprofileV2("flavorprofile_1", {
* name: "amphora-single-profile",
* providerName: "amphora",
* flavorData: JSON.stringify({
* loadbalancer_topology: "SINGLE",
* }),
* });
* ```
*
* ### Using plain string
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const flavorprofile1 = new openstack.loadbalancer.FlavorprofileV2("flavorprofile_1", {
* name: "amphora-single-profile",
* providerName: "amphora",
* flavorData: "{\"loadbalancer_topology\": \"SINGLE\"}",
* });
* ```
*
* ## Import
*
* flavorprofiles can be imported using their `id`. Example:
*
* ```sh
* $ pulumi import openstack:index/lbFlavorprofileV2:LbFlavorprofileV2 flavorprofile_1 2a0f2240-c5e6-41de-896d-e80d97428d6b
* ```
*
* @deprecated openstack.index/lbflavorprofilev2.LbFlavorprofileV2 has been deprecated in favor of openstack.loadbalancer/flavorprofilev2.FlavorprofileV2
*/
export declare class LbFlavorprofileV2 extends pulumi.CustomResource {
/**
* Get an existing LbFlavorprofileV2 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?: LbFlavorprofileV2State, opts?: pulumi.CustomResourceOptions): LbFlavorprofileV2;
/**
* Returns true if the given object is an instance of LbFlavorprofileV2. 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 LbFlavorprofileV2;
/**
* String that passes the flavorData for the flavorprofile.
* The data that are allowed depend on the `providerName` that is passed. jsonencode
* can be used for readability as shown in the example above.
* Changing this updates the existing flavorprofile.
*/
readonly flavorData: pulumi.Output<string>;
/**
* Name of the flavorprofile. Changing this updates the existing
* flavorprofile.
*/
readonly name: pulumi.Output<string>;
/**
* The providerName that the flavorProfile will use.
* Changing this updates the existing flavorprofile.
*/
readonly providerName: pulumi.Output<string>;
/**
* The region in which to obtain the V2 Networking client.
* A Networking client is needed to create an LB member. If omitted, the
* `region` argument of the provider is used. Changing this creates a new
* LB flavorprofile.
*/
readonly region: pulumi.Output<string>;
/**
* Create a LbFlavorprofileV2 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.
*/
/** @deprecated openstack.index/lbflavorprofilev2.LbFlavorprofileV2 has been deprecated in favor of openstack.loadbalancer/flavorprofilev2.FlavorprofileV2 */
constructor(name: string, args: LbFlavorprofileV2Args, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering LbFlavorprofileV2 resources.
*/
export interface LbFlavorprofileV2State {
/**
* String that passes the flavorData for the flavorprofile.
* The data that are allowed depend on the `providerName` that is passed. jsonencode
* can be used for readability as shown in the example above.
* Changing this updates the existing flavorprofile.
*/
flavorData?: pulumi.Input<string>;
/**
* Name of the flavorprofile. Changing this updates the existing
* flavorprofile.
*/
name?: pulumi.Input<string>;
/**
* The providerName that the flavorProfile will use.
* Changing this updates the existing flavorprofile.
*/
providerName?: pulumi.Input<string>;
/**
* The region in which to obtain the V2 Networking client.
* A Networking client is needed to create an LB member. If omitted, the
* `region` argument of the provider is used. Changing this creates a new
* LB flavorprofile.
*/
region?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a LbFlavorprofileV2 resource.
*/
export interface LbFlavorprofileV2Args {
/**
* String that passes the flavorData for the flavorprofile.
* The data that are allowed depend on the `providerName` that is passed. jsonencode
* can be used for readability as shown in the example above.
* Changing this updates the existing flavorprofile.
*/
flavorData: pulumi.Input<string>;
/**
* Name of the flavorprofile. Changing this updates the existing
* flavorprofile.
*/
name?: pulumi.Input<string>;
/**
* The providerName that the flavorProfile will use.
* Changing this updates the existing flavorprofile.
*/
providerName: pulumi.Input<string>;
/**
* The region in which to obtain the V2 Networking client.
* A Networking client is needed to create an LB member. If omitted, the
* `region` argument of the provider is used. Changing this creates a new
* LB flavorprofile.
*/
region?: pulumi.Input<string>;
}