Class GroupAssignment
Assigns a group to an application.
This resource allows you to create an App Group assignment.
When using this resource, make sure to add the following lifefycle argument to the application resource you are assigning to:
using Pulumi;
class MyStack : Stack
{
public MyStack()
{
}
}
Example Usage
using Pulumi;
using Okta = Pulumi.Okta;
class MyStack : Stack
{
public MyStack()
{
var example = new Okta.App.GroupAssignment("example", new Okta.App.GroupAssignmentArgs
{
AppId = "<app id>",
GroupId = "<group id>",
Profile = @"{
""<app_profile_field>"": ""<value>""
}
",
});
}
}
Inherited Members
Namespace: Pulumi.Okta.App
Assembly: Pulumi.Okta.dll
Syntax
public class GroupAssignment : CustomResource
Constructors
View SourceGroupAssignment(String, GroupAssignmentArgs, CustomResourceOptions)
Create a GroupAssignment resource with the given unique name, arguments, and options.
Declaration
public GroupAssignment(string name, GroupAssignmentArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| GroupAssignmentArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAppId
The ID of the application to assign a group to.
Declaration
public Output<string> AppId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GroupId
The ID of the group to assign the app to.
Declaration
public Output<string> GroupId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Priority
Declaration
public Output<int?> Priority { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Profile
JSON document containing application profile
Declaration
public Output<string> Profile { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, GroupAssignmentState, CustomResourceOptions)
Get an existing GroupAssignment resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static GroupAssignment Get(string name, Input<string> id, GroupAssignmentState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| GroupAssignmentState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| GroupAssignment |