getCustomConstraint function

Future<GetCustomConstraintResult> getCustomConstraint(
  1. GetCustomConstraintArgs args, {
  2. InvokeOptions? options,
})

Gets a custom constraint. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the custom constraint does not exist. args Arguments passed to this invoke. Arguments for getCustomConstraint. options Invoke options controlling this call.

Implementation

Future<GetCustomConstraintResult> getCustomConstraint(
  GetCustomConstraintArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:orgpolicy/v2:getCustomConstraint',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetCustomConstraintResult.fromMap(result);
}