AWS Classic v5.41.0, May 15 23
AWS Classic v5.41.0, May 15 23
aws.workspaces.getBundle
Explore with Pulumi AI
Retrieve information about an AWS WorkSpaces bundle.
Example Usage
By ID
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 main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/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
})
}
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());
}
}
import pulumi
import pulumi_aws as aws
example = aws.workspaces.get_bundle(bundle_id="wsb-b0s22j3d7")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.workspaces.getBundle({
bundleId: "wsb-b0s22j3d7",
});
variables:
example:
fn::invoke:
Function: aws:workspaces:getBundle
Arguments:
bundleId: wsb-b0s22j3d7
By Owner & Name
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Workspaces.GetBundle.Invoke(new()
{
Name = "Value with Windows 10 and Office 2016",
Owner = "AMAZON",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/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{
Name: pulumi.StringRef("Value with Windows 10 and Office 2016"),
Owner: pulumi.StringRef("AMAZON"),
}, nil)
if err != nil {
return err
}
return nil
})
}
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()
.name("Value with Windows 10 and Office 2016")
.owner("AMAZON")
.build());
}
}
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 = aws.workspaces.getBundle({
name: "Value with Windows 10 and Office 2016",
owner: "AMAZON",
});
variables:
example:
fn::invoke:
Function: aws:workspaces:getBundle
Arguments:
name: Value with Windows 10 and Office 2016
owner: AMAZON
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:
getBundle Result
The following output properties are available:
- Compute
Types List<Pulumi.Aws. Workspaces. Outputs. Get Bundle Compute Type> 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.
- Root
Storages List<Pulumi.Aws. Workspaces. Outputs. Get Bundle Root Storage> The root volume. See supported fields below.
- User
Storages List<Pulumi.Aws. Workspaces. Outputs. Get Bundle User Storage> The user storage. See supported fields below.
- Bundle
Id string The ID of the bundle.
- Name string
Name of the compute type.
- Owner string
The owner of the bundle.
- Compute
Types []GetBundle Compute Type 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.
- Root
Storages []GetBundle Root Storage The root volume. See supported fields below.
- User
Storages []GetBundle User Storage The user storage. See supported fields below.
- Bundle
Id string The ID of the bundle.
- Name string
Name of the compute type.
- Owner string
The owner of the bundle.
- compute
Types List<GetBundle Compute Type> 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.
- root
Storages List<GetBundle Root Storage> The root volume. See supported fields below.
- user
Storages List<GetBundle User Storage> The user storage. See supported fields below.
- bundle
Id String The ID of the bundle.
- name String
Name of the compute type.
- owner String
The owner of the bundle.
- compute
Types GetBundle Compute Type[] 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.
- root
Storages GetBundle Root Storage[] The root volume. See supported fields below.
- user
Storages GetBundle User Storage[] The user storage. See supported fields below.
- bundle
Id string The ID of the bundle.
- name string
Name of the compute type.
- owner string
The owner of the bundle.
- compute_
types Sequence[GetBundle Compute Type] 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[GetBundle Root Storage] The root volume. See supported fields below.
- user_
storages Sequence[GetBundle User Storage] 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.
- compute
Types 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.
- root
Storages List<Property Map> The root volume. See supported fields below.
- user
Storages List<Property Map> The user storage. See supported fields below.
- bundle
Id 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.