Realm
Create a Realm Resource
new Realm(name: string, args: RealmArgs, opts?: CustomResourceOptions);def Realm(resource_name, opts=None, access_code_lifespan=None, access_code_lifespan_login=None, access_code_lifespan_user_action=None, access_token_lifespan=None, access_token_lifespan_for_implicit_flow=None, account_theme=None, action_token_generated_by_admin_lifespan=None, action_token_generated_by_user_lifespan=None, admin_theme=None, attributes=None, browser_flow=None, client_authentication_flow=None, direct_grant_flow=None, display_name=None, display_name_html=None, docker_authentication_flow=None, duplicate_emails_allowed=None, edit_username_allowed=None, email_theme=None, enabled=None, internationalization=None, login_theme=None, login_with_email_allowed=None, offline_session_idle_timeout=None, offline_session_max_lifespan=None, password_policy=None, realm=None, refresh_token_max_reuse=None, registration_allowed=None, registration_email_as_username=None, registration_flow=None, remember_me=None, reset_credentials_flow=None, reset_password_allowed=None, revoke_refresh_token=None, security_defenses=None, smtp_server=None, ssl_required=None, sso_session_idle_timeout=None, sso_session_max_lifespan=None, user_managed_access=None, verify_email=None, __props__=None);public Realm(string name, RealmArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RealmArgs
- 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 RealmArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RealmArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Realm Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Realm resource accepts the following input properties:
- Realm
Name string - Access
Code stringLifespan - Access
Code stringLifespan Login - Access
Code stringLifespan User Action - Access
Token stringLifespan - Access
Token stringLifespan For Implicit Flow - Account
Theme string - Action
Token stringGenerated By Admin Lifespan - Action
Token stringGenerated By User Lifespan - Admin
Theme string - Attributes Dictionary<string, object>
- Browser
Flow string Which flow should be used for BrowserFlow
- Client
Authentication stringFlow Which flow should be used for ClientAuthenticationFlow
- Direct
Grant stringFlow Which flow should be used for DirectGrantFlow
- Display
Name string - Display
Name stringHtml - Docker
Authentication stringFlow Which flow should be used for DockerAuthenticationFlow
- Duplicate
Emails boolAllowed - Edit
Username boolAllowed - Email
Theme string - Enabled bool
- Internationalization
Realm
Internationalization Args - Login
Theme string - Login
With boolEmail Allowed - Offline
Session stringIdle Timeout - Offline
Session stringMax Lifespan - Password
Policy string String that represents the passwordPolicies that are in place. Each policy is separated with “ and “. Supported policies can be found in the server-info providers page. example: “upperCase(1) and length(8) and forceExpiredPasswordChange(365) and notUsername(undefined)”
- Refresh
Token intMax Reuse - Registration
Allowed bool - Registration
Email boolAs Username - Registration
Flow string Which flow should be used for RegistrationFlow
- Remember
Me bool - Reset
Credentials stringFlow Which flow should be used for ResetCredentialsFlow
- Reset
Password boolAllowed - Revoke
Refresh boolToken - Security
Defenses RealmSecurity Defenses Args - Smtp
Server RealmSmtp Server Args - Ssl
Required string SSL Required: Values can be ‘none’, ‘external’ or ‘all’.
- Sso
Session stringIdle Timeout - Sso
Session stringMax Lifespan - User
Managed boolAccess - Verify
Email bool
- Realm string
- Access
Code stringLifespan - Access
Code stringLifespan Login - Access
Code stringLifespan User Action - Access
Token stringLifespan - Access
Token stringLifespan For Implicit Flow - Account
Theme string - Action
Token stringGenerated By Admin Lifespan - Action
Token stringGenerated By User Lifespan - Admin
Theme string - Attributes map[string]interface{}
- Browser
Flow string Which flow should be used for BrowserFlow
- Client
Authentication stringFlow Which flow should be used for ClientAuthenticationFlow
- Direct
Grant stringFlow Which flow should be used for DirectGrantFlow
- Display
Name string - Display
Name stringHtml - Docker
Authentication stringFlow Which flow should be used for DockerAuthenticationFlow
- Duplicate
Emails boolAllowed - Edit
Username boolAllowed - Email
Theme string - Enabled bool
- Internationalization
Realm
Internationalization - Login
Theme string - Login
With boolEmail Allowed - Offline
Session stringIdle Timeout - Offline
Session stringMax Lifespan - Password
Policy string String that represents the passwordPolicies that are in place. Each policy is separated with “ and “. Supported policies can be found in the server-info providers page. example: “upperCase(1) and length(8) and forceExpiredPasswordChange(365) and notUsername(undefined)”
- Refresh
Token intMax Reuse - Registration
Allowed bool - Registration
Email boolAs Username - Registration
Flow string Which flow should be used for RegistrationFlow
- Remember
Me bool - Reset
Credentials stringFlow Which flow should be used for ResetCredentialsFlow
- Reset
Password boolAllowed - Revoke
Refresh boolToken - Security
Defenses RealmSecurity Defenses - Smtp
Server RealmSmtp Server - Ssl
Required string SSL Required: Values can be ‘none’, ‘external’ or ‘all’.
- Sso
Session stringIdle Timeout - Sso
Session stringMax Lifespan - User
Managed boolAccess - Verify
Email bool
- realm string
- access
Code stringLifespan - access
Code stringLifespan Login - access
Code stringLifespan User Action - access
Token stringLifespan - access
Token stringLifespan For Implicit Flow - account
Theme string - action
Token stringGenerated By Admin Lifespan - action
Token stringGenerated By User Lifespan - admin
Theme string - attributes {[key: string]: any}
- browser
Flow string Which flow should be used for BrowserFlow
- client
Authentication stringFlow Which flow should be used for ClientAuthenticationFlow
- direct
Grant stringFlow Which flow should be used for DirectGrantFlow
- display
Name string - display
Name stringHtml - docker
Authentication stringFlow Which flow should be used for DockerAuthenticationFlow
- duplicate
Emails booleanAllowed - edit
Username booleanAllowed - email
Theme string - enabled boolean
- internationalization
Realm
Internationalization - login
Theme string - login
With booleanEmail Allowed - offline
Session stringIdle Timeout - offline
Session stringMax Lifespan - password
Policy string String that represents the passwordPolicies that are in place. Each policy is separated with “ and “. Supported policies can be found in the server-info providers page. example: “upperCase(1) and length(8) and forceExpiredPasswordChange(365) and notUsername(undefined)”
- refresh
Token numberMax Reuse - registration
Allowed boolean - registration
Email booleanAs Username - registration
Flow string Which flow should be used for RegistrationFlow
- remember
Me boolean - reset
Credentials stringFlow Which flow should be used for ResetCredentialsFlow
- reset
Password booleanAllowed - revoke
Refresh booleanToken - security
Defenses RealmSecurity Defenses - smtp
Server RealmSmtp Server - ssl
Required string SSL Required: Values can be ‘none’, ‘external’ or ‘all’.
- sso
Session stringIdle Timeout - sso
Session stringMax Lifespan - user
Managed booleanAccess - verify
Email boolean
- realm str
- access_
code_ strlifespan - access_
code_ strlifespan_ login - access_
code_ strlifespan_ user_ action - access_
token_ strlifespan - access_
token_ strlifespan_ for_ implicit_ flow - account_
theme str - action_
token_ strgenerated_ by_ admin_ lifespan - action_
token_ strgenerated_ by_ user_ lifespan - admin_
theme str - attributes Dict[str, Any]
- browser_
flow str Which flow should be used for BrowserFlow
- client_
authentication_ strflow Which flow should be used for ClientAuthenticationFlow
- direct_
grant_ strflow Which flow should be used for DirectGrantFlow
- display_
name str - display_
name_ strhtml - docker_
authentication_ strflow Which flow should be used for DockerAuthenticationFlow
- duplicate_
emails_ boolallowed - edit_
username_ boolallowed - email_
theme str - enabled bool
- internationalization
Dict[Realm
Internationalization] - login_
theme str - login_
with_ boolemail_ allowed - offline_
session_ stridle_ timeout - offline_
session_ strmax_ lifespan - password_
policy str String that represents the passwordPolicies that are in place. Each policy is separated with “ and “. Supported policies can be found in the server-info providers page. example: “upperCase(1) and length(8) and forceExpiredPasswordChange(365) and notUsername(undefined)”
- refresh_
token_ floatmax_ reuse - registration_
allowed bool - registration_
email_ boolas_ username - registration_
flow str Which flow should be used for RegistrationFlow
- remember_
me bool - reset_
credentials_ strflow Which flow should be used for ResetCredentialsFlow
- reset_
password_ boolallowed - revoke_
refresh_ booltoken - security_
defenses Dict[RealmSecurity Defenses] - smtp_
server Dict[RealmSmtp Server] - ssl_
required str SSL Required: Values can be ‘none’, ‘external’ or ‘all’.
- sso_
session_ stridle_ timeout - sso_
session_ strmax_ lifespan - user_
managed_ boolaccess - verify_
email bool
Outputs
All input properties are implicitly available as output properties. Additionally, the Realm resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Id string
- Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Id string
- id string
- The provider-assigned unique ID for this managed resource.
- internal
Id string
- id str
- The provider-assigned unique ID for this managed resource.
- internal_
id str
Look up an Existing Realm Resource
Get an existing Realm 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?: RealmState, opts?: CustomResourceOptions): Realmstatic get(resource_name, id, opts=None, access_code_lifespan=None, access_code_lifespan_login=None, access_code_lifespan_user_action=None, access_token_lifespan=None, access_token_lifespan_for_implicit_flow=None, account_theme=None, action_token_generated_by_admin_lifespan=None, action_token_generated_by_user_lifespan=None, admin_theme=None, attributes=None, browser_flow=None, client_authentication_flow=None, direct_grant_flow=None, display_name=None, display_name_html=None, docker_authentication_flow=None, duplicate_emails_allowed=None, edit_username_allowed=None, email_theme=None, enabled=None, internal_id=None, internationalization=None, login_theme=None, login_with_email_allowed=None, offline_session_idle_timeout=None, offline_session_max_lifespan=None, password_policy=None, realm=None, refresh_token_max_reuse=None, registration_allowed=None, registration_email_as_username=None, registration_flow=None, remember_me=None, reset_credentials_flow=None, reset_password_allowed=None, revoke_refresh_token=None, security_defenses=None, smtp_server=None, ssl_required=None, sso_session_idle_timeout=None, sso_session_max_lifespan=None, user_managed_access=None, verify_email=None, __props__=None);func GetRealm(ctx *Context, name string, id IDInput, state *RealmState, opts ...ResourceOption) (*Realm, error)public static Realm Get(string name, Input<string> id, RealmState? 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:
- Access
Code stringLifespan - Access
Code stringLifespan Login - Access
Code stringLifespan User Action - Access
Token stringLifespan - Access
Token stringLifespan For Implicit Flow - Account
Theme string - Action
Token stringGenerated By Admin Lifespan - Action
Token stringGenerated By User Lifespan - Admin
Theme string - Attributes Dictionary<string, object>
- Browser
Flow string Which flow should be used for BrowserFlow
- Client
Authentication stringFlow Which flow should be used for ClientAuthenticationFlow
- Direct
Grant stringFlow Which flow should be used for DirectGrantFlow
- Display
Name string - Display
Name stringHtml - Docker
Authentication stringFlow Which flow should be used for DockerAuthenticationFlow
- Duplicate
Emails boolAllowed - Edit
Username boolAllowed - Email
Theme string - Enabled bool
- Internal
Id string - Internationalization
Realm
Internationalization Args - Login
Theme string - Login
With boolEmail Allowed - Offline
Session stringIdle Timeout - Offline
Session stringMax Lifespan - Password
Policy string String that represents the passwordPolicies that are in place. Each policy is separated with “ and “. Supported policies can be found in the server-info providers page. example: “upperCase(1) and length(8) and forceExpiredPasswordChange(365) and notUsername(undefined)”
- Realm
Name string - Refresh
Token intMax Reuse - Registration
Allowed bool - Registration
Email boolAs Username - Registration
Flow string Which flow should be used for RegistrationFlow
- Remember
Me bool - Reset
Credentials stringFlow Which flow should be used for ResetCredentialsFlow
- Reset
Password boolAllowed - Revoke
Refresh boolToken - Security
Defenses RealmSecurity Defenses Args - Smtp
Server RealmSmtp Server Args - Ssl
Required string SSL Required: Values can be ‘none’, ‘external’ or ‘all’.
- Sso
Session stringIdle Timeout - Sso
Session stringMax Lifespan - User
Managed boolAccess - Verify
Email bool
- Access
Code stringLifespan - Access
Code stringLifespan Login - Access
Code stringLifespan User Action - Access
Token stringLifespan - Access
Token stringLifespan For Implicit Flow - Account
Theme string - Action
Token stringGenerated By Admin Lifespan - Action
Token stringGenerated By User Lifespan - Admin
Theme string - Attributes map[string]interface{}
- Browser
Flow string Which flow should be used for BrowserFlow
- Client
Authentication stringFlow Which flow should be used for ClientAuthenticationFlow
- Direct
Grant stringFlow Which flow should be used for DirectGrantFlow
- Display
Name string - Display
Name stringHtml - Docker
Authentication stringFlow Which flow should be used for DockerAuthenticationFlow
- Duplicate
Emails boolAllowed - Edit
Username boolAllowed - Email
Theme string - Enabled bool
- Internal
Id string - Internationalization
Realm
Internationalization - Login
Theme string - Login
With boolEmail Allowed - Offline
Session stringIdle Timeout - Offline
Session stringMax Lifespan - Password
Policy string String that represents the passwordPolicies that are in place. Each policy is separated with “ and “. Supported policies can be found in the server-info providers page. example: “upperCase(1) and length(8) and forceExpiredPasswordChange(365) and notUsername(undefined)”
- Realm string
- Refresh
Token intMax Reuse - Registration
Allowed bool - Registration
Email boolAs Username - Registration
Flow string Which flow should be used for RegistrationFlow
- Remember
Me bool - Reset
Credentials stringFlow Which flow should be used for ResetCredentialsFlow
- Reset
Password boolAllowed - Revoke
Refresh boolToken - Security
Defenses RealmSecurity Defenses - Smtp
Server RealmSmtp Server - Ssl
Required string SSL Required: Values can be ‘none’, ‘external’ or ‘all’.
- Sso
Session stringIdle Timeout - Sso
Session stringMax Lifespan - User
Managed boolAccess - Verify
Email bool
- access
Code stringLifespan - access
Code stringLifespan Login - access
Code stringLifespan User Action - access
Token stringLifespan - access
Token stringLifespan For Implicit Flow - account
Theme string - action
Token stringGenerated By Admin Lifespan - action
Token stringGenerated By User Lifespan - admin
Theme string - attributes {[key: string]: any}
- browser
Flow string Which flow should be used for BrowserFlow
- client
Authentication stringFlow Which flow should be used for ClientAuthenticationFlow
- direct
Grant stringFlow Which flow should be used for DirectGrantFlow
- display
Name string - display
Name stringHtml - docker
Authentication stringFlow Which flow should be used for DockerAuthenticationFlow
- duplicate
Emails booleanAllowed - edit
Username booleanAllowed - email
Theme string - enabled boolean
- internal
Id string - internationalization
Realm
Internationalization - login
Theme string - login
With booleanEmail Allowed - offline
Session stringIdle Timeout - offline
Session stringMax Lifespan - password
Policy string String that represents the passwordPolicies that are in place. Each policy is separated with “ and “. Supported policies can be found in the server-info providers page. example: “upperCase(1) and length(8) and forceExpiredPasswordChange(365) and notUsername(undefined)”
- realm string
- refresh
Token numberMax Reuse - registration
Allowed boolean - registration
Email booleanAs Username - registration
Flow string Which flow should be used for RegistrationFlow
- remember
Me boolean - reset
Credentials stringFlow Which flow should be used for ResetCredentialsFlow
- reset
Password booleanAllowed - revoke
Refresh booleanToken - security
Defenses RealmSecurity Defenses - smtp
Server RealmSmtp Server - ssl
Required string SSL Required: Values can be ‘none’, ‘external’ or ‘all’.
- sso
Session stringIdle Timeout - sso
Session stringMax Lifespan - user
Managed booleanAccess - verify
Email boolean
- access_
code_ strlifespan - access_
code_ strlifespan_ login - access_
code_ strlifespan_ user_ action - access_
token_ strlifespan - access_
token_ strlifespan_ for_ implicit_ flow - account_
theme str - action_
token_ strgenerated_ by_ admin_ lifespan - action_
token_ strgenerated_ by_ user_ lifespan - admin_
theme str - attributes Dict[str, Any]
- browser_
flow str Which flow should be used for BrowserFlow
- client_
authentication_ strflow Which flow should be used for ClientAuthenticationFlow
- direct_
grant_ strflow Which flow should be used for DirectGrantFlow
- display_
name str - display_
name_ strhtml - docker_
authentication_ strflow Which flow should be used for DockerAuthenticationFlow
- duplicate_
emails_ boolallowed - edit_
username_ boolallowed - email_
theme str - enabled bool
- internal_
id str - internationalization
Dict[Realm
Internationalization] - login_
theme str - login_
with_ boolemail_ allowed - offline_
session_ stridle_ timeout - offline_
session_ strmax_ lifespan - password_
policy str String that represents the passwordPolicies that are in place. Each policy is separated with “ and “. Supported policies can be found in the server-info providers page. example: “upperCase(1) and length(8) and forceExpiredPasswordChange(365) and notUsername(undefined)”
- realm str
- refresh_
token_ floatmax_ reuse - registration_
allowed bool - registration_
email_ boolas_ username - registration_
flow str Which flow should be used for RegistrationFlow
- remember_
me bool - reset_
credentials_ strflow Which flow should be used for ResetCredentialsFlow
- reset_
password_ boolallowed - revoke_
refresh_ booltoken - security_
defenses Dict[RealmSecurity Defenses] - smtp_
server Dict[RealmSmtp Server] - ssl_
required str SSL Required: Values can be ‘none’, ‘external’ or ‘all’.
- sso_
session_ stridle_ timeout - sso_
session_ strmax_ lifespan - user_
managed_ boolaccess - verify_
email bool
Supporting Types
RealmInternationalization
RealmSecurityDefenses
RealmSecurityDefensesBruteForceDetection
RealmSecurityDefensesHeaders
RealmSmtpServer
RealmSmtpServerAuth
Package Details
- Repository
- https://github.com/pulumi/pulumi-keycloak
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
keycloakTerraform Provider.