onelogin.AppRoleAttachments
Explore with Pulumi AI
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:
- App
Id double - Role
Id double - App
Role stringAttachments Id
- App
Id float64 - Role
Id float64 - App
Role stringAttachments Id
- app
Id Double - role
Id Double - app
Role StringAttachments Id
- app
Id number - role
Id number - app
Role stringAttachments Id
- app_
id float - role_
id float - app_
role_ strattachments_ id
- app
Id Number - role
Id Number - 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 - App
Role stringAttachments Id - Role
Id double
- App
Id float64 - App
Role stringAttachments Id - Role
Id float64
- app
Id Double - app
Role StringAttachments Id - role
Id Double
- app
Id number - app
Role stringAttachments Id - role
Id number
- app_
id float - app_
role_ strattachments_ id - role_
id float
- app
Id Number - app
Role StringAttachments Id - role
Id Number
Package Details
- Repository
- onelogin onelogin/terraform-provider-onelogin
- License
- Notes
- This Pulumi package is based on the
onelogin
Terraform Provider.