@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
211 lines (210 loc) • 8.13 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.eip.Address("foo", {
* bandwidth: 1,
* billingType: "PostPaidByBandwidth",
* description: "acc-test",
* isp: "ChinaUnicom",
* projectName: "default",
* });
* ```
*
* ## Import
*
* Eip address can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:eip/address:Address default eip-274oj9a8rs9a87fap8sf9515b
* ```
*/
export declare class Address extends pulumi.CustomResource {
/**
* Get an existing Address 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?: AddressState, opts?: pulumi.CustomResourceOptions): Address;
/**
* Returns true if the given object is an instance of Address. 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 Address;
/**
* The peek bandwidth of the EIP.
*/
readonly bandwidth: pulumi.Output<number>;
/**
* The billing type of the EIP Address. And optional choice contains `PostPaidByBandwidth` or `PostPaidByTraffic` or `PrePaid`.
*/
readonly billingType: pulumi.Output<string>;
/**
* The deleted time of the EIP.
*/
readonly deletedTime: pulumi.Output<string>;
/**
* The description of the EIP.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The ip address of the EIP.
*/
readonly eipAddress: pulumi.Output<string>;
/**
* The expired time of the EIP.
*/
readonly expiredTime: pulumi.Output<string>;
/**
* The ISP of the EIP, the value can be `BGP` or `ChinaMobile` or `ChinaUnicom` or `ChinaTelecom` or `SingleLine_BGP` or `Static_BGP` or `Fusion_BGP`.
*/
readonly isp: pulumi.Output<string>;
/**
* The name of the EIP Address.
*/
readonly name: pulumi.Output<string>;
/**
* The overdue time of the EIP.
*/
readonly overdueTime: pulumi.Output<string>;
/**
* The period of the EIP Address, the valid value range in 1~9 or 12 or 36. Default value is 12. The period unit defaults to `Month`.This field is only effective when creating a PrePaid Eip or changing the billingType from PostPaid to PrePaid.
*/
readonly period: pulumi.Output<number | undefined>;
/**
* The ProjectName of the EIP.
*/
readonly projectName: pulumi.Output<string>;
/**
* Security protection types for public IP addresses. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: `AntiDDoS_Enhanced` or left blank.If the value is `AntiDDoS_Enhanced`, then will create an eip with enhanced protection,(can be added to DDoS native protection (enterprise version) instance). If left blank, it indicates an eip with basic protection.
*/
readonly securityProtectionTypes: pulumi.Output<string[] | undefined>;
/**
* The status of the EIP.
*/
readonly status: pulumi.Output<string>;
/**
* Tags.
*/
readonly tags: pulumi.Output<outputs.eip.AddressTag[] | undefined>;
/**
* Create a Address 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: AddressArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Address resources.
*/
export interface AddressState {
/**
* The peek bandwidth of the EIP.
*/
bandwidth?: pulumi.Input<number>;
/**
* The billing type of the EIP Address. And optional choice contains `PostPaidByBandwidth` or `PostPaidByTraffic` or `PrePaid`.
*/
billingType?: pulumi.Input<string>;
/**
* The deleted time of the EIP.
*/
deletedTime?: pulumi.Input<string>;
/**
* The description of the EIP.
*/
description?: pulumi.Input<string>;
/**
* The ip address of the EIP.
*/
eipAddress?: pulumi.Input<string>;
/**
* The expired time of the EIP.
*/
expiredTime?: pulumi.Input<string>;
/**
* The ISP of the EIP, the value can be `BGP` or `ChinaMobile` or `ChinaUnicom` or `ChinaTelecom` or `SingleLine_BGP` or `Static_BGP` or `Fusion_BGP`.
*/
isp?: pulumi.Input<string>;
/**
* The name of the EIP Address.
*/
name?: pulumi.Input<string>;
/**
* The overdue time of the EIP.
*/
overdueTime?: pulumi.Input<string>;
/**
* The period of the EIP Address, the valid value range in 1~9 or 12 or 36. Default value is 12. The period unit defaults to `Month`.This field is only effective when creating a PrePaid Eip or changing the billingType from PostPaid to PrePaid.
*/
period?: pulumi.Input<number>;
/**
* The ProjectName of the EIP.
*/
projectName?: pulumi.Input<string>;
/**
* Security protection types for public IP addresses. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: `AntiDDoS_Enhanced` or left blank.If the value is `AntiDDoS_Enhanced`, then will create an eip with enhanced protection,(can be added to DDoS native protection (enterprise version) instance). If left blank, it indicates an eip with basic protection.
*/
securityProtectionTypes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The status of the EIP.
*/
status?: pulumi.Input<string>;
/**
* Tags.
*/
tags?: pulumi.Input<pulumi.Input<inputs.eip.AddressTag>[]>;
}
/**
* The set of arguments for constructing a Address resource.
*/
export interface AddressArgs {
/**
* The peek bandwidth of the EIP.
*/
bandwidth?: pulumi.Input<number>;
/**
* The billing type of the EIP Address. And optional choice contains `PostPaidByBandwidth` or `PostPaidByTraffic` or `PrePaid`.
*/
billingType: pulumi.Input<string>;
/**
* The description of the EIP.
*/
description?: pulumi.Input<string>;
/**
* The ISP of the EIP, the value can be `BGP` or `ChinaMobile` or `ChinaUnicom` or `ChinaTelecom` or `SingleLine_BGP` or `Static_BGP` or `Fusion_BGP`.
*/
isp?: pulumi.Input<string>;
/**
* The name of the EIP Address.
*/
name?: pulumi.Input<string>;
/**
* The period of the EIP Address, the valid value range in 1~9 or 12 or 36. Default value is 12. The period unit defaults to `Month`.This field is only effective when creating a PrePaid Eip or changing the billingType from PostPaid to PrePaid.
*/
period?: pulumi.Input<number>;
/**
* The ProjectName of the EIP.
*/
projectName?: pulumi.Input<string>;
/**
* Security protection types for public IP addresses. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: `AntiDDoS_Enhanced` or left blank.If the value is `AntiDDoS_Enhanced`, then will create an eip with enhanced protection,(can be added to DDoS native protection (enterprise version) instance). If left blank, it indicates an eip with basic protection.
*/
securityProtectionTypes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Tags.
*/
tags?: pulumi.Input<pulumi.Input<inputs.eip.AddressTag>[]>;
}