get static method

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

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

Implementation

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