get static method

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

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

Implementation

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