getFolder function

Future<GetFolderResult> getFolder(
  1. GetFolderArgs args, {
  2. InvokeOptions? options,
})

Retrieves a Folder identified by the supplied resource name. Valid Folder resource names have the format folders/{folder_id} (for example, folders/1234). The caller must have resourcemanager.folders.get permission on the identified folder. args Arguments passed to this invoke. Arguments for getFolder. options Invoke options controlling this call.

Implementation

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