All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.alicloud.cloudsso.CloudssoFunctions Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.alicloud.cloudsso;

import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.cloudsso.inputs.GetAccessAssignmentsArgs;
import com.pulumi.alicloud.cloudsso.inputs.GetAccessAssignmentsPlainArgs;
import com.pulumi.alicloud.cloudsso.inputs.GetAccessConfigurationsArgs;
import com.pulumi.alicloud.cloudsso.inputs.GetAccessConfigurationsPlainArgs;
import com.pulumi.alicloud.cloudsso.inputs.GetDirectoriesArgs;
import com.pulumi.alicloud.cloudsso.inputs.GetDirectoriesPlainArgs;
import com.pulumi.alicloud.cloudsso.inputs.GetGroupsArgs;
import com.pulumi.alicloud.cloudsso.inputs.GetGroupsPlainArgs;
import com.pulumi.alicloud.cloudsso.inputs.GetScimServerCredentialsArgs;
import com.pulumi.alicloud.cloudsso.inputs.GetScimServerCredentialsPlainArgs;
import com.pulumi.alicloud.cloudsso.inputs.GetServiceArgs;
import com.pulumi.alicloud.cloudsso.inputs.GetServicePlainArgs;
import com.pulumi.alicloud.cloudsso.inputs.GetUsersArgs;
import com.pulumi.alicloud.cloudsso.inputs.GetUsersPlainArgs;
import com.pulumi.alicloud.cloudsso.outputs.GetAccessAssignmentsResult;
import com.pulumi.alicloud.cloudsso.outputs.GetAccessConfigurationsResult;
import com.pulumi.alicloud.cloudsso.outputs.GetDirectoriesResult;
import com.pulumi.alicloud.cloudsso.outputs.GetGroupsResult;
import com.pulumi.alicloud.cloudsso.outputs.GetScimServerCredentialsResult;
import com.pulumi.alicloud.cloudsso.outputs.GetServiceResult;
import com.pulumi.alicloud.cloudsso.outputs.GetUsersResult;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import java.util.concurrent.CompletableFuture;

