getNetworkAttachment function

Future<GetNetworkAttachmentResult> getNetworkAttachment(
  1. GetNetworkAttachmentArgs args, {
  2. InvokeOptions? options,
})

Returns the specified NetworkAttachment resource in the given scope. args Arguments passed to this invoke. Arguments for getNetworkAttachment. options Invoke options controlling this call.

Implementation

Future<GetNetworkAttachmentResult> getNetworkAttachment(
  GetNetworkAttachmentArgs args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:compute/alpha:getNetworkAttachment',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetNetworkAttachmentResult.fromMap(result);
}