1. Packages
  2. Packages
  3. Databricks Provider
  4. API Docs
  5. getMwsCredentials
Viewing docs for Databricks v1.92.0
published on Tuesday, May 12, 2026 by Pulumi
databricks logo
Viewing docs for Databricks v1.92.0
published on Tuesday, May 12, 2026 by Pulumi

    Lists all databricks.MwsCredentials in Databricks Account.

    This data source can only be used with an account-level provider!

    Example Usage

    Listing all credentials in Databricks Account

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const all = databricks.getMwsCredentials({});
    export const allMwsCredentials = all.then(all => all.ids);
    
    import pulumi
    import pulumi_databricks as databricks
    
    all = databricks.get_mws_credentials()
    pulumi.export("allMwsCredentials", all.ids)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		all, err := databricks.GetMwsCredentials(ctx, &databricks.LookupMwsCredentialsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("allMwsCredentials", all.Ids)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Databricks.GetMwsCredentials.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["allMwsCredentials"] = all.Apply(getMwsCredentialsResult => getMwsCredentialsResult.Ids),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.DatabricksFunctions;
    import com.pulumi.databricks.inputs.GetMwsCredentialsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            final var all = DatabricksFunctions.getMwsCredentials(GetMwsCredentialsArgs.builder()
                .build());
    
            ctx.export("allMwsCredentials", all.ids());
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: databricks:getMwsCredentials
          arguments: {}
    outputs:
      allMwsCredentials: ${all.ids}
    
    Example coming soon!
    

    The following resources are used in the same context:

    • Provisioning Databricks on AWS guide.
    • databricks.MwsCustomerManagedKeys to configure KMS keys for new workspaces within AWS.
    • databricks.MwsLogDelivery to configure delivery of billable usage logs and audit logs.
    • databricks.MwsNetworks to configure VPC & subnets for new workspaces within AWS.
    • databricks.MwsStorageConfigurations to configure root bucket new workspaces within AWS.
    • databricks.MwsWorkspaces to set up AWS and GCP workspaces.

    Using getMwsCredentials

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getMwsCredentials(args: GetMwsCredentialsArgs, opts?: InvokeOptions): Promise<GetMwsCredentialsResult>
    function getMwsCredentialsOutput(args: GetMwsCredentialsOutputArgs, opts?: InvokeOptions): Output<GetMwsCredentialsResult>
    def get_mws_credentials(ids: Optional[Mapping[str, str]] = None,
                            provider_config: Optional[GetMwsCredentialsProviderConfig] = None,
                            opts: Optional[InvokeOptions] = None) -> GetMwsCredentialsResult
    def get_mws_credentials_output(ids: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                            provider_config: pulumi.Input[Optional[GetMwsCredentialsProviderConfigArgs]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetMwsCredentialsResult]
    func LookupMwsCredentials(ctx *Context, args *LookupMwsCredentialsArgs, opts ...InvokeOption) (*LookupMwsCredentialsResult, error)
    func LookupMwsCredentialsOutput(ctx *Context, args *LookupMwsCredentialsOutputArgs, opts ...InvokeOption) LookupMwsCredentialsResultOutput

    > Note: This function is named LookupMwsCredentials in the Go SDK.

    public static class GetMwsCredentials 
    {
        public static Task<GetMwsCredentialsResult> InvokeAsync(GetMwsCredentialsArgs args, InvokeOptions? opts = null)
        public static Output<GetMwsCredentialsResult> Invoke(GetMwsCredentialsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMwsCredentialsResult> getMwsCredentials(GetMwsCredentialsArgs args, InvokeOptions options)
    public static Output<GetMwsCredentialsResult> getMwsCredentials(GetMwsCredentialsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: databricks:index/getMwsCredentials:getMwsCredentials
      arguments:
        # arguments dictionary
    data "databricks_getmwscredentials" "name" {
        # arguments
    }

    The following arguments are supported:

    Ids Dictionary<string, string>
    name-to-id map for all of the credentials in the account
    ProviderConfig GetMwsCredentialsProviderConfig
    This data source is account-only and has no workspace context, so providerConfig has no effect and will be removed in a future major release. The block consists of the following field:

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    Ids map[string]string
    name-to-id map for all of the credentials in the account
    ProviderConfig GetMwsCredentialsProviderConfig
    This data source is account-only and has no workspace context, so providerConfig has no effect and will be removed in a future major release. The block consists of the following field:

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    ids map(string)
    name-to-id map for all of the credentials in the account
    provider_config object
    This data source is account-only and has no workspace context, so providerConfig has no effect and will be removed in a future major release. The block consists of the following field:

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    ids Map<String,String>
    name-to-id map for all of the credentials in the account
    providerConfig GetMwsCredentialsProviderConfig
    This data source is account-only and has no workspace context, so providerConfig has no effect and will be removed in a future major release. The block consists of the following field:

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    ids {[key: string]: string}
    name-to-id map for all of the credentials in the account
    providerConfig GetMwsCredentialsProviderConfig
    This data source is account-only and has no workspace context, so providerConfig has no effect and will be removed in a future major release. The block consists of the following field:

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    ids Mapping[str, str]
    name-to-id map for all of the credentials in the account
    provider_config GetMwsCredentialsProviderConfig
    This data source is account-only and has no workspace context, so providerConfig has no effect and will be removed in a future major release. The block consists of the following field:

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    ids Map<String>
    name-to-id map for all of the credentials in the account
    providerConfig Property Map
    This data source is account-only and has no workspace context, so providerConfig has no effect and will be removed in a future major release. The block consists of the following field:

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    getMwsCredentials Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids Dictionary<string, string>
    name-to-id map for all of the credentials in the account
    ProviderConfig GetMwsCredentialsProviderConfig

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids map[string]string
    name-to-id map for all of the credentials in the account
    ProviderConfig GetMwsCredentialsProviderConfig

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    id string
    The provider-assigned unique ID for this managed resource.
    ids map(string)
    name-to-id map for all of the credentials in the account
    provider_config object

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    id String
    The provider-assigned unique ID for this managed resource.
    ids Map<String,String>
    name-to-id map for all of the credentials in the account
    providerConfig GetMwsCredentialsProviderConfig

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    id string
    The provider-assigned unique ID for this managed resource.
    ids {[key: string]: string}
    name-to-id map for all of the credentials in the account
    providerConfig GetMwsCredentialsProviderConfig

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    id str
    The provider-assigned unique ID for this managed resource.
    ids Mapping[str, str]
    name-to-id map for all of the credentials in the account
    provider_config GetMwsCredentialsProviderConfig

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    id String
    The provider-assigned unique ID for this managed resource.
    ids Map<String>
    name-to-id map for all of the credentials in the account
    providerConfig Property Map

    Deprecated: provider_config has no effect on this account-only resource and will be removed in a future major release.

    Supporting Types

    GetMwsCredentialsProviderConfig

    WorkspaceId string
    Ignored. This data source always operates against the account configured on the provider.

    Deprecated: workspace_id is ignored for account-only resources.

    WorkspaceId string
    Ignored. This data source always operates against the account configured on the provider.

    Deprecated: workspace_id is ignored for account-only resources.

    workspace_id string
    Ignored. This data source always operates against the account configured on the provider.

    Deprecated: workspace_id is ignored for account-only resources.

    workspaceId String
    Ignored. This data source always operates against the account configured on the provider.

    Deprecated: workspace_id is ignored for account-only resources.

    workspaceId string
    Ignored. This data source always operates against the account configured on the provider.

    Deprecated: workspace_id is ignored for account-only resources.

    workspace_id str
    Ignored. This data source always operates against the account configured on the provider.

    Deprecated: workspace_id is ignored for account-only resources.

    workspaceId String
    Ignored. This data source always operates against the account configured on the provider.

    Deprecated: workspace_id is ignored for account-only resources.

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Viewing docs for Databricks v1.92.0
    published on Tuesday, May 12, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.