Schema
Creates a User Schema property.
This resource allows you to create and configure a custom user schema property.
Example Usage
using Pulumi;
using Okta = Pulumi.Okta;
class MyStack : Stack
{
public MyStack()
{
var example = new Okta.User.Schema("example", new Okta.User.SchemaArgs
{
Description = "My custom property name",
Index = "customPropertyName",
Master = "OKTA",
Scope = "SELF",
Title = "customPropertyName",
Type = "string",
});
}
}
Coming soon!
import pulumi
import pulumi_okta as okta
example = okta.user.Schema("example",
description="My custom property name",
index="customPropertyName",
master="OKTA",
scope="SELF",
title="customPropertyName",
type="string")import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = new okta.user.Schema("example", {
description: "My custom property name",
index: "customPropertyName",
master: "OKTA",
scope: "SELF",
title: "customPropertyName",
type: "string",
});Create a Schema Resource
new Schema(name: string, args: SchemaArgs, opts?: CustomResourceOptions);def Schema(resource_name, opts=None, array_enums=None, array_one_ofs=None, array_type=None, description=None, enums=None, external_name=None, index=None, master=None, max_length=None, min_length=None, one_ofs=None, permissions=None, required=None, scope=None, title=None, type=None, __props__=None);func NewSchema(ctx *Context, name string, args SchemaArgs, opts ...ResourceOption) (*Schema, error)public Schema(string name, SchemaArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SchemaArgs
- 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 SchemaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchemaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Schema Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Schema resource accepts the following input properties:
- Index string
The property name.
- Title string
display name for the enum value.
- Type string
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".- Array
Enums List<string> Array of values that an array property’s items can be set to.
- Array
One List<SchemaOfs Array One Of Args> Display name and value an enum array can be set to.
- Array
Type string The type of the array elements if
typeis set to"array".- Description string
The description of the user schema property.
- Enums List<string>
Array of values a primitive property can be set to. See
array_enumfor arrays.- External
Name string External name of the user schema property.
- Master string
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- Max
Length int The maximum length of the user property value. Only applies to type
"string".- Min
Length int The minimum length of the user property value. Only applies to type
"string".- One
Ofs List<SchemaOne Of Args> Array of maps containing a mapping for display name to enum value.
- Permissions string
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- Required bool
Whether the property is required for this application’s users.
- Scope string
determines whether an app user attribute can be set at the Individual or Group Level.
- Index string
The property name.
- Title string
display name for the enum value.
- Type string
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".- Array
Enums []string Array of values that an array property’s items can be set to.
- Array
One []SchemaOfs Array One Of Display name and value an enum array can be set to.
- Array
Type string The type of the array elements if
typeis set to"array".- Description string
The description of the user schema property.
- Enums []string
Array of values a primitive property can be set to. See
array_enumfor arrays.- External
Name string External name of the user schema property.
- Master string
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- Max
Length int The maximum length of the user property value. Only applies to type
"string".- Min
Length int The minimum length of the user property value. Only applies to type
"string".- One
Ofs []SchemaOne Of Array of maps containing a mapping for display name to enum value.
- Permissions string
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- Required bool
Whether the property is required for this application’s users.
- Scope string
determines whether an app user attribute can be set at the Individual or Group Level.
- index string
The property name.
- title string
display name for the enum value.
- type string
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".- array
Enums string[] Array of values that an array property’s items can be set to.
- array
One SchemaOfs Array One Of[] Display name and value an enum array can be set to.
- array
Type string The type of the array elements if
typeis set to"array".- description string
The description of the user schema property.
- enums string[]
Array of values a primitive property can be set to. See
array_enumfor arrays.- external
Name string External name of the user schema property.
- master string
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- max
Length number The maximum length of the user property value. Only applies to type
"string".- min
Length number The minimum length of the user property value. Only applies to type
"string".- one
Ofs SchemaOne Of[] Array of maps containing a mapping for display name to enum value.
- permissions string
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- required boolean
Whether the property is required for this application’s users.
- scope string
determines whether an app user attribute can be set at the Individual or Group Level.
- index str
The property name.
- title str
display name for the enum value.
- type str
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".- array_
enums List[str] Array of values that an array property’s items can be set to.
- array_
one_ List[Schemaofs Array One Of] Display name and value an enum array can be set to.
- array_
type str The type of the array elements if
typeis set to"array".- description str
The description of the user schema property.
- enums List[str]
Array of values a primitive property can be set to. See
array_enumfor arrays.- external_
name str External name of the user schema property.
- master str
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- max_
length float The maximum length of the user property value. Only applies to type
"string".- min_
length float The minimum length of the user property value. Only applies to type
"string".- one_
ofs List[SchemaOne Of] Array of maps containing a mapping for display name to enum value.
- permissions str
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- required bool
Whether the property is required for this application’s users.
- scope str
determines whether an app user attribute can be set at the Individual or Group Level.
Outputs
All input properties are implicitly available as output properties. Additionally, the Schema resource produces the following output properties:
Look up an Existing Schema Resource
Get an existing Schema 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?: SchemaState, opts?: CustomResourceOptions): Schemastatic get(resource_name, id, opts=None, array_enums=None, array_one_ofs=None, array_type=None, description=None, enums=None, external_name=None, index=None, master=None, max_length=None, min_length=None, one_ofs=None, permissions=None, required=None, scope=None, title=None, type=None, __props__=None);func GetSchema(ctx *Context, name string, id IDInput, state *SchemaState, opts ...ResourceOption) (*Schema, error)public static Schema Get(string name, Input<string> id, SchemaState? 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:
- Array
Enums List<string> Array of values that an array property’s items can be set to.
- Array
One List<SchemaOfs Array One Of Args> Display name and value an enum array can be set to.
- Array
Type string The type of the array elements if
typeis set to"array".- Description string
The description of the user schema property.
- Enums List<string>
Array of values a primitive property can be set to. See
array_enumfor arrays.- External
Name string External name of the user schema property.
- Index string
The property name.
- Master string
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- Max
Length int The maximum length of the user property value. Only applies to type
"string".- Min
Length int The minimum length of the user property value. Only applies to type
"string".- One
Ofs List<SchemaOne Of Args> Array of maps containing a mapping for display name to enum value.
- Permissions string
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- Required bool
Whether the property is required for this application’s users.
- Scope string
determines whether an app user attribute can be set at the Individual or Group Level.
- Title string
display name for the enum value.
- Type string
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".
- Array
Enums []string Array of values that an array property’s items can be set to.
- Array
One []SchemaOfs Array One Of Display name and value an enum array can be set to.
- Array
Type string The type of the array elements if
typeis set to"array".- Description string
The description of the user schema property.
- Enums []string
Array of values a primitive property can be set to. See
array_enumfor arrays.- External
Name string External name of the user schema property.
- Index string
The property name.
- Master string
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- Max
Length int The maximum length of the user property value. Only applies to type
"string".- Min
Length int The minimum length of the user property value. Only applies to type
"string".- One
Ofs []SchemaOne Of Array of maps containing a mapping for display name to enum value.
- Permissions string
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- Required bool
Whether the property is required for this application’s users.
- Scope string
determines whether an app user attribute can be set at the Individual or Group Level.
- Title string
display name for the enum value.
- Type string
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".
- array
Enums string[] Array of values that an array property’s items can be set to.
- array
One SchemaOfs Array One Of[] Display name and value an enum array can be set to.
- array
Type string The type of the array elements if
typeis set to"array".- description string
The description of the user schema property.
- enums string[]
Array of values a primitive property can be set to. See
array_enumfor arrays.- external
Name string External name of the user schema property.
- index string
The property name.
- master string
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- max
Length number The maximum length of the user property value. Only applies to type
"string".- min
Length number The minimum length of the user property value. Only applies to type
"string".- one
Ofs SchemaOne Of[] Array of maps containing a mapping for display name to enum value.
- permissions string
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- required boolean
Whether the property is required for this application’s users.
- scope string
determines whether an app user attribute can be set at the Individual or Group Level.
- title string
display name for the enum value.
- type string
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".
- array_
enums List[str] Array of values that an array property’s items can be set to.
- array_
one_ List[Schemaofs Array One Of] Display name and value an enum array can be set to.
- array_
type str The type of the array elements if
typeis set to"array".- description str
The description of the user schema property.
- enums List[str]
Array of values a primitive property can be set to. See
array_enumfor arrays.- external_
name str External name of the user schema property.
- index str
The property name.
- master str
Master priority for the user schema property. It can be set to
"PROFILE_MASTER"or"OKTA".- max_
length float The maximum length of the user property value. Only applies to type
"string".- min_
length float The minimum length of the user property value. Only applies to type
"string".- one_
ofs List[SchemaOne Of] Array of maps containing a mapping for display name to enum value.
- permissions str
Access control permissions for the property. It can be set to
"READ_WRITE","READ_ONLY","HIDE".- required bool
Whether the property is required for this application’s users.
- scope str
determines whether an app user attribute can be set at the Individual or Group Level.
- title str
display name for the enum value.
- type str
The type of the schema property. It can be
"string","boolean","number","integer","array", or"object".
Supporting Types
SchemaArrayOneOf
SchemaOneOf
Package Details
- Repository
- https://github.com/pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.