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:
import * as pulumi from "@pulumi/pulumi";import pulumiusing 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>""
}
",
});
}
}
Coming soon!
import pulumi
import pulumi_okta as okta
example = okta.app.GroupAssignment("example",
app_id="<app id>",
group_id="<group id>",
profile="""{
"<app_profile_field>": "<value>"
}
""")import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = new okta.app.GroupAssignment("example", {
appId: "<app id>",
groupId: "<group id>",
profile: `{
"<app_profile_field>": "<value>"
}
`,
});Create a GroupAssignment Resource
new GroupAssignment(name: string, args: GroupAssignmentArgs, opts?: CustomResourceOptions);def GroupAssignment(resource_name, opts=None, app_id=None, group_id=None, priority=None, profile=None, __props__=None);func NewGroupAssignment(ctx *Context, name string, args GroupAssignmentArgs, opts ...ResourceOption) (*GroupAssignment, error)public GroupAssignment(string name, GroupAssignmentArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args GroupAssignmentArgs
- 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 GroupAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
GroupAssignment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The GroupAssignment resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the GroupAssignment resource produces the following output properties:
Look up an Existing GroupAssignment Resource
Get an existing GroupAssignment 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?: GroupAssignmentState, opts?: CustomResourceOptions): GroupAssignmentstatic get(resource_name, id, opts=None, app_id=None, group_id=None, priority=None, profile=None, __props__=None);func GetGroupAssignment(ctx *Context, name string, id IDInput, state *GroupAssignmentState, opts ...ResourceOption) (*GroupAssignment, error)public static GroupAssignment Get(string name, Input<string> id, GroupAssignmentState? 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:
Package Details
- Repository
- https://github.com/pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.