示例#1
0
        internal virtual GetHostResponse GetHost(GetHostRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetHostRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetHostResponseUnmarshaller.Instance;

            return(Invoke <GetHostResponse>(request, options));
        }
示例#2
0
        /// <summary>
        /// Returns the host ARN and details such as status, provider type, endpoint, and, if
        /// applicable, the VPC configuration.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the GetHost service method.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        ///
        /// <returns>The response from the GetHost service method, as returned by CodeStarconnections.</returns>
        /// <exception cref="Amazon.CodeStarconnections.Model.ResourceNotFoundException">
        /// Resource not found. Verify the connection resource ARN and try again.
        /// </exception>
        /// <exception cref="Amazon.CodeStarconnections.Model.ResourceUnavailableException">
        /// Resource not found. Verify the ARN for the host resource and try again.
        /// </exception>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetHost">REST API Reference for GetHost Operation</seealso>
        public virtual Task <GetHostResponse> GetHostAsync(GetHostRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetHostRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetHostResponseUnmarshaller.Instance;

            return(InvokeAsync <GetHostResponse>(request, options, cancellationToken));
        }