@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
107 lines (106 loc) • 2.9 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of cen grant instances
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.cen.getGrantInstances({
* instanceId: "vpc-2bysvq1xx543k2dx0eeul****",
* instanceRegionId: "cn-beijing",
* instanceType: "VPC",
* });
* ```
*/
export declare function getGrantInstances(args?: GetGrantInstancesArgs, opts?: pulumi.InvokeOptions): Promise<GetGrantInstancesResult>;
/**
* A collection of arguments for invoking getGrantInstances.
*/
export interface GetGrantInstancesArgs {
/**
* The ID of the instance.
*/
instanceId?: string;
/**
* The region ID of the instance.
*/
instanceRegionId?: string;
/**
* The type of the instance. Valid values: `VPC`, `DCGW`.
*/
instanceType?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
}
/**
* A collection of values returned by getGrantInstances.
*/
export interface GetGrantInstancesResult {
/**
* The collection of query.
*/
readonly grantRules: outputs.cen.GetGrantInstancesGrantRule[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The ID of the instance.
*/
readonly instanceId?: string;
/**
* The region ID of the instance.
*/
readonly instanceRegionId?: string;
/**
* The type of the instance.
*/
readonly instanceType?: string;
readonly outputFile?: string;
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of cen grant instances
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.cen.getGrantInstances({
* instanceId: "vpc-2bysvq1xx543k2dx0eeul****",
* instanceRegionId: "cn-beijing",
* instanceType: "VPC",
* });
* ```
*/
export declare function getGrantInstancesOutput(args?: GetGrantInstancesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGrantInstancesResult>;
/**
* A collection of arguments for invoking getGrantInstances.
*/
export interface GetGrantInstancesOutputArgs {
/**
* The ID of the instance.
*/
instanceId?: pulumi.Input<string>;
/**
* The region ID of the instance.
*/
instanceRegionId?: pulumi.Input<string>;
/**
* The type of the instance. Valid values: `VPC`, `DCGW`.
*/
instanceType?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
}