@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
141 lines (140 loc) • 3.83 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Retrieve information about an AWS WorkSpaces bundle.
*
* ## Example Usage
*
* ### By ID
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.workspaces.getBundle({
* bundleId: "wsb-b0s22j3d7",
* });
* ```
*
* ### By Owner & Name
*
* ```typescript
* 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",
* });
* ```
*/
export declare function getBundle(args?: GetBundleArgs, opts?: pulumi.InvokeOptions): Promise<GetBundleResult>;
/**
* A collection of arguments for invoking getBundle.
*/
export interface GetBundleArgs {
/**
* ID of the bundle.
*/
bundleId?: string;
/**
* Name of the bundle. You cannot combine this parameter with `bundleId`.
*/
name?: string;
/**
* Owner of the bundles. You have to leave it blank for own bundles. You cannot combine this parameter with `bundleId`.
*/
owner?: string;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: string;
}
/**
* A collection of values returned by getBundle.
*/
export interface GetBundleResult {
/**
* The ID of the bundle.
*/
readonly bundleId?: string;
/**
* The compute type. See supported fields below.
*/
readonly computeTypes: outputs.workspaces.GetBundleComputeType[];
/**
* The description of the bundle.
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Name of the compute type.
*/
readonly name?: string;
/**
* The owner of the bundle.
*/
readonly owner?: string;
readonly region: string;
/**
* The root volume. See supported fields below.
*/
readonly rootStorages: outputs.workspaces.GetBundleRootStorage[];
/**
* The user storage. See supported fields below.
*/
readonly userStorages: outputs.workspaces.GetBundleUserStorage[];
}
/**
* Retrieve information about an AWS WorkSpaces bundle.
*
* ## Example Usage
*
* ### By ID
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.workspaces.getBundle({
* bundleId: "wsb-b0s22j3d7",
* });
* ```
*
* ### By Owner & Name
*
* ```typescript
* 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",
* });
* ```
*/
export declare function getBundleOutput(args?: GetBundleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBundleResult>;
/**
* A collection of arguments for invoking getBundle.
*/
export interface GetBundleOutputArgs {
/**
* ID of the bundle.
*/
bundleId?: pulumi.Input<string>;
/**
* Name of the bundle. You cannot combine this parameter with `bundleId`.
*/
name?: pulumi.Input<string>;
/**
* Owner of the bundles. You have to leave it blank for own bundles. You cannot combine this parameter with `bundleId`.
*/
owner?: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
}