onelogin.Smarthooks
Explore with Pulumi AI
Create Smarthooks Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Smarthooks(name: string, args: SmarthooksArgs, opts?: CustomResourceOptions);
@overload
def Smarthooks(resource_name: str,
args: SmarthooksArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Smarthooks(resource_name: str,
opts: Optional[ResourceOptions] = None,
disabled: Optional[bool] = None,
env_vars: Optional[Sequence[str]] = None,
function: Optional[str] = None,
packages: Optional[Mapping[str, str]] = None,
retries: Optional[float] = None,
runtime: Optional[str] = None,
timeout: Optional[float] = None,
type: Optional[str] = None,
conditions: Optional[Sequence[SmarthooksConditionArgs]] = None,
context_version: Optional[str] = None,
options: Optional[Sequence[SmarthooksOptionArgs]] = None,
smarthooks_id: Optional[str] = None)
func NewSmarthooks(ctx *Context, name string, args SmarthooksArgs, opts ...ResourceOption) (*Smarthooks, error)
public Smarthooks(string name, SmarthooksArgs args, CustomResourceOptions? opts = null)
public Smarthooks(String name, SmarthooksArgs args)
public Smarthooks(String name, SmarthooksArgs args, CustomResourceOptions options)
type: onelogin:Smarthooks
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 SmarthooksArgs
- 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 SmarthooksArgs
- 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 SmarthooksArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SmarthooksArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SmarthooksArgs
- 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 smarthooksResource = new Onelogin.Smarthooks("smarthooksResource", new()
{
Disabled = false,
EnvVars = new[]
{
"string",
},
Function = "string",
Packages =
{
{ "string", "string" },
},
Retries = 0,
Runtime = "string",
Timeout = 0,
Type = "string",
Conditions = new[]
{
new Onelogin.Inputs.SmarthooksConditionArgs
{
Operator = "string",
Source = "string",
Value = "string",
},
},
ContextVersion = "string",
Options = new[]
{
new Onelogin.Inputs.SmarthooksOptionArgs
{
LocationEnabled = false,
MfaDeviceInfoEnabled = false,
RiskEnabled = false,
},
},
SmarthooksId = "string",
});
example, err := onelogin.NewSmarthooks(ctx, "smarthooksResource", &onelogin.SmarthooksArgs{
Disabled: pulumi.Bool(false),
EnvVars: pulumi.StringArray{
pulumi.String("string"),
},
Function: pulumi.String("string"),
Packages: pulumi.StringMap{
"string": pulumi.String("string"),
},
Retries: pulumi.Float64(0),
Runtime: pulumi.String("string"),
Timeout: pulumi.Float64(0),
Type: pulumi.String("string"),
Conditions: onelogin.SmarthooksConditionArray{
&onelogin.SmarthooksConditionArgs{
Operator: pulumi.String("string"),
Source: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
ContextVersion: pulumi.String("string"),
Options: onelogin.SmarthooksOptionArray{
&onelogin.SmarthooksOptionArgs{
LocationEnabled: pulumi.Bool(false),
MfaDeviceInfoEnabled: pulumi.Bool(false),
RiskEnabled: pulumi.Bool(false),
},
},
SmarthooksId: pulumi.String("string"),
})
var smarthooksResource = new Smarthooks("smarthooksResource", SmarthooksArgs.builder()
.disabled(false)
.envVars("string")
.function("string")
.packages(Map.of("string", "string"))
.retries(0)
.runtime("string")
.timeout(0)
.type("string")
.conditions(SmarthooksConditionArgs.builder()
.operator("string")
.source("string")
.value("string")
.build())
.contextVersion("string")
.options(SmarthooksOptionArgs.builder()
.locationEnabled(false)
.mfaDeviceInfoEnabled(false)
.riskEnabled(false)
.build())
.smarthooksId("string")
.build());
smarthooks_resource = onelogin.Smarthooks("smarthooksResource",
disabled=False,
env_vars=["string"],
function="string",
packages={
"string": "string",
},
retries=0,
runtime="string",
timeout=0,
type="string",
conditions=[{
"operator": "string",
"source": "string",
"value": "string",
}],
context_version="string",
options=[{
"location_enabled": False,
"mfa_device_info_enabled": False,
"risk_enabled": False,
}],
smarthooks_id="string")
const smarthooksResource = new onelogin.Smarthooks("smarthooksResource", {
disabled: false,
envVars: ["string"],
"function": "string",
packages: {
string: "string",
},
retries: 0,
runtime: "string",
timeout: 0,
type: "string",
conditions: [{
operator: "string",
source: "string",
value: "string",
}],
contextVersion: "string",
options: [{
locationEnabled: false,
mfaDeviceInfoEnabled: false,
riskEnabled: false,
}],
smarthooksId: "string",
});
type: onelogin:Smarthooks
properties:
conditions:
- operator: string
source: string
value: string
contextVersion: string
disabled: false
envVars:
- string
function: string
options:
- locationEnabled: false
mfaDeviceInfoEnabled: false
riskEnabled: false
packages:
string: string
retries: 0
runtime: string
smarthooksId: string
timeout: 0
type: string
Smarthooks 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 Smarthooks resource accepts the following input properties:
- Disabled bool
- Env
Vars List<string> - Function string
- Packages Dictionary<string, string>
- Retries double
- Runtime string
- Timeout double
- Type string
- Conditions
List<Smarthooks
Condition> - Context
Version string - Options
List<Smarthooks
Option> - Smarthooks
Id string
- Disabled bool
- Env
Vars []string - Function string
- Packages map[string]string
- Retries float64
- Runtime string
- Timeout float64
- Type string
- Conditions
[]Smarthooks
Condition Args - Context
Version string - Options
[]Smarthooks
Option Args - Smarthooks
Id string
- disabled Boolean
- env
Vars List<String> - function String
- packages Map<String,String>
- retries Double
- runtime String
- timeout Double
- type String
- conditions
List<Smarthooks
Condition> - context
Version String - options
List<Smarthooks
Option> - smarthooks
Id String
- disabled boolean
- env
Vars string[] - function string
- packages {[key: string]: string}
- retries number
- runtime string
- timeout number
- type string
- conditions
Smarthooks
Condition[] - context
Version string - options
Smarthooks
Option[] - smarthooks
Id string
- disabled bool
- env_
vars Sequence[str] - function str
- packages Mapping[str, str]
- retries float
- runtime str
- timeout float
- type str
- conditions
Sequence[Smarthooks
Condition Args] - context_
version str - options
Sequence[Smarthooks
Option Args] - smarthooks_
id str
- disabled Boolean
- env
Vars List<String> - function String
- packages Map<String>
- retries Number
- runtime String
- timeout Number
- type String
- conditions List<Property Map>
- context
Version String - options List<Property Map>
- smarthooks
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the Smarthooks resource produces the following output properties:
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- status str
- updated_
at str
Look up Existing Smarthooks Resource
Get an existing Smarthooks 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?: SmarthooksState, opts?: CustomResourceOptions): Smarthooks
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
conditions: Optional[Sequence[SmarthooksConditionArgs]] = None,
context_version: Optional[str] = None,
created_at: Optional[str] = None,
disabled: Optional[bool] = None,
env_vars: Optional[Sequence[str]] = None,
function: Optional[str] = None,
options: Optional[Sequence[SmarthooksOptionArgs]] = None,
packages: Optional[Mapping[str, str]] = None,
retries: Optional[float] = None,
runtime: Optional[str] = None,
smarthooks_id: Optional[str] = None,
status: Optional[str] = None,
timeout: Optional[float] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None) -> Smarthooks
func GetSmarthooks(ctx *Context, name string, id IDInput, state *SmarthooksState, opts ...ResourceOption) (*Smarthooks, error)
public static Smarthooks Get(string name, Input<string> id, SmarthooksState? state, CustomResourceOptions? opts = null)
public static Smarthooks get(String name, Output<String> id, SmarthooksState state, CustomResourceOptions options)
resources: _: type: onelogin:Smarthooks 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.
- Conditions
List<Smarthooks
Condition> - Context
Version string - Created
At string - Disabled bool
- Env
Vars List<string> - Function string
- Options
List<Smarthooks
Option> - Packages Dictionary<string, string>
- Retries double
- Runtime string
- Smarthooks
Id string - Status string
- Timeout double
- Type string
- Updated
At string
- Conditions
[]Smarthooks
Condition Args - Context
Version string - Created
At string - Disabled bool
- Env
Vars []string - Function string
- Options
[]Smarthooks
Option Args - Packages map[string]string
- Retries float64
- Runtime string
- Smarthooks
Id string - Status string
- Timeout float64
- Type string
- Updated
At string
- conditions
List<Smarthooks
Condition> - context
Version String - created
At String - disabled Boolean
- env
Vars List<String> - function String
- options
List<Smarthooks
Option> - packages Map<String,String>
- retries Double
- runtime String
- smarthooks
Id String - status String
- timeout Double
- type String
- updated
At String
- conditions
Smarthooks
Condition[] - context
Version string - created
At string - disabled boolean
- env
Vars string[] - function string
- options
Smarthooks
Option[] - packages {[key: string]: string}
- retries number
- runtime string
- smarthooks
Id string - status string
- timeout number
- type string
- updated
At string
- conditions
Sequence[Smarthooks
Condition Args] - context_
version str - created_
at str - disabled bool
- env_
vars Sequence[str] - function str
- options
Sequence[Smarthooks
Option Args] - packages Mapping[str, str]
- retries float
- runtime str
- smarthooks_
id str - status str
- timeout float
- type str
- updated_
at str
- conditions List<Property Map>
- context
Version String - created
At String - disabled Boolean
- env
Vars List<String> - function String
- options List<Property Map>
- packages Map<String>
- retries Number
- runtime String
- smarthooks
Id String - status String
- timeout Number
- type String
- updated
At String
Supporting Types
SmarthooksCondition, SmarthooksConditionArgs
SmarthooksOption, SmarthooksOptionArgs
- Location
Enabled bool - Mfa
Device boolInfo Enabled - Risk
Enabled bool
- Location
Enabled bool - Mfa
Device boolInfo Enabled - Risk
Enabled bool
- location
Enabled Boolean - mfa
Device BooleanInfo Enabled - risk
Enabled Boolean
- location
Enabled boolean - mfa
Device booleanInfo Enabled - risk
Enabled boolean
- location_
enabled bool - mfa_
device_ boolinfo_ enabled - risk_
enabled bool
- location
Enabled Boolean - mfa
Device BooleanInfo Enabled - risk
Enabled Boolean
Package Details
- Repository
- onelogin onelogin/terraform-provider-onelogin
- License
- Notes
- This Pulumi package is based on the
onelogin
Terraform Provider.