Class Cloudrunv2Functions


  • public final class Cloudrunv2Functions
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.pulumi.core.Output<GetJobResult> getJob​(GetJobArgs args)
      Get information about a Google Cloud Run v2 Job.
      static com.pulumi.core.Output<GetJobResult> getJob​(GetJobArgs args, com.pulumi.deployment.InvokeOptions options)
      Get information about a Google Cloud Run v2 Job.
      static com.pulumi.core.Output<GetJobIamPolicyResult> getJobIamPolicy​(GetJobIamPolicyArgs args)
      Retrieves the current IAM policy data for job ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetJobIamPolicyArgs; 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 = Cloudrunv2Functions.getJobIamPolicy(GetJobIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      static com.pulumi.core.Output<GetJobIamPolicyResult> getJobIamPolicy​(GetJobIamPolicyArgs args, com.pulumi.deployment.InvokeOptions options)
      Retrieves the current IAM policy data for job ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetJobIamPolicyArgs; 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 = Cloudrunv2Functions.getJobIamPolicy(GetJobIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      static java.util.concurrent.CompletableFuture<GetJobIamPolicyResult> getJobIamPolicyPlain​(GetJobIamPolicyPlainArgs args)
      Retrieves the current IAM policy data for job ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetJobIamPolicyArgs; 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 = Cloudrunv2Functions.getJobIamPolicy(GetJobIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      static java.util.concurrent.CompletableFuture<GetJobIamPolicyResult> getJobIamPolicyPlain​(GetJobIamPolicyPlainArgs args, com.pulumi.deployment.InvokeOptions options)
      Retrieves the current IAM policy data for job ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetJobIamPolicyArgs; 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 = Cloudrunv2Functions.getJobIamPolicy(GetJobIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      static java.util.concurrent.CompletableFuture<GetJobResult> getJobPlain​(GetJobPlainArgs args)
      Get information about a Google Cloud Run v2 Job.
      static java.util.concurrent.CompletableFuture<GetJobResult> getJobPlain​(GetJobPlainArgs args, com.pulumi.deployment.InvokeOptions options)
      Get information about a Google Cloud Run v2 Job.
      static com.pulumi.core.Output<GetServiceResult> getService​(GetServiceArgs args)
      Get information about a Google Cloud Run v2 Service.
      static com.pulumi.core.Output<GetServiceResult> getService​(GetServiceArgs args, com.pulumi.deployment.InvokeOptions options)
      Get information about a Google Cloud Run v2 Service.
      static com.pulumi.core.Output<GetServiceIamPolicyResult> getServiceIamPolicy​(GetServiceIamPolicyArgs args)
      Retrieves the current IAM policy data for service ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetServiceIamPolicyArgs; 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 = Cloudrunv2Functions.getServiceIamPolicy(GetServiceIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      static com.pulumi.core.Output<GetServiceIamPolicyResult> getServiceIamPolicy​(GetServiceIamPolicyArgs args, com.pulumi.deployment.InvokeOptions options)
      Retrieves the current IAM policy data for service ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetServiceIamPolicyArgs; 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 = Cloudrunv2Functions.getServiceIamPolicy(GetServiceIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      static java.util.concurrent.CompletableFuture<GetServiceIamPolicyResult> getServiceIamPolicyPlain​(GetServiceIamPolicyPlainArgs args)
      Retrieves the current IAM policy data for service ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetServiceIamPolicyArgs; 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 = Cloudrunv2Functions.getServiceIamPolicy(GetServiceIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      static java.util.concurrent.CompletableFuture<GetServiceIamPolicyResult> getServiceIamPolicyPlain​(GetServiceIamPolicyPlainArgs args, com.pulumi.deployment.InvokeOptions options)
      Retrieves the current IAM policy data for service ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetServiceIamPolicyArgs; 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 = Cloudrunv2Functions.getServiceIamPolicy(GetServiceIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      static java.util.concurrent.CompletableFuture<GetServiceResult> getServicePlain​(GetServicePlainArgs args)
      Get information about a Google Cloud Run v2 Service.
      static java.util.concurrent.CompletableFuture<GetServiceResult> getServicePlain​(GetServicePlainArgs args, com.pulumi.deployment.InvokeOptions options)
      Get information about a Google Cloud Run v2 Service.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Cloudrunv2Functions

        public Cloudrunv2Functions()
    • Method Detail

      • getJob

        public static com.pulumi.core.Output<GetJobResult> getJob​(GetJobArgs args)
        Get information about a Google Cloud Run v2 Job. For more information see the [official documentation](https://cloud.google.com/run/docs/) and [API](https://cloud.google.com/run/docs/apis). ## Example Usage <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetJobArgs; 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 myJob = Cloudrunv2Functions.getJob(GetJobArgs.builder() .name("my-job") .location("us-central1") .build()); } } ``` <!--End PulumiCodeChooser -->
      • getJobPlain

        public static java.util.concurrent.CompletableFuture<GetJobResult> getJobPlain​(GetJobPlainArgs args)
        Get information about a Google Cloud Run v2 Job. For more information see the [official documentation](https://cloud.google.com/run/docs/) and [API](https://cloud.google.com/run/docs/apis). ## Example Usage <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetJobArgs; 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 myJob = Cloudrunv2Functions.getJob(GetJobArgs.builder() .name("my-job") .location("us-central1") .build()); } } ``` <!--End PulumiCodeChooser -->
      • getJob

        public static com.pulumi.core.Output<GetJobResult> getJob​(GetJobArgs args,
                                                                  com.pulumi.deployment.InvokeOptions options)
        Get information about a Google Cloud Run v2 Job. For more information see the [official documentation](https://cloud.google.com/run/docs/) and [API](https://cloud.google.com/run/docs/apis). ## Example Usage <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetJobArgs; 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 myJob = Cloudrunv2Functions.getJob(GetJobArgs.builder() .name("my-job") .location("us-central1") .build()); } } ``` <!--End PulumiCodeChooser -->
      • getJobPlain

        public static java.util.concurrent.CompletableFuture<GetJobResult> getJobPlain​(GetJobPlainArgs args,
                                                                                       com.pulumi.deployment.InvokeOptions options)
        Get information about a Google Cloud Run v2 Job. For more information see the [official documentation](https://cloud.google.com/run/docs/) and [API](https://cloud.google.com/run/docs/apis). ## Example Usage <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetJobArgs; 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 myJob = Cloudrunv2Functions.getJob(GetJobArgs.builder() .name("my-job") .location("us-central1") .build()); } } ``` <!--End PulumiCodeChooser -->
      • getJobIamPolicy

        public static com.pulumi.core.Output<GetJobIamPolicyResult> getJobIamPolicy​(GetJobIamPolicyArgs args)
        Retrieves the current IAM policy data for job ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetJobIamPolicyArgs; 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 = Cloudrunv2Functions.getJobIamPolicy(GetJobIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      • getJobIamPolicyPlain

        public static java.util.concurrent.CompletableFuture<GetJobIamPolicyResult> getJobIamPolicyPlain​(GetJobIamPolicyPlainArgs args)
        Retrieves the current IAM policy data for job ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetJobIamPolicyArgs; 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 = Cloudrunv2Functions.getJobIamPolicy(GetJobIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      • getJobIamPolicy

        public static com.pulumi.core.Output<GetJobIamPolicyResult> getJobIamPolicy​(GetJobIamPolicyArgs args,
                                                                                    com.pulumi.deployment.InvokeOptions options)
        Retrieves the current IAM policy data for job ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetJobIamPolicyArgs; 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 = Cloudrunv2Functions.getJobIamPolicy(GetJobIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      • getJobIamPolicyPlain

        public static java.util.concurrent.CompletableFuture<GetJobIamPolicyResult> getJobIamPolicyPlain​(GetJobIamPolicyPlainArgs args,
                                                                                                         com.pulumi.deployment.InvokeOptions options)
        Retrieves the current IAM policy data for job ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetJobIamPolicyArgs; 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 = Cloudrunv2Functions.getJobIamPolicy(GetJobIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      • getService

        public static com.pulumi.core.Output<GetServiceResult> getService​(GetServiceArgs args)
        Get information about a Google Cloud Run v2 Service. For more information see the [official documentation](https://cloud.google.com/run/docs/) and [API](https://cloud.google.com/run/docs/apis). ## Example Usage <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetServiceArgs; 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 myService = Cloudrunv2Functions.getService(GetServiceArgs.builder() .name("my-service") .location("us-central1") .build()); } } ``` <!--End PulumiCodeChooser -->
      • getServicePlain

        public static java.util.concurrent.CompletableFuture<GetServiceResult> getServicePlain​(GetServicePlainArgs args)
        Get information about a Google Cloud Run v2 Service. For more information see the [official documentation](https://cloud.google.com/run/docs/) and [API](https://cloud.google.com/run/docs/apis). ## Example Usage <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetServiceArgs; 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 myService = Cloudrunv2Functions.getService(GetServiceArgs.builder() .name("my-service") .location("us-central1") .build()); } } ``` <!--End PulumiCodeChooser -->
      • getService

        public static com.pulumi.core.Output<GetServiceResult> getService​(GetServiceArgs args,
                                                                          com.pulumi.deployment.InvokeOptions options)
        Get information about a Google Cloud Run v2 Service. For more information see the [official documentation](https://cloud.google.com/run/docs/) and [API](https://cloud.google.com/run/docs/apis). ## Example Usage <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetServiceArgs; 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 myService = Cloudrunv2Functions.getService(GetServiceArgs.builder() .name("my-service") .location("us-central1") .build()); } } ``` <!--End PulumiCodeChooser -->
      • getServicePlain

        public static java.util.concurrent.CompletableFuture<GetServiceResult> getServicePlain​(GetServicePlainArgs args,
                                                                                               com.pulumi.deployment.InvokeOptions options)
        Get information about a Google Cloud Run v2 Service. For more information see the [official documentation](https://cloud.google.com/run/docs/) and [API](https://cloud.google.com/run/docs/apis). ## Example Usage <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetServiceArgs; 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 myService = Cloudrunv2Functions.getService(GetServiceArgs.builder() .name("my-service") .location("us-central1") .build()); } } ``` <!--End PulumiCodeChooser -->
      • getServiceIamPolicy

        public static com.pulumi.core.Output<GetServiceIamPolicyResult> getServiceIamPolicy​(GetServiceIamPolicyArgs args)
        Retrieves the current IAM policy data for service ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetServiceIamPolicyArgs; 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 = Cloudrunv2Functions.getServiceIamPolicy(GetServiceIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      • getServiceIamPolicyPlain

        public static java.util.concurrent.CompletableFuture<GetServiceIamPolicyResult> getServiceIamPolicyPlain​(GetServiceIamPolicyPlainArgs args)
        Retrieves the current IAM policy data for service ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetServiceIamPolicyArgs; 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 = Cloudrunv2Functions.getServiceIamPolicy(GetServiceIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      • getServiceIamPolicy

        public static com.pulumi.core.Output<GetServiceIamPolicyResult> getServiceIamPolicy​(GetServiceIamPolicyArgs args,
                                                                                            com.pulumi.deployment.InvokeOptions options)
        Retrieves the current IAM policy data for service ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetServiceIamPolicyArgs; 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 = Cloudrunv2Functions.getServiceIamPolicy(GetServiceIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->
      • getServiceIamPolicyPlain

        public static java.util.concurrent.CompletableFuture<GetServiceIamPolicyResult> getServiceIamPolicyPlain​(GetServiceIamPolicyPlainArgs args,
                                                                                                                 com.pulumi.deployment.InvokeOptions options)
        Retrieves the current IAM policy data for service ## example <!--Start PulumiCodeChooser --> ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.cloudrunv2.Cloudrunv2Functions; import com.pulumi.gcp.cloudrunv2.inputs.GetServiceIamPolicyArgs; 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 = Cloudrunv2Functions.getServiceIamPolicy(GetServiceIamPolicyArgs.builder() .project(default_.project()) .location(default_.location()) .name(default_.name()) .build()); } } ``` <!--End PulumiCodeChooser -->