com.pulumi.keycloak.openid.ClientRolePolicy 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.
// *** 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.openid;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.keycloak.Utilities;
import com.pulumi.keycloak.openid.ClientRolePolicyArgs;
import com.pulumi.keycloak.openid.inputs.ClientRolePolicyState;
import com.pulumi.keycloak.openid.outputs.ClientRolePolicyRole;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
@ResourceType(type="keycloak:openid/clientRolePolicy:ClientRolePolicy")
public class ClientRolePolicy extends com.pulumi.resources.CustomResource {
@Export(name="decisionStrategy", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> decisionStrategy;
public Output> decisionStrategy() {
return Codegen.optional(this.decisionStrategy);
}
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
public Output> description() {
return Codegen.optional(this.description);
}
@Export(name="logic", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> logic;
public Output> logic() {
return Codegen.optional(this.logic);
}
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
public Output name() {
return this.name;
}
@Export(name="realmId", refs={String.class}, tree="[0]")
private Output realmId;
public Output realmId() {
return this.realmId;
}
@Export(name="resourceServerId", refs={String.class}, tree="[0]")
private Output resourceServerId;
public Output resourceServerId() {
return this.resourceServerId;
}
@Export(name="roles", refs={List.class,ClientRolePolicyRole.class}, tree="[0,1]")
private Output> roles;
public Output> roles() {
return this.roles;
}
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ClientRolePolicy(java.lang.String name) {
this(name, ClientRolePolicyArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ClientRolePolicy(java.lang.String name, ClientRolePolicyArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public ClientRolePolicy(java.lang.String name, ClientRolePolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("keycloak:openid/clientRolePolicy:ClientRolePolicy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ClientRolePolicy(java.lang.String name, Output id, @Nullable ClientRolePolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("keycloak:openid/clientRolePolicy:ClientRolePolicy", name, state, makeResourceOptions(options, id), false);
}
private static ClientRolePolicyArgs makeArgs(ClientRolePolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ClientRolePolicyArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static ClientRolePolicy get(java.lang.String name, Output id, @Nullable ClientRolePolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ClientRolePolicy(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy