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