get Delivery Pipeline Iam Policy
suspend fun getDeliveryPipelineIamPolicy(argument: GetDeliveryPipelineIamPolicyPlainArgs): GetDeliveryPipelineIamPolicyResult
Retrieves the current IAM policy data for deliverypipeline
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const policy = gcp.clouddeploy.getDeliveryPipelineIamPolicy({
project: _default.project,
location: _default.location,
name: _default.name,
});
Content copied to clipboard
import pulumi
import pulumi_gcp as gcp
policy = gcp.clouddeploy.get_delivery_pipeline_iam_policy(project=default["project"],
location=default["location"],
name=default["name"])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var policy = Gcp.CloudDeploy.GetDeliveryPipelineIamPolicy.Invoke(new()
{
Project = @default.Project,
Location = @default.Location,
Name = @default.Name,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/clouddeploy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := clouddeploy.LookupDeliveryPipelineIamPolicy(ctx, &clouddeploy.LookupDeliveryPipelineIamPolicyArgs{
Project: pulumi.StringRef(_default.Project),
Location: pulumi.StringRef(_default.Location),
Name: _default.Name,
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.clouddeploy.ClouddeployFunctions;
import com.pulumi.gcp.clouddeploy.inputs.GetDeliveryPipelineIamPolicyArgs;
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 = ClouddeployFunctions.getDeliveryPipelineIamPolicy(GetDeliveryPipelineIamPolicyArgs.builder()
.project(default_.project())
.location(default_.location())
.name(default_.name())
.build());
}
}
Content copied to clipboard
variables:
policy:
fn::invoke:
function: gcp:clouddeploy:getDeliveryPipelineIamPolicy
arguments:
project: ${default.project}
location: ${default.location}
name: ${default.name}
Content copied to clipboard
Return
A collection of values returned by getDeliveryPipelineIamPolicy.
Parameters
argument
A collection of arguments for invoking getDeliveryPipelineIamPolicy.
suspend fun getDeliveryPipelineIamPolicy(location: String? = null, name: String, project: String? = null): GetDeliveryPipelineIamPolicyResult
Return
A collection of values returned by getDeliveryPipelineIamPolicy.
Parameters
location
name
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.
See also
suspend fun getDeliveryPipelineIamPolicy(argument: suspend GetDeliveryPipelineIamPolicyPlainArgsBuilder.() -> Unit): GetDeliveryPipelineIamPolicyResult
Return
A collection of values returned by getDeliveryPipelineIamPolicy.
Parameters
argument
Builder for com.pulumi.gcp.clouddeploy.kotlin.inputs.GetDeliveryPipelineIamPolicyPlainArgs.