UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

117 lines (116 loc) 4.18 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a VPC traffic mirror filter resource within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const trafficMirrorFilterName = config.requireObject("trafficMirrorFilterName"); * const test = new huaweicloud.vpc.TrafficMirrorFilter("test", {description: "Traffic mirror filter created by terraform"}); * ``` * * ## Import * * The traffic mirror filter can be imported using `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Vpc/trafficMirrorFilter:TrafficMirrorFilter test <id> * ``` */ export declare class TrafficMirrorFilter extends pulumi.CustomResource { /** * Get an existing TrafficMirrorFilter 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?: TrafficMirrorFilterState, opts?: pulumi.CustomResourceOptions): TrafficMirrorFilter; /** * Returns true if the given object is an instance of TrafficMirrorFilter. 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 TrafficMirrorFilter; /** * The creation time of the traffic mirror filter. */ readonly createdAt: pulumi.Output<string>; /** * Specifies the description of the traffic mirror filter. */ readonly description: pulumi.Output<string | undefined>; /** * Specifies the name of the traffic mirror filter. */ readonly name: pulumi.Output<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. * Changing this creates a new resource. */ readonly region: pulumi.Output<string>; /** * The latest update time of the traffic mirror filter. */ readonly updatedAt: pulumi.Output<string>; /** * Create a TrafficMirrorFilter 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?: TrafficMirrorFilterArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TrafficMirrorFilter resources. */ export interface TrafficMirrorFilterState { /** * The creation time of the traffic mirror filter. */ createdAt?: pulumi.Input<string>; /** * Specifies the description of the traffic mirror filter. */ description?: pulumi.Input<string>; /** * Specifies the name of the traffic mirror filter. */ name?: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. * Changing this creates a new resource. */ region?: pulumi.Input<string>; /** * The latest update time of the traffic mirror filter. */ updatedAt?: pulumi.Input<string>; } /** * The set of arguments for constructing a TrafficMirrorFilter resource. */ export interface TrafficMirrorFilterArgs { /** * Specifies the description of the traffic mirror filter. */ description?: pulumi.Input<string>; /** * Specifies the name of the traffic mirror filter. */ name?: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. * Changing this creates a new resource. */ region?: pulumi.Input<string>; }