fusionauth.FusionAuthApplicationRole
Explore with Pulumi AI
# Application Role Resource
This Resource is used to create a role for an Application.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fusionauth from "pulumi-fusionauth";
const myAppAdminRole = new fusionauth.FusionAuthApplicationRole("myAppAdminRole", {
applicationId: fusionauth_application.my_app.id,
description: "",
isDefault: false,
isSuperRole: true,
});
import pulumi
import theogravity_pulumi_fusionauth as fusionauth
my_app_admin_role = fusionauth.FusionAuthApplicationRole("myAppAdminRole",
application_id=fusionauth_application["my_app"]["id"],
description="",
is_default=False,
is_super_role=True)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/theogravity/pulumi-fusionauth/sdk/go/fusionauth"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fusionauth.NewFusionAuthApplicationRole(ctx, "myAppAdminRole", &fusionauth.FusionAuthApplicationRoleArgs{
ApplicationId: pulumi.Any(fusionauth_application.My_app.Id),
Description: pulumi.String(""),
IsDefault: pulumi.Bool(false),
IsSuperRole: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fusionauth = theogravity.Fusionauth;
return await Deployment.RunAsync(() =>
{
var myAppAdminRole = new Fusionauth.FusionAuthApplicationRole("myAppAdminRole", new()
{
ApplicationId = fusionauth_application.My_app.Id,
Description = "",
IsDefault = false,
IsSuperRole = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fusionauth.FusionAuthApplicationRole;
import com.pulumi.fusionauth.FusionAuthApplicationRoleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myAppAdminRole = new FusionAuthApplicationRole("myAppAdminRole", FusionAuthApplicationRoleArgs.builder()
.applicationId(fusionauth_application.my_app().id())
.description("")
.isDefault(false)
.isSuperRole(true)
.build());
}
}
resources:
myAppAdminRole:
type: fusionauth:FusionAuthApplicationRole
properties:
applicationId: ${fusionauth_application.my_app.id}
description:
isDefault: false
isSuperRole: true
Create FusionAuthApplicationRole Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FusionAuthApplicationRole(name: string, args: FusionAuthApplicationRoleArgs, opts?: CustomResourceOptions);
@overload
def FusionAuthApplicationRole(resource_name: str,
args: FusionAuthApplicationRoleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FusionAuthApplicationRole(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
description: Optional[str] = None,
is_default: Optional[bool] = None,
is_super_role: Optional[bool] = None,
name: Optional[str] = None)
func NewFusionAuthApplicationRole(ctx *Context, name string, args FusionAuthApplicationRoleArgs, opts ...ResourceOption) (*FusionAuthApplicationRole, error)
public FusionAuthApplicationRole(string name, FusionAuthApplicationRoleArgs args, CustomResourceOptions? opts = null)
public FusionAuthApplicationRole(String name, FusionAuthApplicationRoleArgs args)
public FusionAuthApplicationRole(String name, FusionAuthApplicationRoleArgs args, CustomResourceOptions options)
type: fusionauth:FusionAuthApplicationRole
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 FusionAuthApplicationRoleArgs
- 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 FusionAuthApplicationRoleArgs
- 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 FusionAuthApplicationRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FusionAuthApplicationRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FusionAuthApplicationRoleArgs
- 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 fusionAuthApplicationRoleResource = new Fusionauth.FusionAuthApplicationRole("fusionAuthApplicationRoleResource", new()
{
ApplicationId = "string",
Description = "string",
IsDefault = false,
IsSuperRole = false,
Name = "string",
});
example, err := fusionauth.NewFusionAuthApplicationRole(ctx, "fusionAuthApplicationRoleResource", &fusionauth.FusionAuthApplicationRoleArgs{
ApplicationId: pulumi.String("string"),
Description: pulumi.String("string"),
IsDefault: pulumi.Bool(false),
IsSuperRole: pulumi.Bool(false),
Name: pulumi.String("string"),
})
var fusionAuthApplicationRoleResource = new FusionAuthApplicationRole("fusionAuthApplicationRoleResource", FusionAuthApplicationRoleArgs.builder()
.applicationId("string")
.description("string")
.isDefault(false)
.isSuperRole(false)
.name("string")
.build());
fusion_auth_application_role_resource = fusionauth.FusionAuthApplicationRole("fusionAuthApplicationRoleResource",
application_id="string",
description="string",
is_default=False,
is_super_role=False,
name="string")
const fusionAuthApplicationRoleResource = new fusionauth.FusionAuthApplicationRole("fusionAuthApplicationRoleResource", {
applicationId: "string",
description: "string",
isDefault: false,
isSuperRole: false,
name: "string",
});
type: fusionauth:FusionAuthApplicationRole
properties:
applicationId: string
description: string
isDefault: false
isSuperRole: false
name: string
FusionAuthApplicationRole 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 FusionAuthApplicationRole resource accepts the following input properties:
- Application
Id string - ID of the application that this role is for.
- Description string
- A description for the role.
- Is
Default bool - Whether or not the Role is a default role. A default role is automatically assigned to a user during registration if no roles are provided.
- Is
Super boolRole - Whether or not the Role is a considered to be a super user role. This is a marker to indicate that it supersedes all other roles. FusionAuth will attempt to enforce this contract when using the web UI, it is not enforced programmatically when using the API.
- Name string
- The name of the Role.
- Application
Id string - ID of the application that this role is for.
- Description string
- A description for the role.
- Is
Default bool - Whether or not the Role is a default role. A default role is automatically assigned to a user during registration if no roles are provided.
- Is
Super boolRole - Whether or not the Role is a considered to be a super user role. This is a marker to indicate that it supersedes all other roles. FusionAuth will attempt to enforce this contract when using the web UI, it is not enforced programmatically when using the API.
- Name string
- The name of the Role.
- application
Id String - ID of the application that this role is for.
- description String
- A description for the role.
- is
Default Boolean - Whether or not the Role is a default role. A default role is automatically assigned to a user during registration if no roles are provided.
- is
Super BooleanRole - Whether or not the Role is a considered to be a super user role. This is a marker to indicate that it supersedes all other roles. FusionAuth will attempt to enforce this contract when using the web UI, it is not enforced programmatically when using the API.
- name String
- The name of the Role.
- application
Id string - ID of the application that this role is for.
- description string
- A description for the role.
- is
Default boolean - Whether or not the Role is a default role. A default role is automatically assigned to a user during registration if no roles are provided.
- is
Super booleanRole - Whether or not the Role is a considered to be a super user role. This is a marker to indicate that it supersedes all other roles. FusionAuth will attempt to enforce this contract when using the web UI, it is not enforced programmatically when using the API.
- name string
- The name of the Role.
- application_
id str - ID of the application that this role is for.
- description str
- A description for the role.
- is_
default bool - Whether or not the Role is a default role. A default role is automatically assigned to a user during registration if no roles are provided.
- is_
super_ boolrole - Whether or not the Role is a considered to be a super user role. This is a marker to indicate that it supersedes all other roles. FusionAuth will attempt to enforce this contract when using the web UI, it is not enforced programmatically when using the API.
- name str
- The name of the Role.
- application
Id String - ID of the application that this role is for.
- description String
- A description for the role.
- is
Default Boolean - Whether or not the Role is a default role. A default role is automatically assigned to a user during registration if no roles are provided.
- is
Super BooleanRole - Whether or not the Role is a considered to be a super user role. This is a marker to indicate that it supersedes all other roles. FusionAuth will attempt to enforce this contract when using the web UI, it is not enforced programmatically when using the API.
- name String
- The name of the Role.
Outputs
All input properties are implicitly available as output properties. Additionally, the FusionAuthApplicationRole 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 FusionAuthApplicationRole Resource
Get an existing FusionAuthApplicationRole 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?: FusionAuthApplicationRoleState, opts?: CustomResourceOptions): FusionAuthApplicationRole
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
description: Optional[str] = None,
is_default: Optional[bool] = None,
is_super_role: Optional[bool] = None,
name: Optional[str] = None) -> FusionAuthApplicationRole
func GetFusionAuthApplicationRole(ctx *Context, name string, id IDInput, state *FusionAuthApplicationRoleState, opts ...ResourceOption) (*FusionAuthApplicationRole, error)
public static FusionAuthApplicationRole Get(string name, Input<string> id, FusionAuthApplicationRoleState? state, CustomResourceOptions? opts = null)
public static FusionAuthApplicationRole get(String name, Output<String> id, FusionAuthApplicationRoleState 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.
- Application
Id string - ID of the application that this role is for.
- Description string
- A description for the role.
- Is
Default bool - Whether or not the Role is a default role. A default role is automatically assigned to a user during registration if no roles are provided.
- Is
Super boolRole - Whether or not the Role is a considered to be a super user role. This is a marker to indicate that it supersedes all other roles. FusionAuth will attempt to enforce this contract when using the web UI, it is not enforced programmatically when using the API.
- Name string
- The name of the Role.
- Application
Id string - ID of the application that this role is for.
- Description string
- A description for the role.
- Is
Default bool - Whether or not the Role is a default role. A default role is automatically assigned to a user during registration if no roles are provided.
- Is
Super boolRole - Whether or not the Role is a considered to be a super user role. This is a marker to indicate that it supersedes all other roles. FusionAuth will attempt to enforce this contract when using the web UI, it is not enforced programmatically when using the API.
- Name string
- The name of the Role.
- application
Id String - ID of the application that this role is for.
- description String
- A description for the role.
- is
Default Boolean - Whether or not the Role is a default role. A default role is automatically assigned to a user during registration if no roles are provided.
- is
Super BooleanRole - Whether or not the Role is a considered to be a super user role. This is a marker to indicate that it supersedes all other roles. FusionAuth will attempt to enforce this contract when using the web UI, it is not enforced programmatically when using the API.
- name String
- The name of the Role.
- application
Id string - ID of the application that this role is for.
- description string
- A description for the role.
- is
Default boolean - Whether or not the Role is a default role. A default role is automatically assigned to a user during registration if no roles are provided.
- is
Super booleanRole - Whether or not the Role is a considered to be a super user role. This is a marker to indicate that it supersedes all other roles. FusionAuth will attempt to enforce this contract when using the web UI, it is not enforced programmatically when using the API.
- name string
- The name of the Role.
- application_
id str - ID of the application that this role is for.
- description str
- A description for the role.
- is_
default bool - Whether or not the Role is a default role. A default role is automatically assigned to a user during registration if no roles are provided.
- is_
super_ boolrole - Whether or not the Role is a considered to be a super user role. This is a marker to indicate that it supersedes all other roles. FusionAuth will attempt to enforce this contract when using the web UI, it is not enforced programmatically when using the API.
- name str
- The name of the Role.
- application
Id String - ID of the application that this role is for.
- description String
- A description for the role.
- is
Default Boolean - Whether or not the Role is a default role. A default role is automatically assigned to a user during registration if no roles are provided.
- is
Super BooleanRole - Whether or not the Role is a considered to be a super user role. This is a marker to indicate that it supersedes all other roles. FusionAuth will attempt to enforce this contract when using the web UI, it is not enforced programmatically when using the API.
- name String
- The name of the Role.
Package Details
- Repository
- fusionauth theogravity/pulumi-fusionauth
- License
- MIT
- Notes
- This Pulumi package is based on the
fusionauth
Terraform Provider.