keycloak.HardcodedGroupIdentityProviderMapper
Explore with Pulumi AI
Allows for creating and managing hardcoded group mappers for Keycloak identity provider.
The identity provider hardcoded group mapper grants a specified Keycloak group to each Keycloak user from the identity provider.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
realm:
type: keycloak:Realm
properties:
realm: my-realm
enabled: true
oidc:
type: keycloak:oidc:IdentityProvider
properties:
realm: ${realm.id}
alias: my-idp
authorizationUrl: https://authorizationurl.com
clientId: clientID
clientSecret: clientSecret
tokenUrl: https://tokenurl.com
realmGroup:
type: keycloak:Group
name: realm_group
properties:
realmId: ${realm.id}
name: my-realm-group
description: My Realm Group
oidcHardcodedGroupIdentityProviderMapper:
type: keycloak:HardcodedGroupIdentityProviderMapper
name: oidc
properties:
realm: ${realm.id}
name: hardcodedGroup
identityProviderAlias: ${oidc.alias}
group: my-realm-group
extraConfig:
syncMode: INHERIT
Create HardcodedGroupIdentityProviderMapper Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HardcodedGroupIdentityProviderMapper(name: string, args: HardcodedGroupIdentityProviderMapperArgs, opts?: CustomResourceOptions);
@overload
def HardcodedGroupIdentityProviderMapper(resource_name: str,
args: HardcodedGroupIdentityProviderMapperArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HardcodedGroupIdentityProviderMapper(resource_name: str,
opts: Optional[ResourceOptions] = None,
identity_provider_alias: Optional[str] = None,
realm: Optional[str] = None,
extra_config: Optional[Mapping[str, str]] = None,
group: Optional[str] = None,
name: Optional[str] = None)
func NewHardcodedGroupIdentityProviderMapper(ctx *Context, name string, args HardcodedGroupIdentityProviderMapperArgs, opts ...ResourceOption) (*HardcodedGroupIdentityProviderMapper, error)
public HardcodedGroupIdentityProviderMapper(string name, HardcodedGroupIdentityProviderMapperArgs args, CustomResourceOptions? opts = null)
public HardcodedGroupIdentityProviderMapper(String name, HardcodedGroupIdentityProviderMapperArgs args)
public HardcodedGroupIdentityProviderMapper(String name, HardcodedGroupIdentityProviderMapperArgs args, CustomResourceOptions options)
type: keycloak:HardcodedGroupIdentityProviderMapper
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. HardcodedGroupIdentityProviderMapperArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. HardcodedGroupIdentityProviderMapperArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. HardcodedGroupIdentityProviderMapperArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. HardcodedGroupIdentityProviderMapperArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. HardcodedGroupIdentityProviderMapperArgs - 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 hardcodedGroupIdentityProviderMapperResource = new Keycloak.HardcodedGroupIdentityProviderMapper("hardcodedGroupIdentityProviderMapperResource", new()
{
IdentityProviderAlias = "string",
Realm = "string",
ExtraConfig =
{
{ "string", "string" },
},
Group = "string",
Name = "string",
});
example, err := keycloak.NewHardcodedGroupIdentityProviderMapper(ctx, "hardcodedGroupIdentityProviderMapperResource", &keycloak.HardcodedGroupIdentityProviderMapperArgs{
IdentityProviderAlias: pulumi.String("string"),
Realm: pulumi.String("string"),
ExtraConfig: pulumi.StringMap{
"string": pulumi.String("string"),
},
Group: pulumi.String("string"),
Name: pulumi.String("string"),
})
var hardcodedGroupIdentityProviderMapperResource = new HardcodedGroupIdentityProviderMapper("hardcodedGroupIdentityProviderMapperResource", HardcodedGroupIdentityProviderMapperArgs.builder()
.identityProviderAlias("string")
.realm("string")
.extraConfig(Map.of("string", "string"))
.group("string")
.name("string")
.build());
hardcoded_group_identity_provider_mapper_resource = keycloak.HardcodedGroupIdentityProviderMapper("hardcodedGroupIdentityProviderMapperResource",
identity_provider_alias="string",
realm="string",
extra_config={
"string": "string",
},
group="string",
name="string")
const hardcodedGroupIdentityProviderMapperResource = new keycloak.HardcodedGroupIdentityProviderMapper("hardcodedGroupIdentityProviderMapperResource", {
identityProviderAlias: "string",
realm: "string",
extraConfig: {
string: "string",
},
group: "string",
name: "string",
});
type: keycloak:HardcodedGroupIdentityProviderMapper
properties:
extraConfig:
string: string
group: string
identityProviderAlias: string
name: string
realm: string
HardcodedGroupIdentityProviderMapper 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 HardcodedGroupIdentityProviderMapper resource accepts the following input properties:
- Identity
Provider Alias This property is required. Changes to this property will trigger replacement.
- The IDP alias of the attribute to set.
- Realm
This property is required. Changes to this property will trigger replacement.
- The realm ID that this mapper will exist in.
- Extra
Config Dictionary<string, string> - Group string
- The name of the group which should be assigned to the users.
- Name
Changes to this property will trigger replacement.
- Display name of this mapper when displayed in the console.
- Identity
Provider Alias This property is required. Changes to this property will trigger replacement.
- The IDP alias of the attribute to set.
- Realm
This property is required. Changes to this property will trigger replacement.
- The realm ID that this mapper will exist in.
- Extra
Config map[string]string - Group string
- The name of the group which should be assigned to the users.
- Name
Changes to this property will trigger replacement.
- Display name of this mapper when displayed in the console.
- identity
Provider Alias This property is required. Changes to this property will trigger replacement.
- The IDP alias of the attribute to set.
- realm
This property is required. Changes to this property will trigger replacement.
- The realm ID that this mapper will exist in.
- extra
Config Map<String,String> - group String
- The name of the group which should be assigned to the users.
- name
Changes to this property will trigger replacement.
- Display name of this mapper when displayed in the console.
- identity
Provider Alias This property is required. Changes to this property will trigger replacement.
- The IDP alias of the attribute to set.
- realm
This property is required. Changes to this property will trigger replacement.
- The realm ID that this mapper will exist in.
- extra
Config {[key: string]: string} - group string
- The name of the group which should be assigned to the users.
- name
Changes to this property will trigger replacement.
- Display name of this mapper when displayed in the console.
- identity_
provider_ alias This property is required. Changes to this property will trigger replacement.
- The IDP alias of the attribute to set.
- realm
This property is required. Changes to this property will trigger replacement.
- The realm ID that this mapper will exist in.
- extra_
config Mapping[str, str] - group str
- The name of the group which should be assigned to the users.
- name
Changes to this property will trigger replacement.
- Display name of this mapper when displayed in the console.
- identity
Provider Alias This property is required. Changes to this property will trigger replacement.
- The IDP alias of the attribute to set.
- realm
This property is required. Changes to this property will trigger replacement.
- The realm ID that this mapper will exist in.
- extra
Config Map<String> - group String
- The name of the group which should be assigned to the users.
- name
Changes to this property will trigger replacement.
- Display name of this mapper when displayed in the console.
Outputs
All input properties are implicitly available as output properties. Additionally, the HardcodedGroupIdentityProviderMapper 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 HardcodedGroupIdentityProviderMapper Resource
Get an existing HardcodedGroupIdentityProviderMapper 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?: HardcodedGroupIdentityProviderMapperState, opts?: CustomResourceOptions): HardcodedGroupIdentityProviderMapper
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
extra_config: Optional[Mapping[str, str]] = None,
group: Optional[str] = None,
identity_provider_alias: Optional[str] = None,
name: Optional[str] = None,
realm: Optional[str] = None) -> HardcodedGroupIdentityProviderMapper
func GetHardcodedGroupIdentityProviderMapper(ctx *Context, name string, id IDInput, state *HardcodedGroupIdentityProviderMapperState, opts ...ResourceOption) (*HardcodedGroupIdentityProviderMapper, error)
public static HardcodedGroupIdentityProviderMapper Get(string name, Input<string> id, HardcodedGroupIdentityProviderMapperState? state, CustomResourceOptions? opts = null)
public static HardcodedGroupIdentityProviderMapper get(String name, Output<String> id, HardcodedGroupIdentityProviderMapperState state, CustomResourceOptions options)
resources: _: type: keycloak:HardcodedGroupIdentityProviderMapper get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Extra
Config Dictionary<string, string> - Group string
- The name of the group which should be assigned to the users.
- Identity
Provider Alias Changes to this property will trigger replacement.
- The IDP alias of the attribute to set.
- Name
Changes to this property will trigger replacement.
- Display name of this mapper when displayed in the console.
- Realm
Changes to this property will trigger replacement.
- The realm ID that this mapper will exist in.
- Extra
Config map[string]string - Group string
- The name of the group which should be assigned to the users.
- Identity
Provider Alias Changes to this property will trigger replacement.
- The IDP alias of the attribute to set.
- Name
Changes to this property will trigger replacement.
- Display name of this mapper when displayed in the console.
- Realm
Changes to this property will trigger replacement.
- The realm ID that this mapper will exist in.
- extra
Config Map<String,String> - group String
- The name of the group which should be assigned to the users.
- identity
Provider Alias Changes to this property will trigger replacement.
- The IDP alias of the attribute to set.
- name
Changes to this property will trigger replacement.
- Display name of this mapper when displayed in the console.
- realm
Changes to this property will trigger replacement.
- The realm ID that this mapper will exist in.
- extra
Config {[key: string]: string} - group string
- The name of the group which should be assigned to the users.
- identity
Provider Alias Changes to this property will trigger replacement.
- The IDP alias of the attribute to set.
- name
Changes to this property will trigger replacement.
- Display name of this mapper when displayed in the console.
- realm
Changes to this property will trigger replacement.
- The realm ID that this mapper will exist in.
- extra_
config Mapping[str, str] - group str
- The name of the group which should be assigned to the users.
- identity_
provider_ alias Changes to this property will trigger replacement.
- The IDP alias of the attribute to set.
- name
Changes to this property will trigger replacement.
- Display name of this mapper when displayed in the console.
- realm
Changes to this property will trigger replacement.
- The realm ID that this mapper will exist in.
- extra
Config Map<String> - group String
- The name of the group which should be assigned to the users.
- identity
Provider Alias Changes to this property will trigger replacement.
- The IDP alias of the attribute to set.
- name
Changes to this property will trigger replacement.
- Display name of this mapper when displayed in the console.
- realm
Changes to this property will trigger replacement.
- The realm ID that this mapper will exist in.
Package Details
- Repository
- Keycloak pulumi/pulumi-keycloak
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
keycloak
Terraform Provider.