getTaskIamPolicy

Retrieves the current IAM policy data for task

example

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const policy = gcp.dataplex.getTaskIamPolicy({
project: google_dataplex_task.example.project,
location: google_dataplex_task.example.location,
lake: google_dataplex_task.example.lake,
taskId: google_dataplex_task.example.task_id,
});
import pulumi
import pulumi_gcp as gcp
policy = gcp.dataplex.get_task_iam_policy(project=google_dataplex_task["example"]["project"],
location=google_dataplex_task["example"]["location"],
lake=google_dataplex_task["example"]["lake"],
task_id=google_dataplex_task["example"]["task_id"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var policy = Gcp.DataPlex.GetTaskIamPolicy.Invoke(new()
{
Project = google_dataplex_task.Example.Project,
Location = google_dataplex_task.Example.Location,
Lake = google_dataplex_task.Example.Lake,
TaskId = google_dataplex_task.Example.Task_id,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/dataplex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataplex.LookupTaskIamPolicy(ctx, &dataplex.LookupTaskIamPolicyArgs{
Project: pulumi.StringRef(google_dataplex_task.Example.Project),
Location: pulumi.StringRef(google_dataplex_task.Example.Location),
Lake: google_dataplex_task.Example.Lake,
TaskId: google_dataplex_task.Example.Task_id,
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataplex.DataplexFunctions;
import com.pulumi.gcp.dataplex.inputs.GetTaskIamPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var policy = DataplexFunctions.getTaskIamPolicy(GetTaskIamPolicyArgs.builder()
.project(google_dataplex_task.example().project())
.location(google_dataplex_task.example().location())
.lake(google_dataplex_task.example().lake())
.taskId(google_dataplex_task.example().task_id())
.build());
}
}
variables:
policy:
fn::invoke:
Function: gcp:dataplex:getTaskIamPolicy
Arguments:
project: ${google_dataplex_task.example.project}
location: ${google_dataplex_task.example.location}
lake: ${google_dataplex_task.example.lake}
taskId: ${google_dataplex_task.example.task_id}

Return

A collection of values returned by getTaskIamPolicy.

Parameters

argument

A collection of arguments for invoking getTaskIamPolicy.


suspend fun getTaskIamPolicy(lake: String, location: String? = null, project: String? = null, taskId: String): GetTaskIamPolicyResult

Return

A collection of values returned by getTaskIamPolicy.

Parameters

lake

The lake in which the task will be created in. Used to find the parent resource to bind the IAM policy to

location

The location in which the task will be created in. Used to find the parent resource to bind the IAM policy to

project

The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.

taskId

See also


Return

A collection of values returned by getTaskIamPolicy.

Parameters

argument

Builder for com.pulumi.gcp.dataplex.kotlin.inputs.GetTaskIamPolicyPlainArgs.

See also