get static method

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

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

Implementation

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