onelogin
AppRoleAttachment
Import
An App Role Attachment cannot be imported at this time.
Example Usage
using Pulumi;
using Onelogin = Pulumi.Onelogin;
class MyStack : Stack
{
public MyStack()
{
var example = new Onelogin.AppRoleAttachment("example", new Onelogin.AppRoleAttachmentArgs
{
AppId = onelogin_saml_apps.Saml.Id,
RoleId = 12345,
});
}
}
package main
import (
"github.com/pulumi/pulumi-onelogin/sdk/go/onelogin"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := onelogin.NewAppRoleAttachment(ctx, "example", &onelogin.AppRoleAttachmentArgs{
AppId: pulumi.Any(onelogin_saml_apps.Saml.Id),
RoleId: pulumi.Int(12345),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_onelogin as onelogin
example = onelogin.AppRoleAttachment("example",
app_id=onelogin_saml_apps["saml"]["id"],
role_id=12345)
import * as pulumi from "@pulumi/pulumi";
import * as onelogin from "@pulumi/onelogin";
const example = new onelogin.AppRoleAttachment("example", {
appId: onelogin_saml_apps.saml.id,
roleId: 12345,
});
Coming soon!
Create a AppRoleAttachment Resource
new AppRoleAttachment(name: string, args: AppRoleAttachmentArgs, opts?: CustomResourceOptions);
@overload
def AppRoleAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[int] = None,
role_id: Optional[int] = None)
@overload
def AppRoleAttachment(resource_name: str,
args: AppRoleAttachmentArgs,
opts: Optional[ResourceOptions] = None)
func NewAppRoleAttachment(ctx *Context, name string, args AppRoleAttachmentArgs, opts ...ResourceOption) (*AppRoleAttachment, error)
public AppRoleAttachment(string name, AppRoleAttachmentArgs args, CustomResourceOptions? opts = null)
public AppRoleAttachment(String name, AppRoleAttachmentArgs args)
public AppRoleAttachment(String name, AppRoleAttachmentArgs args, CustomResourceOptions options)
type: onelogin:AppRoleAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppRoleAttachmentArgs
- 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 AppRoleAttachmentArgs
- 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 AppRoleAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppRoleAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppRoleAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AppRoleAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AppRoleAttachment resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the AppRoleAttachment 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 an Existing AppRoleAttachment Resource
Get an existing AppRoleAttachment 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?: AppRoleAttachmentState, opts?: CustomResourceOptions): AppRoleAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[int] = None,
role_id: Optional[int] = None) -> AppRoleAttachment
func GetAppRoleAttachment(ctx *Context, name string, id IDInput, state *AppRoleAttachmentState, opts ...ResourceOption) (*AppRoleAttachment, error)
public static AppRoleAttachment Get(string name, Input<string> id, AppRoleAttachmentState? state, CustomResourceOptions? opts = null)
public static AppRoleAttachment get(String name, Output<String> id, AppRoleAttachmentState 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-onelogin
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
onelogin
Terraform Provider.