1. Packages
  2. AWS
  3. API Docs
  4. workspaces
  5. getBundle
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.workspaces.getBundle

Explore with Pulumi AI

Retrieve information about an AWS WorkSpaces bundle.

Example Usage

By ID

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.workspaces.getBundle({
    bundleId: "wsb-b0s22j3d7",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.workspaces.get_bundle(bundle_id="wsb-b0s22j3d7")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/workspaces"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := workspaces.GetBundle(ctx, &workspaces.GetBundleArgs{
			BundleId: pulumi.StringRef("wsb-b0s22j3d7"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.Workspaces.GetBundle.Invoke(new()
    {
        BundleId = "wsb-b0s22j3d7",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.workspaces.WorkspacesFunctions;
import com.pulumi.aws.workspaces.inputs.GetBundleArgs;
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 example = WorkspacesFunctions.getBundle(GetBundleArgs.builder()
            .bundleId("wsb-b0s22j3d7")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:workspaces:getBundle
      arguments:
        bundleId: wsb-b0s22j3d7
Copy

By Owner & Name

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.workspaces.getBundle({
    owner: "AMAZON",
    name: "Value with Windows 10 and Office 2016",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.workspaces.get_bundle(owner="AMAZON",
    name="Value with Windows 10 and Office 2016")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/workspaces"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := workspaces.GetBundle(ctx, &workspaces.GetBundleArgs{
			Owner: pulumi.StringRef("AMAZON"),
			Name:  pulumi.StringRef("Value with Windows 10 and Office 2016"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.Workspaces.GetBundle.Invoke(new()
    {
        Owner = "AMAZON",
        Name = "Value with Windows 10 and Office 2016",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.workspaces.WorkspacesFunctions;
import com.pulumi.aws.workspaces.inputs.GetBundleArgs;
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 example = WorkspacesFunctions.getBundle(GetBundleArgs.builder()
            .owner("AMAZON")
            .name("Value with Windows 10 and Office 2016")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:workspaces:getBundle
      arguments:
        owner: AMAZON
        name: Value with Windows 10 and Office 2016
Copy

Using getBundle

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 getBundle(args: GetBundleArgs, opts?: InvokeOptions): Promise<GetBundleResult>
function getBundleOutput(args: GetBundleOutputArgs, opts?: InvokeOptions): Output<GetBundleResult>
Copy
def get_bundle(bundle_id: Optional[str] = None,
               name: Optional[str] = None,
               owner: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetBundleResult
def get_bundle_output(bundle_id: Optional[pulumi.Input[str]] = None,
               name: Optional[pulumi.Input[str]] = None,
               owner: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetBundleResult]
Copy
func GetBundle(ctx *Context, args *GetBundleArgs, opts ...InvokeOption) (*GetBundleResult, error)
func GetBundleOutput(ctx *Context, args *GetBundleOutputArgs, opts ...InvokeOption) GetBundleResultOutput
Copy

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

public static class GetBundle 
{
    public static Task<GetBundleResult> InvokeAsync(GetBundleArgs args, InvokeOptions? opts = null)
    public static Output<GetBundleResult> Invoke(GetBundleInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetBundleResult> getBundle(GetBundleArgs args, InvokeOptions options)
public static Output<GetBundleResult> getBundle(GetBundleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:workspaces/getBundle:getBundle
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

BundleId string
ID of the bundle.
Name string
Name of the bundle. You cannot combine this parameter with bundle_id.
Owner string
Owner of the bundles. You have to leave it blank for own bundles. You cannot combine this parameter with bundle_id.
BundleId string
ID of the bundle.
Name string
Name of the bundle. You cannot combine this parameter with bundle_id.
Owner string
Owner of the bundles. You have to leave it blank for own bundles. You cannot combine this parameter with bundle_id.
bundleId String
ID of the bundle.
name String
Name of the bundle. You cannot combine this parameter with bundle_id.
owner String
Owner of the bundles. You have to leave it blank for own bundles. You cannot combine this parameter with bundle_id.
bundleId string
ID of the bundle.
name string
Name of the bundle. You cannot combine this parameter with bundle_id.
owner string
Owner of the bundles. You have to leave it blank for own bundles. You cannot combine this parameter with bundle_id.
bundle_id str
ID of the bundle.
name str
Name of the bundle. You cannot combine this parameter with bundle_id.
owner str
Owner of the bundles. You have to leave it blank for own bundles. You cannot combine this parameter with bundle_id.
bundleId String
ID of the bundle.
name String
Name of the bundle. You cannot combine this parameter with bundle_id.
owner String
Owner of the bundles. You have to leave it blank for own bundles. You cannot combine this parameter with bundle_id.

getBundle Result

The following output properties are available:

ComputeTypes List<GetBundleComputeType>
The compute type. See supported fields below.
Description string
The description of the bundle.
Id string
The provider-assigned unique ID for this managed resource.
RootStorages List<GetBundleRootStorage>
The root volume. See supported fields below.
UserStorages List<GetBundleUserStorage>
The user storage. See supported fields below.
BundleId string
The ID of the bundle.
Name string
Name of the compute type.
Owner string
The owner of the bundle.
ComputeTypes []GetBundleComputeType
The compute type. See supported fields below.
Description string
The description of the bundle.
Id string
The provider-assigned unique ID for this managed resource.
RootStorages []GetBundleRootStorage
The root volume. See supported fields below.
UserStorages []GetBundleUserStorage
The user storage. See supported fields below.
BundleId string
The ID of the bundle.
Name string
Name of the compute type.
Owner string
The owner of the bundle.
computeTypes List<GetBundleComputeType>
The compute type. See supported fields below.
description String
The description of the bundle.
id String
The provider-assigned unique ID for this managed resource.
rootStorages List<GetBundleRootStorage>
The root volume. See supported fields below.
userStorages List<GetBundleUserStorage>
The user storage. See supported fields below.
bundleId String
The ID of the bundle.
name String
Name of the compute type.
owner String
The owner of the bundle.
computeTypes GetBundleComputeType[]
The compute type. See supported fields below.
description string
The description of the bundle.
id string
The provider-assigned unique ID for this managed resource.
rootStorages GetBundleRootStorage[]
The root volume. See supported fields below.
userStorages GetBundleUserStorage[]
The user storage. See supported fields below.
bundleId string
The ID of the bundle.
name string
Name of the compute type.
owner string
The owner of the bundle.
compute_types Sequence[GetBundleComputeType]
The compute type. See supported fields below.
description str
The description of the bundle.
id str
The provider-assigned unique ID for this managed resource.
root_storages Sequence[GetBundleRootStorage]
The root volume. See supported fields below.
user_storages Sequence[GetBundleUserStorage]
The user storage. See supported fields below.
bundle_id str
The ID of the bundle.
name str
Name of the compute type.
owner str
The owner of the bundle.
computeTypes List<Property Map>
The compute type. See supported fields below.
description String
The description of the bundle.
id String
The provider-assigned unique ID for this managed resource.
rootStorages List<Property Map>
The root volume. See supported fields below.
userStorages List<Property Map>
The user storage. See supported fields below.
bundleId String
The ID of the bundle.
name String
Name of the compute type.
owner String
The owner of the bundle.

Supporting Types

GetBundleComputeType

Name This property is required. string
Name of the bundle. You cannot combine this parameter with bundle_id.
Name This property is required. string
Name of the bundle. You cannot combine this parameter with bundle_id.
name This property is required. String
Name of the bundle. You cannot combine this parameter with bundle_id.
name This property is required. string
Name of the bundle. You cannot combine this parameter with bundle_id.
name This property is required. str
Name of the bundle. You cannot combine this parameter with bundle_id.
name This property is required. String
Name of the bundle. You cannot combine this parameter with bundle_id.

GetBundleRootStorage

Capacity This property is required. string
Size of the user storage.
Capacity This property is required. string
Size of the user storage.
capacity This property is required. String
Size of the user storage.
capacity This property is required. string
Size of the user storage.
capacity This property is required. str
Size of the user storage.
capacity This property is required. String
Size of the user storage.

GetBundleUserStorage

Capacity This property is required. string
Size of the user storage.
Capacity This property is required. string
Size of the user storage.
capacity This property is required. String
Size of the user storage.
capacity This property is required. string
Size of the user storage.
capacity This property is required. str
Size of the user storage.
capacity This property is required. String
Size of the user storage.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.