1. Packages
  2. AWS Classic
  3. API Docs
  4. workspaces
  5. getBundle

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.workspaces.getBundle

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    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",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.workspaces.get_bundle(bundle_id="wsb-b0s22j3d7")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:workspaces:getBundle
          Arguments:
            bundleId: wsb-b0s22j3d7
    

    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",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.workspaces.get_bundle(owner="AMAZON",
        name="Value with Windows 10 and Office 2016")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:workspaces:getBundle
          Arguments:
            owner: AMAZON
            name: Value with Windows 10 and Office 2016
    

    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>
    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]
    func GetBundle(ctx *Context, args *GetBundleArgs, opts ...InvokeOption) (*GetBundleResult, error)
    func GetBundleOutput(ctx *Context, args *GetBundleOutputArgs, opts ...InvokeOption) GetBundleResultOutput

    > 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)
    }
    public static CompletableFuture<GetBundleResult> getBundle(GetBundleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:workspaces/getBundle:getBundle
      arguments:
        # arguments dictionary

    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<Pulumi.Aws.Workspaces.Outputs.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<Pulumi.Aws.Workspaces.Outputs.GetBundleRootStorage>
    The root volume. See supported fields below.
    UserStorages List<Pulumi.Aws.Workspaces.Outputs.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 string
    Name of the bundle. You cannot combine this parameter with bundle_id.
    Name string
    Name of the bundle. You cannot combine this parameter with bundle_id.
    name String
    Name of the bundle. You cannot combine this parameter with bundle_id.
    name string
    Name of the bundle. You cannot combine this parameter with bundle_id.
    name str
    Name of the bundle. You cannot combine this parameter with bundle_id.
    name String
    Name of the bundle. You cannot combine this parameter with bundle_id.

    GetBundleRootStorage

    Capacity string
    Size of the user storage.
    Capacity string
    Size of the user storage.
    capacity String
    Size of the user storage.
    capacity string
    Size of the user storage.
    capacity str
    Size of the user storage.
    capacity String
    Size of the user storage.

    GetBundleUserStorage

    Capacity string
    Size of the user storage.
    Capacity string
    Size of the user storage.
    capacity String
    Size of the user storage.
    capacity string
    Size of the user storage.
    capacity str
    Size of the user storage.
    capacity 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.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi