Databricks v1.56.0 published on Tuesday, Nov 12, 2024 by Pulumi
databricks.getInstanceProfiles
Explore with Pulumi AI
Lists all available databricks_instance_profiles.
Example Usage
Get all instance profiles:
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const all = databricks.getInstanceProfiles({});
export const allInstanceProfiles = all.then(all => all.instanceProfiles);
import pulumi
import pulumi_databricks as databricks
all = databricks.get_instance_profiles()
pulumi.export("allInstanceProfiles", all.instance_profiles)
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.GetInstanceProfiles(ctx, &databricks.GetInstanceProfilesArgs{}, nil)
if err != nil {
return err
}
ctx.Export("allInstanceProfiles", all.InstanceProfiles)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var all = Databricks.GetInstanceProfiles.Invoke();
return new Dictionary<string, object?>
{
["allInstanceProfiles"] = all.Apply(getInstanceProfilesResult => getInstanceProfilesResult.InstanceProfiles),
};
});
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.GetInstanceProfilesArgs;
import java.util.List;
import java.util.ArrayList;
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.getInstanceProfiles();
ctx.export("allInstanceProfiles", all.applyValue(getInstanceProfilesResult -> getInstanceProfilesResult.instanceProfiles()));
}
}
variables:
all:
fn::invoke:
Function: databricks:getInstanceProfiles
Arguments: {}
outputs:
allInstanceProfiles: ${all.instanceProfiles}
Using getInstanceProfiles
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 getInstanceProfiles(args: GetInstanceProfilesArgs, opts?: InvokeOptions): Promise<GetInstanceProfilesResult>
function getInstanceProfilesOutput(args: GetInstanceProfilesOutputArgs, opts?: InvokeOptions): Output<GetInstanceProfilesResult>
def get_instance_profiles(instance_profiles: Optional[Sequence[GetInstanceProfilesInstanceProfile]] = None,
opts: Optional[InvokeOptions] = None) -> GetInstanceProfilesResult
def get_instance_profiles_output(instance_profiles: Optional[pulumi.Input[Sequence[pulumi.Input[GetInstanceProfilesInstanceProfileArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstanceProfilesResult]
func GetInstanceProfiles(ctx *Context, args *GetInstanceProfilesArgs, opts ...InvokeOption) (*GetInstanceProfilesResult, error)
func GetInstanceProfilesOutput(ctx *Context, args *GetInstanceProfilesOutputArgs, opts ...InvokeOption) GetInstanceProfilesResultOutput
> Note: This function is named GetInstanceProfiles
in the Go SDK.
public static class GetInstanceProfiles
{
public static Task<GetInstanceProfilesResult> InvokeAsync(GetInstanceProfilesArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceProfilesResult> Invoke(GetInstanceProfilesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstanceProfilesResult> getInstanceProfiles(GetInstanceProfilesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: databricks:index/getInstanceProfiles:getInstanceProfiles
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Profiles List<GetInstance Profiles Instance Profile> - Set of objects for a databricks_instance_profile. This contains the following attributes:
- Instance
Profiles []GetInstance Profiles Instance Profile - Set of objects for a databricks_instance_profile. This contains the following attributes:
- instance
Profiles List<GetInstance Profiles Instance Profile> - Set of objects for a databricks_instance_profile. This contains the following attributes:
- instance
Profiles GetInstance Profiles Instance Profile[] - Set of objects for a databricks_instance_profile. This contains the following attributes:
- instance_
profiles Sequence[GetInstance Profiles Instance Profile] - Set of objects for a databricks_instance_profile. This contains the following attributes:
- instance
Profiles List<Property Map> - Set of objects for a databricks_instance_profile. This contains the following attributes:
getInstanceProfiles Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Profiles List<GetInstance Profiles Instance Profile> - Set of objects for a databricks_instance_profile. This contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Profiles []GetInstance Profiles Instance Profile - Set of objects for a databricks_instance_profile. This contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Profiles List<GetInstance Profiles Instance Profile> - Set of objects for a databricks_instance_profile. This contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Profiles GetInstance Profiles Instance Profile[] - Set of objects for a databricks_instance_profile. This contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
profiles Sequence[GetInstance Profiles Instance Profile] - Set of objects for a databricks_instance_profile. This contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Profiles List<Property Map> - Set of objects for a databricks_instance_profile. This contains the following attributes:
Supporting Types
GetInstanceProfilesInstanceProfile
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricks
Terraform Provider.