Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns the host ARN and details such as status, provider type, endpoint, and, if applicable, the VPC configuration.
Synopsis
- data GetHost = GetHost' {}
- newGetHost :: Text -> GetHost
- getHost_hostArn :: Lens' GetHost Text
- data GetHostResponse = GetHostResponse' {}
- newGetHostResponse :: Int -> GetHostResponse
- getHostResponse_status :: Lens' GetHostResponse (Maybe Text)
- getHostResponse_providerEndpoint :: Lens' GetHostResponse (Maybe Text)
- getHostResponse_providerType :: Lens' GetHostResponse (Maybe ProviderType)
- getHostResponse_name :: Lens' GetHostResponse (Maybe Text)
- getHostResponse_vpcConfiguration :: Lens' GetHostResponse (Maybe VpcConfiguration)
- getHostResponse_httpStatus :: Lens' GetHostResponse Int
Creating a Request
See: newGetHost
smart constructor.
Instances
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
Destructuring the Response
data GetHostResponse Source #
See: newGetHostResponse
smart constructor.
GetHostResponse' | |
|
Instances
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.