onelogin.AppRules
Explore with Pulumi AI
Create AppRules Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AppRules(name: string, args: AppRulesArgs, opts?: CustomResourceOptions);
@overload
def AppRules(resource_name: str,
args: AppRulesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AppRules(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
match: Optional[str] = None,
actions: Optional[Sequence[AppRulesActionArgs]] = None,
app_rules_id: Optional[str] = None,
conditions: Optional[Sequence[AppRulesConditionArgs]] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
position: Optional[float] = None)
func NewAppRules(ctx *Context, name string, args AppRulesArgs, opts ...ResourceOption) (*AppRules, error)
public AppRules(string name, AppRulesArgs args, CustomResourceOptions? opts = null)
public AppRules(String name, AppRulesArgs args)
public AppRules(String name, AppRulesArgs args, CustomResourceOptions options)
type: onelogin:AppRules
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 AppRulesArgs
- 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 AppRulesArgs
- 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 AppRulesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppRulesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppRulesArgs
- 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 appRulesResource = new Onelogin.AppRules("appRulesResource", new()
{
AppId = "string",
Match = "string",
Actions = new[]
{
new Onelogin.Inputs.AppRulesActionArgs
{
Action = "string",
Values = new[]
{
"string",
},
Expression = "string",
},
},
AppRulesId = "string",
Conditions = new[]
{
new Onelogin.Inputs.AppRulesConditionArgs
{
Operator = "string",
Source = "string",
Value = "string",
},
},
Enabled = false,
Name = "string",
Position = 0,
});
example, err := onelogin.NewAppRules(ctx, "appRulesResource", &onelogin.AppRulesArgs{
AppId: pulumi.String("string"),
Match: pulumi.String("string"),
Actions: .AppRulesActionArray{
&.AppRulesActionArgs{
Action: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
Expression: pulumi.String("string"),
},
},
AppRulesId: pulumi.String("string"),
Conditions: .AppRulesConditionArray{
&.AppRulesConditionArgs{
Operator: pulumi.String("string"),
Source: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Enabled: pulumi.Bool(false),
Name: pulumi.String("string"),
Position: pulumi.Float64(0),
})
var appRulesResource = new AppRules("appRulesResource", AppRulesArgs.builder()
.appId("string")
.match("string")
.actions(AppRulesActionArgs.builder()
.action("string")
.values("string")
.expression("string")
.build())
.appRulesId("string")
.conditions(AppRulesConditionArgs.builder()
.operator("string")
.source("string")
.value("string")
.build())
.enabled(false)
.name("string")
.position(0)
.build());
app_rules_resource = onelogin.AppRules("appRulesResource",
app_id="string",
match="string",
actions=[{
"action": "string",
"values": ["string"],
"expression": "string",
}],
app_rules_id="string",
conditions=[{
"operator": "string",
"source": "string",
"value": "string",
}],
enabled=False,
name="string",
position=0)
const appRulesResource = new onelogin.AppRules("appRulesResource", {
appId: "string",
match: "string",
actions: [{
action: "string",
values: ["string"],
expression: "string",
}],
appRulesId: "string",
conditions: [{
operator: "string",
source: "string",
value: "string",
}],
enabled: false,
name: "string",
position: 0,
});
type: onelogin:AppRules
properties:
actions:
- action: string
expression: string
values:
- string
appId: string
appRulesId: string
conditions:
- operator: string
source: string
value: string
enabled: false
match: string
name: string
position: 0
AppRules 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 AppRules resource accepts the following input properties:
- App
Id string - Match string
- Actions
List<App
Rules Action> - App
Rules stringId - Conditions
List<App
Rules Condition> - Enabled bool
- Name string
- Position double
- App
Id string - Match string
- Actions
[]App
Rules Action Args - App
Rules stringId - Conditions
[]App
Rules Condition Args - Enabled bool
- Name string
- Position float64
- app
Id String - match String
- actions
List<App
Rules Action> - app
Rules StringId - conditions
List<App
Rules Condition> - enabled Boolean
- name String
- position Double
- app
Id string - match string
- actions
App
Rules Action[] - app
Rules stringId - conditions
App
Rules Condition[] - enabled boolean
- name string
- position number
- app
Id String - match String
- actions List<Property Map>
- app
Rules StringId - conditions List<Property Map>
- enabled Boolean
- name String
- position Number
Outputs
All input properties are implicitly available as output properties. Additionally, the AppRules 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 AppRules Resource
Get an existing AppRules 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?: AppRulesState, opts?: CustomResourceOptions): AppRules
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[AppRulesActionArgs]] = None,
app_id: Optional[str] = None,
app_rules_id: Optional[str] = None,
conditions: Optional[Sequence[AppRulesConditionArgs]] = None,
enabled: Optional[bool] = None,
match: Optional[str] = None,
name: Optional[str] = None,
position: Optional[float] = None) -> AppRules
func GetAppRules(ctx *Context, name string, id IDInput, state *AppRulesState, opts ...ResourceOption) (*AppRules, error)
public static AppRules Get(string name, Input<string> id, AppRulesState? state, CustomResourceOptions? opts = null)
public static AppRules get(String name, Output<String> id, AppRulesState state, CustomResourceOptions options)
resources: _: type: onelogin:AppRules 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.
- Actions
List<App
Rules Action> - App
Id string - App
Rules stringId - Conditions
List<App
Rules Condition> - Enabled bool
- Match string
- Name string
- Position double
- Actions
[]App
Rules Action Args - App
Id string - App
Rules stringId - Conditions
[]App
Rules Condition Args - Enabled bool
- Match string
- Name string
- Position float64
- actions
List<App
Rules Action> - app
Id String - app
Rules StringId - conditions
List<App
Rules Condition> - enabled Boolean
- match String
- name String
- position Double
- actions
App
Rules Action[] - app
Id string - app
Rules stringId - conditions
App
Rules Condition[] - enabled boolean
- match string
- name string
- position number
- actions List<Property Map>
- app
Id String - app
Rules StringId - conditions List<Property Map>
- enabled Boolean
- match String
- name String
- position Number
Supporting Types
AppRulesAction, AppRulesActionArgs
- Action string
- Values List<string>
- Expression string
- Action string
- Values []string
- Expression string
- action String
- values List<String>
- expression String
- action string
- values string[]
- expression string
- action str
- values Sequence[str]
- expression str
- action String
- values List<String>
- expression String
AppRulesCondition, AppRulesConditionArgs
Package Details
- Repository
- onelogin onelogin/terraform-provider-onelogin
- License
- Notes
- This Pulumi package is based on the
onelogin
Terraform Provider.