Exemplo n.º 1
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetResourceShareAssociations operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the GetResourceShareAssociations 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/ram-2018-01-04/GetResourceShareAssociations">REST API Reference for GetResourceShareAssociations Operation</seealso>
        public virtual Task <GetResourceShareAssociationsResponse> GetResourceShareAssociationsAsync(GetResourceShareAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = GetResourceShareAssociationsRequestMarshaller.Instance;
            var unmarshaller = GetResourceShareAssociationsResponseUnmarshaller.Instance;

            return(InvokeAsync <GetResourceShareAssociationsRequest, GetResourceShareAssociationsResponse>(request, marshaller,
                                                                                                           unmarshaller, cancellationToken));
        }
Exemplo n.º 2
0
        internal virtual GetResourceShareAssociationsResponse GetResourceShareAssociations(GetResourceShareAssociationsRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = GetResourceShareAssociationsRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetResourceShareAssociationsResponseUnmarshaller.Instance;

            return(Invoke <GetResourceShareAssociationsResponse>(request, options));
        }
Exemplo n.º 3
0
        internal virtual GetResourceShareAssociationsResponse GetResourceShareAssociations(GetResourceShareAssociationsRequest request)
        {
            var marshaller   = GetResourceShareAssociationsRequestMarshaller.Instance;
            var unmarshaller = GetResourceShareAssociationsResponseUnmarshaller.Instance;

            return(Invoke <GetResourceShareAssociationsRequest, GetResourceShareAssociationsResponse>(request, marshaller, unmarshaller));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetResourceShareAssociations operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the GetResourceShareAssociations 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/ram-2018-01-04/GetResourceShareAssociations">REST API Reference for GetResourceShareAssociations Operation</seealso>
        public virtual Task<GetResourceShareAssociationsResponse> GetResourceShareAssociationsAsync(GetResourceShareAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();
            options.RequestMarshaller = GetResourceShareAssociationsRequestMarshaller.Instance;
            options.ResponseUnmarshaller = GetResourceShareAssociationsResponseUnmarshaller.Instance;

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