published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Create AttributeToRoleIdentityMapper Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AttributeToRoleIdentityMapper(name: string, args: AttributeToRoleIdentityMapperArgs, opts?: CustomResourceOptions);@overload
def AttributeToRoleIdentityMapper(resource_name: str,
args: AttributeToRoleIdentityMapperArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AttributeToRoleIdentityMapper(resource_name: str,
opts: Optional[ResourceOptions] = None,
identity_provider_alias: Optional[str] = None,
realm: Optional[str] = None,
role: Optional[str] = None,
attribute_friendly_name: Optional[str] = None,
attribute_name: Optional[str] = None,
attribute_value: Optional[str] = None,
claim_name: Optional[str] = None,
claim_value: Optional[str] = None,
extra_config: Optional[Mapping[str, Any]] = None,
name: Optional[str] = None)func NewAttributeToRoleIdentityMapper(ctx *Context, name string, args AttributeToRoleIdentityMapperArgs, opts ...ResourceOption) (*AttributeToRoleIdentityMapper, error)public AttributeToRoleIdentityMapper(string name, AttributeToRoleIdentityMapperArgs args, CustomResourceOptions? opts = null)
public AttributeToRoleIdentityMapper(String name, AttributeToRoleIdentityMapperArgs args)
public AttributeToRoleIdentityMapper(String name, AttributeToRoleIdentityMapperArgs args, CustomResourceOptions options)
type: keycloak:AttributeToRoleIdentityMapper
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 AttributeToRoleIdentityMapperArgs
- 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 AttributeToRoleIdentityMapperArgs
- 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 AttributeToRoleIdentityMapperArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AttributeToRoleIdentityMapperArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AttributeToRoleIdentityMapperArgs
- 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 attributeToRoleIdentityMapperResource = new Keycloak.AttributeToRoleIdentityMapper("attributeToRoleIdentityMapperResource", new()
{
IdentityProviderAlias = "string",
Realm = "string",
Role = "string",
AttributeFriendlyName = "string",
AttributeName = "string",
AttributeValue = "string",
ClaimName = "string",
ClaimValue = "string",
ExtraConfig =
{
{ "string", "any" },
},
Name = "string",
});
example, err := keycloak.NewAttributeToRoleIdentityMapper(ctx, "attributeToRoleIdentityMapperResource", &keycloak.AttributeToRoleIdentityMapperArgs{
IdentityProviderAlias: pulumi.String("string"),
Realm: pulumi.String("string"),
Role: pulumi.String("string"),
AttributeFriendlyName: pulumi.String("string"),
AttributeName: pulumi.String("string"),
AttributeValue: pulumi.String("string"),
ClaimName: pulumi.String("string"),
ClaimValue: pulumi.String("string"),
ExtraConfig: pulumi.Map{
"string": pulumi.Any("any"),
},
Name: pulumi.String("string"),
})
var attributeToRoleIdentityMapperResource = new AttributeToRoleIdentityMapper("attributeToRoleIdentityMapperResource", AttributeToRoleIdentityMapperArgs.builder()
.identityProviderAlias("string")
.realm("string")
.role("string")
.attributeFriendlyName("string")
.attributeName("string")
.attributeValue("string")
.claimName("string")
.claimValue("string")
.extraConfig(Map.of("string", "any"))
.name("string")
.build());
attribute_to_role_identity_mapper_resource = keycloak.AttributeToRoleIdentityMapper("attributeToRoleIdentityMapperResource",
identity_provider_alias="string",
realm="string",
role="string",
attribute_friendly_name="string",
attribute_name="string",
attribute_value="string",
claim_name="string",
claim_value="string",
extra_config={
"string": "any",
},
name="string")
const attributeToRoleIdentityMapperResource = new keycloak.AttributeToRoleIdentityMapper("attributeToRoleIdentityMapperResource", {
identityProviderAlias: "string",
realm: "string",
role: "string",
attributeFriendlyName: "string",
attributeName: "string",
attributeValue: "string",
claimName: "string",
claimValue: "string",
extraConfig: {
string: "any",
},
name: "string",
});
type: keycloak:AttributeToRoleIdentityMapper
properties:
attributeFriendlyName: string
attributeName: string
attributeValue: string
claimName: string
claimValue: string
extraConfig:
string: any
identityProviderAlias: string
name: string
realm: string
role: string
AttributeToRoleIdentityMapper 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 AttributeToRoleIdentityMapper resource accepts the following input properties:
- Identity
Provider stringAlias - IDP Alias
- Realm string
- Realm Name
- Role string
- Role Name
- Attribute
Friendly stringName - Attribute Friendly Name
- Attribute
Name string - Attribute Name
- Attribute
Value string - Attribute Value
- Claim
Name string - OIDC Claim Name
- Claim
Value string - OIDC Claim Value
- Extra
Config Dictionary<string, object> - Name string
- IDP Mapper Name
- Identity
Provider stringAlias - IDP Alias
- Realm string
- Realm Name
- Role string
- Role Name
- Attribute
Friendly stringName - Attribute Friendly Name
- Attribute
Name string - Attribute Name
- Attribute
Value string - Attribute Value
- Claim
Name string - OIDC Claim Name
- Claim
Value string - OIDC Claim Value
- Extra
Config map[string]interface{} - Name string
- IDP Mapper Name
- identity
Provider StringAlias - IDP Alias
- realm String
- Realm Name
- role String
- Role Name
- attribute
Friendly StringName - Attribute Friendly Name
- attribute
Name String - Attribute Name
- attribute
Value String - Attribute Value
- claim
Name String - OIDC Claim Name
- claim
Value String - OIDC Claim Value
- extra
Config Map<String,Object> - name String
- IDP Mapper Name
- identity
Provider stringAlias - IDP Alias
- realm string
- Realm Name
- role string
- Role Name
- attribute
Friendly stringName - Attribute Friendly Name
- attribute
Name string - Attribute Name
- attribute
Value string - Attribute Value
- claim
Name string - OIDC Claim Name
- claim
Value string - OIDC Claim Value
- extra
Config {[key: string]: any} - name string
- IDP Mapper Name
- identity_
provider_ stralias - IDP Alias
- realm str
- Realm Name
- role str
- Role Name
- attribute_
friendly_ strname - Attribute Friendly Name
- attribute_
name str - Attribute Name
- attribute_
value str - Attribute Value
- claim_
name str - OIDC Claim Name
- claim_
value str - OIDC Claim Value
- extra_
config Mapping[str, Any] - name str
- IDP Mapper Name
- identity
Provider StringAlias - IDP Alias
- realm String
- Realm Name
- role String
- Role Name
- attribute
Friendly StringName - Attribute Friendly Name
- attribute
Name String - Attribute Name
- attribute
Value String - Attribute Value
- claim
Name String - OIDC Claim Name
- claim
Value String - OIDC Claim Value
- extra
Config Map<Any> - name String
- IDP Mapper Name
Outputs
All input properties are implicitly available as output properties. Additionally, the AttributeToRoleIdentityMapper 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 AttributeToRoleIdentityMapper Resource
Get an existing AttributeToRoleIdentityMapper 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?: AttributeToRoleIdentityMapperState, opts?: CustomResourceOptions): AttributeToRoleIdentityMapper@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attribute_friendly_name: Optional[str] = None,
attribute_name: Optional[str] = None,
attribute_value: Optional[str] = None,
claim_name: Optional[str] = None,
claim_value: Optional[str] = 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) -> AttributeToRoleIdentityMapperfunc GetAttributeToRoleIdentityMapper(ctx *Context, name string, id IDInput, state *AttributeToRoleIdentityMapperState, opts ...ResourceOption) (*AttributeToRoleIdentityMapper, error)public static AttributeToRoleIdentityMapper Get(string name, Input<string> id, AttributeToRoleIdentityMapperState? state, CustomResourceOptions? opts = null)public static AttributeToRoleIdentityMapper get(String name, Output<String> id, AttributeToRoleIdentityMapperState state, CustomResourceOptions options)resources: _: type: keycloak:AttributeToRoleIdentityMapper 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.
- Attribute
Friendly stringName - Attribute Friendly Name
- Attribute
Name string - Attribute Name
- Attribute
Value string - Attribute Value
- Claim
Name string - OIDC Claim Name
- Claim
Value string - OIDC Claim Value
- Extra
Config Dictionary<string, object> - Identity
Provider stringAlias - IDP Alias
- Name string
- IDP Mapper Name
- Realm string
- Realm Name
- Role string
- Role Name
- Attribute
Friendly stringName - Attribute Friendly Name
- Attribute
Name string - Attribute Name
- Attribute
Value string - Attribute Value
- Claim
Name string - OIDC Claim Name
- Claim
Value string - OIDC Claim Value
- Extra
Config map[string]interface{} - Identity
Provider stringAlias - IDP Alias
- Name string
- IDP Mapper Name
- Realm string
- Realm Name
- Role string
- Role Name
- attribute
Friendly StringName - Attribute Friendly Name
- attribute
Name String - Attribute Name
- attribute
Value String - Attribute Value
- claim
Name String - OIDC Claim Name
- claim
Value String - OIDC Claim Value
- extra
Config Map<String,Object> - identity
Provider StringAlias - IDP Alias
- name String
- IDP Mapper Name
- realm String
- Realm Name
- role String
- Role Name
- attribute
Friendly stringName - Attribute Friendly Name
- attribute
Name string - Attribute Name
- attribute
Value string - Attribute Value
- claim
Name string - OIDC Claim Name
- claim
Value string - OIDC Claim Value
- extra
Config {[key: string]: any} - identity
Provider stringAlias - IDP Alias
- name string
- IDP Mapper Name
- realm string
- Realm Name
- role string
- Role Name
- attribute_
friendly_ strname - Attribute Friendly Name
- attribute_
name str - Attribute Name
- attribute_
value str - Attribute Value
- claim_
name str - OIDC Claim Name
- claim_
value str - OIDC Claim Value
- extra_
config Mapping[str, Any] - identity_
provider_ stralias - IDP Alias
- name str
- IDP Mapper Name
- realm str
- Realm Name
- role str
- Role Name
- attribute
Friendly StringName - Attribute Friendly Name
- attribute
Name String - Attribute Name
- attribute
Value String - Attribute Value
- claim
Name String - OIDC Claim Name
- claim
Value String - OIDC Claim Value
- extra
Config Map<Any> - identity
Provider StringAlias - 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
keycloakTerraform Provider.
published on Monday, Mar 9, 2026 by Pulumi