import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
/**
 * Manages an IoTDA data forwarding rule within HuaweiCloud.
 *
 * > When accessing an IoTDA **standard** or **enterprise** edition instance, you need to specify the IoTDA service
 * endpoint in `provider` block.
 * You can login to the IoTDA console, choose the instance **Overview** and click **Access Details**
 * to view the HTTPS application access address. An example of the access address might be
 * **9bc34xxxxx.st1.iotda-app.ap-southeast-1.myhuaweicloud.com**, then you need to configure the
 * `provider` block as follows:
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as pulumi from "@huaweicloudos/pulumi";
 *
 * const config = new pulumi.Config();
 * const disRegion = config.requireObject("disRegion");
 * const disStreamId = config.requireObject("disStreamId");
 * const obsRegion = config.requireObject("obsRegion");
 * const obsbucket = config.requireObject("obsbucket");
 * const test = new huaweicloud.iotda.DataforwardingRule("test", {
 *     trigger: "product:create",
 *     enabled: true,
 *     targets: [
 *         {
 *             type: "DIS_FORWARDING",
 *             disForwarding: {
 *                 region: disRegion,
 *                 streamId: disStreamId,
 *             },
 *         },
 *         {
 *             type: "HTTP_FORWARDING",
 *             httpForwarding: {
 *                 url: "http://www.yourDomain.com",
 *             },
 *         },
 *         {
 *             type: "OBS_FORWARDING",
 *             obsForwarding: {
 *                 region: obsRegion,
 *                 bucket: obsbucket,
 *             },
 *         },
 *     ],
 * });
 * ```
 *
 * ## Import
 *
 * Data forwarding rules can be imported using the `id`, e.g. bash
 *
 * ```sh
 *  $ pulumi import huaweicloud:IoTDA/dataforwardingRule:DataforwardingRule test 10022532f4f94f26b01daa1e424853e1
 * ```
 *
 *  Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`password` of `kafka_forwarding`. It is generally recommended running `terraform plan` after importing the resource. You can then decide if changes should be applied to the resource, or the resource definition should be updated to align with the group. Also you can ignore changes as below. hcl resource "huaweicloud_iotda_device_group" "test" {
 *
 *  ...
 *
 *  lifecycle {
 *
 *  ignore_changes = [
 *
 *  targets,
 *
 *  ]
 *
 *  } }
 */
