Returns the host ARN and details such as status, provider type, endpoint, and, if applicable, the VPC configuration.
Parameters:
-
host_arn
(HostArn)
–
The Amazon Resource Name (ARN) of the requested host.
Raises:
Source code in docs_src/capo_codestar_connections/_services/code_starconnections.py
| def get_host(
self,
host_arn: "capo_codestar_connections.types.host_arn.HostArn",
*,
config_overrides: Optional[CodeStarconnectionsClientConfig] = None,
) -> "capo_codestar_connections.types.get_host_output.GetHostOutput":
"""<p>Returns the host ARN and details such as status, provider type, endpoint, and, if applicable, the VPC configuration.</p>
Args:
host_arn: <p>The Amazon Resource Name (ARN) of the requested host.</p>
Raises:
capo_codestar_connections.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource not found. Verify the connection resource ARN and try again.</p>
capo_codestar_connections.errors.resource_unavailable_exception.ResourceUnavailableException: <p>Resource not found. Verify the ARN for the host resource and try again.</p>
capo_codestar_connections.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_codestar_connections.types.get_host_input.GetHostInput]",
) -> OperationResponse[
"capo_codestar_connections.types.get_host_output.GetHostOutput"
]:
import capo_codestar_connections._operations.code_star_connections_20191201.get_host
output, http_response = (
capo_codestar_connections._operations.code_star_connections_20191201.get_host.get_host(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetHost")
)
input_: capo_codestar_connections.types.get_host_input.GetHostInput = {
"host_arn": host_arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|