public final class CloudssoFunctions {
    /**
     * This data source provides the Cloud Sso Access Assignments of the current Alibaba Cloud user.
     * 
     * > **NOTE:** Available in v1.193.0+.
     * 
     * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region
     * 
     * ## Example Usage
     * 
     * Basic Usage
     * 
     * <!--Start PulumiCodeChooser -->
     * 
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetAccessAssignmentsArgs;
     * 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 ids = CloudssoFunctions.getAccessAssignments(GetAccessAssignmentsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoAccessAssignmentId1", ids.applyValue(getAccessAssignmentsResult -> getAccessAssignmentsResult.assignments()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getAccessAssignments(GetAccessAssignmentsArgs args) { return getAccessAssignments(args, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Access Assignments of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.193.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetAccessAssignmentsArgs;
     * 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 ids = CloudssoFunctions.getAccessAssignments(GetAccessAssignmentsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoAccessAssignmentId1", ids.applyValue(getAccessAssignmentsResult -> getAccessAssignmentsResult.assignments()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAccessAssignmentsPlain(GetAccessAssignmentsPlainArgs args) { return getAccessAssignmentsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Access Assignments of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.193.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetAccessAssignmentsArgs;
     * 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 ids = CloudssoFunctions.getAccessAssignments(GetAccessAssignmentsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoAccessAssignmentId1", ids.applyValue(getAccessAssignmentsResult -> getAccessAssignmentsResult.assignments()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getAccessAssignments(GetAccessAssignmentsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getAccessAssignments:getAccessAssignments", TypeShape.of(GetAccessAssignmentsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cloud Sso Access Assignments of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.193.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetAccessAssignmentsArgs;
     * 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 ids = CloudssoFunctions.getAccessAssignments(GetAccessAssignmentsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoAccessAssignmentId1", ids.applyValue(getAccessAssignmentsResult -> getAccessAssignmentsResult.assignments()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAccessAssignmentsPlain(GetAccessAssignmentsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:cloudsso/getAccessAssignments:getAccessAssignments", TypeShape.of(GetAccessAssignmentsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cloud Sso Access Configurations of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.140.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetAccessConfigurationsArgs;
     * 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 ids = CloudssoFunctions.getAccessConfigurations(GetAccessConfigurationsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoAccessConfigurationId1", ids.applyValue(getAccessConfigurationsResult -> getAccessConfigurationsResult.configurations()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getAccessConfigurations(GetAccessConfigurationsArgs.builder()
     *             .directoryId("example_value")
     *             .nameRegex("^my-AccessConfiguration")
     *             .build());
     * 
     *         ctx.export("cloudSsoAccessConfigurationId2", nameRegex.applyValue(getAccessConfigurationsResult -> getAccessConfigurationsResult.configurations()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getAccessConfigurations(GetAccessConfigurationsArgs args) { return getAccessConfigurations(args, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Access Configurations of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.140.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetAccessConfigurationsArgs;
     * 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 ids = CloudssoFunctions.getAccessConfigurations(GetAccessConfigurationsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoAccessConfigurationId1", ids.applyValue(getAccessConfigurationsResult -> getAccessConfigurationsResult.configurations()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getAccessConfigurations(GetAccessConfigurationsArgs.builder()
     *             .directoryId("example_value")
     *             .nameRegex("^my-AccessConfiguration")
     *             .build());
     * 
     *         ctx.export("cloudSsoAccessConfigurationId2", nameRegex.applyValue(getAccessConfigurationsResult -> getAccessConfigurationsResult.configurations()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAccessConfigurationsPlain(GetAccessConfigurationsPlainArgs args) { return getAccessConfigurationsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Access Configurations of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.140.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetAccessConfigurationsArgs;
     * 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 ids = CloudssoFunctions.getAccessConfigurations(GetAccessConfigurationsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoAccessConfigurationId1", ids.applyValue(getAccessConfigurationsResult -> getAccessConfigurationsResult.configurations()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getAccessConfigurations(GetAccessConfigurationsArgs.builder()
     *             .directoryId("example_value")
     *             .nameRegex("^my-AccessConfiguration")
     *             .build());
     * 
     *         ctx.export("cloudSsoAccessConfigurationId2", nameRegex.applyValue(getAccessConfigurationsResult -> getAccessConfigurationsResult.configurations()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getAccessConfigurations(GetAccessConfigurationsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getAccessConfigurations:getAccessConfigurations", TypeShape.of(GetAccessConfigurationsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cloud Sso Access Configurations of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.140.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetAccessConfigurationsArgs;
     * 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 ids = CloudssoFunctions.getAccessConfigurations(GetAccessConfigurationsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoAccessConfigurationId1", ids.applyValue(getAccessConfigurationsResult -> getAccessConfigurationsResult.configurations()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getAccessConfigurations(GetAccessConfigurationsArgs.builder()
     *             .directoryId("example_value")
     *             .nameRegex("^my-AccessConfiguration")
     *             .build());
     * 
     *         ctx.export("cloudSsoAccessConfigurationId2", nameRegex.applyValue(getAccessConfigurationsResult -> getAccessConfigurationsResult.configurations()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getAccessConfigurationsPlain(GetAccessConfigurationsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:cloudsso/getAccessConfigurations:getAccessConfigurations", TypeShape.of(GetAccessConfigurationsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cloud Sso Directories of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.135.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetDirectoriesArgs;
     * 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 ids = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
     *             .ids("example_id")
     *             .build());
     * 
     *         ctx.export("cloudSsoDirectoryId1", ids.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
     *             .nameRegex("^my-Directory")
     *             .build());
     * 
     *         ctx.export("cloudSsoDirectoryId2", nameRegex.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getDirectories() { return getDirectories(GetDirectoriesArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Directories of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.135.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetDirectoriesArgs;
     * 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 ids = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
     *             .ids("example_id")
     *             .build());
     * 
     *         ctx.export("cloudSsoDirectoryId1", ids.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
     *             .nameRegex("^my-Directory")
     *             .build());
     * 
     *         ctx.export("cloudSsoDirectoryId2", nameRegex.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDirectoriesPlain() { return getDirectoriesPlain(GetDirectoriesPlainArgs.Empty, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Directories of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.135.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetDirectoriesArgs;
     * 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 ids = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
     *             .ids("example_id")
     *             .build());
     * 
     *         ctx.export("cloudSsoDirectoryId1", ids.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
     *             .nameRegex("^my-Directory")
     *             .build());
     * 
     *         ctx.export("cloudSsoDirectoryId2", nameRegex.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getDirectories(GetDirectoriesArgs args) { return getDirectories(args, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Directories of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.135.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetDirectoriesArgs;
     * 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 ids = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
     *             .ids("example_id")
     *             .build());
     * 
     *         ctx.export("cloudSsoDirectoryId1", ids.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
     *             .nameRegex("^my-Directory")
     *             .build());
     * 
     *         ctx.export("cloudSsoDirectoryId2", nameRegex.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDirectoriesPlain(GetDirectoriesPlainArgs args) { return getDirectoriesPlain(args, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Directories of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.135.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetDirectoriesArgs;
     * 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 ids = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
     *             .ids("example_id")
     *             .build());
     * 
     *         ctx.export("cloudSsoDirectoryId1", ids.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
     *             .nameRegex("^my-Directory")
     *             .build());
     * 
     *         ctx.export("cloudSsoDirectoryId2", nameRegex.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getDirectories(GetDirectoriesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getDirectories:getDirectories", TypeShape.of(GetDirectoriesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cloud Sso Directories of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.135.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetDirectoriesArgs;
     * 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 ids = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
     *             .ids("example_id")
     *             .build());
     * 
     *         ctx.export("cloudSsoDirectoryId1", ids.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getDirectories(GetDirectoriesArgs.builder()
     *             .nameRegex("^my-Directory")
     *             .build());
     * 
     *         ctx.export("cloudSsoDirectoryId2", nameRegex.applyValue(getDirectoriesResult -> getDirectoriesResult.directories()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDirectoriesPlain(GetDirectoriesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:cloudsso/getDirectories:getDirectories", TypeShape.of(GetDirectoriesResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cloud Sso Groups of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetGroupsArgs;
     * 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 ids = CloudssoFunctions.getGroups(GetGroupsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoGroupId1", ids.applyValue(getGroupsResult -> getGroupsResult.groups()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getGroups(GetGroupsArgs.builder()
     *             .directoryId("example_value")
     *             .nameRegex("^my-Group")
     *             .build());
     * 
     *         ctx.export("cloudSsoGroupId2", nameRegex.applyValue(getGroupsResult -> getGroupsResult.groups()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getGroups(GetGroupsArgs args) { return getGroups(args, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Groups of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetGroupsArgs;
     * 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 ids = CloudssoFunctions.getGroups(GetGroupsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoGroupId1", ids.applyValue(getGroupsResult -> getGroupsResult.groups()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getGroups(GetGroupsArgs.builder()
     *             .directoryId("example_value")
     *             .nameRegex("^my-Group")
     *             .build());
     * 
     *         ctx.export("cloudSsoGroupId2", nameRegex.applyValue(getGroupsResult -> getGroupsResult.groups()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getGroupsPlain(GetGroupsPlainArgs args) { return getGroupsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Groups of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetGroupsArgs;
     * 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 ids = CloudssoFunctions.getGroups(GetGroupsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoGroupId1", ids.applyValue(getGroupsResult -> getGroupsResult.groups()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getGroups(GetGroupsArgs.builder()
     *             .directoryId("example_value")
     *             .nameRegex("^my-Group")
     *             .build());
     * 
     *         ctx.export("cloudSsoGroupId2", nameRegex.applyValue(getGroupsResult -> getGroupsResult.groups()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getGroups(GetGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cloud Sso Groups of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetGroupsArgs;
     * 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 ids = CloudssoFunctions.getGroups(GetGroupsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoGroupId1", ids.applyValue(getGroupsResult -> getGroupsResult.groups()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getGroups(GetGroupsArgs.builder()
     *             .directoryId("example_value")
     *             .nameRegex("^my-Group")
     *             .build());
     * 
     *         ctx.export("cloudSsoGroupId2", nameRegex.applyValue(getGroupsResult -> getGroupsResult.groups()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getGroupsPlain(GetGroupsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:cloudsso/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cloud Sso Scim Server Credentials of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetScimServerCredentialsArgs;
     * 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 ids = CloudssoFunctions.getScimServerCredentials(GetScimServerCredentialsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoScimServerCredentialId1", ids.applyValue(getScimServerCredentialsResult -> getScimServerCredentialsResult.credentials()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getScimServerCredentials(GetScimServerCredentialsArgs args) { return getScimServerCredentials(args, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Scim Server Credentials of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetScimServerCredentialsArgs;
     * 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 ids = CloudssoFunctions.getScimServerCredentials(GetScimServerCredentialsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoScimServerCredentialId1", ids.applyValue(getScimServerCredentialsResult -> getScimServerCredentialsResult.credentials()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getScimServerCredentialsPlain(GetScimServerCredentialsPlainArgs args) { return getScimServerCredentialsPlain(args, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Scim Server Credentials of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetScimServerCredentialsArgs;
     * 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 ids = CloudssoFunctions.getScimServerCredentials(GetScimServerCredentialsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoScimServerCredentialId1", ids.applyValue(getScimServerCredentialsResult -> getScimServerCredentialsResult.credentials()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getScimServerCredentials(GetScimServerCredentialsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getScimServerCredentials:getScimServerCredentials", TypeShape.of(GetScimServerCredentialsResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cloud Sso Scim Server Credentials of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.138.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetScimServerCredentialsArgs;
     * 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 ids = CloudssoFunctions.getScimServerCredentials(GetScimServerCredentialsArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoScimServerCredentialId1", ids.applyValue(getScimServerCredentialsResult -> getScimServerCredentialsResult.credentials()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getScimServerCredentialsPlain(GetScimServerCredentialsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:cloudsso/getScimServerCredentials:getScimServerCredentials", TypeShape.of(GetScimServerCredentialsResult.class), args, Utilities.withVersion(options)); } /** * Using this data source can open Cloud Sso Service automatically. * * For information about Cloud SSO and how to use it, see [What is Cloud SSO](https://www.alibabacloud.com/help/en/doc-detail/262819.html). * * > **NOTE:** Available in v1.148.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region. * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.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 open = CloudssoFunctions.getService(GetServiceArgs.builder()
     *             .enable("On")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getService(GetServiceArgs args) { return getService(args, InvokeOptions.Empty); } /** * Using this data source can open Cloud Sso Service automatically. * * For information about Cloud SSO and how to use it, see [What is Cloud SSO](https://www.alibabacloud.com/help/en/doc-detail/262819.html). * * > **NOTE:** Available in v1.148.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region. * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.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 open = CloudssoFunctions.getService(GetServiceArgs.builder()
     *             .enable("On")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getServicePlain(GetServicePlainArgs args) { return getServicePlain(args, InvokeOptions.Empty); } /** * Using this data source can open Cloud Sso Service automatically. * * For information about Cloud SSO and how to use it, see [What is Cloud SSO](https://www.alibabacloud.com/help/en/doc-detail/262819.html). * * > **NOTE:** Available in v1.148.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region. * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.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 open = CloudssoFunctions.getService(GetServiceArgs.builder()
     *             .enable("On")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getService(GetServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } /** * Using this data source can open Cloud Sso Service automatically. * * For information about Cloud SSO and how to use it, see [What is Cloud SSO](https://www.alibabacloud.com/help/en/doc-detail/262819.html). * * > **NOTE:** Available in v1.148.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region. * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.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 open = CloudssoFunctions.getService(GetServiceArgs.builder()
     *             .enable("On")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getServicePlain(GetServicePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:cloudsso/getService:getService", TypeShape.of(GetServiceResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cloud Sso Users of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.140.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetUsersArgs;
     * 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 ids = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId1", ids.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .nameRegex("^my-User")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId2", nameRegex.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *         final var provisionType = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .ids("example_value-1")
     *             .provisionType("Manual")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId3", provisionType.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *         final var status = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .ids("example_value-1")
     *             .status("Enabled")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId4", status.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getUsers(GetUsersArgs args) { return getUsers(args, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Users of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.140.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetUsersArgs;
     * 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 ids = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId1", ids.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .nameRegex("^my-User")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId2", nameRegex.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *         final var provisionType = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .ids("example_value-1")
     *             .provisionType("Manual")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId3", provisionType.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *         final var status = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .ids("example_value-1")
     *             .status("Enabled")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId4", status.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getUsersPlain(GetUsersPlainArgs args) { return getUsersPlain(args, InvokeOptions.Empty); } /** * This data source provides the Cloud Sso Users of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.140.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetUsersArgs;
     * 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 ids = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId1", ids.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .nameRegex("^my-User")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId2", nameRegex.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *         final var provisionType = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .ids("example_value-1")
     *             .provisionType("Manual")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId3", provisionType.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *         final var status = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .ids("example_value-1")
     *             .status("Enabled")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId4", status.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getUsers(GetUsersArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("alicloud:cloudsso/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); } /** * This data source provides the Cloud Sso Users of the current Alibaba Cloud user. * * > **NOTE:** Available in v1.140.0+. * * > **NOTE:** Cloud SSO Only Support `cn-shanghai` And `us-west-1` Region * * ## Example Usage * * Basic Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.alicloud.cloudsso.CloudssoFunctions;
     * import com.pulumi.alicloud.cloudsso.inputs.GetUsersArgs;
     * 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 ids = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .ids(            
     *                 "example_value-1",
     *                 "example_value-2")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId1", ids.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *         final var nameRegex = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .nameRegex("^my-User")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId2", nameRegex.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *         final var provisionType = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .ids("example_value-1")
     *             .provisionType("Manual")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId3", provisionType.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *         final var status = CloudssoFunctions.getUsers(GetUsersArgs.builder()
     *             .directoryId("example_value")
     *             .ids("example_value-1")
     *             .status("Enabled")
     *             .build());
     * 
     *         ctx.export("cloudSsoUserId4", status.applyValue(getUsersResult -> getUsersResult.users()[0].id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getUsersPlain(GetUsersPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("alicloud:cloudsso/getUsers:getUsers", TypeShape.of(GetUsersResult.class), args, Utilities.withVersion(options)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy