getAspectTypeIamPolicy

Retrieves the current IAM policy data for aspecttype

example

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const policy = gcp.dataplex.getAspectTypeIamPolicy({
project: testAspectTypeBasic.project,
location: testAspectTypeBasic.location,
aspectTypeId: testAspectTypeBasic.aspectTypeId,
});
import pulumi
import pulumi_gcp as gcp
policy = gcp.dataplex.get_aspect_type_iam_policy(project=test_aspect_type_basic["project"],
location=test_aspect_type_basic["location"],
aspect_type_id=test_aspect_type_basic["aspectTypeId"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var policy = Gcp.DataPlex.GetAspectTypeIamPolicy.Invoke(new()
{
Project = testAspectTypeBasic.Project,
Location = testAspectTypeBasic.Location,
AspectTypeId = testAspectTypeBasic.AspectTypeId,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/dataplex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataplex.LookupAspectTypeIamPolicy(ctx, &dataplex.LookupAspectTypeIamPolicyArgs{
Project: pulumi.StringRef(testAspectTypeBasic.Project),
Location: pulumi.StringRef(testAspectTypeBasic.Location),
AspectTypeId: testAspectTypeBasic.AspectTypeId,
}, 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.GetAspectTypeIamPolicyArgs;
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.getAspectTypeIamPolicy(GetAspectTypeIamPolicyArgs.builder()
.project(testAspectTypeBasic.project())
.location(testAspectTypeBasic.location())
.aspectTypeId(testAspectTypeBasic.aspectTypeId())
.build());
}
}
variables:
policy:
fn::invoke:
Function: gcp:dataplex:getAspectTypeIamPolicy
Arguments:
project: ${testAspectTypeBasic.project}
location: ${testAspectTypeBasic.location}
aspectTypeId: ${testAspectTypeBasic.aspectTypeId}

Return

A collection of values returned by getAspectTypeIamPolicy.

Parameters

argument

A collection of arguments for invoking getAspectTypeIamPolicy.


suspend fun getAspectTypeIamPolicy(aspectTypeId: String, location: String? = null, project: String? = null): GetAspectTypeIamPolicyResult

Return

A collection of values returned by getAspectTypeIamPolicy.

Parameters

aspectTypeId
location

The location where aspect type will be created in. 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.

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.

See also


Return

A collection of values returned by getAspectTypeIamPolicy.

Parameters

argument

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

See also