@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
189 lines (188 loc) • 6.22 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage escloud ip white list
* ## 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",
* });
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
* subnetName: "acc-test-subnet",
* description: "tfdesc",
* cidrBlock: "172.16.0.0/24",
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
* vpcId: fooVpc.id,
* });
* const fooEscloudInstanceV2 = new volcengine.escloud_v2.EscloudInstanceV2("fooEscloudInstanceV2", {
* instanceName: "acc-test-escloud-instance",
* version: "V7_10",
* zoneIds: [
* fooZones.then(fooZones => fooZones.zones?.[0]?.id),
* fooZones.then(fooZones => fooZones.zones?.[1]?.id),
* fooZones.then(fooZones => fooZones.zones?.[2]?.id),
* ],
* subnetId: fooSubnet.id,
* enableHttps: false,
* adminPassword: "Password@@123",
* chargeType: "PostPaid",
* autoRenew: false,
* period: 1,
* configurationCode: "es.standard",
* enablePureMaster: true,
* deletionProtection: false,
* projectName: "default",
* nodeSpecsAssigns: [
* {
* type: "Master",
* number: 3,
* resourceSpecName: "es.x2.medium",
* storageSpecName: "es.volume.essd.pl0",
* storageSize: 20,
* },
* {
* type: "Hot",
* number: 6,
* resourceSpecName: "es.x2.medium",
* storageSpecName: "es.volume.essd.flexpl-standard",
* storageSize: 500,
* extraPerformance: {
* throughput: 65,
* },
* },
* {
* type: "Kibana",
* number: 1,
* resourceSpecName: "kibana.x2.small",
* storageSpecName: "",
* storageSize: 0,
* },
* ],
* networkSpecs: [
* {
* type: "Elasticsearch",
* bandwidth: 1,
* isOpen: true,
* specName: "es.eip.bgp_fixed_bandwidth",
* },
* {
* type: "Kibana",
* bandwidth: 1,
* isOpen: true,
* specName: "es.eip.bgp_fixed_bandwidth",
* },
* ],
* tags: [{
* key: "k1",
* value: "v1",
* }],
* });
* const fooEscloudIpWhiteList = new volcengine.escloud_v2.EscloudIpWhiteList("fooEscloudIpWhiteList", {
* instanceId: fooEscloudInstanceV2.id,
* type: "public",
* component: "es",
* ipLists: [
* "172.16.0.10",
* "172.16.0.11",
* "172.16.0.12",
* ],
* });
* ```
*
* ## Import
*
* EscloudIpWhiteList can be imported using the instance_id:type:component, e.g.
*
* ```sh
* $ pulumi import volcengine:escloud_v2/escloudIpWhiteList:EscloudIpWhiteList default resource_id
* ```
*/
export declare class EscloudIpWhiteList extends pulumi.CustomResource {
/**
* Get an existing EscloudIpWhiteList 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?: EscloudIpWhiteListState, opts?: pulumi.CustomResourceOptions): EscloudIpWhiteList;
/**
* Returns true if the given object is an instance of EscloudIpWhiteList. 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 EscloudIpWhiteList;
/**
* The component of the ip white list. Valid values: `es`, `kibana`.
*/
readonly component: pulumi.Output<string>;
/**
* The id of the EsCloud instance.
*/
readonly instanceId: pulumi.Output<string>;
/**
* The ip list of the ip white list.
*/
readonly ipLists: pulumi.Output<string[]>;
/**
* The type of the ip white list. Valid values: `private`, `public`.
*/
readonly type: pulumi.Output<string>;
/**
* Create a EscloudIpWhiteList 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: EscloudIpWhiteListArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering EscloudIpWhiteList resources.
*/
export interface EscloudIpWhiteListState {
/**
* The component of the ip white list. Valid values: `es`, `kibana`.
*/
component?: pulumi.Input<string>;
/**
* The id of the EsCloud instance.
*/
instanceId?: pulumi.Input<string>;
/**
* The ip list of the ip white list.
*/
ipLists?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The type of the ip white list. Valid values: `private`, `public`.
*/
type?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a EscloudIpWhiteList resource.
*/
export interface EscloudIpWhiteListArgs {
/**
* The component of the ip white list. Valid values: `es`, `kibana`.
*/
component: pulumi.Input<string>;
/**
* The id of the EsCloud instance.
*/
instanceId: pulumi.Input<string>;
/**
* The ip list of the ip white list.
*/
ipLists: pulumi.Input<pulumi.Input<string>[]>;
/**
* The type of the ip white list. Valid values: `private`, `public`.
*/
type: pulumi.Input<string>;
}