Show / Hide Table of Contents

Class RuleConfig

With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage variables that are available to all rules via Auth0's global configuration object. Used in conjunction with configured rules.

Example Usage

using Pulumi;
using Auth0 = Pulumi.Auth0;

class MyStack : Stack
{
public MyStack()
{
    var myRule = new Auth0.Rule("myRule", new Auth0.RuleArgs
    {
        Enabled = true,
        Script = @"function (user, context, callback) {
callback(null, user, context);
}

",
    });
    var myRuleConfig = new Auth0.RuleConfig("myRuleConfig", new Auth0.RuleConfigArgs
    {
        Key = "foo",
        Value = "bar",
    });
}

}
Inheritance
System.Object
Pulumi.Resource
Pulumi.CustomResource
RuleConfig
Inherited Members
Pulumi.CustomResource.Id
Pulumi.Resource.GetResourceType()
Pulumi.Resource.GetResourceName()
Pulumi.Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Auth0
Assembly: Pulumi.Auth0.dll
Syntax
public class RuleConfig : CustomResource

Constructors

View Source

RuleConfig(String, RuleConfigArgs, CustomResourceOptions)

Create a RuleConfig resource with the given unique name, arguments, and options.

Declaration
public RuleConfig(string name, RuleConfigArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

RuleConfigArgs args

The arguments used to populate this resource's properties

Pulumi.CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Key

String. Key for a rules configuration variable.

Declaration
public Output<string> Key { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

Value

String, Case-sensitive. Value for a rules configuration variable.

Declaration
public Output<string> Value { get; }
Property Value
Type Description
Pulumi.Output<System.String>

Methods

View Source

Get(String, Input<String>, RuleConfigState, CustomResourceOptions)

Get an existing RuleConfig resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static RuleConfig Get(string name, Input<string> id, RuleConfigState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Pulumi.Input<System.String> id

The unique provider ID of the resource to lookup.

RuleConfigState state

Any extra arguments used during the lookup.

Pulumi.CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
RuleConfig
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.