UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

118 lines (117 loc) 4.21 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a V3 block storage Qos Association resource within OpenStack. * * > **Note:** This usually requires admin privileges. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const qos = new openstack.blockstorage.QosV3("qos", { * name: "%s", * consumer: "front-end", * specs: { * read_iops_sec: "20000", * }, * }); * const volumeType = new openstack.blockstorage.VolumeTypeV3("volume_type", {name: "%s"}); * const qosAssociation = new openstack.blockstorage.QosAssociationV3("qos_association", { * qosId: qos.id, * volumeTypeId: volumeType.id, * }); * ``` * * ## Import * * Qos association can be imported using the `qos_id/volume_type_id`, e.g. * * ```sh * $ pulumi import openstack:blockstorage/qosAssociationV3:QosAssociationV3 qos_association 941793f0-0a34-4bc4-b72e-a6326ae58283/ea257959-eeb1-4c10-8d33-26f0409a755d * ``` */ export declare class QosAssociationV3 extends pulumi.CustomResource { /** * Get an existing QosAssociationV3 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?: QosAssociationV3State, opts?: pulumi.CustomResourceOptions): QosAssociationV3; /** * Returns true if the given object is an instance of QosAssociationV3. 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 QosAssociationV3; /** * ID of the qos to associate. Changing this creates * a new qos association. */ readonly qosId: pulumi.Output<string>; /** * The region in which to create the qos association. * If omitted, the `region` argument of the provider is used. Changing * this creates a new qos association. */ readonly region: pulumi.Output<string>; /** * ID of the volumeType to associate. * Changing this creates a new qos association. */ readonly volumeTypeId: pulumi.Output<string>; /** * Create a QosAssociationV3 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: QosAssociationV3Args, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering QosAssociationV3 resources. */ export interface QosAssociationV3State { /** * ID of the qos to associate. Changing this creates * a new qos association. */ qosId?: pulumi.Input<string>; /** * The region in which to create the qos association. * If omitted, the `region` argument of the provider is used. Changing * this creates a new qos association. */ region?: pulumi.Input<string>; /** * ID of the volumeType to associate. * Changing this creates a new qos association. */ volumeTypeId?: pulumi.Input<string>; } /** * The set of arguments for constructing a QosAssociationV3 resource. */ export interface QosAssociationV3Args { /** * ID of the qos to associate. Changing this creates * a new qos association. */ qosId: pulumi.Input<string>; /** * The region in which to create the qos association. * If omitted, the `region` argument of the provider is used. Changing * this creates a new qos association. */ region?: pulumi.Input<string>; /** * ID of the volumeType to associate. * Changing this creates a new qos association. */ volumeTypeId: pulumi.Input<string>; }