UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

137 lines (136 loc) 5.89 kB
import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * import * as databricks from "@pulumi/databricks"; * * const config = new pulumi.Config(); * // Account Id that could be found in the top right corner of https://accounts.cloud.databricks.com/ * const databricksAccountId = config.requireObject("databricksAccountId"); * const rootStorageBucket = new aws.s3.BucketV2("root_storage_bucket", { * bucket: `${prefix}-rootbucket`, * acl: "private", * }); * const rootVersioning = new aws.s3.BucketVersioningV2("root_versioning", { * bucket: rootStorageBucket.id, * versioningConfiguration: { * status: "Disabled", * }, * }); * const _this = new databricks.MwsStorageConfigurations("this", { * accountId: databricksAccountId, * storageConfigurationName: `${prefix}-storage`, * bucketName: rootStorageBucket.bucket, * }); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * Provisioning Databricks on AWS guide. * * Provisioning Databricks on AWS with Private Link guide. * * databricks.MwsCredentials to configure the cross-account role for creation of new workspaces within AWS. * * databricks.MwsCustomerManagedKeys to configure KMS keys for new workspaces within AWS. * * databricks.MwsLogDelivery to configure delivery of [billable usage logs](https://docs.databricks.com/administration-guide/account-settings/billable-usage-delivery.html) and [audit logs](https://docs.databricks.com/administration-guide/account-settings/audit-logs.html). * * databricks.MwsNetworks to [configure VPC](https://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html) & subnets for new workspaces within AWS. * * databricks.MwsWorkspaces to set up [AWS and GCP workspaces](https://docs.databricks.com/getting-started/overview.html#e2-architecture-1). * * ## Import * * This resource can be imported by Databricks account ID and storage configuration ID. * * ```sh * $ pulumi import databricks:index/mwsStorageConfigurations:MwsStorageConfigurations this '<account_id>/<storage_configuration_id>' * ``` * * ~> This resource does not support updates. If your configuration does not match the existing resource, * * the next `pulumi up` will cause the resource to be destroyed and recreated. After importing, * * verify that the configuration matches the existing resource by running `pulumi preview`. */ export declare class MwsStorageConfigurations extends pulumi.CustomResource { /** * Get an existing MwsStorageConfigurations 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?: MwsStorageConfigurationsState, opts?: pulumi.CustomResourceOptions): MwsStorageConfigurations; /** * Returns true if the given object is an instance of MwsStorageConfigurations. 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 MwsStorageConfigurations; /** * Account Id that could be found in the top right corner of [Accounts Console](https://accounts.cloud.databricks.com/) */ readonly accountId: pulumi.Output<string>; /** * name of AWS S3 bucket */ readonly bucketName: pulumi.Output<string>; readonly creationTime: pulumi.Output<number>; /** * (String) id of storage config to be used for `databricksMwsWorkspace` resource. */ readonly storageConfigurationId: pulumi.Output<string>; /** * name under which this storage configuration is stored */ readonly storageConfigurationName: pulumi.Output<string>; /** * Create a MwsStorageConfigurations 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: MwsStorageConfigurationsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MwsStorageConfigurations resources. */ export interface MwsStorageConfigurationsState { /** * Account Id that could be found in the top right corner of [Accounts Console](https://accounts.cloud.databricks.com/) */ accountId?: pulumi.Input<string>; /** * name of AWS S3 bucket */ bucketName?: pulumi.Input<string>; creationTime?: pulumi.Input<number>; /** * (String) id of storage config to be used for `databricksMwsWorkspace` resource. */ storageConfigurationId?: pulumi.Input<string>; /** * name under which this storage configuration is stored */ storageConfigurationName?: pulumi.Input<string>; } /** * The set of arguments for constructing a MwsStorageConfigurations resource. */ export interface MwsStorageConfigurationsArgs { /** * Account Id that could be found in the top right corner of [Accounts Console](https://accounts.cloud.databricks.com/) */ accountId: pulumi.Input<string>; /** * name of AWS S3 bucket */ bucketName: pulumi.Input<string>; /** * name under which this storage configuration is stored */ storageConfigurationName: pulumi.Input<string>; }