1. Packages
  2. onelogin
  3. API Docs
  4. RiskRules
onelogin v0.6.6 published on Friday, Sep 20, 2024 by Pulumi

onelogin.RiskRules

Explore with Pulumi AI

onelogin logo
onelogin v0.6.6 published on Friday, Sep 20, 2024 by Pulumi

    Create RiskRules Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RiskRules(name: string, args?: RiskRulesArgs, opts?: CustomResourceOptions);
    @overload
    def RiskRules(resource_name: str,
                  args: Optional[RiskRulesArgs] = None,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def RiskRules(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  description: Optional[str] = None,
                  filters: Optional[Sequence[str]] = None,
                  name: Optional[str] = None,
                  source: Optional[RiskRulesSourceArgs] = None,
                  target: Optional[str] = None,
                  type: Optional[str] = None)
    func NewRiskRules(ctx *Context, name string, args *RiskRulesArgs, opts ...ResourceOption) (*RiskRules, error)
    public RiskRules(string name, RiskRulesArgs? args = null, CustomResourceOptions? opts = null)
    public RiskRules(String name, RiskRulesArgs args)
    public RiskRules(String name, RiskRulesArgs args, CustomResourceOptions options)
    
    type: onelogin:RiskRules
    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 RiskRulesArgs
    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 RiskRulesArgs
    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 RiskRulesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RiskRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RiskRulesArgs
    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 riskRulesResource = new Onelogin.RiskRules("riskRulesResource", new()
    {
        Description = "string",
        Filters = new[]
        {
            "string",
        },
        Name = "string",
        Source = new Onelogin.Inputs.RiskRulesSourceArgs
        {
            Id = "string",
            Name = "string",
        },
        Target = "string",
        Type = "string",
    });
    
    example, err := onelogin.NewRiskRules(ctx, "riskRulesResource", &onelogin.RiskRulesArgs{
    	Description: pulumi.String("string"),
    	Filters: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    	Source: &onelogin.RiskRulesSourceArgs{
    		Id:   pulumi.String("string"),
    		Name: pulumi.String("string"),
    	},
    	Target: pulumi.String("string"),
    	Type:   pulumi.String("string"),
    })
    
    var riskRulesResource = new RiskRules("riskRulesResource", RiskRulesArgs.builder()
        .description("string")
        .filters("string")
        .name("string")
        .source(RiskRulesSourceArgs.builder()
            .id("string")
            .name("string")
            .build())
        .target("string")
        .type("string")
        .build());
    
    risk_rules_resource = onelogin.RiskRules("riskRulesResource",
        description="string",
        filters=["string"],
        name="string",
        source=onelogin.RiskRulesSourceArgs(
            id="string",
            name="string",
        ),
        target="string",
        type="string")
    
    const riskRulesResource = new onelogin.RiskRules("riskRulesResource", {
        description: "string",
        filters: ["string"],
        name: "string",
        source: {
            id: "string",
            name: "string",
        },
        target: "string",
        type: "string",
    });
    
    type: onelogin:RiskRules
    properties:
        description: string
        filters:
            - string
        name: string
        source:
            id: string
            name: string
        target: string
        type: string
    

    RiskRules 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 RiskRules resource accepts the following input properties:

    Description string
    Filters List<string>
    A list of IP addresses or country codes or names to evaluate against each event.
    Name string
    The name of this rule
    Source RiskRulesSource
    Used for targeting custom rules based on a group of people, customers, accounts, or even a single user.
    Target string
    The target parameter that will be used when evaluating the rule against an incoming event.
    Type string
    The type parameter specifies the type of rule that will be created.
    Description string
    Filters []string
    A list of IP addresses or country codes or names to evaluate against each event.
    Name string
    The name of this rule
    Source RiskRulesSourceArgs
    Used for targeting custom rules based on a group of people, customers, accounts, or even a single user.
    Target string
    The target parameter that will be used when evaluating the rule against an incoming event.
    Type string
    The type parameter specifies the type of rule that will be created.
    description String
    filters List<String>
    A list of IP addresses or country codes or names to evaluate against each event.
    name String
    The name of this rule
    source RiskRulesSource
    Used for targeting custom rules based on a group of people, customers, accounts, or even a single user.
    target String
    The target parameter that will be used when evaluating the rule against an incoming event.
    type String
    The type parameter specifies the type of rule that will be created.
    description string
    filters string[]
    A list of IP addresses or country codes or names to evaluate against each event.
    name string
    The name of this rule
    source RiskRulesSource
    Used for targeting custom rules based on a group of people, customers, accounts, or even a single user.
    target string
    The target parameter that will be used when evaluating the rule against an incoming event.
    type string
    The type parameter specifies the type of rule that will be created.
    description str
    filters Sequence[str]
    A list of IP addresses or country codes or names to evaluate against each event.
    name str
    The name of this rule
    source RiskRulesSourceArgs
    Used for targeting custom rules based on a group of people, customers, accounts, or even a single user.
    target str
    The target parameter that will be used when evaluating the rule against an incoming event.
    type str
    The type parameter specifies the type of rule that will be created.
    description String
    filters List<String>
    A list of IP addresses or country codes or names to evaluate against each event.
    name String
    The name of this rule
    source Property Map
    Used for targeting custom rules based on a group of people, customers, accounts, or even a single user.
    target String
    The target parameter that will be used when evaluating the rule against an incoming event.
    type String
    The type parameter specifies the type of rule that will be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RiskRules 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 RiskRules Resource

    Get an existing RiskRules 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?: RiskRulesState, opts?: CustomResourceOptions): RiskRules
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            filters: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            source: Optional[RiskRulesSourceArgs] = None,
            target: Optional[str] = None,
            type: Optional[str] = None) -> RiskRules
    func GetRiskRules(ctx *Context, name string, id IDInput, state *RiskRulesState, opts ...ResourceOption) (*RiskRules, error)
    public static RiskRules Get(string name, Input<string> id, RiskRulesState? state, CustomResourceOptions? opts = null)
    public static RiskRules get(String name, Output<String> id, RiskRulesState 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.
    The following state arguments are supported:
    Description string
    Filters List<string>
    A list of IP addresses or country codes or names to evaluate against each event.
    Name string
    The name of this rule
    Source RiskRulesSource
    Used for targeting custom rules based on a group of people, customers, accounts, or even a single user.
    Target string
    The target parameter that will be used when evaluating the rule against an incoming event.
    Type string
    The type parameter specifies the type of rule that will be created.
    Description string
    Filters []string
    A list of IP addresses or country codes or names to evaluate against each event.
    Name string
    The name of this rule
    Source RiskRulesSourceArgs
    Used for targeting custom rules based on a group of people, customers, accounts, or even a single user.
    Target string
    The target parameter that will be used when evaluating the rule against an incoming event.
    Type string
    The type parameter specifies the type of rule that will be created.
    description String
    filters List<String>
    A list of IP addresses or country codes or names to evaluate against each event.
    name String
    The name of this rule
    source RiskRulesSource
    Used for targeting custom rules based on a group of people, customers, accounts, or even a single user.
    target String
    The target parameter that will be used when evaluating the rule against an incoming event.
    type String
    The type parameter specifies the type of rule that will be created.
    description string
    filters string[]
    A list of IP addresses or country codes or names to evaluate against each event.
    name string
    The name of this rule
    source RiskRulesSource
    Used for targeting custom rules based on a group of people, customers, accounts, or even a single user.
    target string
    The target parameter that will be used when evaluating the rule against an incoming event.
    type string
    The type parameter specifies the type of rule that will be created.
    description str
    filters Sequence[str]
    A list of IP addresses or country codes or names to evaluate against each event.
    name str
    The name of this rule
    source RiskRulesSourceArgs
    Used for targeting custom rules based on a group of people, customers, accounts, or even a single user.
    target str
    The target parameter that will be used when evaluating the rule against an incoming event.
    type str
    The type parameter specifies the type of rule that will be created.
    description String
    filters List<String>
    A list of IP addresses or country codes or names to evaluate against each event.
    name String
    The name of this rule
    source Property Map
    Used for targeting custom rules based on a group of people, customers, accounts, or even a single user.
    target String
    The target parameter that will be used when evaluating the rule against an incoming event.
    type String
    The type parameter specifies the type of rule that will be created.

    Supporting Types

    RiskRulesSource, RiskRulesSourceArgs

    Id string
    A unique id that represents the source of the event.
    Name string
    The name of the source
    Id string
    A unique id that represents the source of the event.
    Name string
    The name of the source
    id String
    A unique id that represents the source of the event.
    name String
    The name of the source
    id string
    A unique id that represents the source of the event.
    name string
    The name of the source
    id str
    A unique id that represents the source of the event.
    name str
    The name of the source
    id String
    A unique id that represents the source of the event.
    name String
    The name of the source

    Package Details

    Repository
    onelogin pulumi/pulumi-onelogin
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the onelogin Terraform Provider.
    onelogin logo
    onelogin v0.6.6 published on Friday, Sep 20, 2024 by Pulumi