1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. workspacesinstances
  6. getWorkspaceInstance

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Resource Type definition for AWS::WorkspacesInstances::WorkspaceInstance

    Using getWorkspaceInstance

    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 getWorkspaceInstance(args: GetWorkspaceInstanceArgs, opts?: InvokeOptions): Promise<GetWorkspaceInstanceResult>
    function getWorkspaceInstanceOutput(args: GetWorkspaceInstanceOutputArgs, opts?: InvokeOutputOptions): Output<GetWorkspaceInstanceResult>
    def get_workspace_instance(workspace_instance_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetWorkspaceInstanceResult
    def get_workspace_instance_output(workspace_instance_id: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOutputOptions] = None) -> Output[GetWorkspaceInstanceResult]
    func LookupWorkspaceInstance(ctx *Context, args *LookupWorkspaceInstanceArgs, opts ...InvokeOption) (*LookupWorkspaceInstanceResult, error)
    func LookupWorkspaceInstanceOutput(ctx *Context, args *LookupWorkspaceInstanceOutputArgs, opts ...InvokeOption) LookupWorkspaceInstanceResultOutput

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

    public static class GetWorkspaceInstance 
    {
        public static Task<GetWorkspaceInstanceResult> InvokeAsync(GetWorkspaceInstanceArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkspaceInstanceResult> Invoke(GetWorkspaceInstanceInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkspaceInstanceResult> Invoke(GetWorkspaceInstanceInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetWorkspaceInstanceResult> getWorkspaceInstance(GetWorkspaceInstanceArgs args, InvokeOptions options)
    public static Output<GetWorkspaceInstanceResult> getWorkspaceInstance(GetWorkspaceInstanceArgs args, InvokeOptions options)
    public static Output<GetWorkspaceInstanceResult> getWorkspaceInstance(GetWorkspaceInstanceArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:workspacesinstances:getWorkspaceInstance
      arguments:
        # arguments dictionary
    data "aws-native_workspacesinstances_get_workspace_instance" "name" {
        # arguments
    }

    The following arguments are supported:

    WorkspaceInstanceId string
    Unique identifier for the workspace instance
    WorkspaceInstanceId string
    Unique identifier for the workspace instance
    workspace_instance_id string
    Unique identifier for the workspace instance
    workspaceInstanceId String
    Unique identifier for the workspace instance
    workspaceInstanceId string
    Unique identifier for the workspace instance
    workspace_instance_id str
    Unique identifier for the workspace instance
    workspaceInstanceId String
    Unique identifier for the workspace instance

    getWorkspaceInstance Result

    The following output properties are available:

    Ec2ManagedInstance WorkspaceInstanceEc2ManagedInstance
    ProvisionState WorkspaceInstanceProvisionState
    The current state of the workspace instance
    Tags Tag
    WorkspaceInstanceId string
    Unique identifier for the workspace instance
    ec2ManagedInstance WorkspaceInstanceEc2ManagedInstance
    provisionState WorkspaceInstanceProvisionState
    The current state of the workspace instance
    tags List<Tag>
    workspaceInstanceId String
    Unique identifier for the workspace instance
    ec2ManagedInstance WorkspaceInstanceEc2ManagedInstance
    provisionState WorkspaceInstanceProvisionState
    The current state of the workspace instance
    tags Tag[]
    workspaceInstanceId string
    Unique identifier for the workspace instance

    Supporting Types

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    WorkspaceInstanceEc2ManagedInstance

    InstanceId string
    InstanceId string
    instanceId String
    instanceId string
    instanceId String

    WorkspaceInstanceProvisionState

    NameValue
    AllocatingALLOCATING
    AllocatedALLOCATED
    DeallocatingDEALLOCATING
    DeallocatedDEALLOCATED
    ErrorAllocatingERROR_ALLOCATING
    ErrorDeallocatingERROR_DEALLOCATING
    NameValue
    WorkspaceInstanceProvisionStateAllocatingALLOCATING
    WorkspaceInstanceProvisionStateAllocatedALLOCATED
    WorkspaceInstanceProvisionStateDeallocatingDEALLOCATING
    WorkspaceInstanceProvisionStateDeallocatedDEALLOCATED
    WorkspaceInstanceProvisionStateErrorAllocatingERROR_ALLOCATING
    WorkspaceInstanceProvisionStateErrorDeallocatingERROR_DEALLOCATING
    Value
    ALLOCATING
    ALLOCATED
    DEALLOCATING
    DEALLOCATED
    ERROR_ALLOCATING
    ERROR_DEALLOCATING
    NameValue
    AllocatingALLOCATING
    AllocatedALLOCATED
    DeallocatingDEALLOCATING
    DeallocatedDEALLOCATED
    ErrorAllocatingERROR_ALLOCATING
    ErrorDeallocatingERROR_DEALLOCATING
    NameValue
    AllocatingALLOCATING
    AllocatedALLOCATED
    DeallocatingDEALLOCATING
    DeallocatedDEALLOCATED
    ErrorAllocatingERROR_ALLOCATING
    ErrorDeallocatingERROR_DEALLOCATING
    NameValue
    ALLOCATINGALLOCATING
    ALLOCATEDALLOCATED
    DEALLOCATINGDEALLOCATING
    DEALLOCATEDDEALLOCATED
    ERROR_ALLOCATINGERROR_ALLOCATING
    ERROR_DEALLOCATINGERROR_DEALLOCATING
    Value
    ALLOCATING
    ALLOCATED
    DEALLOCATING
    DEALLOCATED
    ERROR_ALLOCATING
    ERROR_DEALLOCATING

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial