com.pulumi.keycloak.saml.SamlFunctions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of keycloak Show documentation
Show all versions of keycloak Show documentation
A Pulumi package for creating and managing keycloak cloud resources.
The 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.keycloak.saml;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import com.pulumi.keycloak.Utilities;
import com.pulumi.keycloak.saml.inputs.GetClientArgs;
import com.pulumi.keycloak.saml.inputs.GetClientInstallationProviderArgs;
import com.pulumi.keycloak.saml.inputs.GetClientInstallationProviderPlainArgs;
import com.pulumi.keycloak.saml.inputs.GetClientPlainArgs;
import com.pulumi.keycloak.saml.outputs.GetClientInstallationProviderResult;
import com.pulumi.keycloak.saml.outputs.GetClientResult;
import java.util.concurrent.CompletableFuture;
public final class SamlFunctions {
/**
* This data source can be used to fetch properties of a Keycloak client that uses the SAML protocol.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.keycloak.saml.SamlFunctions;
* import com.pulumi.keycloak.saml.inputs.GetClientArgs;
* import com.pulumi.keycloak.KeycloakFunctions;
* import com.pulumi.keycloak.inputs.GetRoleArgs;
* 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 realmManagement = SamlFunctions.getClient(GetClientArgs.builder()
* .realmId("my-realm")
* .clientId("realm-management")
* .build());
*
* // use the data source
* final var admin = KeycloakFunctions.getRole(GetRoleArgs.builder()
* .realmId("my-realm")
* .clientId(realmManagement.applyValue(getClientResult -> getClientResult.id()))
* .name("realm-admin")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getClient(GetClientArgs args) {
return getClient(args, InvokeOptions.Empty);
}
/**
* This data source can be used to fetch properties of a Keycloak client that uses the SAML protocol.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.keycloak.saml.SamlFunctions;
* import com.pulumi.keycloak.saml.inputs.GetClientArgs;
* import com.pulumi.keycloak.KeycloakFunctions;
* import com.pulumi.keycloak.inputs.GetRoleArgs;
* 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 realmManagement = SamlFunctions.getClient(GetClientArgs.builder()
* .realmId("my-realm")
* .clientId("realm-management")
* .build());
*
* // use the data source
* final var admin = KeycloakFunctions.getRole(GetRoleArgs.builder()
* .realmId("my-realm")
* .clientId(realmManagement.applyValue(getClientResult -> getClientResult.id()))
* .name("realm-admin")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getClientPlain(GetClientPlainArgs args) {
return getClientPlain(args, InvokeOptions.Empty);
}
/**
* This data source can be used to fetch properties of a Keycloak client that uses the SAML protocol.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.keycloak.saml.SamlFunctions;
* import com.pulumi.keycloak.saml.inputs.GetClientArgs;
* import com.pulumi.keycloak.KeycloakFunctions;
* import com.pulumi.keycloak.inputs.GetRoleArgs;
* 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 realmManagement = SamlFunctions.getClient(GetClientArgs.builder()
* .realmId("my-realm")
* .clientId("realm-management")
* .build());
*
* // use the data source
* final var admin = KeycloakFunctions.getRole(GetRoleArgs.builder()
* .realmId("my-realm")
* .clientId(realmManagement.applyValue(getClientResult -> getClientResult.id()))
* .name("realm-admin")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getClient(GetClientArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("keycloak:saml/getClient:getClient", TypeShape.of(GetClientResult.class), args, Utilities.withVersion(options));
}
/**
* This data source can be used to fetch properties of a Keycloak client that uses the SAML protocol.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.keycloak.saml.SamlFunctions;
* import com.pulumi.keycloak.saml.inputs.GetClientArgs;
* import com.pulumi.keycloak.KeycloakFunctions;
* import com.pulumi.keycloak.inputs.GetRoleArgs;
* 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 realmManagement = SamlFunctions.getClient(GetClientArgs.builder()
* .realmId("my-realm")
* .clientId("realm-management")
* .build());
*
* // use the data source
* final var admin = KeycloakFunctions.getRole(GetRoleArgs.builder()
* .realmId("my-realm")
* .clientId(realmManagement.applyValue(getClientResult -> getClientResult.id()))
* .name("realm-admin")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getClientPlain(GetClientPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("keycloak:saml/getClient:getClient", TypeShape.of(GetClientResult.class), args, Utilities.withVersion(options));
}
/**
* This data source can be used to retrieve Installation Provider of a SAML Client.
*
*/
public static Output getClientInstallationProvider(GetClientInstallationProviderArgs args) {
return getClientInstallationProvider(args, InvokeOptions.Empty);
}
/**
* This data source can be used to retrieve Installation Provider of a SAML Client.
*
*/
public static CompletableFuture getClientInstallationProviderPlain(GetClientInstallationProviderPlainArgs args) {
return getClientInstallationProviderPlain(args, InvokeOptions.Empty);
}
/**
* This data source can be used to retrieve Installation Provider of a SAML Client.
*
*/
public static Output getClientInstallationProvider(GetClientInstallationProviderArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("keycloak:saml/getClientInstallationProvider:getClientInstallationProvider", TypeShape.of(GetClientInstallationProviderResult.class), args, Utilities.withVersion(options));
}
/**
* This data source can be used to retrieve Installation Provider of a SAML Client.
*
*/
public static CompletableFuture getClientInstallationProviderPlain(GetClientInstallationProviderPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("keycloak:saml/getClientInstallationProvider:getClientInstallationProvider", TypeShape.of(GetClientInstallationProviderResult.class), args, Utilities.withVersion(options));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy