1. Packages
  2. Packages
  3. Keycloak Provider
  4. API Docs
  5. HardcodedRoleIdentityMapper
Viewing docs for Keycloak v4.11.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
keycloak logo
Viewing docs for Keycloak v4.11.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Create HardcodedRoleIdentityMapper Resource

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

    Constructor syntax

    new HardcodedRoleIdentityMapper(name: string, args: HardcodedRoleIdentityMapperArgs, opts?: CustomResourceOptions);
    @overload
    def HardcodedRoleIdentityMapper(resource_name: str,
                                    args: HardcodedRoleIdentityMapperArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def HardcodedRoleIdentityMapper(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    identity_provider_alias: Optional[str] = None,
                                    realm: Optional[str] = None,
                                    extra_config: Optional[Mapping[str, Any]] = None,
                                    name: Optional[str] = None,
                                    role: Optional[str] = None)
    func NewHardcodedRoleIdentityMapper(ctx *Context, name string, args HardcodedRoleIdentityMapperArgs, opts ...ResourceOption) (*HardcodedRoleIdentityMapper, error)
    public HardcodedRoleIdentityMapper(string name, HardcodedRoleIdentityMapperArgs args, CustomResourceOptions? opts = null)
    public HardcodedRoleIdentityMapper(String name, HardcodedRoleIdentityMapperArgs args)
    public HardcodedRoleIdentityMapper(String name, HardcodedRoleIdentityMapperArgs args, CustomResourceOptions options)
    
    type: keycloak:HardcodedRoleIdentityMapper
    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 HardcodedRoleIdentityMapperArgs
    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 HardcodedRoleIdentityMapperArgs
    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 HardcodedRoleIdentityMapperArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HardcodedRoleIdentityMapperArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HardcodedRoleIdentityMapperArgs
    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 hardcodedRoleIdentityMapperResource = new Keycloak.HardcodedRoleIdentityMapper("hardcodedRoleIdentityMapperResource", new()
    {
        IdentityProviderAlias = "string",
        Realm = "string",
        ExtraConfig = 
        {
            { "string", "any" },
        },
        Name = "string",
        Role = "string",
    });
    
    example, err := keycloak.NewHardcodedRoleIdentityMapper(ctx, "hardcodedRoleIdentityMapperResource", &keycloak.HardcodedRoleIdentityMapperArgs{
    	IdentityProviderAlias: pulumi.String("string"),
    	Realm:                 pulumi.String("string"),
    	ExtraConfig: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Name: pulumi.String("string"),
    	Role: pulumi.String("string"),
    })
    
    var hardcodedRoleIdentityMapperResource = new HardcodedRoleIdentityMapper("hardcodedRoleIdentityMapperResource", HardcodedRoleIdentityMapperArgs.builder()
        .identityProviderAlias("string")
        .realm("string")
        .extraConfig(Map.of("string", "any"))
        .name("string")
        .role("string")
        .build());
    
    hardcoded_role_identity_mapper_resource = keycloak.HardcodedRoleIdentityMapper("hardcodedRoleIdentityMapperResource",
        identity_provider_alias="string",
        realm="string",
        extra_config={
            "string": "any",
        },
        name="string",
        role="string")
    
    const hardcodedRoleIdentityMapperResource = new keycloak.HardcodedRoleIdentityMapper("hardcodedRoleIdentityMapperResource", {
        identityProviderAlias: "string",
        realm: "string",
        extraConfig: {
            string: "any",
        },
        name: "string",
        role: "string",
    });
    
    type: keycloak:HardcodedRoleIdentityMapper
    properties:
        extraConfig:
            string: any
        identityProviderAlias: string
        name: string
        realm: string
        role: string
    

    HardcodedRoleIdentityMapper 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 HardcodedRoleIdentityMapper resource accepts the following input properties:

    IdentityProviderAlias string
    IDP Alias
    Realm string
    Realm Name
    ExtraConfig Dictionary<string, object>
    Name string
    IDP Mapper Name
    Role string
    Role Name
    IdentityProviderAlias string
    IDP Alias
    Realm string
    Realm Name
    ExtraConfig map[string]interface{}
    Name string
    IDP Mapper Name
    Role string
    Role Name
    identityProviderAlias String
    IDP Alias
    realm String
    Realm Name
    extraConfig Map<String,Object>
    name String
    IDP Mapper Name
    role String
    Role Name
    identityProviderAlias string
    IDP Alias
    realm string
    Realm Name
    extraConfig {[key: string]: any}
    name string
    IDP Mapper Name
    role string
    Role Name
    identity_provider_alias str
    IDP Alias
    realm str
    Realm Name
    extra_config Mapping[str, Any]
    name str
    IDP Mapper Name
    role str
    Role Name
    identityProviderAlias String
    IDP Alias
    realm String
    Realm Name
    extraConfig Map<Any>
    name String
    IDP Mapper Name
    role String
    Role Name

    Outputs

    All input properties are implicitly available as output properties. Additionally, the HardcodedRoleIdentityMapper 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 HardcodedRoleIdentityMapper Resource

    Get an existing HardcodedRoleIdentityMapper 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?: HardcodedRoleIdentityMapperState, opts?: CustomResourceOptions): HardcodedRoleIdentityMapper
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            extra_config: Optional[Mapping[str, Any]] = None,
            identity_provider_alias: Optional[str] = None,
            name: Optional[str] = None,
            realm: Optional[str] = None,
            role: Optional[str] = None) -> HardcodedRoleIdentityMapper
    func GetHardcodedRoleIdentityMapper(ctx *Context, name string, id IDInput, state *HardcodedRoleIdentityMapperState, opts ...ResourceOption) (*HardcodedRoleIdentityMapper, error)
    public static HardcodedRoleIdentityMapper Get(string name, Input<string> id, HardcodedRoleIdentityMapperState? state, CustomResourceOptions? opts = null)
    public static HardcodedRoleIdentityMapper get(String name, Output<String> id, HardcodedRoleIdentityMapperState state, CustomResourceOptions options)
    resources:  _:    type: keycloak:HardcodedRoleIdentityMapper    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:
    ExtraConfig Dictionary<string, object>
    IdentityProviderAlias string
    IDP Alias
    Name string
    IDP Mapper Name
    Realm string
    Realm Name
    Role string
    Role Name
    ExtraConfig map[string]interface{}
    IdentityProviderAlias string
    IDP Alias
    Name string
    IDP Mapper Name
    Realm string
    Realm Name
    Role string
    Role Name
    extraConfig Map<String,Object>
    identityProviderAlias String
    IDP Alias
    name String
    IDP Mapper Name
    realm String
    Realm Name
    role String
    Role Name
    extraConfig {[key: string]: any}
    identityProviderAlias string
    IDP Alias
    name string
    IDP Mapper Name
    realm string
    Realm Name
    role string
    Role Name
    extra_config Mapping[str, Any]
    identity_provider_alias str
    IDP Alias
    name str
    IDP Mapper Name
    realm str
    Realm Name
    role str
    Role Name
    extraConfig Map<Any>
    identityProviderAlias String
    IDP Alias
    name String
    IDP Mapper Name
    realm String
    Realm Name
    role String
    Role Name

    Package Details

    Repository
    Keycloak pulumi/pulumi-keycloak
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the keycloak Terraform Provider.
    keycloak logo
    Viewing docs for Keycloak v4.11.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.