import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::IAM::Policy */ export declare function getPolicy(args: GetPolicyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getPolicy. */ export interface GetPolicyArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getPolicy. */ export interface GetPolicyResult { /** * Number of identities bound to the policy. */ readonly attachmentCount: number; /** * Category of the system preset policy, usually the service code. This field is not returned for custom policies. */ readonly category: string; /** * Policy creation time. */ readonly createdTime: string; /** * Policy description, no more than 128 characters. */ readonly description: string; /** * Uniquely identifies the resource. */ readonly id: string; /** * Indicates whether the policy is for a service-linked role. 0 means no; 1 means yes. */ readonly isServiceRolePolicy: number; /** * Policy syntax content, for example: {"Statement":[{"Effect":"Allow","Action":["iam:","tag:"],"Resource":["*"]}]} */ readonly policyDocument: string; /** * Policy name, 1–64 characters. Supports English letters, numbers, and +=,.@-_ symbols. */ readonly policyName: string; /** * List of roles bound to the policy. */ readonly policyRoles: outputs.iam.GetPolicyPolicyRole[]; /** * Policy TRN. */ readonly policyTrn: string; /** * Policy type. System indicates a system preset policy; Custom indicates a custom policy. */ readonly policyType: string; /** * List of user groups bound to the policy. */ readonly policyUserGroups: outputs.iam.GetPolicyPolicyUserGroup[]; /** * List of users bound to the policy. */ readonly policyUsers: outputs.iam.GetPolicyPolicyUser[]; /** * Policy update time. */ readonly updatedTime: string; } /** * Data Source schema for Volcengine::IAM::Policy */ export declare function getPolicyOutput(args: GetPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getPolicy. */ export interface GetPolicyOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }