@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
104 lines (103 loc) • 3.48 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage flow log active
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooZones = volcengine.ecs.getZones({});
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
* vpcName: "acc-test-vpc",
* cidrBlock: "172.16.0.0/16",
* projectName: "default",
* });
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
* subnetName: "acc-test-subnet",
* cidrBlock: "172.16.0.0/24",
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
* vpcId: fooVpc.id,
* });
* const fooFlowLog = new volcengine.vpc.FlowLog("fooFlowLog", {
* flowLogName: "acc-test-flow-log",
* description: "acc-test",
* resourceType: "subnet",
* resourceId: fooSubnet.id,
* trafficType: "All",
* logProjectName: "acc-test-project",
* logTopicName: "acc-test-topic",
* aggregationInterval: 10,
* projectName: "default",
* tags: [{
* key: "k1",
* value: "v1",
* }],
* });
* const fooFlowLogActive = new volcengine.vpc.FlowLogActive("fooFlowLogActive", {flowLogId: fooFlowLog.id});
* ```
*
* ## Import
*
* FlowLogActive can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:vpc/flowLogActive:FlowLogActive default resource_id
* ```
*/
export declare class FlowLogActive extends pulumi.CustomResource {
/**
* Get an existing FlowLogActive 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?: FlowLogActiveState, opts?: pulumi.CustomResourceOptions): FlowLogActive;
/**
* Returns true if the given object is an instance of FlowLogActive. 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 FlowLogActive;
/**
* The ID of flow log.
*/
readonly flowLogId: pulumi.Output<string>;
/**
* The status of flow log.
*/
readonly status: pulumi.Output<string>;
/**
* Create a FlowLogActive 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: FlowLogActiveArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering FlowLogActive resources.
*/
export interface FlowLogActiveState {
/**
* The ID of flow log.
*/
flowLogId?: pulumi.Input<string>;
/**
* The status of flow log.
*/
status?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a FlowLogActive resource.
*/
export interface FlowLogActiveArgs {
/**
* The ID of flow log.
*/
flowLogId: pulumi.Input<string>;
}