getCustomConstraint function
Future<GetCustomConstraintResult>
getCustomConstraint(
- GetCustomConstraintArgs args, {
- 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);
}