UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

186 lines (185 loc) 6.32 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manage a log stream resource within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const groupId = config.requireObject("groupId"); * const test = new huaweicloud.lts.Stream("test", { * groupId: groupId, * streamName: "testacc_stream", * }); * ``` * * ## Import * * The log stream can be imported using the group ID and stream ID separated by a slash, e.g. bash * * ```sh * $ pulumi import huaweicloud:Lts/stream:Stream test <group_id>/<id> * ``` */ export declare class Stream extends pulumi.CustomResource { /** * Get an existing Stream 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?: StreamState, opts?: pulumi.CustomResourceOptions): Stream; /** * Returns true if the given object is an instance of Stream. 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 Stream; /** * The creation time of the log stream. */ readonly createdAt: pulumi.Output<string>; /** * Specifies the enterprise project ID. * Changing this parameter will create a new resource. */ readonly enterpriseProjectId: pulumi.Output<string>; /** * Number of log stream filters. */ readonly filterCount: pulumi.Output<number>; /** * Specifies the ID of a created log group. Changing this parameter will create * a new resource. */ readonly groupId: pulumi.Output<string>; /** * Specifies whether to favorite the log stream. * Defaults to **false**. */ readonly isFavorite: pulumi.Output<boolean | undefined>; /** * Specifies the region in which to create the log stream resource. If omitted, the * provider-level region will be used. Changing this creates a new log stream resource. */ readonly region: pulumi.Output<string>; /** * Specifies the log stream name. Changing this parameter will create a new * resource. */ readonly streamName: pulumi.Output<string>; /** * Specifies the key/value pairs of the log stream. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Specifies the log expiration time (days). * The valid value is a non-zero integer from `-1` to `365`, defaults to `-1` which means inherit the log group settings. */ readonly ttlInDays: pulumi.Output<number>; /** * Create a Stream 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: StreamArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Stream resources. */ export interface StreamState { /** * The creation time of the log stream. */ createdAt?: pulumi.Input<string>; /** * Specifies the enterprise project ID. * Changing this parameter will create a new resource. */ enterpriseProjectId?: pulumi.Input<string>; /** * Number of log stream filters. */ filterCount?: pulumi.Input<number>; /** * Specifies the ID of a created log group. Changing this parameter will create * a new resource. */ groupId?: pulumi.Input<string>; /** * Specifies whether to favorite the log stream. * Defaults to **false**. */ isFavorite?: pulumi.Input<boolean>; /** * Specifies the region in which to create the log stream resource. If omitted, the * provider-level region will be used. Changing this creates a new log stream resource. */ region?: pulumi.Input<string>; /** * Specifies the log stream name. Changing this parameter will create a new * resource. */ streamName?: pulumi.Input<string>; /** * Specifies the key/value pairs of the log stream. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Specifies the log expiration time (days). * The valid value is a non-zero integer from `-1` to `365`, defaults to `-1` which means inherit the log group settings. */ ttlInDays?: pulumi.Input<number>; } /** * The set of arguments for constructing a Stream resource. */ export interface StreamArgs { /** * Specifies the enterprise project ID. * Changing this parameter will create a new resource. */ enterpriseProjectId?: pulumi.Input<string>; /** * Specifies the ID of a created log group. Changing this parameter will create * a new resource. */ groupId: pulumi.Input<string>; /** * Specifies whether to favorite the log stream. * Defaults to **false**. */ isFavorite?: pulumi.Input<boolean>; /** * Specifies the region in which to create the log stream resource. If omitted, the * provider-level region will be used. Changing this creates a new log stream resource. */ region?: pulumi.Input<string>; /** * Specifies the log stream name. Changing this parameter will create a new * resource. */ streamName: pulumi.Input<string>; /** * Specifies the key/value pairs of the log stream. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Specifies the log expiration time (days). * The valid value is a non-zero integer from `-1` to `365`, defaults to `-1` which means inherit the log group settings. */ ttlInDays?: pulumi.Input<number>; }