1. Packages
  2. Keycloak Provider
  3. API Docs
  4. RealmClientPolicyProfilePolicy
Keycloak v6.6.0 published on Saturday, Jul 12, 2025 by Pulumi

keycloak.RealmClientPolicyProfilePolicy

Explore with Pulumi AI

keycloak logo
Keycloak v6.6.0 published on Saturday, Jul 12, 2025 by Pulumi

    Create RealmClientPolicyProfilePolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RealmClientPolicyProfilePolicy(name: string, args: RealmClientPolicyProfilePolicyArgs, opts?: CustomResourceOptions);
    @overload
    def RealmClientPolicyProfilePolicy(resource_name: str,
                                       args: RealmClientPolicyProfilePolicyArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def RealmClientPolicyProfilePolicy(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       profiles: Optional[Sequence[str]] = None,
                                       realm_id: Optional[str] = None,
                                       conditions: Optional[Sequence[RealmClientPolicyProfilePolicyConditionArgs]] = None,
                                       description: Optional[str] = None,
                                       enabled: Optional[bool] = None,
                                       name: Optional[str] = None)
    func NewRealmClientPolicyProfilePolicy(ctx *Context, name string, args RealmClientPolicyProfilePolicyArgs, opts ...ResourceOption) (*RealmClientPolicyProfilePolicy, error)
    public RealmClientPolicyProfilePolicy(string name, RealmClientPolicyProfilePolicyArgs args, CustomResourceOptions? opts = null)
    public RealmClientPolicyProfilePolicy(String name, RealmClientPolicyProfilePolicyArgs args)
    public RealmClientPolicyProfilePolicy(String name, RealmClientPolicyProfilePolicyArgs args, CustomResourceOptions options)
    
    type: keycloak:RealmClientPolicyProfilePolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RealmClientPolicyProfilePolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RealmClientPolicyProfilePolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RealmClientPolicyProfilePolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RealmClientPolicyProfilePolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RealmClientPolicyProfilePolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var realmClientPolicyProfilePolicyResource = new Keycloak.RealmClientPolicyProfilePolicy("realmClientPolicyProfilePolicyResource", new()
    {
        Profiles = new[]
        {
            "string",
        },
        RealmId = "string",
        Conditions = new[]
        {
            new Keycloak.Inputs.RealmClientPolicyProfilePolicyConditionArgs
            {
                Name = "string",
                Configuration = 
                {
                    { "string", "string" },
                },
            },
        },
        Description = "string",
        Enabled = false,
        Name = "string",
    });
    
    example, err := keycloak.NewRealmClientPolicyProfilePolicy(ctx, "realmClientPolicyProfilePolicyResource", &keycloak.RealmClientPolicyProfilePolicyArgs{
    	Profiles: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	RealmId: pulumi.String("string"),
    	Conditions: keycloak.RealmClientPolicyProfilePolicyConditionArray{
    		&keycloak.RealmClientPolicyProfilePolicyConditionArgs{
    			Name: pulumi.String("string"),
    			Configuration: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    		},
    	},
    	Description: pulumi.String("string"),
    	Enabled:     pulumi.Bool(false),
    	Name:        pulumi.String("string"),
    })
    
    var realmClientPolicyProfilePolicyResource = new RealmClientPolicyProfilePolicy("realmClientPolicyProfilePolicyResource", RealmClientPolicyProfilePolicyArgs.builder()
        .profiles("string")
        .realmId("string")
        .conditions(RealmClientPolicyProfilePolicyConditionArgs.builder()
            .name("string")
            .configuration(Map.of("string", "string"))
            .build())
        .description("string")
        .enabled(false)
        .name("string")
        .build());
    
    realm_client_policy_profile_policy_resource = keycloak.RealmClientPolicyProfilePolicy("realmClientPolicyProfilePolicyResource",
        profiles=["string"],
        realm_id="string",
        conditions=[{
            "name": "string",
            "configuration": {
                "string": "string",
            },
        }],
        description="string",
        enabled=False,
        name="string")
    
    const realmClientPolicyProfilePolicyResource = new keycloak.RealmClientPolicyProfilePolicy("realmClientPolicyProfilePolicyResource", {
        profiles: ["string"],
        realmId: "string",
        conditions: [{
            name: "string",
            configuration: {
                string: "string",
            },
        }],
        description: "string",
        enabled: false,
        name: "string",
    });
    
    type: keycloak:RealmClientPolicyProfilePolicy
    properties:
        conditions:
            - configuration:
                string: string
              name: string
        description: string
        enabled: false
        name: string
        profiles:
            - string
        realmId: string
    

    RealmClientPolicyProfilePolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RealmClientPolicyProfilePolicy resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RealmClientPolicyProfilePolicy resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing RealmClientPolicyProfilePolicy Resource

    Get an existing RealmClientPolicyProfilePolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RealmClientPolicyProfilePolicyState, opts?: CustomResourceOptions): RealmClientPolicyProfilePolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            conditions: Optional[Sequence[RealmClientPolicyProfilePolicyConditionArgs]] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            name: Optional[str] = None,
            profiles: Optional[Sequence[str]] = None,
            realm_id: Optional[str] = None) -> RealmClientPolicyProfilePolicy
    func GetRealmClientPolicyProfilePolicy(ctx *Context, name string, id IDInput, state *RealmClientPolicyProfilePolicyState, opts ...ResourceOption) (*RealmClientPolicyProfilePolicy, error)
    public static RealmClientPolicyProfilePolicy Get(string name, Input<string> id, RealmClientPolicyProfilePolicyState? state, CustomResourceOptions? opts = null)
    public static RealmClientPolicyProfilePolicy get(String name, Output<String> id, RealmClientPolicyProfilePolicyState state, CustomResourceOptions options)
    resources:  _:    type: keycloak:RealmClientPolicyProfilePolicy    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:

    Supporting Types

    RealmClientPolicyProfilePolicyCondition, RealmClientPolicyProfilePolicyConditionArgs

    Name string
    Configuration Dictionary<string, string>
    Name string
    Configuration map[string]string
    name String
    configuration Map<String,String>
    name string
    configuration {[key: string]: string}
    name str
    configuration Mapping[str, str]
    name String
    configuration Map<String>

    Package Details

    Repository
    Keycloak pulumi/pulumi-keycloak
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the keycloak Terraform Provider.
    keycloak logo
    Keycloak v6.6.0 published on Saturday, Jul 12, 2025 by Pulumi