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

Amazonka.CodeStarConnections.ListHosts

Description

Lists the hosts associated with your account.

Synopsis

Creating a Request

data ListHosts Source #

See: newListHosts smart constructor.

Constructors

ListHosts' 

Fields

  • nextToken :: Maybe Text

    The token that was returned from the previous ListHosts call, which can be used to return the next set of hosts in the list.

  • maxResults :: Maybe Natural

    The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value.

Instances

Instances details
Eq ListHosts Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

Read ListHosts Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

Show ListHosts Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

Generic ListHosts Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

Associated Types

type Rep ListHosts :: Type -> Type #

NFData ListHosts Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

Methods

rnf :: ListHosts -> () #

Hashable ListHosts Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

ToJSON ListHosts Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

AWSRequest ListHosts Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

Associated Types

type AWSResponse ListHosts #

ToHeaders ListHosts Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

Methods

toHeaders :: ListHosts -> [Header] #

ToPath ListHosts Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

ToQuery ListHosts Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

type Rep ListHosts Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

type Rep ListHosts = D1 ('MetaData "ListHosts" "Amazonka.CodeStarConnections.ListHosts" "libZSservicesZSamazonka-codestar-connectionsZSamazonka-codestar-connections" 'False) (C1 ('MetaCons "ListHosts'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))
type AWSResponse ListHosts Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

newListHosts :: ListHosts Source #

Create a value of ListHosts 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:nextToken:ListHosts', listHosts_nextToken - The token that was returned from the previous ListHosts call, which can be used to return the next set of hosts in the list.

$sel:maxResults:ListHosts', listHosts_maxResults - The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value.

Request Lenses

listHosts_nextToken :: Lens' ListHosts (Maybe Text) Source #

The token that was returned from the previous ListHosts call, which can be used to return the next set of hosts in the list.

listHosts_maxResults :: Lens' ListHosts (Maybe Natural) Source #

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value.

Destructuring the Response

data ListHostsResponse Source #

See: newListHostsResponse smart constructor.

Constructors

ListHostsResponse' 

Fields

  • hosts :: Maybe [Host]

    A list of hosts and the details for each host, such as status, endpoint, and provider type.

  • nextToken :: Maybe Text

    A token that can be used in the next ListHosts call. To view all items in the list, continue to call this operation with each subsequent token until no more nextToken values are returned.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListHostsResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

Read ListHostsResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

Show ListHostsResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

Generic ListHostsResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

Associated Types

type Rep ListHostsResponse :: Type -> Type #

NFData ListHostsResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

Methods

rnf :: ListHostsResponse -> () #

type Rep ListHostsResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.ListHosts

type Rep ListHostsResponse = D1 ('MetaData "ListHostsResponse" "Amazonka.CodeStarConnections.ListHosts" "libZSservicesZSamazonka-codestar-connectionsZSamazonka-codestar-connections" 'False) (C1 ('MetaCons "ListHostsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "hosts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Host])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListHostsResponse Source #

Create a value of ListHostsResponse 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:hosts:ListHostsResponse', listHostsResponse_hosts - A list of hosts and the details for each host, such as status, endpoint, and provider type.

$sel:nextToken:ListHosts', listHostsResponse_nextToken - A token that can be used in the next ListHosts call. To view all items in the list, continue to call this operation with each subsequent token until no more nextToken values are returned.

$sel:httpStatus:ListHostsResponse', listHostsResponse_httpStatus - The response's http status code.

Response Lenses

listHostsResponse_hosts :: Lens' ListHostsResponse (Maybe [Host]) Source #

A list of hosts and the details for each host, such as status, endpoint, and provider type.

listHostsResponse_nextToken :: Lens' ListHostsResponse (Maybe Text) Source #

A token that can be used in the next ListHosts call. To view all items in the list, continue to call this operation with each subsequent token until no more nextToken values are returned.

listHostsResponse_httpStatus :: Lens' ListHostsResponse Int Source #

The response's http status code.