Class FolderFunctions


  • public final class FolderFunctions
    extends java.lang.Object
    • Constructor Detail

      • FolderFunctions

        public FolderFunctions()
    • Method Detail

      • getIamPolicy

        public static com.pulumi.core.Output<GetIamPolicyResult> getIamPolicy​(GetIamPolicyArgs args)
        Retrieves the current IAM policy data for a folder. ## example ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.folder.FolderFunctions; import com.pulumi.gcp.folder.inputs.GetIamPolicyArgs; 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 test = FolderFunctions.getIamPolicy(GetIamPolicyArgs.builder() .folder(google_folder.permissiontest().name()) .build()); } } ```
      • getIamPolicyPlain

        public static java.util.concurrent.CompletableFuture<GetIamPolicyResult> getIamPolicyPlain​(GetIamPolicyPlainArgs args)
        Retrieves the current IAM policy data for a folder. ## example ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.folder.FolderFunctions; import com.pulumi.gcp.folder.inputs.GetIamPolicyArgs; 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 test = FolderFunctions.getIamPolicy(GetIamPolicyArgs.builder() .folder(google_folder.permissiontest().name()) .build()); } } ```
      • getIamPolicy

        public static com.pulumi.core.Output<GetIamPolicyResult> getIamPolicy​(GetIamPolicyArgs args,
                                                                              com.pulumi.deployment.InvokeOptions options)
        Retrieves the current IAM policy data for a folder. ## example ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.folder.FolderFunctions; import com.pulumi.gcp.folder.inputs.GetIamPolicyArgs; 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 test = FolderFunctions.getIamPolicy(GetIamPolicyArgs.builder() .folder(google_folder.permissiontest().name()) .build()); } } ```
      • getIamPolicyPlain

        public static java.util.concurrent.CompletableFuture<GetIamPolicyResult> getIamPolicyPlain​(GetIamPolicyPlainArgs args,
                                                                                                   com.pulumi.deployment.InvokeOptions options)
        Retrieves the current IAM policy data for a folder. ## example ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.folder.FolderFunctions; import com.pulumi.gcp.folder.inputs.GetIamPolicyArgs; 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 test = FolderFunctions.getIamPolicy(GetIamPolicyArgs.builder() .folder(google_folder.permissiontest().name()) .build()); } } ```
      • getOrganizationPolicy

        public static com.pulumi.core.Output<GetOrganizationPolicyResult> getOrganizationPolicy​(GetOrganizationPolicyArgs args)
        Allows management of Organization policies for a Google Folder. For more information see [the official documentation](https://cloud.google.com/resource-manager/docs/organization-policy/overview) ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.folder.FolderFunctions; import com.pulumi.gcp.folder.inputs.GetOrganizationPolicyArgs; 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 = FolderFunctions.getOrganizationPolicy(GetOrganizationPolicyArgs.builder() .folder("folders/folderid") .constraint("constraints/compute.trustedImageProjects") .build()); ctx.export("version", policy.applyValue(getOrganizationPolicyResult -> getOrganizationPolicyResult.version())); } } ```
      • getOrganizationPolicyPlain

        public static java.util.concurrent.CompletableFuture<GetOrganizationPolicyResult> getOrganizationPolicyPlain​(GetOrganizationPolicyPlainArgs args)
        Allows management of Organization policies for a Google Folder. For more information see [the official documentation](https://cloud.google.com/resource-manager/docs/organization-policy/overview) ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.folder.FolderFunctions; import com.pulumi.gcp.folder.inputs.GetOrganizationPolicyArgs; 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 = FolderFunctions.getOrganizationPolicy(GetOrganizationPolicyArgs.builder() .folder("folders/folderid") .constraint("constraints/compute.trustedImageProjects") .build()); ctx.export("version", policy.applyValue(getOrganizationPolicyResult -> getOrganizationPolicyResult.version())); } } ```
      • getOrganizationPolicy

        public static com.pulumi.core.Output<GetOrganizationPolicyResult> getOrganizationPolicy​(GetOrganizationPolicyArgs args,
                                                                                                com.pulumi.deployment.InvokeOptions options)
        Allows management of Organization policies for a Google Folder. For more information see [the official documentation](https://cloud.google.com/resource-manager/docs/organization-policy/overview) ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.folder.FolderFunctions; import com.pulumi.gcp.folder.inputs.GetOrganizationPolicyArgs; 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 = FolderFunctions.getOrganizationPolicy(GetOrganizationPolicyArgs.builder() .folder("folders/folderid") .constraint("constraints/compute.trustedImageProjects") .build()); ctx.export("version", policy.applyValue(getOrganizationPolicyResult -> getOrganizationPolicyResult.version())); } } ```
      • getOrganizationPolicyPlain

        public static java.util.concurrent.CompletableFuture<GetOrganizationPolicyResult> getOrganizationPolicyPlain​(GetOrganizationPolicyPlainArgs args,
                                                                                                                     com.pulumi.deployment.InvokeOptions options)
        Allows management of Organization policies for a Google Folder. For more information see [the official documentation](https://cloud.google.com/resource-manager/docs/organization-policy/overview) ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.gcp.folder.FolderFunctions; import com.pulumi.gcp.folder.inputs.GetOrganizationPolicyArgs; 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 = FolderFunctions.getOrganizationPolicy(GetOrganizationPolicyArgs.builder() .folder("folders/folderid") .constraint("constraints/compute.trustedImageProjects") .build()); ctx.export("version", policy.applyValue(getOrganizationPolicyResult -> getOrganizationPolicyResult.version())); } } ```