export declare class DataforwardingRule extends pulumi.CustomResource {
    /**
     * Get an existing DataforwardingRule 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?: DataforwardingRuleState, opts?: pulumi.CustomResourceOptions): DataforwardingRule;
    /**
     * Returns true if the given object is an instance of DataforwardingRule.  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 DataforwardingRule;
    /**
     * Specifies the description of data forwarding rule. The description contains
     * a maximum of `256` characters.
     */
    readonly description: pulumi.Output<string | undefined>;
    /**
     * Specifies whether to enable the data forwarding rule. Defaults to **false**.
     * Can not enable without `targets`.
     */
    readonly enabled: pulumi.Output<boolean | undefined>;
    /**
     * Specifies the name of data forwarding rule. The name contains a maximum of `256` characters.
     * Only letters, Chinese characters, digits, hyphens (-), underscores (_) and the following special characters are
     * allowed: `?'#().,&%@!`.
     */
    readonly name: pulumi.Output<string>;
    /**
     * Specifies the region to which the KAFKA belongs.
     */
    readonly region: pulumi.Output<string>;
    /**
     * Specifies the SQL SELECT statement which contains a maximum of `500` characters.
     */
    readonly select: pulumi.Output<string | undefined>;
    /**
     * Specifies the resource space ID which uses the data forwarding rule.
     * If omitted, all resource space will use the data forwarding rule. Changing this parameter will create a new resource.
     */
    readonly spaceId: pulumi.Output<string>;
    /**
     * Specifies the list of the targets (HUAWEI CLOUD services or private servers) to which you
     * want to forward the data. The targets structure is documented below.
     */
    readonly targets: pulumi.Output<outputs.IoTDA.DataforwardingRuleTarget[] | undefined>;
    /**
     * Specifies the trigger event. The options are as follows:
     * + **device:create**: Device added.
     * + **device:delete**: Device deleted.
     * + **device:update**: Device updated.
     * + **device.status:update**: Device status changed.
     * + **device.property:report**: Device property reported.
     * + **device.message:report**: Device message reported.
     * + **device.message.status:update**: Device message status changed.
     * + **batchtask:update**: Batch task status changed.
     * + **product:create**: Product added.
     * + **product:delete**: Product deleted.
     * + **product:update**: Product updated.
     * + **device.command.status:update**: Update of the device asynchronous command status.
     */
    readonly trigger: pulumi.Output<string>;
    /**
     * Specifies the SQL WHERE statement which contains a maximum of `500` characters.
     */
    readonly where: pulumi.Output<string | undefined>;
    /**
     * Create a DataforwardingRule 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: DataforwardingRuleArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering DataforwardingRule resources.
 */
export interface DataforwardingRuleState {
    /**
     * Specifies the description of data forwarding rule. The description contains
     * a maximum of `256` characters.
     */
    description?: pulumi.Input<string>;
    /**
     * Specifies whether to enable the data forwarding rule. Defaults to **false**.
     * Can not enable without `targets`.
     */
    enabled?: pulumi.Input<boolean>;
    /**
     * Specifies the name of data forwarding rule. The name contains a maximum of `256` characters.
     * Only letters, Chinese characters, digits, hyphens (-), underscores (_) and the following special characters are
     * allowed: `?'#().,&%@!`.
     */
    name?: pulumi.Input<string>;
    /**
     * Specifies the region to which the KAFKA belongs.
     */
    region?: pulumi.Input<string>;
    /**
     * Specifies the SQL SELECT statement which contains a maximum of `500` characters.
     */
    select?: pulumi.Input<string>;
    /**
     * Specifies the resource space ID which uses the data forwarding rule.
     * If omitted, all resource space will use the data forwarding rule. Changing this parameter will create a new resource.
     */
    spaceId?: pulumi.Input<string>;
    /**
     * Specifies the list of the targets (HUAWEI CLOUD services or private servers) to which you
     * want to forward the data. The targets structure is documented below.
     */
    targets?: pulumi.Input<pulumi.Input<inputs.IoTDA.DataforwardingRuleTarget>[]>;
    /**
     * Specifies the trigger event. The options are as follows:
     * + **device:create**: Device added.
     * + **device:delete**: Device deleted.
     * + **device:update**: Device updated.
     * + **device.status:update**: Device status changed.
     * + **device.property:report**: Device property reported.
     * + **device.message:report**: Device message reported.
     * + **device.message.status:update**: Device message status changed.
     * + **batchtask:update**: Batch task status changed.
     * + **product:create**: Product added.
     * + **product:delete**: Product deleted.
     * + **product:update**: Product updated.
     * + **device.command.status:update**: Update of the device asynchronous command status.
     */
    trigger?: pulumi.Input<string>;
    /**
     * Specifies the SQL WHERE statement which contains a maximum of `500` characters.
     */
    where?: pulumi.Input<string>;
}
/**
 * The set of arguments for constructing a DataforwardingRule resource.
 */
export interface DataforwardingRuleArgs {
    /**
     * Specifies the description of data forwarding rule. The description contains
     * a maximum of `256` characters.
     */
    description?: pulumi.Input<string>;
    /**
     * Specifies whether to enable the data forwarding rule. Defaults to **false**.
     * Can not enable without `targets`.
     */
    enabled?: pulumi.Input<boolean>;
    /**
     * Specifies the name of data forwarding rule. The name contains a maximum of `256` characters.
     * Only letters, Chinese characters, digits, hyphens (-), underscores (_) and the following special characters are
     * allowed: `?'#().,&%@!`.
     */
    name?: pulumi.Input<string>;
    /**
     * Specifies the region to which the KAFKA belongs.
     */
    region?: pulumi.Input<string>;
    /**
     * Specifies the SQL SELECT statement which contains a maximum of `500` characters.
     */
    select?: pulumi.Input<string>;
    /**
     * Specifies the resource space ID which uses the data forwarding rule.
     * If omitted, all resource space will use the data forwarding rule. Changing this parameter will create a new resource.
     */
    spaceId?: pulumi.Input<string>;
    /**
     * Specifies the list of the targets (HUAWEI CLOUD services or private servers) to which you
     * want to forward the data. The targets structure is documented below.
     */
    targets?: pulumi.Input<pulumi.Input<inputs.IoTDA.DataforwardingRuleTarget>[]>;
    /**
     * Specifies the trigger event. The options are as follows:
     * + **device:create**: Device added.
     * + **device:delete**: Device deleted.
     * + **device:update**: Device updated.
     * + **device.status:update**: Device status changed.
     * + **device.property:report**: Device property reported.
     * + **device.message:report**: Device message reported.
     * + **device.message.status:update**: Device message status changed.
     * + **batchtask:update**: Batch task status changed.
     * + **product:create**: Product added.
     * + **product:delete**: Product deleted.
     * + **product:update**: Product updated.
     * + **device.command.status:update**: Update of the device asynchronous command status.
     */
    trigger: pulumi.Input<string>;
    /**
     * Specifies the SQL WHERE statement which contains a maximum of `500` characters.
     */
    where?: pulumi.Input<string>;
}
