get static method

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

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

Implementation

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