UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

206 lines (205 loc) 5.58 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of kafka instances * ## 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", * cidrBlock: "172.16.0.0/24", * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * vpcId: fooVpc.id, * }); * const fooInstance = new volcengine.kafka.Instance("fooInstance", { * instanceName: "acc-test-kafka", * instanceDescription: "tf-test", * version: "2.2.2", * computeSpec: "kafka.20xrate.hw", * subnetId: fooSubnet.id, * userName: "tf-user", * userPassword: "tf-pass!@q1", * chargeType: "PostPaid", * storageSpace: 300, * partitionNumber: 350, * projectName: "default", * tags: [{ * key: "k1", * value: "v1", * }], * parameters: [ * { * parameterName: "MessageMaxByte", * parameterValue: "12", * }, * { * parameterName: "LogRetentionHours", * parameterValue: "70", * }, * ], * }); * const default = volcengine.kafka.getInstancesOutput({ * instanceId: fooInstance.id, * }); * ``` */ export declare function getInstances(args?: GetInstancesArgs, opts?: pulumi.InvokeOptions): Promise<GetInstancesResult>; /** * A collection of arguments for invoking getInstances. */ export interface GetInstancesArgs { /** * The id of instance. */ instanceId?: string; /** * The name of instance. */ instanceName?: string; /** * The status of instance. */ instanceStatus?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The tags of instance. */ tags?: inputs.kafka.GetInstancesTag[]; /** * The zone id of instance. */ zoneId?: string; } /** * A collection of values returned by getInstances. */ export interface GetInstancesResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The id of instance. */ readonly instanceId?: string; /** * The name of instance. */ readonly instanceName?: string; /** * The status of instance. */ readonly instanceStatus?: string; /** * The collection of query. */ readonly instances: outputs.kafka.GetInstancesInstance[]; readonly outputFile?: string; /** * The Tags of instance. */ readonly tags?: outputs.kafka.GetInstancesTag[]; /** * The total count of query. */ readonly totalCount: number; /** * The id of zone. */ readonly zoneId?: string; } /** * Use this data source to query detailed information of kafka instances * ## 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", * cidrBlock: "172.16.0.0/24", * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * vpcId: fooVpc.id, * }); * const fooInstance = new volcengine.kafka.Instance("fooInstance", { * instanceName: "acc-test-kafka", * instanceDescription: "tf-test", * version: "2.2.2", * computeSpec: "kafka.20xrate.hw", * subnetId: fooSubnet.id, * userName: "tf-user", * userPassword: "tf-pass!@q1", * chargeType: "PostPaid", * storageSpace: 300, * partitionNumber: 350, * projectName: "default", * tags: [{ * key: "k1", * value: "v1", * }], * parameters: [ * { * parameterName: "MessageMaxByte", * parameterValue: "12", * }, * { * parameterName: "LogRetentionHours", * parameterValue: "70", * }, * ], * }); * const default = volcengine.kafka.getInstancesOutput({ * instanceId: fooInstance.id, * }); * ``` */ export declare function getInstancesOutput(args?: GetInstancesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInstancesResult>; /** * A collection of arguments for invoking getInstances. */ export interface GetInstancesOutputArgs { /** * The id of instance. */ instanceId?: pulumi.Input<string>; /** * The name of instance. */ instanceName?: pulumi.Input<string>; /** * The status of instance. */ instanceStatus?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The tags of instance. */ tags?: pulumi.Input<pulumi.Input<inputs.kafka.GetInstancesTagArgs>[]>; /** * The zone id of instance. */ zoneId?: pulumi.Input<string>; }