published on Wednesday, Jul 1, 2026 by Pulumi
published on Wednesday, Jul 1, 2026 by Pulumi
Manages an okta.ResourceOwner resource.
Create ResourceOwner Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResourceOwner(name: string, args: ResourceOwnerArgs, opts?: CustomResourceOptions);@overload
def ResourceOwner(resource_name: str,
args: ResourceOwnerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ResourceOwner(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_orns: Optional[Sequence[str]] = None,
principal_orns: Optional[Sequence[str]] = None)func NewResourceOwner(ctx *Context, name string, args ResourceOwnerArgs, opts ...ResourceOption) (*ResourceOwner, error)public ResourceOwner(string name, ResourceOwnerArgs args, CustomResourceOptions? opts = null)
public ResourceOwner(String name, ResourceOwnerArgs args)
public ResourceOwner(String name, ResourceOwnerArgs args, CustomResourceOptions options)
type: okta:ResourceOwner
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "okta_resource_owner" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ResourceOwnerArgs
- 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 ResourceOwnerArgs
- 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 ResourceOwnerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceOwnerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResourceOwnerArgs
- 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 resourceOwnerResource = new Okta.ResourceOwner("resourceOwnerResource", new()
{
ResourceOrns = new[]
{
"string",
},
PrincipalOrns = new[]
{
"string",
},
});
example, err := okta.NewResourceOwner(ctx, "resourceOwnerResource", &okta.ResourceOwnerArgs{
ResourceOrns: pulumi.StringArray{
pulumi.String("string"),
},
PrincipalOrns: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "okta_resource_owner" "resourceOwnerResource" {
lifecycle {
create_before_destroy = true
}
resource_orns = ["string"]
principal_orns = ["string"]
}
var resourceOwnerResource = new ResourceOwner("resourceOwnerResource", ResourceOwnerArgs.builder()
.resourceOrns("string")
.principalOrns("string")
.build());
resource_owner_resource = okta.ResourceOwner("resourceOwnerResource",
resource_orns=["string"],
principal_orns=["string"])
const resourceOwnerResource = new okta.ResourceOwner("resourceOwnerResource", {
resourceOrns: ["string"],
principalOrns: ["string"],
});
type: okta:ResourceOwner
properties:
principalOrns:
- string
resourceOrns:
- string
ResourceOwner 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 ResourceOwner resource accepts the following input properties:
- Resource
Orns List<string> - The resources to assign owners
- Principal
Orns List<string> - Owners of the resource.
- Resource
Orns []string - The resources to assign owners
- Principal
Orns []string - Owners of the resource.
- resource_
orns list(string) - The resources to assign owners
- principal_
orns list(string) - Owners of the resource.
- resource
Orns List<String> - The resources to assign owners
- principal
Orns List<String> - Owners of the resource.
- resource
Orns string[] - The resources to assign owners
- principal
Orns string[] - Owners of the resource.
- resource_
orns Sequence[str] - The resources to assign owners
- principal_
orns Sequence[str] - Owners of the resource.
- resource
Orns List<String> - The resources to assign owners
- principal
Orns List<String> - Owners of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceOwner 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 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 ResourceOwner Resource
Get an existing ResourceOwner 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?: ResourceOwnerState, opts?: CustomResourceOptions): ResourceOwner@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
principal_orns: Optional[Sequence[str]] = None,
resource_orns: Optional[Sequence[str]] = None) -> ResourceOwnerfunc GetResourceOwner(ctx *Context, name string, id IDInput, state *ResourceOwnerState, opts ...ResourceOption) (*ResourceOwner, error)public static ResourceOwner Get(string name, Input<string> id, ResourceOwnerState? state, CustomResourceOptions? opts = null)public static ResourceOwner get(String name, Output<String> id, ResourceOwnerState state, CustomResourceOptions options)resources: _: type: okta:ResourceOwner get: id: ${id}import {
to = okta_resource_owner.example
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.
- Principal
Orns List<string> - Owners of the resource.
- Resource
Orns List<string> - The resources to assign owners
- Principal
Orns []string - Owners of the resource.
- Resource
Orns []string - The resources to assign owners
- principal_
orns list(string) - Owners of the resource.
- resource_
orns list(string) - The resources to assign owners
- principal
Orns List<String> - Owners of the resource.
- resource
Orns List<String> - The resources to assign owners
- principal
Orns string[] - Owners of the resource.
- resource
Orns string[] - The resources to assign owners
- principal_
orns Sequence[str] - Owners of the resource.
- resource_
orns Sequence[str] - The resources to assign owners
- principal
Orns List<String> - Owners of the resource.
- resource
Orns List<String> - The resources to assign owners
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oktaTerraform Provider.
published on Wednesday, Jul 1, 2026 by Pulumi