getAutoscalingPolicyIamPolicy

Retrieves the current IAM policy data for autoscalingpolicy

example

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const policy = gcp.dataproc.getAutoscalingPolicyIamPolicy({
project: basic.project,
location: basic.location,
policyId: basic.policyId,
});
import pulumi
import pulumi_gcp as gcp
policy = gcp.dataproc.get_autoscaling_policy_iam_policy(project=basic["project"],
location=basic["location"],
policy_id=basic["policyId"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var policy = Gcp.Dataproc.GetAutoscalingPolicyIamPolicy.Invoke(new()
{
Project = basic.Project,
Location = basic.Location,
PolicyId = basic.PolicyId,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/dataproc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataproc.LookupAutoscalingPolicyIamPolicy(ctx, &dataproc.LookupAutoscalingPolicyIamPolicyArgs{
Project: pulumi.StringRef(basic.Project),
Location: pulumi.StringRef(basic.Location),
PolicyId: basic.PolicyId,
}, 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.dataproc.DataprocFunctions;
import com.pulumi.gcp.dataproc.inputs.GetAutoscalingPolicyIamPolicyArgs;
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 = DataprocFunctions.getAutoscalingPolicyIamPolicy(GetAutoscalingPolicyIamPolicyArgs.builder()
.project(basic.project())
.location(basic.location())
.policyId(basic.policyId())
.build());
}
}
variables:
policy:
fn::invoke:
Function: gcp:dataproc:getAutoscalingPolicyIamPolicy
Arguments:
project: ${basic.project}
location: ${basic.location}
policyId: ${basic.policyId}

Return

A collection of values returned by getAutoscalingPolicyIamPolicy.

Parameters

argument

A collection of arguments for invoking getAutoscalingPolicyIamPolicy.


suspend fun getAutoscalingPolicyIamPolicy(location: String? = null, policyId: String, project: String? = null): GetAutoscalingPolicyIamPolicyResult

Return

A collection of values returned by getAutoscalingPolicyIamPolicy.

Parameters

location

The location where the autoscaling policy should reside. The default value is global. 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.

policyId

The policy id. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters. 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


Return

A collection of values returned by getAutoscalingPolicyIamPolicy.

Parameters

argument

Builder for com.pulumi.gcp.dataproc.kotlin.inputs.GetAutoscalingPolicyIamPolicyPlainArgs.

See also