@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
109 lines (108 loc) • 3.09 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",
* });
* ```
*/
/** @deprecated volcengine.cen.GrantInstances has been deprecated in favor of volcengine.cen.getGrantInstances */
export declare function grantInstances(args?: GrantInstancesArgs, opts?: pulumi.InvokeOptions): Promise<GrantInstancesResult>;
/**
* A collection of arguments for invoking GrantInstances.
*/
export interface GrantInstancesArgs {
/**
* 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 GrantInstances.
*/
export interface GrantInstancesResult {
/**
* The collection of query.
*/
readonly grantRules: outputs.cen.GrantInstancesGrantRule[];
/**
* 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",
* });
* ```
*/
/** @deprecated volcengine.cen.GrantInstances has been deprecated in favor of volcengine.cen.getGrantInstances */
export declare function grantInstancesOutput(args?: GrantInstancesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GrantInstancesResult>;
/**
* A collection of arguments for invoking GrantInstances.
*/
export interface GrantInstancesOutputArgs {
/**
* 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>;
}