get Data Exchange Iam Policy
Retrieves the current IAM policy data for dataexchange
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const policy = gcp.bigqueryanalyticshub.getDataExchangeIamPolicy({
project: dataExchange.project,
location: dataExchange.location,
dataExchangeId: dataExchange.dataExchangeId,
});
import pulumi
import pulumi_gcp as gcp
policy = gcp.bigqueryanalyticshub.get_data_exchange_iam_policy(project=data_exchange["project"],
location=data_exchange["location"],
data_exchange_id=data_exchange["dataExchangeId"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var policy = Gcp.BigQueryAnalyticsHub.GetDataExchangeIamPolicy.Invoke(new()
{
Project = dataExchange.Project,
Location = dataExchange.Location,
DataExchangeId = dataExchange.DataExchangeId,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/bigqueryanalyticshub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bigqueryanalyticshub.LookupDataExchangeIamPolicy(ctx, &bigqueryanalyticshub.LookupDataExchangeIamPolicyArgs{
Project: pulumi.StringRef(dataExchange.Project),
Location: pulumi.StringRef(dataExchange.Location),
DataExchangeId: dataExchange.DataExchangeId,
}, 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.bigqueryanalyticshub.BigqueryanalyticshubFunctions;
import com.pulumi.gcp.bigqueryanalyticshub.inputs.GetDataExchangeIamPolicyArgs;
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 = BigqueryanalyticshubFunctions.getDataExchangeIamPolicy(GetDataExchangeIamPolicyArgs.builder()
.project(dataExchange.project())
.location(dataExchange.location())
.dataExchangeId(dataExchange.dataExchangeId())
.build());
}
}
variables:
policy:
fn::invoke:
function: gcp:bigqueryanalyticshub:getDataExchangeIamPolicy
arguments:
project: ${dataExchange.project}
location: ${dataExchange.location}
dataExchangeId: ${dataExchange.dataExchangeId}
Return
A collection of values returned by getDataExchangeIamPolicy.
Parameters
A collection of arguments for invoking getDataExchangeIamPolicy.
Return
A collection of values returned by getDataExchangeIamPolicy.
Parameters
The ID of the data exchange. Must contain only Unicode letters, numbers (0-9), underscores (_). Should not use characters that require URL-escaping, or characters outside of ASCII, spaces. Used to find the parent resource to bind the IAM policy to
The name of the location this data exchange. Used to find the parent resource to bind the IAM policy to. If not specified, the value will be parsed from the identifier of the parent resource. If no location is provided in the parent identifier and no location is specified, it is taken from the provider configuration.
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.
See also
Return
A collection of values returned by getDataExchangeIamPolicy.
Parameters
Builder for com.pulumi.gcp.bigqueryanalyticshub.kotlin.inputs.GetDataExchangeIamPolicyPlainArgs.