GetBundle

Use this data source to get information about a WorkSpaces Bundle.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Workspaces.GetBundle.InvokeAsync(new Aws.Workspaces.GetBundleArgs
        {
            Name = "Value with Windows 10 and Office 2016",
            Owner = "AMAZON",
        }));
    }

}
package main

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        opt0 := "Value with Windows 10 and Office 2016"
        opt1 := "AMAZON"
        _, err := workspaces.GetBundle(ctx, &workspaces.GetBundleArgs{
            Name:  &opt0,
            Owner: &opt1,
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.workspaces.get_bundle(name="Value with Windows 10 and Office 2016",
    owner="AMAZON")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.workspaces.getBundle({
    name: "Value with Windows 10 and Office 2016",
    owner: "AMAZON",
}, { async: true }));

Using GetBundle

function getBundle(args: GetBundleArgs, opts?: InvokeOptions): Promise<GetBundleResult>
function  get_bundle(bundle_id=None, name=None, owner=None, opts=None)
func GetBundle(ctx *Context, args *GetBundleArgs, opts ...InvokeOption) (*GetBundleResult, error)
public static class GetBundle {
    public static Task<GetBundleResult> InvokeAsync(GetBundleArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

BundleId string

The ID of the bundle.

Name string

The name of the bundle. You cannot combine this parameter with bundle_id.

Owner string

The owner of the bundles. You have to leave it blank for own bundles. You cannot combine this parameter with bundle_id.

BundleId string

The ID of the bundle.

Name string

The name of the bundle. You cannot combine this parameter with bundle_id.

Owner string

The owner of the bundles. You have to leave it blank for own bundles. You cannot combine this parameter with bundle_id.

bundleId string

The ID of the bundle.

name string

The name of the bundle. You cannot combine this parameter with bundle_id.

owner string

The owner of the bundles. You have to leave it blank for own bundles. You cannot combine this parameter with bundle_id.

bundle_id str

The ID of the bundle.

name str

The name of the bundle. You cannot combine this parameter with bundle_id.

owner str

The 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

The 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

The 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

The name of the compute type.

owner string

The owner of the bundle.

compute_types List[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 List[GetBundleRootStorage]

The root volume. See supported fields below.

user_storages List[GetBundleUserStorage]

The user storage. See supported fields below.

bundle_id str

The ID of the bundle.

name str

The name of the compute type.

owner str

The owner of the bundle.

Supporting Types

GetBundleComputeType

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Name string

The name of the bundle. You cannot combine this parameter with bundle_id.

Name string

The name of the bundle. You cannot combine this parameter with bundle_id.

name string

The name of the bundle. You cannot combine this parameter with bundle_id.

name str

The name of the bundle. You cannot combine this parameter with bundle_id.

GetBundleRootStorage

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Capacity string

The size of the user storage.

Capacity string

The size of the user storage.

capacity string

The size of the user storage.

capacity str

The size of the user storage.

GetBundleUserStorage

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Capacity string

The size of the user storage.

Capacity string

The size of the user storage.

capacity string

The size of the user storage.

capacity str

The size of the user storage.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.