@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
85 lines (84 loc) • 2.24 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of iam policies
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.iam.getPolicies({
* scope: "Custom",
* });
* ```
*/
export declare function getPolicies(args?: GetPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetPoliciesResult>;
/**
* A collection of arguments for invoking getPolicies.
*/
export interface GetPoliciesArgs {
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The scope of the Policy.
*/
scope?: string;
/**
* Whether to return the service role policy.
*/
withServiceRolePolicy?: number;
}
/**
* A collection of values returned by getPolicies.
*/
export interface GetPoliciesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly outputFile?: string;
/**
* The collection of Policy query.
*/
readonly policies: outputs.iam.GetPoliciesPolicy[];
readonly scope?: string;
/**
* The total count of Policy query.
*/
readonly totalCount: number;
readonly withServiceRolePolicy?: number;
}
/**
* Use this data source to query detailed information of iam policies
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.iam.getPolicies({
* scope: "Custom",
* });
* ```
*/
export declare function getPoliciesOutput(args?: GetPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPoliciesResult>;
/**
* A collection of arguments for invoking getPolicies.
*/
export interface GetPoliciesOutputArgs {
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The scope of the Policy.
*/
scope?: pulumi.Input<string>;
/**
* Whether to return the service role policy.
*/
withServiceRolePolicy?: pulumi.Input<number>;
}