Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Keycloak

v4.7.0 published on Thursday, Nov 18, 2021 by Pulumi

CustomIdentityProviderMapping

Import

Identity provider mappers can be imported using the format {{realm_id}}/{{idp_alias}}/{{idp_mapper_id}}, where idp_alias is the identity provider alias, and idp_mapper_id is the unique ID that Keycloak assigns to the mapper upon creation. This value can be found in the URI when editing this mapper in the GUI, and is typically a GUID. Examplebash

 $ pulumi import keycloak:index/customIdentityProviderMapping:CustomIdentityProviderMapping test_mapper my-realm/my-mapper/f446db98-7133-4e30-b18a-3d28fde7ca1b

Create a CustomIdentityProviderMapping Resource

new CustomIdentityProviderMapping(name: string, args: CustomIdentityProviderMappingArgs, opts?: CustomResourceOptions);
@overload
def CustomIdentityProviderMapping(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  extra_config: Optional[Mapping[str, Any]] = None,
                                  identity_provider_alias: Optional[str] = None,
                                  identity_provider_mapper: Optional[str] = None,
                                  name: Optional[str] = None,
                                  realm: Optional[str] = None)
@overload
def CustomIdentityProviderMapping(resource_name: str,
                                  args: CustomIdentityProviderMappingArgs,
                                  opts: Optional[ResourceOptions] = None)
func NewCustomIdentityProviderMapping(ctx *Context, name string, args CustomIdentityProviderMappingArgs, opts ...ResourceOption) (*CustomIdentityProviderMapping, error)
public CustomIdentityProviderMapping(string name, CustomIdentityProviderMappingArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args CustomIdentityProviderMappingArgs
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 CustomIdentityProviderMappingArgs
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 CustomIdentityProviderMappingArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CustomIdentityProviderMappingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

CustomIdentityProviderMapping Resource Properties

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

Inputs

The CustomIdentityProviderMapping resource accepts the following input properties:

IdentityProviderAlias string
The alias of the associated identity provider.
IdentityProviderMapper string
The type of the identity provider mapper. This can be a format string that includes a %s - this will be replaced by the provider id.
Realm string
The name of the realm.
ExtraConfig Dictionary<string, object>
Key/value attributes to add to the identity provider mapper model that is persisted to Keycloak. This can be used to extend the base model with new Keycloak features.
Name string
The name of the mapper.
IdentityProviderAlias string
The alias of the associated identity provider.
IdentityProviderMapper string
The type of the identity provider mapper. This can be a format string that includes a %s - this will be replaced by the provider id.
Realm string
The name of the realm.
ExtraConfig map[string]interface{}
Key/value attributes to add to the identity provider mapper model that is persisted to Keycloak. This can be used to extend the base model with new Keycloak features.
Name string
The name of the mapper.
identityProviderAlias string
The alias of the associated identity provider.
identityProviderMapper string
The type of the identity provider mapper. This can be a format string that includes a %s - this will be replaced by the provider id.
realm string
The name of the realm.
extraConfig {[key: string]: any}
Key/value attributes to add to the identity provider mapper model that is persisted to Keycloak. This can be used to extend the base model with new Keycloak features.
name string
The name of the mapper.
identity_provider_alias str
The alias of the associated identity provider.
identity_provider_mapper str
The type of the identity provider mapper. This can be a format string that includes a %s - this will be replaced by the provider id.
realm str
The name of the realm.
extra_config Mapping[str, Any]
Key/value attributes to add to the identity provider mapper model that is persisted to Keycloak. This can be used to extend the base model with new Keycloak features.
name str
The name of the mapper.

Outputs

All input properties are implicitly available as output properties. Additionally, the CustomIdentityProviderMapping 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing CustomIdentityProviderMapping Resource

Get an existing CustomIdentityProviderMapping 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?: CustomIdentityProviderMappingState, opts?: CustomResourceOptions): CustomIdentityProviderMapping
@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,
        identity_provider_mapper: Optional[str] = None,
        name: Optional[str] = None,
        realm: Optional[str] = None) -> CustomIdentityProviderMapping
func GetCustomIdentityProviderMapping(ctx *Context, name string, id IDInput, state *CustomIdentityProviderMappingState, opts ...ResourceOption) (*CustomIdentityProviderMapping, error)
public static CustomIdentityProviderMapping Get(string name, Input<string> id, CustomIdentityProviderMappingState? 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:

ExtraConfig Dictionary<string, object>
Key/value attributes to add to the identity provider mapper model that is persisted to Keycloak. This can be used to extend the base model with new Keycloak features.
IdentityProviderAlias string
The alias of the associated identity provider.
IdentityProviderMapper string
The type of the identity provider mapper. This can be a format string that includes a %s - this will be replaced by the provider id.
Name string
The name of the mapper.
Realm string
The name of the realm.
ExtraConfig map[string]interface{}
Key/value attributes to add to the identity provider mapper model that is persisted to Keycloak. This can be used to extend the base model with new Keycloak features.
IdentityProviderAlias string
The alias of the associated identity provider.
IdentityProviderMapper string
The type of the identity provider mapper. This can be a format string that includes a %s - this will be replaced by the provider id.
Name string
The name of the mapper.
Realm string
The name of the realm.
extraConfig {[key: string]: any}
Key/value attributes to add to the identity provider mapper model that is persisted to Keycloak. This can be used to extend the base model with new Keycloak features.
identityProviderAlias string
The alias of the associated identity provider.
identityProviderMapper string
The type of the identity provider mapper. This can be a format string that includes a %s - this will be replaced by the provider id.
name string
The name of the mapper.
realm string
The name of the realm.
extra_config Mapping[str, Any]
Key/value attributes to add to the identity provider mapper model that is persisted to Keycloak. This can be used to extend the base model with new Keycloak features.
identity_provider_alias str
The alias of the associated identity provider.
identity_provider_mapper str
The type of the identity provider mapper. This can be a format string that includes a %s - this will be replaced by the provider id.
name str
The name of the mapper.
realm str
The name of the realm.

Package Details

Repository
https://github.com/pulumi/pulumi-keycloak
License
Apache-2.0
Notes
This Pulumi package is based on the keycloak Terraform Provider.