UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

90 lines (89 loc) 2.66 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of organization service control policies * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.organization.getServiceControlPolicies({ * policyType: "Custom", * query: "test", * }); * ``` */ export declare function getServiceControlPolicies(args?: GetServiceControlPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetServiceControlPoliciesResult>; /** * A collection of arguments for invoking getServiceControlPolicies. */ export interface GetServiceControlPoliciesArgs { /** * File name where to save data source results. */ outputFile?: string; /** * The type of policy. The value can be System or Custom. */ policyType?: string; /** * Query policies, support policy name or description. */ query?: string; } /** * A collection of values returned by getServiceControlPolicies. */ export interface GetServiceControlPoliciesResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly outputFile?: string; /** * The collection of Policy query. */ readonly policies: outputs.organization.GetServiceControlPoliciesPolicy[]; /** * The type of the Policy. */ readonly policyType?: string; readonly query?: string; /** * The total count of Policy query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of organization service control policies * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.organization.getServiceControlPolicies({ * policyType: "Custom", * query: "test", * }); * ``` */ export declare function getServiceControlPoliciesOutput(args?: GetServiceControlPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetServiceControlPoliciesResult>; /** * A collection of arguments for invoking getServiceControlPolicies. */ export interface GetServiceControlPoliciesOutputArgs { /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The type of policy. The value can be System or Custom. */ policyType?: pulumi.Input<string>; /** * Query policies, support policy name or description. */ query?: pulumi.Input<string>; }