1. Packages
  2. Onelogin Provider
  3. API Docs
  4. Smarthooks
onelogin 0.5.3 published on Wednesday, Apr 9, 2025 by onelogin

onelogin.Smarthooks

Explore with Pulumi AI

onelogin logo
onelogin 0.5.3 published on Wednesday, Apr 9, 2025 by onelogin

    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 boolean
    envVars string[]
    function string
    packages {[key: string]: string}
    retries number
    runtime string
    timeout number
    type string
    conditions SmarthooksCondition[]
    contextVersion string
    options SmarthooksOption[]
    smarthooksId string

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Smarthooks resource produces the following output properties:

    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    UpdatedAt string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    UpdatedAt string
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    updatedAt String
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    updatedAt string
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    updated_at str
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    updatedAt String

    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.
    The following state arguments are supported:
    Conditions List<SmarthooksCondition>
    ContextVersion string
    CreatedAt string
    Disabled bool
    EnvVars List<string>
    Function string
    Options List<SmarthooksOption>
    Packages Dictionary<string, string>
    Retries double
    Runtime string
    SmarthooksId string
    Status string
    Timeout double
    Type string
    UpdatedAt string
    conditions SmarthooksCondition[]
    contextVersion string
    createdAt string
    disabled boolean
    envVars string[]
    function string
    options SmarthooksOption[]
    packages {[key: string]: string}
    retries number
    runtime string
    smarthooksId string
    status string
    timeout number
    type string
    updatedAt string

    Supporting Types

    SmarthooksCondition, SmarthooksConditionArgs

    Operator string
    Source string
    Value string
    Operator string
    Source string
    Value string
    operator String
    source String
    value String
    operator string
    source string
    value string
    operator String
    source String
    value String

    SmarthooksOption, SmarthooksOptionArgs

    Package Details

    Repository
    onelogin onelogin/terraform-provider-onelogin
    License
    Notes
    This Pulumi package is based on the onelogin Terraform Provider.
    onelogin logo
    onelogin 0.5.3 published on Wednesday, Apr 9, 2025 by onelogin