getPolicy

Gets a policy on a resource. If no policy is set on the resource, NOT_FOUND is returned. The etag value can be used with UpdatePolicy() to update a policy during read-modify-write.

Return

null

Parameters

argument

null


suspend fun getPolicy(policyId: String, project: String? = null): GetPolicyResult

Return

null

See also

Parameters

policyId
project

suspend fun getPolicy(argument: suspend GetPolicyPlainArgsBuilder.() -> Unit): GetPolicyResult

Return

null

See also

Parameters

argument

Builder for com.pulumi.googlenative.orgpolicy.v2.kotlin.inputs.GetPolicyPlainArgs.