Viewing docs for Google Cloud v10.2.0
published on Tuesday, Oct 20, 2026 by Pulumi
published on Tuesday, Oct 20, 2026 by Pulumi
Viewing docs for Google Cloud v10.2.0
published on Tuesday, Oct 20, 2026 by Pulumi
published on Tuesday, Oct 20, 2026 by Pulumi
Retrieves the current IAM policy data for pipeline
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const policy = gcp.eventarc.getPipelineIamPolicy({
project: primary.project,
location: primary.location,
pipelineId: primary.pipelineId,
});
import pulumi
import pulumi_gcp as gcp
policy = gcp.eventarc.get_pipeline_iam_policy(project=primary["project"],
location=primary["location"],
pipeline_id=primary["pipelineId"])
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/eventarc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventarc.LookupPipelineIamPolicy(ctx, &eventarc.LookupPipelineIamPolicyArgs{
Project: pulumi.StringRef(primary.Project),
Location: pulumi.StringRef(primary.Location),
PipelineId: primary.PipelineId,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var policy = Gcp.Eventarc.GetPipelineIamPolicy.Invoke(new()
{
Project = primary.Project,
Location = primary.Location,
PipelineId = primary.PipelineId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.eventarc.EventarcFunctions;
import com.pulumi.gcp.eventarc.inputs.GetPipelineIamPolicyArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 = EventarcFunctions.getPipelineIamPolicy(GetPipelineIamPolicyArgs.builder()
.project(primary.get("project"))
.location(primary.get("location"))
.pipelineId(primary.get("pipelineId"))
.build());
}
}
variables:
policy:
fn::invoke:
function: gcp:eventarc:getPipelineIamPolicy
arguments:
project: ${primary.project}
location: ${primary.location}
pipelineId: ${primary.pipelineId}
terraform {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
data "gcp_eventarc_pipeline_iam_policy" "policy" {
project = primary.project
location = primary.location
pipeline_id = primary.pipelineId
}
Using getPipelineIamPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPipelineIamPolicy(args: GetPipelineIamPolicyArgs, opts?: InvokeOptions): Promise<GetPipelineIamPolicyResult>
function getPipelineIamPolicyOutput(args: GetPipelineIamPolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetPipelineIamPolicyResult>def get_pipeline_iam_policy(location: Optional[str] = None,
pipeline_id: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPipelineIamPolicyResult
def get_pipeline_iam_policy_output(location: pulumi.Input[Optional[str]] = None,
pipeline_id: pulumi.Input[Optional[str]] = None,
project: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetPipelineIamPolicyResult]func LookupPipelineIamPolicy(ctx *Context, args *LookupPipelineIamPolicyArgs, opts ...InvokeOption) (*LookupPipelineIamPolicyResult, error)
func LookupPipelineIamPolicyOutput(ctx *Context, args *LookupPipelineIamPolicyOutputArgs, opts ...InvokeOption) LookupPipelineIamPolicyResultOutput> Note: This function is named LookupPipelineIamPolicy in the Go SDK.
public static class GetPipelineIamPolicy
{
public static Task<GetPipelineIamPolicyResult> InvokeAsync(GetPipelineIamPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetPipelineIamPolicyResult> Invoke(GetPipelineIamPolicyInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetPipelineIamPolicyResult> Invoke(GetPipelineIamPolicyInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetPipelineIamPolicyResult> getPipelineIamPolicy(GetPipelineIamPolicyArgs args, InvokeOptions options)
public static Output<GetPipelineIamPolicyResult> getPipelineIamPolicy(GetPipelineIamPolicyArgs args, InvokeOptions options)
public static Output<GetPipelineIamPolicyResult> getPipelineIamPolicy(GetPipelineIamPolicyArgs args, InvokeOutputOptions options)
fn::invoke:
function: gcp:eventarc/getPipelineIamPolicy:getPipelineIamPolicy
arguments:
# arguments dictionarydata "gcp_eventarc_get_pipeline_iam_policy" "name" {
# arguments
}The following arguments are supported:
- Pipeline
Id string - Used to find the parent resource to bind the IAM policy to
- Location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. 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 string
- 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.
- Pipeline
Id string - Used to find the parent resource to bind the IAM policy to
- Location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. 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 string
- 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.
- pipeline_
id string - Used to find the parent resource to bind the IAM policy to
- location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. 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 string
- 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.
- pipeline
Id String - Used to find the parent resource to bind the IAM policy to
- location String
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. 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 String
- 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.
- pipeline
Id string - Used to find the parent resource to bind the IAM policy to
- location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. 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 string
- 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.
- pipeline_
id str - Used to find the parent resource to bind the IAM policy to
- location str
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. 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 str
- 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.
- pipeline
Id String - Used to find the parent resource to bind the IAM policy to
- location String
- Resource ID segment making up resource
name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. 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 String
- 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.
getPipelineIamPolicy Result
The following output properties are available:
- Etag string
- (Computed) The etag of the IAM policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Pipeline
Id string - Policy
Data string - (Required only by
gcp.eventarc.PipelineIamPolicy) The policy data generated by agcp.organizations.getIAMPolicydata source. - Project string
- Etag string
- (Computed) The etag of the IAM policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Pipeline
Id string - Policy
Data string - (Required only by
gcp.eventarc.PipelineIamPolicy) The policy data generated by agcp.organizations.getIAMPolicydata source. - Project string
- etag string
- (Computed) The etag of the IAM policy.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- pipeline_
id string - policy_
data string - (Required only by
gcp.eventarc.PipelineIamPolicy) The policy data generated by agcp.organizations.getIAMPolicydata source. - project string
- etag String
- (Computed) The etag of the IAM policy.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- pipeline
Id String - policy
Data String - (Required only by
gcp.eventarc.PipelineIamPolicy) The policy data generated by agcp.organizations.getIAMPolicydata source. - project String
- etag string
- (Computed) The etag of the IAM policy.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- pipeline
Id string - policy
Data string - (Required only by
gcp.eventarc.PipelineIamPolicy) The policy data generated by agcp.organizations.getIAMPolicydata source. - project string
- etag str
- (Computed) The etag of the IAM policy.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- pipeline_
id str - policy_
data str - (Required only by
gcp.eventarc.PipelineIamPolicy) The policy data generated by agcp.organizations.getIAMPolicydata source. - project str
- etag String
- (Computed) The etag of the IAM policy.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- pipeline
Id String - policy
Data String - (Required only by
gcp.eventarc.PipelineIamPolicy) The policy data generated by agcp.organizations.getIAMPolicydata source. - project String
Package Details
- Repository
- Google Cloud (GCP) pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
Viewing docs for Google Cloud v10.2.0
published on Tuesday, Oct 20, 2026 by Pulumi
published on Tuesday, Oct 20, 2026 by Pulumi