okta.RequestCondition
Manages request conditions. This resource allows you to create and configure an Okta request-condition.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
example:
type: okta:RequestCondition
properties:
resourceId: <resource_id>
approvalSequenceId: <approval_sequence_id>
name: <name>
accessScopeSettings:
- type: RESOURCE_DEFAULT
requesterSettings:
- type: EVERYONE
Create RequestCondition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RequestCondition(name: string, args: RequestConditionArgs, opts?: CustomResourceOptions);
@overload
def RequestCondition(resource_name: str,
args: RequestConditionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RequestCondition(resource_name: str,
opts: Optional[ResourceOptions] = None,
approval_sequence_id: Optional[str] = None,
resource_id: Optional[str] = None,
access_duration_settings: Optional[RequestConditionAccessDurationSettingsArgs] = None,
access_scope_settings: Optional[RequestConditionAccessScopeSettingsArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
priority: Optional[int] = None,
requester_settings: Optional[RequestConditionRequesterSettingsArgs] = None)
func NewRequestCondition(ctx *Context, name string, args RequestConditionArgs, opts ...ResourceOption) (*RequestCondition, error)
public RequestCondition(string name, RequestConditionArgs args, CustomResourceOptions? opts = null)
public RequestCondition(String name, RequestConditionArgs args)
public RequestCondition(String name, RequestConditionArgs args, CustomResourceOptions options)
type: okta:RequestCondition
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 RequestConditionArgs
- 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 RequestConditionArgs
- 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 RequestConditionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RequestConditionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RequestConditionArgs
- 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 requestConditionResource = new Okta.RequestCondition("requestConditionResource", new()
{
ApprovalSequenceId = "string",
ResourceId = "string",
AccessDurationSettings = new Okta.Inputs.RequestConditionAccessDurationSettingsArgs
{
Duration = "string",
Type = "string",
},
AccessScopeSettings = new Okta.Inputs.RequestConditionAccessScopeSettingsArgs
{
Type = "string",
Ids = new[]
{
new Okta.Inputs.RequestConditionAccessScopeSettingsIdArgs
{
Id = "string",
},
},
},
Description = "string",
Name = "string",
Priority = 0,
RequesterSettings = new Okta.Inputs.RequestConditionRequesterSettingsArgs
{
Type = "string",
Ids = new[]
{
new Okta.Inputs.RequestConditionRequesterSettingsIdArgs
{
Id = "string",
},
},
},
});
example, err := okta.NewRequestCondition(ctx, "requestConditionResource", &okta.RequestConditionArgs{
ApprovalSequenceId: pulumi.String("string"),
ResourceId: pulumi.String("string"),
AccessDurationSettings: &okta.RequestConditionAccessDurationSettingsArgs{
Duration: pulumi.String("string"),
Type: pulumi.String("string"),
},
AccessScopeSettings: &okta.RequestConditionAccessScopeSettingsArgs{
Type: pulumi.String("string"),
Ids: okta.RequestConditionAccessScopeSettingsIdArray{
&okta.RequestConditionAccessScopeSettingsIdArgs{
Id: pulumi.String("string"),
},
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Priority: pulumi.Int(0),
RequesterSettings: &okta.RequestConditionRequesterSettingsArgs{
Type: pulumi.String("string"),
Ids: okta.RequestConditionRequesterSettingsIdArray{
&okta.RequestConditionRequesterSettingsIdArgs{
Id: pulumi.String("string"),
},
},
},
})
var requestConditionResource = new RequestCondition("requestConditionResource", RequestConditionArgs.builder()
.approvalSequenceId("string")
.resourceId("string")
.accessDurationSettings(RequestConditionAccessDurationSettingsArgs.builder()
.duration("string")
.type("string")
.build())
.accessScopeSettings(RequestConditionAccessScopeSettingsArgs.builder()
.type("string")
.ids(RequestConditionAccessScopeSettingsIdArgs.builder()
.id("string")
.build())
.build())
.description("string")
.name("string")
.priority(0)
.requesterSettings(RequestConditionRequesterSettingsArgs.builder()
.type("string")
.ids(RequestConditionRequesterSettingsIdArgs.builder()
.id("string")
.build())
.build())
.build());
request_condition_resource = okta.RequestCondition("requestConditionResource",
approval_sequence_id="string",
resource_id="string",
access_duration_settings={
"duration": "string",
"type": "string",
},
access_scope_settings={
"type": "string",
"ids": [{
"id": "string",
}],
},
description="string",
name="string",
priority=0,
requester_settings={
"type": "string",
"ids": [{
"id": "string",
}],
})
const requestConditionResource = new okta.RequestCondition("requestConditionResource", {
approvalSequenceId: "string",
resourceId: "string",
accessDurationSettings: {
duration: "string",
type: "string",
},
accessScopeSettings: {
type: "string",
ids: [{
id: "string",
}],
},
description: "string",
name: "string",
priority: 0,
requesterSettings: {
type: "string",
ids: [{
id: "string",
}],
},
});
type: okta:RequestCondition
properties:
accessDurationSettings:
duration: string
type: string
accessScopeSettings:
ids:
- id: string
type: string
approvalSequenceId: string
description: string
name: string
priority: 0
requesterSettings:
ids:
- id: string
type: string
resourceId: string
RequestCondition 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 RequestCondition resource accepts the following input properties:
- Approval
Sequence stringId - The ID of the approval sequence.
- Resource
Id string - The id of the resource in Okta ID format.
- Access
Duration RequestSettings Condition Access Duration Settings - The access duration settings for the request condition
- Access
Scope RequestSettings Condition Access Scope Settings - Description string
- The description of the request condition.
- Name string
- The name of the request condition.
- Priority int
- The priority of the request condition. Lower numbers indicate higher priority.
- Requester
Settings RequestCondition Requester Settings
- Approval
Sequence stringId - The ID of the approval sequence.
- Resource
Id string - The id of the resource in Okta ID format.
- Access
Duration RequestSettings Condition Access Duration Settings Args - The access duration settings for the request condition
- Access
Scope RequestSettings Condition Access Scope Settings Args - Description string
- The description of the request condition.
- Name string
- The name of the request condition.
- Priority int
- The priority of the request condition. Lower numbers indicate higher priority.
- Requester
Settings RequestCondition Requester Settings Args
- approval
Sequence StringId - The ID of the approval sequence.
- resource
Id String - The id of the resource in Okta ID format.
- access
Duration RequestSettings Condition Access Duration Settings - The access duration settings for the request condition
- access
Scope RequestSettings Condition Access Scope Settings - description String
- The description of the request condition.
- name String
- The name of the request condition.
- priority Integer
- The priority of the request condition. Lower numbers indicate higher priority.
- requester
Settings RequestCondition Requester Settings
- approval
Sequence stringId - The ID of the approval sequence.
- resource
Id string - The id of the resource in Okta ID format.
- access
Duration RequestSettings Condition Access Duration Settings - The access duration settings for the request condition
- access
Scope RequestSettings Condition Access Scope Settings - description string
- The description of the request condition.
- name string
- The name of the request condition.
- priority number
- The priority of the request condition. Lower numbers indicate higher priority.
- requester
Settings RequestCondition Requester Settings
- approval_
sequence_ strid - The ID of the approval sequence.
- resource_
id str - The id of the resource in Okta ID format.
- access_
duration_ Requestsettings Condition Access Duration Settings Args - The access duration settings for the request condition
- access_
scope_ Requestsettings Condition Access Scope Settings Args - description str
- The description of the request condition.
- name str
- The name of the request condition.
- priority int
- The priority of the request condition. Lower numbers indicate higher priority.
- requester_
settings RequestCondition Requester Settings Args
- approval
Sequence StringId - The ID of the approval sequence.
- resource
Id String - The id of the resource in Okta ID format.
- access
Duration Property MapSettings - The access duration settings for the request condition
- access
Scope Property MapSettings - description String
- The description of the request condition.
- name String
- The name of the request condition.
- priority Number
- The priority of the request condition. Lower numbers indicate higher priority.
- requester
Settings Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the RequestCondition resource produces the following output properties:
- Created string
- The date and time when the request condition was created.
- Created
By string - The id of the user who created the request condition.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - The date and time when the request condition was last updated.
- Last
Updated stringBy - The id of the user who last updated the request condition.
- Status string
- Status indicates if this condition is active or not. Default status is INACTIVE. Enum:
ACTIVE
,INACTIVE
,DELETED
,INVALID
.
- Created string
- The date and time when the request condition was created.
- Created
By string - The id of the user who created the request condition.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - The date and time when the request condition was last updated.
- Last
Updated stringBy - The id of the user who last updated the request condition.
- Status string
- Status indicates if this condition is active or not. Default status is INACTIVE. Enum:
ACTIVE
,INACTIVE
,DELETED
,INVALID
.
- created String
- The date and time when the request condition was created.
- created
By String - The id of the user who created the request condition.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - The date and time when the request condition was last updated.
- last
Updated StringBy - The id of the user who last updated the request condition.
- status String
- Status indicates if this condition is active or not. Default status is INACTIVE. Enum:
ACTIVE
,INACTIVE
,DELETED
,INVALID
.
- created string
- The date and time when the request condition was created.
- created
By string - The id of the user who created the request condition.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - The date and time when the request condition was last updated.
- last
Updated stringBy - The id of the user who last updated the request condition.
- status string
- Status indicates if this condition is active or not. Default status is INACTIVE. Enum:
ACTIVE
,INACTIVE
,DELETED
,INVALID
.
- created str
- The date and time when the request condition was created.
- created_
by str - The id of the user who created the request condition.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - The date and time when the request condition was last updated.
- last_
updated_ strby - The id of the user who last updated the request condition.
- status str
- Status indicates if this condition is active or not. Default status is INACTIVE. Enum:
ACTIVE
,INACTIVE
,DELETED
,INVALID
.
- created String
- The date and time when the request condition was created.
- created
By String - The id of the user who created the request condition.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - The date and time when the request condition was last updated.
- last
Updated StringBy - The id of the user who last updated the request condition.
- status String
- Status indicates if this condition is active or not. Default status is INACTIVE. Enum:
ACTIVE
,INACTIVE
,DELETED
,INVALID
.
Look up Existing RequestCondition Resource
Get an existing RequestCondition 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?: RequestConditionState, opts?: CustomResourceOptions): RequestCondition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_duration_settings: Optional[RequestConditionAccessDurationSettingsArgs] = None,
access_scope_settings: Optional[RequestConditionAccessScopeSettingsArgs] = None,
approval_sequence_id: Optional[str] = None,
created: Optional[str] = None,
created_by: Optional[str] = None,
description: Optional[str] = None,
last_updated: Optional[str] = None,
last_updated_by: Optional[str] = None,
name: Optional[str] = None,
priority: Optional[int] = None,
requester_settings: Optional[RequestConditionRequesterSettingsArgs] = None,
resource_id: Optional[str] = None,
status: Optional[str] = None) -> RequestCondition
func GetRequestCondition(ctx *Context, name string, id IDInput, state *RequestConditionState, opts ...ResourceOption) (*RequestCondition, error)
public static RequestCondition Get(string name, Input<string> id, RequestConditionState? state, CustomResourceOptions? opts = null)
public static RequestCondition get(String name, Output<String> id, RequestConditionState state, CustomResourceOptions options)
resources: _: type: okta:RequestCondition 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.
- Access
Duration RequestSettings Condition Access Duration Settings - The access duration settings for the request condition
- Access
Scope RequestSettings Condition Access Scope Settings - Approval
Sequence stringId - The ID of the approval sequence.
- Created string
- The date and time when the request condition was created.
- Created
By string - The id of the user who created the request condition.
- Description string
- The description of the request condition.
- Last
Updated string - The date and time when the request condition was last updated.
- Last
Updated stringBy - The id of the user who last updated the request condition.
- Name string
- The name of the request condition.
- Priority int
- The priority of the request condition. Lower numbers indicate higher priority.
- Requester
Settings RequestCondition Requester Settings - Resource
Id string - The id of the resource in Okta ID format.
- Status string
- Status indicates if this condition is active or not. Default status is INACTIVE. Enum:
ACTIVE
,INACTIVE
,DELETED
,INVALID
.
- Access
Duration RequestSettings Condition Access Duration Settings Args - The access duration settings for the request condition
- Access
Scope RequestSettings Condition Access Scope Settings Args - Approval
Sequence stringId - The ID of the approval sequence.
- Created string
- The date and time when the request condition was created.
- Created
By string - The id of the user who created the request condition.
- Description string
- The description of the request condition.
- Last
Updated string - The date and time when the request condition was last updated.
- Last
Updated stringBy - The id of the user who last updated the request condition.
- Name string
- The name of the request condition.
- Priority int
- The priority of the request condition. Lower numbers indicate higher priority.
- Requester
Settings RequestCondition Requester Settings Args - Resource
Id string - The id of the resource in Okta ID format.
- Status string
- Status indicates if this condition is active or not. Default status is INACTIVE. Enum:
ACTIVE
,INACTIVE
,DELETED
,INVALID
.
- access
Duration RequestSettings Condition Access Duration Settings - The access duration settings for the request condition
- access
Scope RequestSettings Condition Access Scope Settings - approval
Sequence StringId - The ID of the approval sequence.
- created String
- The date and time when the request condition was created.
- created
By String - The id of the user who created the request condition.
- description String
- The description of the request condition.
- last
Updated String - The date and time when the request condition was last updated.
- last
Updated StringBy - The id of the user who last updated the request condition.
- name String
- The name of the request condition.
- priority Integer
- The priority of the request condition. Lower numbers indicate higher priority.
- requester
Settings RequestCondition Requester Settings - resource
Id String - The id of the resource in Okta ID format.
- status String
- Status indicates if this condition is active or not. Default status is INACTIVE. Enum:
ACTIVE
,INACTIVE
,DELETED
,INVALID
.
- access
Duration RequestSettings Condition Access Duration Settings - The access duration settings for the request condition
- access
Scope RequestSettings Condition Access Scope Settings - approval
Sequence stringId - The ID of the approval sequence.
- created string
- The date and time when the request condition was created.
- created
By string - The id of the user who created the request condition.
- description string
- The description of the request condition.
- last
Updated string - The date and time when the request condition was last updated.
- last
Updated stringBy - The id of the user who last updated the request condition.
- name string
- The name of the request condition.
- priority number
- The priority of the request condition. Lower numbers indicate higher priority.
- requester
Settings RequestCondition Requester Settings - resource
Id string - The id of the resource in Okta ID format.
- status string
- Status indicates if this condition is active or not. Default status is INACTIVE. Enum:
ACTIVE
,INACTIVE
,DELETED
,INVALID
.
- access_
duration_ Requestsettings Condition Access Duration Settings Args - The access duration settings for the request condition
- access_
scope_ Requestsettings Condition Access Scope Settings Args - approval_
sequence_ strid - The ID of the approval sequence.
- created str
- The date and time when the request condition was created.
- created_
by str - The id of the user who created the request condition.
- description str
- The description of the request condition.
- last_
updated str - The date and time when the request condition was last updated.
- last_
updated_ strby - The id of the user who last updated the request condition.
- name str
- The name of the request condition.
- priority int
- The priority of the request condition. Lower numbers indicate higher priority.
- requester_
settings RequestCondition Requester Settings Args - resource_
id str - The id of the resource in Okta ID format.
- status str
- Status indicates if this condition is active or not. Default status is INACTIVE. Enum:
ACTIVE
,INACTIVE
,DELETED
,INVALID
.
- access
Duration Property MapSettings - The access duration settings for the request condition
- access
Scope Property MapSettings - approval
Sequence StringId - The ID of the approval sequence.
- created String
- The date and time when the request condition was created.
- created
By String - The id of the user who created the request condition.
- description String
- The description of the request condition.
- last
Updated String - The date and time when the request condition was last updated.
- last
Updated StringBy - The id of the user who last updated the request condition.
- name String
- The name of the request condition.
- priority Number
- The priority of the request condition. Lower numbers indicate higher priority.
- requester
Settings Property Map - resource
Id String - The id of the resource in Okta ID format.
- status String
- Status indicates if this condition is active or not. Default status is INACTIVE. Enum:
ACTIVE
,INACTIVE
,DELETED
,INVALID
.
Supporting Types
RequestConditionAccessDurationSettings, RequestConditionAccessDurationSettingsArgs
RequestConditionAccessScopeSettings, RequestConditionAccessScopeSettingsArgs
- Type string
- Ids
List<Request
Condition Access Scope Settings Id> - List of groups/entitlement bundles.
- Type string
- Ids
[]Request
Condition Access Scope Settings Id - List of groups/entitlement bundles.
- type String
- ids
List<Request
Condition Access Scope Settings Id> - List of groups/entitlement bundles.
- type string
- ids
Request
Condition Access Scope Settings Id[] - List of groups/entitlement bundles.
- type str
- ids
Sequence[Request
Condition Access Scope Settings Id] - List of groups/entitlement bundles.
- type String
- ids List<Property Map>
- List of groups/entitlement bundles.
RequestConditionAccessScopeSettingsId, RequestConditionAccessScopeSettingsIdArgs
- Id string
- Request condition id.
- Id string
- Request condition id.
- id String
- Request condition id.
- id string
- Request condition id.
- id str
- Request condition id.
- id String
- Request condition id.
RequestConditionRequesterSettings, RequestConditionRequesterSettingsArgs
- Type string
- Ids
List<Request
Condition Requester Settings Id> - List of teams/groups ids.
- Type string
- Ids
[]Request
Condition Requester Settings Id - List of teams/groups ids.
- type String
- ids
List<Request
Condition Requester Settings Id> - List of teams/groups ids.
- type string
- ids
Request
Condition Requester Settings Id[] - List of teams/groups ids.
- type str
- ids
Sequence[Request
Condition Requester Settings Id] - List of teams/groups ids.
- type String
- ids List<Property Map>
- List of teams/groups ids.
RequestConditionRequesterSettingsId, RequestConditionRequesterSettingsIdArgs
- Id string
- Request condition id.
- Id string
- Request condition id.
- id String
- Request condition id.
- id string
- Request condition id.
- id str
- Request condition id.
- id String
- Request condition id.
Import
$ pulumi import okta:index/requestCondition:RequestCondition example <resource_id>/<request_condition_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.