amazonka-workspaces-1.6.1: Amazon WorkSpaces SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.WorkSpaces.DescribeWorkspaces

Contents

Description

Describes the specified WorkSpaces.

You can filter the results using bundle ID, directory ID, or owner, but you can specify only one filter at a time.

This operation returns paginated results.

Synopsis

Creating a Request

describeWorkspaces :: DescribeWorkspaces Source #

Creates a value of DescribeWorkspaces with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dwDirectoryId - The ID of the directory. In addition, you can optionally specify a specific directory user (see UserName ). This parameter cannot be combined with any other filter.
  • dwWorkspaceIds - The IDs of the WorkSpaces. This parameter cannot be combined with any other filter. Because the CreateWorkspaces operation is asynchronous, the identifier it returns is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information is returned.
  • dwUserName - The name of the directory user. You must specify this parameter with DirectoryId .
  • dwBundleId - The ID of the bundle. All WorkSpaces that are created from this bundle are retrieved. This parameter cannot be combined with any other filter.
  • dwNextToken - The token for the next set of results. (You received this token from a previous call.)
  • dwLimit - The maximum number of items to return.

data DescribeWorkspaces Source #

See: describeWorkspaces smart constructor.

Instances
Eq DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

Data DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeWorkspaces -> c DescribeWorkspaces #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeWorkspaces #

toConstr :: DescribeWorkspaces -> Constr #

dataTypeOf :: DescribeWorkspaces -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeWorkspaces) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeWorkspaces) #

gmapT :: (forall b. Data b => b -> b) -> DescribeWorkspaces -> DescribeWorkspaces #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeWorkspaces -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeWorkspaces -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeWorkspaces -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeWorkspaces -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeWorkspaces -> m DescribeWorkspaces #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeWorkspaces -> m DescribeWorkspaces #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeWorkspaces -> m DescribeWorkspaces #

Read DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

Show DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

Generic DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

Associated Types

type Rep DescribeWorkspaces :: Type -> Type #

Hashable DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

ToJSON DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

AWSPager DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

AWSRequest DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

Associated Types

type Rs DescribeWorkspaces :: Type #

ToHeaders DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

ToPath DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

ToQuery DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

NFData DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

Methods

rnf :: DescribeWorkspaces -> () #

type Rep DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

type Rep DescribeWorkspaces = D1 (MetaData "DescribeWorkspaces" "Network.AWS.WorkSpaces.DescribeWorkspaces" "amazonka-workspaces-1.6.1-5Hv8h1qwyt66H9W1muWLiX" False) (C1 (MetaCons "DescribeWorkspaces'" PrefixI True) ((S1 (MetaSel (Just "_dwDirectoryId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dwWorkspaceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (List1 Text))) :*: S1 (MetaSel (Just "_dwUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_dwBundleId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dwNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dwLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))))))
type Rs DescribeWorkspaces Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

Request Lenses

dwDirectoryId :: Lens' DescribeWorkspaces (Maybe Text) Source #

The ID of the directory. In addition, you can optionally specify a specific directory user (see UserName ). This parameter cannot be combined with any other filter.

dwWorkspaceIds :: Lens' DescribeWorkspaces (Maybe (NonEmpty Text)) Source #

The IDs of the WorkSpaces. This parameter cannot be combined with any other filter. Because the CreateWorkspaces operation is asynchronous, the identifier it returns is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information is returned.

dwUserName :: Lens' DescribeWorkspaces (Maybe Text) Source #

The name of the directory user. You must specify this parameter with DirectoryId .

dwBundleId :: Lens' DescribeWorkspaces (Maybe Text) Source #

The ID of the bundle. All WorkSpaces that are created from this bundle are retrieved. This parameter cannot be combined with any other filter.

dwNextToken :: Lens' DescribeWorkspaces (Maybe Text) Source #

The token for the next set of results. (You received this token from a previous call.)

dwLimit :: Lens' DescribeWorkspaces (Maybe Natural) Source #

The maximum number of items to return.

Destructuring the Response

describeWorkspacesResponse Source #

Creates a value of DescribeWorkspacesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dwrsNextToken - The token to use to retrieve the next set of results, or null if there are no more results available. This token is valid for one day and must be used within that time frame.
  • dwrsWorkspaces - Information about the WorkSpaces. Because CreateWorkspaces is an asynchronous operation, some of the returned information could be incomplete.
  • dwrsResponseStatus - -- | The response status code.

data DescribeWorkspacesResponse Source #

See: describeWorkspacesResponse smart constructor.

Instances
Eq DescribeWorkspacesResponse Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

Data DescribeWorkspacesResponse Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeWorkspacesResponse -> c DescribeWorkspacesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeWorkspacesResponse #

toConstr :: DescribeWorkspacesResponse -> Constr #

dataTypeOf :: DescribeWorkspacesResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeWorkspacesResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeWorkspacesResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeWorkspacesResponse -> DescribeWorkspacesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeWorkspacesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeWorkspacesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeWorkspacesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeWorkspacesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeWorkspacesResponse -> m DescribeWorkspacesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeWorkspacesResponse -> m DescribeWorkspacesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeWorkspacesResponse -> m DescribeWorkspacesResponse #

Read DescribeWorkspacesResponse Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

Show DescribeWorkspacesResponse Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

Generic DescribeWorkspacesResponse Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

Associated Types

type Rep DescribeWorkspacesResponse :: Type -> Type #

NFData DescribeWorkspacesResponse Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

type Rep DescribeWorkspacesResponse Source # 
Instance details

Defined in Network.AWS.WorkSpaces.DescribeWorkspaces

type Rep DescribeWorkspacesResponse = D1 (MetaData "DescribeWorkspacesResponse" "Network.AWS.WorkSpaces.DescribeWorkspaces" "amazonka-workspaces-1.6.1-5Hv8h1qwyt66H9W1muWLiX" False) (C1 (MetaCons "DescribeWorkspacesResponse'" PrefixI True) (S1 (MetaSel (Just "_dwrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dwrsWorkspaces") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Workspace])) :*: S1 (MetaSel (Just "_dwrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dwrsNextToken :: Lens' DescribeWorkspacesResponse (Maybe Text) Source #

The token to use to retrieve the next set of results, or null if there are no more results available. This token is valid for one day and must be used within that time frame.

dwrsWorkspaces :: Lens' DescribeWorkspacesResponse [Workspace] Source #

Information about the WorkSpaces. Because CreateWorkspaces is an asynchronous operation, some of the returned information could be incomplete.