@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
87 lines (86 loc) • 2.4 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",
* });
* ```
*/
/** @deprecated volcengine.iam.Policies has been deprecated in favor of volcengine.iam.getPolicies */
export declare function policies(args?: PoliciesArgs, opts?: pulumi.InvokeOptions): Promise<PoliciesResult>;
/**
* A collection of arguments for invoking Policies.
*/
export interface PoliciesArgs {
/**
* 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 Policies.
*/
export interface PoliciesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly outputFile?: string;
/**
* The collection of Policy query.
*/
readonly policies: outputs.iam.PoliciesPolicy[];
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",
* });
* ```
*/
/** @deprecated volcengine.iam.Policies has been deprecated in favor of volcengine.iam.getPolicies */
export declare function policiesOutput(args?: PoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<PoliciesResult>;
/**
* A collection of arguments for invoking Policies.
*/
export interface PoliciesOutputArgs {
/**
* 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>;
}