get static method

ClusterPolicy get(
  1. String name,
  2. Input<String> id, {
  3. ClusterPolicyState? state,
  4. CustomResourceOptions? options,
})

Gets an existing ClusterPolicy resource's state with the given name and id.

Implementation

static ClusterPolicy get(
  String name,
  pulumi.Input<String> id, {
  ClusterPolicyState? state,
  pulumi.CustomResourceOptions? options,
}) {
  return ClusterPolicy._get(
    name,
    state: state?.toMap(),
    options: pulumi.CustomResourceOptions(id: id).merge(options),
  );
}