okta.AdminRoleCustomAssignments
Explore with Pulumi AI
This resource allows the assignment and unassignment of Custom Roles. The members
field supports these type of resources:
- Groups
- Users
NOTE: This an
Early Access
feature.
Create AdminRoleCustomAssignments Resource
new AdminRoleCustomAssignments(name: string, args: AdminRoleCustomAssignmentsArgs, opts?: CustomResourceOptions);
@overload
def AdminRoleCustomAssignments(resource_name: str,
opts: Optional[ResourceOptions] = None,
custom_role_id: Optional[str] = None,
members: Optional[Sequence[str]] = None,
resource_set_id: Optional[str] = None)
@overload
def AdminRoleCustomAssignments(resource_name: str,
args: AdminRoleCustomAssignmentsArgs,
opts: Optional[ResourceOptions] = None)
func NewAdminRoleCustomAssignments(ctx *Context, name string, args AdminRoleCustomAssignmentsArgs, opts ...ResourceOption) (*AdminRoleCustomAssignments, error)
public AdminRoleCustomAssignments(string name, AdminRoleCustomAssignmentsArgs args, CustomResourceOptions? opts = null)
public AdminRoleCustomAssignments(String name, AdminRoleCustomAssignmentsArgs args)
public AdminRoleCustomAssignments(String name, AdminRoleCustomAssignmentsArgs args, CustomResourceOptions options)
type: okta:AdminRoleCustomAssignments
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AdminRoleCustomAssignmentsArgs
- 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 AdminRoleCustomAssignmentsArgs
- 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 AdminRoleCustomAssignmentsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AdminRoleCustomAssignmentsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AdminRoleCustomAssignmentsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AdminRoleCustomAssignments Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AdminRoleCustomAssignments resource accepts the following input properties:
- Custom
Role stringId ID of the Custom Role.
- Resource
Set stringId ID of the target Resource Set.
- Members List<string>
The hrefs that point to User(s) and/or Group(s) that receive the Role. At least one permission must be specified when creating custom role.
- Custom
Role stringId ID of the Custom Role.
- Resource
Set stringId ID of the target Resource Set.
- Members []string
The hrefs that point to User(s) and/or Group(s) that receive the Role. At least one permission must be specified when creating custom role.
- custom
Role StringId ID of the Custom Role.
- resource
Set StringId ID of the target Resource Set.
- members List<String>
The hrefs that point to User(s) and/or Group(s) that receive the Role. At least one permission must be specified when creating custom role.
- custom
Role stringId ID of the Custom Role.
- resource
Set stringId ID of the target Resource Set.
- members string[]
The hrefs that point to User(s) and/or Group(s) that receive the Role. At least one permission must be specified when creating custom role.
- custom_
role_ strid ID of the Custom Role.
- resource_
set_ strid ID of the target Resource Set.
- members Sequence[str]
The hrefs that point to User(s) and/or Group(s) that receive the Role. At least one permission must be specified when creating custom role.
- custom
Role StringId ID of the Custom Role.
- resource
Set StringId ID of the target Resource Set.
- members List<String>
The hrefs that point to User(s) and/or Group(s) that receive the Role. At least one permission must be specified when creating custom role.
Outputs
All input properties are implicitly available as output properties. Additionally, the AdminRoleCustomAssignments resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing AdminRoleCustomAssignments Resource
Get an existing AdminRoleCustomAssignments 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?: AdminRoleCustomAssignmentsState, opts?: CustomResourceOptions): AdminRoleCustomAssignments
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
custom_role_id: Optional[str] = None,
members: Optional[Sequence[str]] = None,
resource_set_id: Optional[str] = None) -> AdminRoleCustomAssignments
func GetAdminRoleCustomAssignments(ctx *Context, name string, id IDInput, state *AdminRoleCustomAssignmentsState, opts ...ResourceOption) (*AdminRoleCustomAssignments, error)
public static AdminRoleCustomAssignments Get(string name, Input<string> id, AdminRoleCustomAssignmentsState? state, CustomResourceOptions? opts = null)
public static AdminRoleCustomAssignments get(String name, Output<String> id, AdminRoleCustomAssignmentsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Custom
Role stringId ID of the Custom Role.
- Members List<string>
The hrefs that point to User(s) and/or Group(s) that receive the Role. At least one permission must be specified when creating custom role.
- Resource
Set stringId ID of the target Resource Set.
- Custom
Role stringId ID of the Custom Role.
- Members []string
The hrefs that point to User(s) and/or Group(s) that receive the Role. At least one permission must be specified when creating custom role.
- Resource
Set stringId ID of the target Resource Set.
- custom
Role StringId ID of the Custom Role.
- members List<String>
The hrefs that point to User(s) and/or Group(s) that receive the Role. At least one permission must be specified when creating custom role.
- resource
Set StringId ID of the target Resource Set.
- custom
Role stringId ID of the Custom Role.
- members string[]
The hrefs that point to User(s) and/or Group(s) that receive the Role. At least one permission must be specified when creating custom role.
- resource
Set stringId ID of the target Resource Set.
- custom_
role_ strid ID of the Custom Role.
- members Sequence[str]
The hrefs that point to User(s) and/or Group(s) that receive the Role. At least one permission must be specified when creating custom role.
- resource_
set_ strid ID of the target Resource Set.
- custom
Role StringId ID of the Custom Role.
- members List<String>
The hrefs that point to User(s) and/or Group(s) that receive the Role. At least one permission must be specified when creating custom role.
- resource
Set StringId ID of the target Resource Set.
Import
Okta Custom Admin Role Assignments can be imported via the Okta ID.
$ pulumi import okta:index/adminRoleCustomAssignments:AdminRoleCustomAssignments example <resource_set_id>/<custom_role_id>
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
okta
Terraform Provider.