onelogin.AppRoleAttachments
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as onelogin from "@pulumi/onelogin";
const example = new onelogin.AppRoleAttachments("example", {
appId: onelogin_saml_apps.saml.id,
roleId: 12345,
});
import pulumi
import pulumi_onelogin as onelogin
example = onelogin.AppRoleAttachments("example",
app_id=onelogin_saml_apps["saml"]["id"],
role_id=12345)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/onelogin/onelogin"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := onelogin.NewAppRoleAttachments(ctx, "example", &onelogin.AppRoleAttachmentsArgs{
AppId: pulumi.Any(onelogin_saml_apps.Saml.Id),
RoleId: pulumi.Float64(12345),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Onelogin = Pulumi.Onelogin;
return await Deployment.RunAsync(() =>
{
var example = new Onelogin.AppRoleAttachments("example", new()
{
AppId = onelogin_saml_apps.Saml.Id,
RoleId = 12345,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.onelogin.AppRoleAttachments;
import com.pulumi.onelogin.AppRoleAttachmentsArgs;
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 example = new AppRoleAttachments("example", AppRoleAttachmentsArgs.builder()
.appId(onelogin_saml_apps.saml().id())
.roleId(12345)
.build());
}
}
resources:
example:
type: onelogin:AppRoleAttachments
properties:
appId: ${onelogin_saml_apps.saml.id}
roleId: 12345
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.0)
.roleId(0.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:
- App
Id double - The id of the App resource to which the role should belong.
- Role
Id double - The id of the Role being attached to the App.
- App
Role stringAttachments Id
- App
Id float64 - The id of the App resource to which the role should belong.
- Role
Id float64 - The id of the Role being attached to the App.
- App
Role stringAttachments Id
- app
Id Double - The id of the App resource to which the role should belong.
- role
Id Double - The id of the Role being attached to the App.
- app
Role StringAttachments Id
- app
Id number - The id of the App resource to which the role should belong.
- role
Id number - The id of the Role being attached to the App.
- app
Role stringAttachments Id
- app_
id float - The id of the App resource to which the role should belong.
- role_
id float - The id of the Role being attached to the App.
- app_
role_ strattachments_ id
- app
Id Number - The id of the App resource to which the role should belong.
- role
Id Number - The id of the Role being attached to the App.
- app
Role StringAttachments Id
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.
- App
Id double - The id of the App resource to which the role should belong.
- App
Role stringAttachments Id - Role
Id double - The id of the Role being attached to the App.
- App
Id float64 - The id of the App resource to which the role should belong.
- App
Role stringAttachments Id - Role
Id float64 - The id of the Role being attached to the App.
- app
Id Double - The id of the App resource to which the role should belong.
- app
Role StringAttachments Id - role
Id Double - The id of the Role being attached to the App.
- app
Id number - The id of the App resource to which the role should belong.
- app
Role stringAttachments Id - role
Id number - The id of the Role being attached to the App.
- app_
id float - The id of the App resource to which the role should belong.
- app_
role_ strattachments_ id - role_
id float - The id of the Role being attached to the App.
- app
Id Number - The id of the App resource to which the role should belong.
- app
Role StringAttachments Id - role
Id Number - The id of the Role being attached to the App.
Import
An App Role Attachment cannot be imported at this time.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- onelogin onelogin/terraform-provider-onelogin
- License
- Notes
- This Pulumi package is based on the
onelogin
Terraform Provider.