/// <summary> /// Obtains information about the WorkSpace bundles that are available to your account /// in the specified region. /// /// /// <para> /// You can filter the results with either the <code>BundleIds</code> parameter, or the /// <code>Owner</code> parameter, but not both. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> request /// and response parameters. If more results are available, the <code>NextToken</code> /// response member contains a token that you pass in the next call to this operation /// to retrieve the next set of items. /// </para> /// </summary> /// <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 DescribeWorkspaceBundles service method, as returned by WorkSpaces.</returns> /// <exception cref="Amazon.WorkSpaces.Model.InvalidParameterValuesException"> /// One or more parameter values are not valid. /// </exception> public Task <DescribeWorkspaceBundlesResponse> DescribeWorkspaceBundlesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DescribeWorkspaceBundlesRequest(); return(DescribeWorkspaceBundlesAsync(request, cancellationToken)); }
/// <summary> /// Obtains information about the WorkSpace bundles that are available to your account /// in the specified region. /// /// /// <para> /// You can filter the results with either the <code>BundleIds</code> parameter, or the /// <code>Owner</code> parameter, but not both. /// </para> /// /// <para> /// This operation supports pagination with the use of the <code>NextToken</code> request /// and response parameters. If more results are available, the <code>NextToken</code> /// response member contains a token that you pass in the next call to this operation /// to retrieve the next set of items. /// </para> /// </summary> /// /// <returns>The response from the DescribeWorkspaceBundles service method, as returned by WorkSpaces.</returns> /// <exception cref="Amazon.WorkSpaces.Model.InvalidParameterValuesException"> /// One or more parameter values are not valid. /// </exception> public DescribeWorkspaceBundlesResponse DescribeWorkspaceBundles() { var request = new DescribeWorkspaceBundlesRequest(); return(DescribeWorkspaceBundles(request)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeWorkspaceBundles operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeWorkspaceBundles 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/workspaces-2015-04-08/DescribeWorkspaceBundles">REST API Reference for DescribeWorkspaceBundles Operation</seealso> public virtual Task <DescribeWorkspaceBundlesResponse> DescribeWorkspaceBundlesAsync(DescribeWorkspaceBundlesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeWorkspaceBundlesRequestMarshaller(); var unmarshaller = DescribeWorkspaceBundlesResponseUnmarshaller.Instance; return(InvokeAsync <DescribeWorkspaceBundlesRequest, DescribeWorkspaceBundlesResponse>(request, marshaller, unmarshaller, cancellationToken)); }