@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
149 lines (148 loc) • 5.34 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a log group resource within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const test = new huaweicloud.Lts.Group("test", {
* groupName: "log_group1",
* ttlInDays: 30,
* });
* ```
*
* ## Import
*
* The log group can be imported using the `id`, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Lts/group:Group test <id>
* ```
*/
export declare class Group extends pulumi.CustomResource {
/**
* Get an existing Group 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?: GroupState, opts?: pulumi.CustomResourceOptions): Group;
/**
* Returns true if the given object is an instance of Group. 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 Group;
/**
* The creation time of the log group.
*/
readonly createdAt: pulumi.Output<string>;
/**
* Specifies the enterprise project ID to which the log group belongs.
* Changing this parameter will create a new resource.
* This parameter is valid only when the enterprise project function is enabled, if omitted, default enterprise project
* will be used.
*/
readonly enterpriseProjectId: pulumi.Output<string>;
/**
* Specifies the log group name. Changing this parameter will create a new resource.
*/
readonly groupName: pulumi.Output<string>;
/**
* Specifies the region in which to create the log group resource. If omitted, the
* provider-level region will be used. Changing this parameter will create a new resource.
*/
readonly region: pulumi.Output<string>;
/**
* Specifies the key/value pairs to associate with the log group.
*/
readonly tags: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* Specifies the log expiration time(days).
* The value is range from `1` to `365`.
*/
readonly ttlInDays: pulumi.Output<number>;
/**
* Create a Group 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: GroupArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Group resources.
*/
export interface GroupState {
/**
* The creation time of the log group.
*/
createdAt?: pulumi.Input<string>;
/**
* Specifies the enterprise project ID to which the log group belongs.
* Changing this parameter will create a new resource.
* This parameter is valid only when the enterprise project function is enabled, if omitted, default enterprise project
* will be used.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* Specifies the log group name. Changing this parameter will create a new resource.
*/
groupName?: pulumi.Input<string>;
/**
* Specifies the region in which to create the log group resource. If omitted, the
* provider-level region will be used. Changing this parameter will create a new resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies the key/value pairs to associate with the log group.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Specifies the log expiration time(days).
* The value is range from `1` to `365`.
*/
ttlInDays?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a Group resource.
*/
export interface GroupArgs {
/**
* Specifies the enterprise project ID to which the log group belongs.
* Changing this parameter will create a new resource.
* This parameter is valid only when the enterprise project function is enabled, if omitted, default enterprise project
* will be used.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* Specifies the log group name. Changing this parameter will create a new resource.
*/
groupName: pulumi.Input<string>;
/**
* Specifies the region in which to create the log group resource. If omitted, the
* provider-level region will be used. Changing this parameter will create a new resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies the key/value pairs to associate with the log group.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Specifies the log expiration time(days).
* The value is range from `1` to `365`.
*/
ttlInDays: pulumi.Input<number>;
}