AttributeImporterIdentityProviderMapper
# keycloak..AttributeImporterIdentityProviderMapper
Allows to create and manage identity provider mappers within Keycloak.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as keycloak from "@pulumi/keycloak";
const testMapper = new keycloak.AttributeImporterIdentityProviderMapper("test_mapper", {
attributeName: "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname",
identityProviderAlias: "idp_alias",
realm: "my-realm",
userAttribute: "lastName",
});import pulumi
import pulumi_keycloak as keycloak
test_mapper = keycloak.AttributeImporterIdentityProviderMapper("testMapper",
attribute_name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname",
identity_provider_alias="idp_alias",
realm="my-realm",
user_attribute="lastName")using Pulumi;
using Keycloak = Pulumi.Keycloak;
class MyStack : Stack
{
public MyStack()
{
var testMapper = new Keycloak.AttributeImporterIdentityProviderMapper("testMapper", new Keycloak.AttributeImporterIdentityProviderMapperArgs
{
AttributeName = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname",
IdentityProviderAlias = "idp_alias",
Realm = "my-realm",
UserAttribute = "lastName",
});
}
}
Argument Reference
The following arguments are supported:
realm- (Required) The name of the realm.name- (Required) The name of the mapper.identity_provider_alias- (Required) The alias of the associated identity provider.user_attribute- (Required) The user attribute name to store SAML attribute.attribute_name- (Optional) The Name of attribute to search for in assertion. You can leave this blank and specify a friendly name instead.attribute_friendly_name- (Optional) The friendly name of attribute to search for in assertion. You can leave this blank and specify an attribute name instead.claim_name- (Optional) The claim name.
Create a AttributeImporterIdentityProviderMapper Resource
new AttributeImporterIdentityProviderMapper(name: string, args: AttributeImporterIdentityProviderMapperArgs, opts?: CustomResourceOptions);def AttributeImporterIdentityProviderMapper(resource_name, opts=None, attribute_friendly_name=None, attribute_name=None, claim_name=None, identity_provider_alias=None, name=None, realm=None, user_attribute=None, __props__=None);func NewAttributeImporterIdentityProviderMapper(ctx *Context, name string, args AttributeImporterIdentityProviderMapperArgs, opts ...ResourceOption) (*AttributeImporterIdentityProviderMapper, error)public AttributeImporterIdentityProviderMapper(string name, AttributeImporterIdentityProviderMapperArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AttributeImporterIdentityProviderMapperArgs
- 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 AttributeImporterIdentityProviderMapperArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AttributeImporterIdentityProviderMapperArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
AttributeImporterIdentityProviderMapper Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AttributeImporterIdentityProviderMapper resource accepts the following input properties:
- Identity
Provider stringAlias IDP Alias
- Realm string
Realm Name
- User
Attribute string User Attribute
- Attribute
Friendly stringName Attribute Friendly Name
- Attribute
Name string Attribute Name
- Claim
Name string Claim Name
- Name string
IDP Mapper Name
- Identity
Provider stringAlias IDP Alias
- Realm string
Realm Name
- User
Attribute string User Attribute
- Attribute
Friendly stringName Attribute Friendly Name
- Attribute
Name string Attribute Name
- Claim
Name string Claim Name
- Name string
IDP Mapper Name
- identity
Provider stringAlias IDP Alias
- realm string
Realm Name
- user
Attribute string User Attribute
- attribute
Friendly stringName Attribute Friendly Name
- attribute
Name string Attribute Name
- claim
Name string Claim Name
- name string
IDP Mapper Name
- identity_
provider_ stralias IDP Alias
- realm str
Realm Name
- user_
attribute str User Attribute
- attribute_
friendly_ strname Attribute Friendly Name
- attribute_
name str Attribute Name
- claim_
name str Claim Name
- name str
IDP Mapper Name
Outputs
All input properties are implicitly available as output properties. Additionally, the AttributeImporterIdentityProviderMapper resource produces the following output properties:
Look up an Existing AttributeImporterIdentityProviderMapper Resource
Get an existing AttributeImporterIdentityProviderMapper 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?: AttributeImporterIdentityProviderMapperState, opts?: CustomResourceOptions): AttributeImporterIdentityProviderMapperstatic get(resource_name, id, opts=None, attribute_friendly_name=None, attribute_name=None, claim_name=None, identity_provider_alias=None, name=None, realm=None, user_attribute=None, __props__=None);func GetAttributeImporterIdentityProviderMapper(ctx *Context, name string, id IDInput, state *AttributeImporterIdentityProviderMapperState, opts ...ResourceOption) (*AttributeImporterIdentityProviderMapper, error)public static AttributeImporterIdentityProviderMapper Get(string name, Input<string> id, AttributeImporterIdentityProviderMapperState? 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:
- Attribute
Friendly stringName Attribute Friendly Name
- Attribute
Name string Attribute Name
- Claim
Name string Claim Name
- Identity
Provider stringAlias IDP Alias
- Name string
IDP Mapper Name
- Realm string
Realm Name
- User
Attribute string User Attribute
- Attribute
Friendly stringName Attribute Friendly Name
- Attribute
Name string Attribute Name
- Claim
Name string Claim Name
- Identity
Provider stringAlias IDP Alias
- Name string
IDP Mapper Name
- Realm string
Realm Name
- User
Attribute string User Attribute
- attribute
Friendly stringName Attribute Friendly Name
- attribute
Name string Attribute Name
- claim
Name string Claim Name
- identity
Provider stringAlias IDP Alias
- name string
IDP Mapper Name
- realm string
Realm Name
- user
Attribute string User Attribute
- attribute_
friendly_ strname Attribute Friendly Name
- attribute_
name str Attribute Name
- claim_
name str Claim Name
- identity_
provider_ stralias IDP Alias
- name str
IDP Mapper Name
- realm str
Realm Name
- user_
attribute str User Attribute
Package Details
- Repository
- https://github.com/pulumi/pulumi-keycloak
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
keycloakTerraform Provider.