get Log View Iam Policy
Retrieves the current IAM policy data for logview
example
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const policy = gcp.logging.getLogViewIamPolicy({
parent: loggingLogView.parent,
location: loggingLogView.location,
bucket: loggingLogView.bucket,
name: loggingLogView.name,
});
import pulumi
import pulumi_gcp as gcp
policy = gcp.logging.get_log_view_iam_policy(parent=logging_log_view["parent"],
location=logging_log_view["location"],
bucket=logging_log_view["bucket"],
name=logging_log_view["name"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var policy = Gcp.Logging.GetLogViewIamPolicy.Invoke(new()
{
Parent = loggingLogView.Parent,
Location = loggingLogView.Location,
Bucket = loggingLogView.Bucket,
Name = loggingLogView.Name,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/logging"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := logging.LookupLogViewIamPolicy(ctx, &logging.LookupLogViewIamPolicyArgs{
Parent: loggingLogView.Parent,
Location: pulumi.StringRef(loggingLogView.Location),
Bucket: loggingLogView.Bucket,
Name: loggingLogView.Name,
}, 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.logging.LoggingFunctions;
import com.pulumi.gcp.logging.inputs.GetLogViewIamPolicyArgs;
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 = LoggingFunctions.getLogViewIamPolicy(GetLogViewIamPolicyArgs.builder()
.parent(loggingLogView.parent())
.location(loggingLogView.location())
.bucket(loggingLogView.bucket())
.name(loggingLogView.name())
.build());
}
}
variables:
policy:
fn::invoke:
Function: gcp:logging:getLogViewIamPolicy
Arguments:
parent: ${loggingLogView.parent}
location: ${loggingLogView.location}
bucket: ${loggingLogView.bucket}
name: ${loggingLogView.name}
Return
A collection of values returned by getLogViewIamPolicy.
Parameters
A collection of arguments for invoking getLogViewIamPolicy.
Return
A collection of values returned by getLogViewIamPolicy.
Parameters
The bucket of the resource Used to find the parent resource to bind the IAM policy to
The location of the resource. The supported locations are: global, us-central1, us-east1, us-west1, asia-east1, europe-west1. 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.
Used to find the parent resource to bind the IAM policy to
The parent of the resource. Used to find the parent resource to bind the IAM policy to
See also
Return
A collection of values returned by getLogViewIamPolicy.
Parameters
Builder for com.pulumi.gcp.logging.kotlin.inputs.GetLogViewIamPolicyPlainArgs.