getPolicies

This data source provides the Resource Manager Policies of the current Alibaba Cloud user.

NOTE: Available in 1.86.0+.

Example Usage

variables:
example:
fn::invoke:
function: alicloud:resourcemanager:getPolicies
arguments:
nameRegex: tftest
descriptionRegex: tftest_policy
policyType: Custom
outputs:
firstPolicyId: ${example.policies[0].id}

Return

A collection of values returned by getPolicies.

Parameters

argument

A collection of arguments for invoking getPolicies.


suspend fun getPolicies(ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, policyType: String? = null): GetPoliciesResult

Return

A collection of values returned by getPolicies.

Parameters

ids

A list of Resource Manager Policy IDs.

nameRegex

A regex string to filter results by policy name.

outputFile

File name where to save data source results (after running pulumi preview).

policyType

The type of the policy. If you do not specify this parameter, the system lists all types of policies. Valid values: Custom and System.

See also


suspend fun getPolicies(argument: suspend GetPoliciesPlainArgsBuilder.() -> Unit): GetPoliciesResult

Return

A collection of values returned by getPolicies.

Parameters

argument

Builder for com.pulumi.alicloud.resourcemanager.kotlin.inputs.GetPoliciesPlainArgs.

See also