UserClientRoleProtocolMapper
Create a UserClientRoleProtocolMapper Resource
new UserClientRoleProtocolMapper(name: string, args: UserClientRoleProtocolMapperArgs, opts?: CustomResourceOptions);def UserClientRoleProtocolMapper(resource_name, opts=None, add_to_access_token=None, add_to_id_token=None, add_to_userinfo=None, claim_name=None, claim_value_type=None, client_id=None, client_id_for_role_mappings=None, client_role_prefix=None, client_scope_id=None, multivalued=None, name=None, realm_id=None, __props__=None);func NewUserClientRoleProtocolMapper(ctx *Context, name string, args UserClientRoleProtocolMapperArgs, opts ...ResourceOption) (*UserClientRoleProtocolMapper, error)public UserClientRoleProtocolMapper(string name, UserClientRoleProtocolMapperArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args UserClientRoleProtocolMapperArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UserClientRoleProtocolMapperArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserClientRoleProtocolMapperArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
UserClientRoleProtocolMapper Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The UserClientRoleProtocolMapper resource accepts the following input properties:
- Claim
Name string - Realm
Id string The realm id where the associated client or client scope exists.
- Add
To boolAccess Token Indicates if the attribute should be a claim in the access token.
- Add
To boolId Token Indicates if the attribute should be a claim in the id token.
- Add
To boolUserinfo Indicates if the attribute should appear in the userinfo response body.
- Claim
Value stringType Claim type used when serializing tokens.
- Client
Id string The mapper’s associated client. Cannot be used at the same time as client_scope_id.
- Client
Id stringFor Role Mappings Client ID for role mappings.
- Client
Role stringPrefix Prefix that will be added to each client role.
- Client
Scope stringId The mapper’s associated client scope. Cannot be used at the same time as client_id.
- Multivalued bool
Indicates whether this attribute is a single value or an array of values.
- Name string
A human-friendly name that will appear in the Keycloak console.
- Claim
Name string - Realm
Id string The realm id where the associated client or client scope exists.
- Add
To boolAccess Token Indicates if the attribute should be a claim in the access token.
- Add
To boolId Token Indicates if the attribute should be a claim in the id token.
- Add
To boolUserinfo Indicates if the attribute should appear in the userinfo response body.
- Claim
Value stringType Claim type used when serializing tokens.
- Client
Id string The mapper’s associated client. Cannot be used at the same time as client_scope_id.
- Client
Id stringFor Role Mappings Client ID for role mappings.
- Client
Role stringPrefix Prefix that will be added to each client role.
- Client
Scope stringId The mapper’s associated client scope. Cannot be used at the same time as client_id.
- Multivalued bool
Indicates whether this attribute is a single value or an array of values.
- Name string
A human-friendly name that will appear in the Keycloak console.
- claim
Name string - realm
Id string The realm id where the associated client or client scope exists.
- add
To booleanAccess Token Indicates if the attribute should be a claim in the access token.
- add
To booleanId Token Indicates if the attribute should be a claim in the id token.
- add
To booleanUserinfo Indicates if the attribute should appear in the userinfo response body.
- claim
Value stringType Claim type used when serializing tokens.
- client
Id string The mapper’s associated client. Cannot be used at the same time as client_scope_id.
- client
Id stringFor Role Mappings Client ID for role mappings.
- client
Role stringPrefix Prefix that will be added to each client role.
- client
Scope stringId The mapper’s associated client scope. Cannot be used at the same time as client_id.
- multivalued boolean
Indicates whether this attribute is a single value or an array of values.
- name string
A human-friendly name that will appear in the Keycloak console.
- claim_
name str - realm_
id str The realm id where the associated client or client scope exists.
- add_
to_ boolaccess_ token Indicates if the attribute should be a claim in the access token.
- add_
to_ boolid_ token Indicates if the attribute should be a claim in the id token.
- add_
to_ booluserinfo Indicates if the attribute should appear in the userinfo response body.
- claim_
value_ strtype Claim type used when serializing tokens.
- client_
id str The mapper’s associated client. Cannot be used at the same time as client_scope_id.
- client_
id_ strfor_ role_ mappings Client ID for role mappings.
- client_
role_ strprefix Prefix that will be added to each client role.
- client_
scope_ strid The mapper’s associated client scope. Cannot be used at the same time as client_id.
- multivalued bool
Indicates whether this attribute is a single value or an array of values.
- name str
A human-friendly name that will appear in the Keycloak console.
Outputs
All input properties are implicitly available as output properties. Additionally, the UserClientRoleProtocolMapper resource produces the following output properties:
Look up an Existing UserClientRoleProtocolMapper Resource
Get an existing UserClientRoleProtocolMapper 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?: UserClientRoleProtocolMapperState, opts?: CustomResourceOptions): UserClientRoleProtocolMapperstatic get(resource_name, id, opts=None, add_to_access_token=None, add_to_id_token=None, add_to_userinfo=None, claim_name=None, claim_value_type=None, client_id=None, client_id_for_role_mappings=None, client_role_prefix=None, client_scope_id=None, multivalued=None, name=None, realm_id=None, __props__=None);func GetUserClientRoleProtocolMapper(ctx *Context, name string, id IDInput, state *UserClientRoleProtocolMapperState, opts ...ResourceOption) (*UserClientRoleProtocolMapper, error)public static UserClientRoleProtocolMapper Get(string name, Input<string> id, UserClientRoleProtocolMapperState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Add
To boolAccess Token Indicates if the attribute should be a claim in the access token.
- Add
To boolId Token Indicates if the attribute should be a claim in the id token.
- Add
To boolUserinfo Indicates if the attribute should appear in the userinfo response body.
- Claim
Name string - Claim
Value stringType Claim type used when serializing tokens.
- Client
Id string The mapper’s associated client. Cannot be used at the same time as client_scope_id.
- Client
Id stringFor Role Mappings Client ID for role mappings.
- Client
Role stringPrefix Prefix that will be added to each client role.
- Client
Scope stringId The mapper’s associated client scope. Cannot be used at the same time as client_id.
- Multivalued bool
Indicates whether this attribute is a single value or an array of values.
- Name string
A human-friendly name that will appear in the Keycloak console.
- Realm
Id string The realm id where the associated client or client scope exists.
- Add
To boolAccess Token Indicates if the attribute should be a claim in the access token.
- Add
To boolId Token Indicates if the attribute should be a claim in the id token.
- Add
To boolUserinfo Indicates if the attribute should appear in the userinfo response body.
- Claim
Name string - Claim
Value stringType Claim type used when serializing tokens.
- Client
Id string The mapper’s associated client. Cannot be used at the same time as client_scope_id.
- Client
Id stringFor Role Mappings Client ID for role mappings.
- Client
Role stringPrefix Prefix that will be added to each client role.
- Client
Scope stringId The mapper’s associated client scope. Cannot be used at the same time as client_id.
- Multivalued bool
Indicates whether this attribute is a single value or an array of values.
- Name string
A human-friendly name that will appear in the Keycloak console.
- Realm
Id string The realm id where the associated client or client scope exists.
- add
To booleanAccess Token Indicates if the attribute should be a claim in the access token.
- add
To booleanId Token Indicates if the attribute should be a claim in the id token.
- add
To booleanUserinfo Indicates if the attribute should appear in the userinfo response body.
- claim
Name string - claim
Value stringType Claim type used when serializing tokens.
- client
Id string The mapper’s associated client. Cannot be used at the same time as client_scope_id.
- client
Id stringFor Role Mappings Client ID for role mappings.
- client
Role stringPrefix Prefix that will be added to each client role.
- client
Scope stringId The mapper’s associated client scope. Cannot be used at the same time as client_id.
- multivalued boolean
Indicates whether this attribute is a single value or an array of values.
- name string
A human-friendly name that will appear in the Keycloak console.
- realm
Id string The realm id where the associated client or client scope exists.
- add_
to_ boolaccess_ token Indicates if the attribute should be a claim in the access token.
- add_
to_ boolid_ token Indicates if the attribute should be a claim in the id token.
- add_
to_ booluserinfo Indicates if the attribute should appear in the userinfo response body.
- claim_
name str - claim_
value_ strtype Claim type used when serializing tokens.
- client_
id str The mapper’s associated client. Cannot be used at the same time as client_scope_id.
- client_
id_ strfor_ role_ mappings Client ID for role mappings.
- client_
role_ strprefix Prefix that will be added to each client role.
- client_
scope_ strid The mapper’s associated client scope. Cannot be used at the same time as client_id.
- multivalued bool
Indicates whether this attribute is a single value or an array of values.
- name str
A human-friendly name that will appear in the Keycloak console.
- realm_
id str The realm id where the associated client or client scope exists.
Package Details
- Repository
- https://github.com/pulumi/pulumi-keycloak
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
keycloakTerraform Provider.