get static method

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

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

Implementation

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