amazonka-sagemaker-2.0: Amazon SageMaker Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SageMaker.ListSpaces

Description

Lists spaces.

This operation returns paginated results.

Synopsis

Creating a Request

data ListSpaces Source #

See: newListSpaces smart constructor.

Constructors

ListSpaces' 

Fields

Instances

Instances details
ToJSON ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

ToHeaders ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

Methods

toHeaders :: ListSpaces -> [Header] #

ToPath ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

ToQuery ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

AWSPager ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

AWSRequest ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

Associated Types

type AWSResponse ListSpaces #

Generic ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

Associated Types

type Rep ListSpaces :: Type -> Type #

Read ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

Show ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

NFData ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

Methods

rnf :: ListSpaces -> () #

Eq ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

Hashable ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

type AWSResponse ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

type Rep ListSpaces Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

type Rep ListSpaces = D1 ('MetaData "ListSpaces" "Amazonka.SageMaker.ListSpaces" "amazonka-sagemaker-2.0-9SyrKZ4KqhsL1qX9u3ILA3" 'False) (C1 ('MetaCons "ListSpaces'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "domainIdEquals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "sortBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SpaceSortKey)) :*: (S1 ('MetaSel ('Just "sortOrder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SortOrder)) :*: S1 ('MetaSel ('Just "spaceNameContains") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newListSpaces :: ListSpaces Source #

Create a value of ListSpaces with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:domainIdEquals:ListSpaces', listSpaces_domainIdEquals - A parameter to search for the Domain ID.

$sel:maxResults:ListSpaces', listSpaces_maxResults - Returns a list up to a specified limit.

ListSpaces, listSpaces_nextToken - If the previous response was truncated, you will receive this token. Use it in your next request to receive the next set of results.

$sel:sortBy:ListSpaces', listSpaces_sortBy - The parameter by which to sort the results. The default is CreationTime.

$sel:sortOrder:ListSpaces', listSpaces_sortOrder - The sort order for the results. The default is Ascending.

$sel:spaceNameContains:ListSpaces', listSpaces_spaceNameContains - A parameter by which to filter the results.

Request Lenses

listSpaces_domainIdEquals :: Lens' ListSpaces (Maybe Text) Source #

A parameter to search for the Domain ID.

listSpaces_maxResults :: Lens' ListSpaces (Maybe Natural) Source #

Returns a list up to a specified limit.

listSpaces_nextToken :: Lens' ListSpaces (Maybe Text) Source #

If the previous response was truncated, you will receive this token. Use it in your next request to receive the next set of results.

listSpaces_sortBy :: Lens' ListSpaces (Maybe SpaceSortKey) Source #

The parameter by which to sort the results. The default is CreationTime.

listSpaces_sortOrder :: Lens' ListSpaces (Maybe SortOrder) Source #

The sort order for the results. The default is Ascending.

listSpaces_spaceNameContains :: Lens' ListSpaces (Maybe Text) Source #

A parameter by which to filter the results.

Destructuring the Response

data ListSpacesResponse Source #

See: newListSpacesResponse smart constructor.

Constructors

ListSpacesResponse' 

Fields

Instances

Instances details
Generic ListSpacesResponse Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

Associated Types

type Rep ListSpacesResponse :: Type -> Type #

Read ListSpacesResponse Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

Show ListSpacesResponse Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

NFData ListSpacesResponse Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

Methods

rnf :: ListSpacesResponse -> () #

Eq ListSpacesResponse Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

type Rep ListSpacesResponse Source # 
Instance details

Defined in Amazonka.SageMaker.ListSpaces

type Rep ListSpacesResponse = D1 ('MetaData "ListSpacesResponse" "Amazonka.SageMaker.ListSpaces" "amazonka-sagemaker-2.0-9SyrKZ4KqhsL1qX9u3ILA3" 'False) (C1 ('MetaCons "ListSpacesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "spaces") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SpaceDetails])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListSpacesResponse Source #

Create a value of ListSpacesResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

ListSpaces, listSpacesResponse_nextToken - If the previous response was truncated, you will receive this token. Use it in your next request to receive the next set of results.

$sel:spaces:ListSpacesResponse', listSpacesResponse_spaces - The list of spaces.

$sel:httpStatus:ListSpacesResponse', listSpacesResponse_httpStatus - The response's http status code.

Response Lenses

listSpacesResponse_nextToken :: Lens' ListSpacesResponse (Maybe Text) Source #

If the previous response was truncated, you will receive this token. Use it in your next request to receive the next set of results.