@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
133 lines (132 loc) • 3.81 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides a resource to manage waf ip group
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.waf.IpGroup("foo", {
* addType: "List",
* ipLists: [
* "1.1.1.1",
* "1.1.1.2",
* "1.1.1.3",
* ],
* });
* ```
*
* ## Import
*
* WafIpGroup can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:waf/ipGroup:IpGroup default resource_id
* ```
*/
export declare class IpGroup extends pulumi.CustomResource {
/**
* Get an existing IpGroup 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?: IpGroupState, opts?: pulumi.CustomResourceOptions): IpGroup;
/**
* Returns true if the given object is an instance of IpGroup. 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 IpGroup;
/**
* The way of addition.
*/
readonly addType: pulumi.Output<string>;
/**
* The number of IP addresses within the address group.
*/
readonly ipCount: pulumi.Output<number>;
/**
* The ID of the ip group.
*/
readonly ipGroupId: pulumi.Output<number>;
/**
* The IP address to be added.
*/
readonly ipLists: pulumi.Output<string[]>;
/**
* The name of ip group.
*/
readonly name: pulumi.Output<string>;
/**
* The list of associated rules.
*/
readonly relatedRules: pulumi.Output<outputs.waf.IpGroupRelatedRule[]>;
/**
* ip group update time.
*/
readonly updateTime: pulumi.Output<string>;
/**
* Create a IpGroup 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: IpGroupArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering IpGroup resources.
*/
export interface IpGroupState {
/**
* The way of addition.
*/
addType?: pulumi.Input<string>;
/**
* The number of IP addresses within the address group.
*/
ipCount?: pulumi.Input<number>;
/**
* The ID of the ip group.
*/
ipGroupId?: pulumi.Input<number>;
/**
* The IP address to be added.
*/
ipLists?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The name of ip group.
*/
name?: pulumi.Input<string>;
/**
* The list of associated rules.
*/
relatedRules?: pulumi.Input<pulumi.Input<inputs.waf.IpGroupRelatedRule>[]>;
/**
* ip group update time.
*/
updateTime?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a IpGroup resource.
*/
export interface IpGroupArgs {
/**
* The way of addition.
*/
addType: pulumi.Input<string>;
/**
* The IP address to be added.
*/
ipLists: pulumi.Input<pulumi.Input<string>[]>;
/**
* The name of ip group.
*/
name?: pulumi.Input<string>;
}