Okta v3.23.0, Apr 20 23
Okta v3.23.0, Apr 20 23
okta.Behaviour
Explore with Pulumi AI
This resource allows you to create and configure a behavior.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var myLocation = new Okta.Behaviour("myLocation", new()
{
LocationGranularityType = "LAT_LONG",
NumberOfAuthentications = 50,
RadiusFromLocation = 20,
Type = "ANOMALOUS_LOCATION",
});
var myCity = new Okta.Behaviour("myCity", new()
{
LocationGranularityType = "CITY",
NumberOfAuthentications = 50,
Type = "ANOMALOUS_LOCATION",
});
var myDevice = new Okta.Behaviour("myDevice", new()
{
NumberOfAuthentications = 50,
Type = "ANOMALOUS_DEVICE",
});
var myIp = new Okta.Behaviour("myIp", new()
{
NumberOfAuthentications = 50,
Type = "ANOMALOUS_IP",
});
var myVelocity = new Okta.Behaviour("myVelocity", new()
{
Type = "VELOCITY",
Velocity = 25,
});
});
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v3/go/okta"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := okta.NewBehaviour(ctx, "myLocation", &okta.BehaviourArgs{
LocationGranularityType: pulumi.String("LAT_LONG"),
NumberOfAuthentications: pulumi.Int(50),
RadiusFromLocation: pulumi.Int(20),
Type: pulumi.String("ANOMALOUS_LOCATION"),
})
if err != nil {
return err
}
_, err = okta.NewBehaviour(ctx, "myCity", &okta.BehaviourArgs{
LocationGranularityType: pulumi.String("CITY"),
NumberOfAuthentications: pulumi.Int(50),
Type: pulumi.String("ANOMALOUS_LOCATION"),
})
if err != nil {
return err
}
_, err = okta.NewBehaviour(ctx, "myDevice", &okta.BehaviourArgs{
NumberOfAuthentications: pulumi.Int(50),
Type: pulumi.String("ANOMALOUS_DEVICE"),
})
if err != nil {
return err
}
_, err = okta.NewBehaviour(ctx, "myIp", &okta.BehaviourArgs{
NumberOfAuthentications: pulumi.Int(50),
Type: pulumi.String("ANOMALOUS_IP"),
})
if err != nil {
return err
}
_, err = okta.NewBehaviour(ctx, "myVelocity", &okta.BehaviourArgs{
Type: pulumi.String("VELOCITY"),
Velocity: pulumi.Int(25),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.Behaviour;
import com.pulumi.okta.BehaviourArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myLocation = new Behaviour("myLocation", BehaviourArgs.builder()
.locationGranularityType("LAT_LONG")
.numberOfAuthentications(50)
.radiusFromLocation(20)
.type("ANOMALOUS_LOCATION")
.build());
var myCity = new Behaviour("myCity", BehaviourArgs.builder()
.locationGranularityType("CITY")
.numberOfAuthentications(50)
.type("ANOMALOUS_LOCATION")
.build());
var myDevice = new Behaviour("myDevice", BehaviourArgs.builder()
.numberOfAuthentications(50)
.type("ANOMALOUS_DEVICE")
.build());
var myIp = new Behaviour("myIp", BehaviourArgs.builder()
.numberOfAuthentications(50)
.type("ANOMALOUS_IP")
.build());
var myVelocity = new Behaviour("myVelocity", BehaviourArgs.builder()
.type("VELOCITY")
.velocity(25)
.build());
}
}
import pulumi
import pulumi_okta as okta
my_location = okta.Behaviour("myLocation",
location_granularity_type="LAT_LONG",
number_of_authentications=50,
radius_from_location=20,
type="ANOMALOUS_LOCATION")
my_city = okta.Behaviour("myCity",
location_granularity_type="CITY",
number_of_authentications=50,
type="ANOMALOUS_LOCATION")
my_device = okta.Behaviour("myDevice",
number_of_authentications=50,
type="ANOMALOUS_DEVICE")
my_ip = okta.Behaviour("myIp",
number_of_authentications=50,
type="ANOMALOUS_IP")
my_velocity = okta.Behaviour("myVelocity",
type="VELOCITY",
velocity=25)
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const myLocation = new okta.Behaviour("myLocation", {
locationGranularityType: "LAT_LONG",
numberOfAuthentications: 50,
radiusFromLocation: 20,
type: "ANOMALOUS_LOCATION",
});
const myCity = new okta.Behaviour("myCity", {
locationGranularityType: "CITY",
numberOfAuthentications: 50,
type: "ANOMALOUS_LOCATION",
});
const myDevice = new okta.Behaviour("myDevice", {
numberOfAuthentications: 50,
type: "ANOMALOUS_DEVICE",
});
const myIp = new okta.Behaviour("myIp", {
numberOfAuthentications: 50,
type: "ANOMALOUS_IP",
});
const myVelocity = new okta.Behaviour("myVelocity", {
type: "VELOCITY",
velocity: 25,
});
resources:
myLocation:
type: okta:Behaviour
properties:
locationGranularityType: LAT_LONG
numberOfAuthentications: 50
radiusFromLocation: 20
type: ANOMALOUS_LOCATION
myCity:
type: okta:Behaviour
properties:
locationGranularityType: CITY
numberOfAuthentications: 50
type: ANOMALOUS_LOCATION
myDevice:
type: okta:Behaviour
properties:
numberOfAuthentications: 50
type: ANOMALOUS_DEVICE
myIp:
type: okta:Behaviour
properties:
numberOfAuthentications: 50
type: ANOMALOUS_IP
myVelocity:
type: okta:Behaviour
properties:
type: VELOCITY
velocity: 25
Create Behaviour Resource
new Behaviour(name: string, args: BehaviourArgs, opts?: CustomResourceOptions);
@overload
def Behaviour(resource_name: str,
opts: Optional[ResourceOptions] = None,
location_granularity_type: Optional[str] = None,
name: Optional[str] = None,
number_of_authentications: Optional[int] = None,
radius_from_location: Optional[int] = None,
status: Optional[str] = None,
type: Optional[str] = None,
velocity: Optional[int] = None)
@overload
def Behaviour(resource_name: str,
args: BehaviourArgs,
opts: Optional[ResourceOptions] = None)
func NewBehaviour(ctx *Context, name string, args BehaviourArgs, opts ...ResourceOption) (*Behaviour, error)
public Behaviour(string name, BehaviourArgs args, CustomResourceOptions? opts = null)
public Behaviour(String name, BehaviourArgs args)
public Behaviour(String name, BehaviourArgs args, CustomResourceOptions options)
type: okta:Behaviour
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BehaviourArgs
- 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 BehaviourArgs
- 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 BehaviourArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BehaviourArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BehaviourArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Behaviour 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 Behaviour resource accepts the following input properties:
- Type string
Type of the behavior. Can be set to
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
,"ANOMALOUS_IP"
or"VELOCITY"
. Resource will be recreated when the type changes.- Location
Granularity stringType Determines the method and level of detail used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
behavior type. Can be set to"LAT_LONG"
,"CITY"
,"COUNTRY"
or"SUBDIVISION"
.- Name string
Name of the behavior.
- Number
Of intAuthentications The number of recent authentications used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
and"ANOMALOUS_IP"
behavior types.- Radius
From intLocation Radius from location (in kilometers). Should be at least 5. Required when
location_granularity_type
is set to"LAT_LONG"
.- Status string
The status of the behavior. By default, it is
"ACTIVE"
.- Velocity int
Velocity (in kilometers per hour). Should be at least 1. Required for
"VELOCITY"
behavior type.
- Type string
Type of the behavior. Can be set to
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
,"ANOMALOUS_IP"
or"VELOCITY"
. Resource will be recreated when the type changes.- Location
Granularity stringType Determines the method and level of detail used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
behavior type. Can be set to"LAT_LONG"
,"CITY"
,"COUNTRY"
or"SUBDIVISION"
.- Name string
Name of the behavior.
- Number
Of intAuthentications The number of recent authentications used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
and"ANOMALOUS_IP"
behavior types.- Radius
From intLocation Radius from location (in kilometers). Should be at least 5. Required when
location_granularity_type
is set to"LAT_LONG"
.- Status string
The status of the behavior. By default, it is
"ACTIVE"
.- Velocity int
Velocity (in kilometers per hour). Should be at least 1. Required for
"VELOCITY"
behavior type.
- type String
Type of the behavior. Can be set to
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
,"ANOMALOUS_IP"
or"VELOCITY"
. Resource will be recreated when the type changes.- location
Granularity StringType Determines the method and level of detail used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
behavior type. Can be set to"LAT_LONG"
,"CITY"
,"COUNTRY"
or"SUBDIVISION"
.- name String
Name of the behavior.
- number
Of IntegerAuthentications The number of recent authentications used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
and"ANOMALOUS_IP"
behavior types.- radius
From IntegerLocation Radius from location (in kilometers). Should be at least 5. Required when
location_granularity_type
is set to"LAT_LONG"
.- status String
The status of the behavior. By default, it is
"ACTIVE"
.- velocity Integer
Velocity (in kilometers per hour). Should be at least 1. Required for
"VELOCITY"
behavior type.
- type string
Type of the behavior. Can be set to
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
,"ANOMALOUS_IP"
or"VELOCITY"
. Resource will be recreated when the type changes.- location
Granularity stringType Determines the method and level of detail used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
behavior type. Can be set to"LAT_LONG"
,"CITY"
,"COUNTRY"
or"SUBDIVISION"
.- name string
Name of the behavior.
- number
Of numberAuthentications The number of recent authentications used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
and"ANOMALOUS_IP"
behavior types.- radius
From numberLocation Radius from location (in kilometers). Should be at least 5. Required when
location_granularity_type
is set to"LAT_LONG"
.- status string
The status of the behavior. By default, it is
"ACTIVE"
.- velocity number
Velocity (in kilometers per hour). Should be at least 1. Required for
"VELOCITY"
behavior type.
- type str
Type of the behavior. Can be set to
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
,"ANOMALOUS_IP"
or"VELOCITY"
. Resource will be recreated when the type changes.- location_
granularity_ strtype Determines the method and level of detail used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
behavior type. Can be set to"LAT_LONG"
,"CITY"
,"COUNTRY"
or"SUBDIVISION"
.- name str
Name of the behavior.
- number_
of_ intauthentications The number of recent authentications used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
and"ANOMALOUS_IP"
behavior types.- radius_
from_ intlocation Radius from location (in kilometers). Should be at least 5. Required when
location_granularity_type
is set to"LAT_LONG"
.- status str
The status of the behavior. By default, it is
"ACTIVE"
.- velocity int
Velocity (in kilometers per hour). Should be at least 1. Required for
"VELOCITY"
behavior type.
- type String
Type of the behavior. Can be set to
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
,"ANOMALOUS_IP"
or"VELOCITY"
. Resource will be recreated when the type changes.- location
Granularity StringType Determines the method and level of detail used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
behavior type. Can be set to"LAT_LONG"
,"CITY"
,"COUNTRY"
or"SUBDIVISION"
.- name String
Name of the behavior.
- number
Of NumberAuthentications The number of recent authentications used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
and"ANOMALOUS_IP"
behavior types.- radius
From NumberLocation Radius from location (in kilometers). Should be at least 5. Required when
location_granularity_type
is set to"LAT_LONG"
.- status String
The status of the behavior. By default, it is
"ACTIVE"
.- velocity Number
Velocity (in kilometers per hour). Should be at least 1. Required for
"VELOCITY"
behavior type.
Outputs
All input properties are implicitly available as output properties. Additionally, the Behaviour 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 Behaviour Resource
Get an existing Behaviour 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?: BehaviourState, opts?: CustomResourceOptions): Behaviour
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
location_granularity_type: Optional[str] = None,
name: Optional[str] = None,
number_of_authentications: Optional[int] = None,
radius_from_location: Optional[int] = None,
status: Optional[str] = None,
type: Optional[str] = None,
velocity: Optional[int] = None) -> Behaviour
func GetBehaviour(ctx *Context, name string, id IDInput, state *BehaviourState, opts ...ResourceOption) (*Behaviour, error)
public static Behaviour Get(string name, Input<string> id, BehaviourState? state, CustomResourceOptions? opts = null)
public static Behaviour get(String name, Output<String> id, BehaviourState 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.
- Location
Granularity stringType Determines the method and level of detail used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
behavior type. Can be set to"LAT_LONG"
,"CITY"
,"COUNTRY"
or"SUBDIVISION"
.- Name string
Name of the behavior.
- Number
Of intAuthentications The number of recent authentications used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
and"ANOMALOUS_IP"
behavior types.- Radius
From intLocation Radius from location (in kilometers). Should be at least 5. Required when
location_granularity_type
is set to"LAT_LONG"
.- Status string
The status of the behavior. By default, it is
"ACTIVE"
.- Type string
Type of the behavior. Can be set to
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
,"ANOMALOUS_IP"
or"VELOCITY"
. Resource will be recreated when the type changes.- Velocity int
Velocity (in kilometers per hour). Should be at least 1. Required for
"VELOCITY"
behavior type.
- Location
Granularity stringType Determines the method and level of detail used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
behavior type. Can be set to"LAT_LONG"
,"CITY"
,"COUNTRY"
or"SUBDIVISION"
.- Name string
Name of the behavior.
- Number
Of intAuthentications The number of recent authentications used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
and"ANOMALOUS_IP"
behavior types.- Radius
From intLocation Radius from location (in kilometers). Should be at least 5. Required when
location_granularity_type
is set to"LAT_LONG"
.- Status string
The status of the behavior. By default, it is
"ACTIVE"
.- Type string
Type of the behavior. Can be set to
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
,"ANOMALOUS_IP"
or"VELOCITY"
. Resource will be recreated when the type changes.- Velocity int
Velocity (in kilometers per hour). Should be at least 1. Required for
"VELOCITY"
behavior type.
- location
Granularity StringType Determines the method and level of detail used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
behavior type. Can be set to"LAT_LONG"
,"CITY"
,"COUNTRY"
or"SUBDIVISION"
.- name String
Name of the behavior.
- number
Of IntegerAuthentications The number of recent authentications used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
and"ANOMALOUS_IP"
behavior types.- radius
From IntegerLocation Radius from location (in kilometers). Should be at least 5. Required when
location_granularity_type
is set to"LAT_LONG"
.- status String
The status of the behavior. By default, it is
"ACTIVE"
.- type String
Type of the behavior. Can be set to
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
,"ANOMALOUS_IP"
or"VELOCITY"
. Resource will be recreated when the type changes.- velocity Integer
Velocity (in kilometers per hour). Should be at least 1. Required for
"VELOCITY"
behavior type.
- location
Granularity stringType Determines the method and level of detail used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
behavior type. Can be set to"LAT_LONG"
,"CITY"
,"COUNTRY"
or"SUBDIVISION"
.- name string
Name of the behavior.
- number
Of numberAuthentications The number of recent authentications used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
and"ANOMALOUS_IP"
behavior types.- radius
From numberLocation Radius from location (in kilometers). Should be at least 5. Required when
location_granularity_type
is set to"LAT_LONG"
.- status string
The status of the behavior. By default, it is
"ACTIVE"
.- type string
Type of the behavior. Can be set to
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
,"ANOMALOUS_IP"
or"VELOCITY"
. Resource will be recreated when the type changes.- velocity number
Velocity (in kilometers per hour). Should be at least 1. Required for
"VELOCITY"
behavior type.
- location_
granularity_ strtype Determines the method and level of detail used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
behavior type. Can be set to"LAT_LONG"
,"CITY"
,"COUNTRY"
or"SUBDIVISION"
.- name str
Name of the behavior.
- number_
of_ intauthentications The number of recent authentications used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
and"ANOMALOUS_IP"
behavior types.- radius_
from_ intlocation Radius from location (in kilometers). Should be at least 5. Required when
location_granularity_type
is set to"LAT_LONG"
.- status str
The status of the behavior. By default, it is
"ACTIVE"
.- type str
Type of the behavior. Can be set to
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
,"ANOMALOUS_IP"
or"VELOCITY"
. Resource will be recreated when the type changes.- velocity int
Velocity (in kilometers per hour). Should be at least 1. Required for
"VELOCITY"
behavior type.
- location
Granularity StringType Determines the method and level of detail used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
behavior type. Can be set to"LAT_LONG"
,"CITY"
,"COUNTRY"
or"SUBDIVISION"
.- name String
Name of the behavior.
- number
Of NumberAuthentications The number of recent authentications used to evaluate the behavior. Required for
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
and"ANOMALOUS_IP"
behavior types.- radius
From NumberLocation Radius from location (in kilometers). Should be at least 5. Required when
location_granularity_type
is set to"LAT_LONG"
.- status String
The status of the behavior. By default, it is
"ACTIVE"
.- type String
Type of the behavior. Can be set to
"ANOMALOUS_LOCATION"
,"ANOMALOUS_DEVICE"
,"ANOMALOUS_IP"
or"VELOCITY"
. Resource will be recreated when the type changes.- velocity Number
Velocity (in kilometers per hour). Should be at least 1. Required for
"VELOCITY"
behavior type.
Import
Behavior can be imported via the Okta ID.
$ pulumi import okta:index/behaviour:Behaviour example <behavior id>
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
okta
Terraform Provider.