getServiceAttachmentIamPolicyComputeV1 function

Future<GetServiceAttachmentIamPolicyComputeV1Result> getServiceAttachmentIamPolicyComputeV1(
  1. GetServiceAttachmentIamPolicyComputeV1Args args, {
  2. InvokeOptions? options,
})

Gets the access control policy for a resource. May be empty if no such policy or resource exists. args Arguments passed to this invoke. Arguments for getServiceAttachmentIamPolicy. options Invoke options controlling this call.

Implementation

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