예제 #1
0
        internal AssociateDiscoveredResourceResponse AssociateDiscoveredResource(AssociateDiscoveredResourceRequest request)
        {
            var marshaller   = new AssociateDiscoveredResourceRequestMarshaller();
            var unmarshaller = AssociateDiscoveredResourceResponseUnmarshaller.Instance;

            return(Invoke <AssociateDiscoveredResourceRequest, AssociateDiscoveredResourceResponse>(request, marshaller, unmarshaller));
        }
예제 #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the AssociateDiscoveredResource operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the AssociateDiscoveredResource operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/AssociateDiscoveredResource">REST API Reference for AssociateDiscoveredResource Operation</seealso>
        public Task <AssociateDiscoveredResourceResponse> AssociateDiscoveredResourceAsync(AssociateDiscoveredResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new AssociateDiscoveredResourceRequestMarshaller();
            var unmarshaller = AssociateDiscoveredResourceResponseUnmarshaller.Instance;

            return(InvokeAsync <AssociateDiscoveredResourceRequest, AssociateDiscoveredResourceResponse>(request, marshaller,
                                                                                                         unmarshaller, cancellationToken));
        }
        /// <summary>
        /// Initiates the asynchronous execution of the AssociateDiscoveredResource operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the AssociateDiscoveredResource operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/AssociateDiscoveredResource">REST API Reference for AssociateDiscoveredResource Operation</seealso>
        public virtual Task <AssociateDiscoveredResourceResponse> AssociateDiscoveredResourceAsync(AssociateDiscoveredResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = AssociateDiscoveredResourceRequestMarshaller.Instance;
            options.ResponseUnmarshaller = AssociateDiscoveredResourceResponseUnmarshaller.Instance;

            return(InvokeAsync <AssociateDiscoveredResourceResponse>(request, options, cancellationToken));
        }
        internal virtual AssociateDiscoveredResourceResponse AssociateDiscoveredResource(AssociateDiscoveredResourceRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = AssociateDiscoveredResourceRequestMarshaller.Instance;
            options.ResponseUnmarshaller = AssociateDiscoveredResourceResponseUnmarshaller.Instance;

            return(Invoke <AssociateDiscoveredResourceResponse>(request, options));
        }