@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
138 lines (137 loc) • 5.13 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages Cloud Native Anti-DDos Basic resource within HuaweiCloud.
*
* > The Cloud Native Anti-DDos Basic resource will be set to the default traffic cleaning threshold when destroyed,
* instead of deleting it.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const config = new pulumi.Config();
* const eipId = config.requireObject("eipId");
* const antiddos1 = new huaweicloud.antiddos.Basic("antiddos1", {
* eipId: eipId,
* trafficThreshold: 150,
* });
* ```
*
* ## Import
*
* Cloud Native Anti-DDos Basic resources can be imported using `eip_id`. e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:AntiDDos/basic:Basic antiddos_1 c5256d47-8f9e-4ae7-9943-6e77e3d8bd2d
* ```
*/
export declare class Basic extends pulumi.CustomResource {
/**
* Get an existing Basic 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?: BasicState, opts?: pulumi.CustomResourceOptions): Basic;
/**
* Returns true if the given object is an instance of Basic. 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 Basic;
/**
* Specifies the ID of an EIP. Changing this creates a new resource.
*/
readonly eipId: pulumi.Output<string>;
/**
* The public address of the EIP.
*/
readonly publicIp: pulumi.Output<string>;
/**
* Specifies the region in which to manage the Cloud Native Anti-DDos Basic resource.
* If omitted, the provider-level region will be used. Changing this creates a new resource.
*/
readonly region: pulumi.Output<string>;
/**
* The Anti-DDos status.
*/
readonly status: pulumi.Output<string>;
/**
* Specifies the SMN topic URN. When the value is not empty, it means turning on the alarm
* notification. When the value is empty, it means turning off the alarm notification.
*/
readonly topicUrn: pulumi.Output<string | undefined>;
/**
* Specifies the traffic cleaning threshold in Mbps.
* The value can be 10, 30, 50, 70, 100, 120, 150, 200, 250, 300, 1000 Mbps.
*/
readonly trafficThreshold: pulumi.Output<number>;
/**
* Create a Basic 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: BasicArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Basic resources.
*/
export interface BasicState {
/**
* Specifies the ID of an EIP. Changing this creates a new resource.
*/
eipId?: pulumi.Input<string>;
/**
* The public address of the EIP.
*/
publicIp?: pulumi.Input<string>;
/**
* Specifies the region in which to manage the Cloud Native Anti-DDos Basic resource.
* If omitted, the provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
/**
* The Anti-DDos status.
*/
status?: pulumi.Input<string>;
/**
* Specifies the SMN topic URN. When the value is not empty, it means turning on the alarm
* notification. When the value is empty, it means turning off the alarm notification.
*/
topicUrn?: pulumi.Input<string>;
/**
* Specifies the traffic cleaning threshold in Mbps.
* The value can be 10, 30, 50, 70, 100, 120, 150, 200, 250, 300, 1000 Mbps.
*/
trafficThreshold?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a Basic resource.
*/
export interface BasicArgs {
/**
* Specifies the ID of an EIP. Changing this creates a new resource.
*/
eipId: pulumi.Input<string>;
/**
* Specifies the region in which to manage the Cloud Native Anti-DDos Basic resource.
* If omitted, the provider-level region will be used. Changing this creates a new resource.
*/
region?: pulumi.Input<string>;
/**
* Specifies the SMN topic URN. When the value is not empty, it means turning on the alarm
* notification. When the value is empty, it means turning off the alarm notification.
*/
topicUrn?: pulumi.Input<string>;
/**
* Specifies the traffic cleaning threshold in Mbps.
* The value can be 10, 30, 50, 70, 100, 120, 150, 200, 250, 300, 1000 Mbps.
*/
trafficThreshold: pulumi.Input<number>;
}