1. Packages
  2. Onelogin Provider
  3. API Docs
  4. AppRoleAttachments
onelogin 0.5.4 published on Wednesday, Apr 30, 2025 by onelogin

onelogin.AppRoleAttachments

Explore with Pulumi AI

onelogin logo
onelogin 0.5.4 published on Wednesday, Apr 30, 2025 by onelogin

    Create AppRoleAttachments Resource

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

    Constructor syntax

    new AppRoleAttachments(name: string, args: AppRoleAttachmentsArgs, opts?: CustomResourceOptions);
    @overload
    def AppRoleAttachments(resource_name: str,
                           args: AppRoleAttachmentsArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def AppRoleAttachments(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           app_id: Optional[float] = None,
                           role_id: Optional[float] = None,
                           app_role_attachments_id: Optional[str] = None)
    func NewAppRoleAttachments(ctx *Context, name string, args AppRoleAttachmentsArgs, opts ...ResourceOption) (*AppRoleAttachments, error)
    public AppRoleAttachments(string name, AppRoleAttachmentsArgs args, CustomResourceOptions? opts = null)
    public AppRoleAttachments(String name, AppRoleAttachmentsArgs args)
    public AppRoleAttachments(String name, AppRoleAttachmentsArgs args, CustomResourceOptions options)
    
    type: onelogin:AppRoleAttachments
    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 AppRoleAttachmentsArgs
    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 AppRoleAttachmentsArgs
    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 AppRoleAttachmentsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AppRoleAttachmentsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AppRoleAttachmentsArgs
    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 appRoleAttachmentsResource = new Onelogin.AppRoleAttachments("appRoleAttachmentsResource", new()
    {
        AppId = 0,
        RoleId = 0,
        AppRoleAttachmentsId = "string",
    });
    
    example, err := onelogin.NewAppRoleAttachments(ctx, "appRoleAttachmentsResource", &onelogin.AppRoleAttachmentsArgs{
    	AppId:                pulumi.Float64(0),
    	RoleId:               pulumi.Float64(0),
    	AppRoleAttachmentsId: pulumi.String("string"),
    })
    
    var appRoleAttachmentsResource = new AppRoleAttachments("appRoleAttachmentsResource", AppRoleAttachmentsArgs.builder()
        .appId(0)
        .roleId(0)
        .appRoleAttachmentsId("string")
        .build());
    
    app_role_attachments_resource = onelogin.AppRoleAttachments("appRoleAttachmentsResource",
        app_id=0,
        role_id=0,
        app_role_attachments_id="string")
    
    const appRoleAttachmentsResource = new onelogin.AppRoleAttachments("appRoleAttachmentsResource", {
        appId: 0,
        roleId: 0,
        appRoleAttachmentsId: "string",
    });
    
    type: onelogin:AppRoleAttachments
    properties:
        appId: 0
        appRoleAttachmentsId: string
        roleId: 0
    

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

    AppId double
    RoleId double
    AppRoleAttachmentsId string
    AppId float64
    RoleId float64
    AppRoleAttachmentsId string
    appId Double
    roleId Double
    appRoleAttachmentsId String
    appId number
    roleId number
    appRoleAttachmentsId string
    appId Number
    roleId Number
    appRoleAttachmentsId String

    Outputs

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

    Get an existing AppRoleAttachments 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?: AppRoleAttachmentsState, opts?: CustomResourceOptions): AppRoleAttachments
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_id: Optional[float] = None,
            app_role_attachments_id: Optional[str] = None,
            role_id: Optional[float] = None) -> AppRoleAttachments
    func GetAppRoleAttachments(ctx *Context, name string, id IDInput, state *AppRoleAttachmentsState, opts ...ResourceOption) (*AppRoleAttachments, error)
    public static AppRoleAttachments Get(string name, Input<string> id, AppRoleAttachmentsState? state, CustomResourceOptions? opts = null)
    public static AppRoleAttachments get(String name, Output<String> id, AppRoleAttachmentsState state, CustomResourceOptions options)
    resources:  _:    type: onelogin:AppRoleAttachments    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.
    The following state arguments are supported:
    AppId double
    AppRoleAttachmentsId string
    RoleId double
    AppId float64
    AppRoleAttachmentsId string
    RoleId float64
    appId Double
    appRoleAttachmentsId String
    roleId Double
    appId number
    appRoleAttachmentsId string
    roleId number
    appId Number
    appRoleAttachmentsId String
    roleId Number

    Package Details

    Repository
    onelogin onelogin/terraform-provider-onelogin
    License
    Notes
    This Pulumi package is based on the onelogin Terraform Provider.
    onelogin logo
    onelogin 0.5.4 published on Wednesday, Apr 30, 2025 by onelogin