@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
91 lines (90 loc) • 2.46 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of transit router grant rules
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.transit_router.getGrantRules({
* transitRouterId: "tr-2bzy39uy6u3282dx0efxiqyq0",
* });
* ```
*/
export declare function getGrantRules(args: GetGrantRulesArgs, opts?: pulumi.InvokeOptions): Promise<GetGrantRulesResult>;
/**
* A collection of arguments for invoking getGrantRules.
*/
export interface GetGrantRulesArgs {
/**
* The id of the grant account.
*/
grantAccountId?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The id of the transit router.
*/
transitRouterId: string;
}
/**
* A collection of values returned by getGrantRules.
*/
export interface GetGrantRulesResult {
/**
* The id of the grant account.
*/
readonly grantAccountId?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly outputFile?: string;
/**
* The collection of query.
*/
readonly rules: outputs.transit_router.GetGrantRulesRule[];
/**
* The total count of query.
*/
readonly totalCount: number;
/**
* The id of the transaction router.
*/
readonly transitRouterId: string;
}
/**
* Use this data source to query detailed information of transit router grant rules
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.transit_router.getGrantRules({
* transitRouterId: "tr-2bzy39uy6u3282dx0efxiqyq0",
* });
* ```
*/
export declare function getGrantRulesOutput(args: GetGrantRulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGrantRulesResult>;
/**
* A collection of arguments for invoking getGrantRules.
*/
export interface GetGrantRulesOutputArgs {
/**
* The id of the grant account.
*/
grantAccountId?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The id of the transit router.
*/
transitRouterId: pulumi.Input<string>;
}