getRule function

Future<GetRuleResult> getRule(
  1. GetRuleArgs args, {
  2. InvokeOptions? options,
})

Gets details of a single GatewaySecurityPolicyRule. args Arguments passed to this invoke. Arguments for getRule. options Invoke options controlling this call.

Implementation

Future<GetRuleResult> getRule(
  GetRuleArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:networksecurity/v1:getRule',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetRuleResult.fromMap(result);
}