getConnectionProfileIamPolicy function

Future<GetConnectionProfileIamPolicyResult> getConnectionProfileIamPolicy(
  1. GetConnectionProfileIamPolicyArgs args, {
  2. InvokeOptions? options,
})

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. args Arguments passed to this invoke. Arguments for getConnectionProfileIamPolicy. options Invoke options controlling this call.

Implementation

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