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.GetHost

Description

Returns the host ARN and details such as status, provider type, endpoint, and, if applicable, the VPC configuration.

Synopsis

Creating a Request

data GetHost Source #

See: newGetHost smart constructor.

Constructors

GetHost' 

Fields

  • hostArn :: Text

    The Amazon Resource Name (ARN) of the requested host.

Instances

Instances details
Eq GetHost Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Methods

(==) :: GetHost -> GetHost -> Bool #

(/=) :: GetHost -> GetHost -> Bool #

Read GetHost Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Show GetHost Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Generic GetHost Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Associated Types

type Rep GetHost :: Type -> Type #

Methods

from :: GetHost -> Rep GetHost x #

to :: Rep GetHost x -> GetHost #

NFData GetHost Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Methods

rnf :: GetHost -> () #

Hashable GetHost Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Methods

hashWithSalt :: Int -> GetHost -> Int #

hash :: GetHost -> Int #

ToJSON GetHost Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

AWSRequest GetHost Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Associated Types

type AWSResponse GetHost #

ToHeaders GetHost Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Methods

toHeaders :: GetHost -> [Header] #

ToPath GetHost Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Methods

toPath :: GetHost -> ByteString #

ToQuery GetHost Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

type Rep GetHost Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

type Rep GetHost = D1 ('MetaData "GetHost" "Amazonka.CodeStarConnections.GetHost" "libZSservicesZSamazonka-codestar-connectionsZSamazonka-codestar-connections" 'False) (C1 ('MetaCons "GetHost'" 'PrefixI 'True) (S1 ('MetaSel ('Just "hostArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetHost Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

newGetHost Source #

Create a value of GetHost 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:hostArn:GetHost', getHost_hostArn - The Amazon Resource Name (ARN) of the requested host.

Request Lenses

getHost_hostArn :: Lens' GetHost Text Source #

The Amazon Resource Name (ARN) of the requested host.

Destructuring the Response

data GetHostResponse Source #

See: newGetHostResponse smart constructor.

Constructors

GetHostResponse' 

Fields

Instances

Instances details
Eq GetHostResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Read GetHostResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Show GetHostResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Generic GetHostResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Associated Types

type Rep GetHostResponse :: Type -> Type #

NFData GetHostResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

Methods

rnf :: GetHostResponse -> () #

type Rep GetHostResponse Source # 
Instance details

Defined in Amazonka.CodeStarConnections.GetHost

type Rep GetHostResponse = D1 ('MetaData "GetHostResponse" "Amazonka.CodeStarConnections.GetHost" "libZSservicesZSamazonka-codestar-connectionsZSamazonka-codestar-connections" 'False) (C1 ('MetaCons "GetHostResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "providerEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "providerType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProviderType)))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "vpcConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcConfiguration)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetHostResponse Source #

Create a value of GetHostResponse 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:status:GetHostResponse', getHostResponse_status - The status of the requested host.

$sel:providerEndpoint:GetHostResponse', getHostResponse_providerEndpoint - The endpoint of the infrastructure represented by the requested host.

$sel:providerType:GetHostResponse', getHostResponse_providerType - The provider type of the requested host, such as GitHub Enterprise Server.

$sel:name:GetHostResponse', getHostResponse_name - The name of the requested host.

$sel:vpcConfiguration:GetHostResponse', getHostResponse_vpcConfiguration - The VPC configuration of the requested host.

$sel:httpStatus:GetHostResponse', getHostResponse_httpStatus - The response's http status code.

Response Lenses

getHostResponse_status :: Lens' GetHostResponse (Maybe Text) Source #

The status of the requested host.

getHostResponse_providerEndpoint :: Lens' GetHostResponse (Maybe Text) Source #

The endpoint of the infrastructure represented by the requested host.

getHostResponse_providerType :: Lens' GetHostResponse (Maybe ProviderType) Source #

The provider type of the requested host, such as GitHub Enterprise Server.

getHostResponse_name :: Lens' GetHostResponse (Maybe Text) Source #

The name of the requested host.

getHostResponse_vpcConfiguration :: Lens' GetHostResponse (Maybe VpcConfiguration) Source #

The VPC configuration of the requested host.

getHostResponse_httpStatus :: Lens' GetHostResponse Int Source #

The response's http status code.