1. Packages
  2. Okta Provider
  3. API Docs
  4. RealmAssignment
Okta v5.1.0 published on Wednesday, Aug 13, 2025 by Pulumi

okta.RealmAssignment

Explore with Pulumi AI

okta logo
Okta v5.1.0 published on Wednesday, Aug 13, 2025 by Pulumi

    Create RealmAssignment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RealmAssignment(name: string, args: RealmAssignmentArgs, opts?: CustomResourceOptions);
    @overload
    def RealmAssignment(resource_name: str,
                        args: RealmAssignmentArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def RealmAssignment(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        profile_source_id: Optional[str] = None,
                        realm_id: Optional[str] = None,
                        condition_expression: Optional[str] = None,
                        name: Optional[str] = None,
                        priority: Optional[int] = None,
                        status: Optional[str] = None)
    func NewRealmAssignment(ctx *Context, name string, args RealmAssignmentArgs, opts ...ResourceOption) (*RealmAssignment, error)
    public RealmAssignment(string name, RealmAssignmentArgs args, CustomResourceOptions? opts = null)
    public RealmAssignment(String name, RealmAssignmentArgs args)
    public RealmAssignment(String name, RealmAssignmentArgs args, CustomResourceOptions options)
    
    type: okta:RealmAssignment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args RealmAssignmentArgs
    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 RealmAssignmentArgs
    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 RealmAssignmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RealmAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RealmAssignmentArgs
    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 realmAssignmentResource = new Okta.RealmAssignment("realmAssignmentResource", new()
    {
        ProfileSourceId = "string",
        RealmId = "string",
        ConditionExpression = "string",
        Name = "string",
        Priority = 0,
        Status = "string",
    });
    
    example, err := okta.NewRealmAssignment(ctx, "realmAssignmentResource", &okta.RealmAssignmentArgs{
    	ProfileSourceId:     pulumi.String("string"),
    	RealmId:             pulumi.String("string"),
    	ConditionExpression: pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	Priority:            pulumi.Int(0),
    	Status:              pulumi.String("string"),
    })
    
    var realmAssignmentResource = new RealmAssignment("realmAssignmentResource", RealmAssignmentArgs.builder()
        .profileSourceId("string")
        .realmId("string")
        .conditionExpression("string")
        .name("string")
        .priority(0)
        .status("string")
        .build());
    
    realm_assignment_resource = okta.RealmAssignment("realmAssignmentResource",
        profile_source_id="string",
        realm_id="string",
        condition_expression="string",
        name="string",
        priority=0,
        status="string")
    
    const realmAssignmentResource = new okta.RealmAssignment("realmAssignmentResource", {
        profileSourceId: "string",
        realmId: "string",
        conditionExpression: "string",
        name: "string",
        priority: 0,
        status: "string",
    });
    
    type: okta:RealmAssignment
    properties:
        conditionExpression: string
        name: string
        priority: 0
        profileSourceId: string
        realmId: string
        status: string
    

    RealmAssignment 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 RealmAssignment resource accepts the following input properties:

    ProfileSourceId string
    The ID of the Profile Source.
    RealmId string
    The ID of the Realm asscociated with the Realm Assignment.
    ConditionExpression string
    Condition expression for the Realm Assignment in Okta Expression Language. Example: user.profile.role =="Manager" or user.profile.state.contains("example").
    Name string
    The name of the Okta Realm Assignment.
    Priority int
    The Priority of the Realm Assignment. The lower the number, the higher the priority.
    Status string
    Defines whether the Realm Assignment is active or not. Valid values: ACTIVE and INACTIVE.
    ProfileSourceId string
    The ID of the Profile Source.
    RealmId string
    The ID of the Realm asscociated with the Realm Assignment.
    ConditionExpression string
    Condition expression for the Realm Assignment in Okta Expression Language. Example: user.profile.role =="Manager" or user.profile.state.contains("example").
    Name string
    The name of the Okta Realm Assignment.
    Priority int
    The Priority of the Realm Assignment. The lower the number, the higher the priority.
    Status string
    Defines whether the Realm Assignment is active or not. Valid values: ACTIVE and INACTIVE.
    profileSourceId String
    The ID of the Profile Source.
    realmId String
    The ID of the Realm asscociated with the Realm Assignment.
    conditionExpression String
    Condition expression for the Realm Assignment in Okta Expression Language. Example: user.profile.role =="Manager" or user.profile.state.contains("example").
    name String
    The name of the Okta Realm Assignment.
    priority Integer
    The Priority of the Realm Assignment. The lower the number, the higher the priority.
    status String
    Defines whether the Realm Assignment is active or not. Valid values: ACTIVE and INACTIVE.
    profileSourceId string
    The ID of the Profile Source.
    realmId string
    The ID of the Realm asscociated with the Realm Assignment.
    conditionExpression string
    Condition expression for the Realm Assignment in Okta Expression Language. Example: user.profile.role =="Manager" or user.profile.state.contains("example").
    name string
    The name of the Okta Realm Assignment.
    priority number
    The Priority of the Realm Assignment. The lower the number, the higher the priority.
    status string
    Defines whether the Realm Assignment is active or not. Valid values: ACTIVE and INACTIVE.
    profile_source_id str
    The ID of the Profile Source.
    realm_id str
    The ID of the Realm asscociated with the Realm Assignment.
    condition_expression str
    Condition expression for the Realm Assignment in Okta Expression Language. Example: user.profile.role =="Manager" or user.profile.state.contains("example").
    name str
    The name of the Okta Realm Assignment.
    priority int
    The Priority of the Realm Assignment. The lower the number, the higher the priority.
    status str
    Defines whether the Realm Assignment is active or not. Valid values: ACTIVE and INACTIVE.
    profileSourceId String
    The ID of the Profile Source.
    realmId String
    The ID of the Realm asscociated with the Realm Assignment.
    conditionExpression String
    Condition expression for the Realm Assignment in Okta Expression Language. Example: user.profile.role =="Manager" or user.profile.state.contains("example").
    name String
    The name of the Okta Realm Assignment.
    priority Number
    The Priority of the Realm Assignment. The lower the number, the higher the priority.
    status String
    Defines whether the Realm Assignment is active or not. Valid values: ACTIVE and INACTIVE.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RealmAssignment resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Indicates whether the realm assignment is the default.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Indicates whether the realm assignment is the default.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Indicates whether the realm assignment is the default.
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault boolean
    Indicates whether the realm assignment is the default.
    id str
    The provider-assigned unique ID for this managed resource.
    is_default bool
    Indicates whether the realm assignment is the default.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Indicates whether the realm assignment is the default.

    Look up Existing RealmAssignment Resource

    Get an existing RealmAssignment 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?: RealmAssignmentState, opts?: CustomResourceOptions): RealmAssignment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            condition_expression: Optional[str] = None,
            is_default: Optional[bool] = None,
            name: Optional[str] = None,
            priority: Optional[int] = None,
            profile_source_id: Optional[str] = None,
            realm_id: Optional[str] = None,
            status: Optional[str] = None) -> RealmAssignment
    func GetRealmAssignment(ctx *Context, name string, id IDInput, state *RealmAssignmentState, opts ...ResourceOption) (*RealmAssignment, error)
    public static RealmAssignment Get(string name, Input<string> id, RealmAssignmentState? state, CustomResourceOptions? opts = null)
    public static RealmAssignment get(String name, Output<String> id, RealmAssignmentState state, CustomResourceOptions options)
    resources:  _:    type: okta:RealmAssignment    get:      id: ${id}
    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.
    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:
    ConditionExpression string
    Condition expression for the Realm Assignment in Okta Expression Language. Example: user.profile.role =="Manager" or user.profile.state.contains("example").
    IsDefault bool
    Indicates whether the realm assignment is the default.
    Name string
    The name of the Okta Realm Assignment.
    Priority int
    The Priority of the Realm Assignment. The lower the number, the higher the priority.
    ProfileSourceId string
    The ID of the Profile Source.
    RealmId string
    The ID of the Realm asscociated with the Realm Assignment.
    Status string
    Defines whether the Realm Assignment is active or not. Valid values: ACTIVE and INACTIVE.
    ConditionExpression string
    Condition expression for the Realm Assignment in Okta Expression Language. Example: user.profile.role =="Manager" or user.profile.state.contains("example").
    IsDefault bool
    Indicates whether the realm assignment is the default.
    Name string
    The name of the Okta Realm Assignment.
    Priority int
    The Priority of the Realm Assignment. The lower the number, the higher the priority.
    ProfileSourceId string
    The ID of the Profile Source.
    RealmId string
    The ID of the Realm asscociated with the Realm Assignment.
    Status string
    Defines whether the Realm Assignment is active or not. Valid values: ACTIVE and INACTIVE.
    conditionExpression String
    Condition expression for the Realm Assignment in Okta Expression Language. Example: user.profile.role =="Manager" or user.profile.state.contains("example").
    isDefault Boolean
    Indicates whether the realm assignment is the default.
    name String
    The name of the Okta Realm Assignment.
    priority Integer
    The Priority of the Realm Assignment. The lower the number, the higher the priority.
    profileSourceId String
    The ID of the Profile Source.
    realmId String
    The ID of the Realm asscociated with the Realm Assignment.
    status String
    Defines whether the Realm Assignment is active or not. Valid values: ACTIVE and INACTIVE.
    conditionExpression string
    Condition expression for the Realm Assignment in Okta Expression Language. Example: user.profile.role =="Manager" or user.profile.state.contains("example").
    isDefault boolean
    Indicates whether the realm assignment is the default.
    name string
    The name of the Okta Realm Assignment.
    priority number
    The Priority of the Realm Assignment. The lower the number, the higher the priority.
    profileSourceId string
    The ID of the Profile Source.
    realmId string
    The ID of the Realm asscociated with the Realm Assignment.
    status string
    Defines whether the Realm Assignment is active or not. Valid values: ACTIVE and INACTIVE.
    condition_expression str
    Condition expression for the Realm Assignment in Okta Expression Language. Example: user.profile.role =="Manager" or user.profile.state.contains("example").
    is_default bool
    Indicates whether the realm assignment is the default.
    name str
    The name of the Okta Realm Assignment.
    priority int
    The Priority of the Realm Assignment. The lower the number, the higher the priority.
    profile_source_id str
    The ID of the Profile Source.
    realm_id str
    The ID of the Realm asscociated with the Realm Assignment.
    status str
    Defines whether the Realm Assignment is active or not. Valid values: ACTIVE and INACTIVE.
    conditionExpression String
    Condition expression for the Realm Assignment in Okta Expression Language. Example: user.profile.role =="Manager" or user.profile.state.contains("example").
    isDefault Boolean
    Indicates whether the realm assignment is the default.
    name String
    The name of the Okta Realm Assignment.
    priority Number
    The Priority of the Realm Assignment. The lower the number, the higher the priority.
    profileSourceId String
    The ID of the Profile Source.
    realmId String
    The ID of the Realm asscociated with the Realm Assignment.
    status String
    Defines whether the Realm Assignment is active or not. Valid values: ACTIVE and INACTIVE.

    Package Details

    Repository
    Okta pulumi/pulumi-okta
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the okta Terraform Provider.
    okta logo
    Okta v5.1.0 published on Wednesday, Aug 13, 2025 by Pulumi