@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
208 lines (207 loc) • 5.75 kB
TypeScript
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,
* });
* ```
*/
/** @deprecated volcengine.kafka.Instances has been deprecated in favor of volcengine.kafka.getInstances */
export declare function instances(args?: InstancesArgs, opts?: pulumi.InvokeOptions): Promise<InstancesResult>;
/**
* A collection of arguments for invoking Instances.
*/
export interface InstancesArgs {
/**
* 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.InstancesTag[];
/**
* The zone id of instance.
*/
zoneId?: string;
}
/**
* A collection of values returned by Instances.
*/
export interface InstancesResult {
/**
* 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.InstancesInstance[];
readonly outputFile?: string;
/**
* The Tags of instance.
*/
readonly tags?: outputs.kafka.InstancesTag[];
/**
* 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,
* });
* ```
*/
/** @deprecated volcengine.kafka.Instances has been deprecated in favor of volcengine.kafka.getInstances */
export declare function instancesOutput(args?: InstancesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<InstancesResult>;
/**
* A collection of arguments for invoking Instances.
*/
export interface InstancesOutputArgs {
/**
* 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.InstancesTagArgs>[]>;
/**
* The zone id of instance.
*/
zoneId?: pulumi.Input<string>;
}