getService function

Future<GetServiceResult> getService(
  1. GetServiceArgs args, {
  2. InvokeOptions? options,
})

Get the named Service. args Arguments passed to this invoke. Arguments for getService. options Invoke options controlling this call.

Implementation

Future<GetServiceResult> getService(
  GetServiceArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:monitoring/v3:getService',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetServiceResult.fromMap(result);
}