UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

111 lines (110 loc) 4.77 kB
import * as pulumi from "@pulumi/pulumi"; /** * This resource allows you to attach a role to databricks_group. This role could be a pre-defined role such as account admin, or an instance profile ARN. * * ## Example Usage * * Attach an instance profile to a group * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const instanceProfile = new databricks.InstanceProfile("instance_profile", {instanceProfileArn: "my_instance_profile_arn"}); * const myGroup = new databricks.Group("my_group", {displayName: "my_group_name"}); * const myGroupInstanceProfile = new databricks.GroupRole("my_group_instance_profile", { * groupId: myGroup.id, * role: instanceProfile.id, * }); * ``` * * Attach account admin role to an account-level group * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const myGroup = new databricks.Group("my_group", {displayName: "my_group_name"}); * const myGroupAccountAdmin = new databricks.GroupRole("my_group_account_admin", { * groupId: myGroup.id, * role: "account_admin", * }); * ``` * * ## Related Resources * * The following resources are often used in the same context: * * * End to end workspace management guide. * * databricks.getAwsBucketPolicy data to configure a simple access policy for AWS S3 buckets, so that Databricks can access data in it. * * databricks.ClusterPolicy to create a databricks.Cluster policy, which limits the ability to create clusters based on a set of rules. * * databricks.Group to manage [groups in Databricks Workspace](https://docs.databricks.com/administration-guide/users-groups/groups.html) or [Account Console](https://accounts.cloud.databricks.com/) (for AWS deployments). * * databricks.Group data to retrieve information about databricks.Group members, entitlements and instance profiles. * * databricks.GroupMember to attach users and groups as group members. * * databricks.InstancePool to manage [instance pools](https://docs.databricks.com/clusters/instance-pools/index.html) to reduce cluster start and auto-scaling times by maintaining a set of idle, ready-to-use instances. * * databricks.InstanceProfile to manage AWS EC2 instance profiles that users can launch databricks.Cluster and access data, like databricks_mount. * * databricks.UserInstanceProfile to attach databricks.InstanceProfile (AWS) to databricks_user. * * ## Import * * !> Importing this resource is not currently supported. */ export declare class GroupRole extends pulumi.CustomResource { /** * Get an existing GroupRole resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GroupRoleState, opts?: pulumi.CustomResourceOptions): GroupRole; /** * Returns true if the given object is an instance of GroupRole. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is GroupRole; /** * This is the id of the group resource. */ readonly groupId: pulumi.Output<string>; /** * Either a role name or the ARN/ID of the instance profile resource. */ readonly role: pulumi.Output<string>; /** * Create a GroupRole resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: GroupRoleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering GroupRole resources. */ export interface GroupRoleState { /** * This is the id of the group resource. */ groupId?: pulumi.Input<string>; /** * Either a role name or the ARN/ID of the instance profile resource. */ role?: pulumi.Input<string>; } /** * The set of arguments for constructing a GroupRole resource. */ export interface GroupRoleArgs { /** * This is the id of the group resource. */ groupId: pulumi.Input<string>; /** * Either a role name or the ARN/ID of the instance profile resource. */ role: pulumi.Input<string>; }