/// <summary> /// Paginator for DescribeTags operation ///</summary> public IDescribeTagsPaginator DescribeTags(DescribeTagsRequest request) { return(new DescribeTagsPaginator(this.client, request)); }
internal DescribeTagsResponse DescribeTags(DescribeTagsRequest request) { var marshaller = new DescribeTagsRequestMarshaller(); var unmarshaller = DescribeTagsResponseUnmarshaller.Instance; return Invoke<DescribeTagsRequest,DescribeTagsResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DescribeTags operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTags 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> public Task<DescribeTagsResponse> DescribeTagsAsync(DescribeTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeTagsRequestMarshaller(); var unmarshaller = DescribeTagsResponseUnmarshaller.Instance; return InvokeAsync<DescribeTagsRequest,DescribeTagsResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DescribeTags operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTags operation on AmazonElasticFileSystemClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTags /// operation.</returns> public IAsyncResult BeginDescribeTags(DescribeTagsRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeTagsRequestMarshaller(); var unmarshaller = DescribeTagsResponseUnmarshaller.Instance; return BeginInvoke<DescribeTagsRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Returns the tags associated with a file system. The order of tags returned in the /// response of one <code>DescribeTags</code> call, and the order of tags returned across /// the responses of a multi-call iteration (when using pagination), is unspecified. /// /// /// <para> /// This operation requires permission for the <code>elasticfilesystem:DescribeTags</code> /// action. /// </para> /// </summary> /// <param name="fileSystemId">The ID of the file system whose tag set you want to retrieve.</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 DescribeTags service method, as returned by ElasticFileSystem.</returns> /// <exception cref="Amazon.ElasticFileSystem.Model.BadRequestException"> /// Returned if the request is malformed or contains an error such as an invalid parameter /// value or a missing required parameter. /// </exception> /// <exception cref="Amazon.ElasticFileSystem.Model.FileSystemNotFoundException"> /// Returned if the specified <code>FileSystemId</code> does not exist in the requester's /// AWS account. /// </exception> /// <exception cref="Amazon.ElasticFileSystem.Model.InternalServerErrorException"> /// Returned if an error occurred on the server side. /// </exception> public Task<DescribeTagsResponse> DescribeTagsAsync(string fileSystemId, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DescribeTagsRequest(); request.FileSystemId = fileSystemId; return DescribeTagsAsync(request, cancellationToken); }
/// <summary> /// Returns the tags associated with a file system. The order of tags returned in the /// response of one <code>DescribeTags</code> call, and the order of tags returned across /// the responses of a multi-call iteration (when using pagination), is unspecified. /// /// /// <para> /// This operation requires permission for the <code>elasticfilesystem:DescribeTags</code> /// action. /// </para> /// </summary> /// <param name="fileSystemId">The ID of the file system whose tag set you want to retrieve.</param> /// /// <returns>The response from the DescribeTags service method, as returned by ElasticFileSystem.</returns> /// <exception cref="Amazon.ElasticFileSystem.Model.BadRequestException"> /// Returned if the request is malformed or contains an error such as an invalid parameter /// value or a missing required parameter. /// </exception> /// <exception cref="Amazon.ElasticFileSystem.Model.FileSystemNotFoundException"> /// Returned if the specified <code>FileSystemId</code> does not exist in the requester's /// AWS account. /// </exception> /// <exception cref="Amazon.ElasticFileSystem.Model.InternalServerErrorException"> /// Returned if an error occurred on the server side. /// </exception> public DescribeTagsResponse DescribeTags(string fileSystemId) { var request = new DescribeTagsRequest(); request.FileSystemId = fileSystemId; return DescribeTags(request); }
private Amazon.ElasticFileSystem.Model.DescribeTagsResponse CallAWSServiceOperation(IAmazonElasticFileSystem client, Amazon.ElasticFileSystem.Model.DescribeTagsRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Elastic File System", "DescribeTags"); try { #if DESKTOP return(client.DescribeTags(request)); #elif CORECLR return(client.DescribeTagsAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }
public object Execute(ExecutorContext context) { var cmdletContext = context as CmdletContext; var useParameterSelect = this.Select.StartsWith("^") || this.PassThru.IsPresent; // create request and set iteration invariants var request = new Amazon.ElasticFileSystem.Model.DescribeTagsRequest(); if (cmdletContext.FileSystemId != null) { request.FileSystemId = cmdletContext.FileSystemId; } // Initialize loop variants and commence piping System.String _nextToken = null; int? _emitLimit = null; int _retrievedSoFar = 0; if (AutoIterationHelpers.HasValue(cmdletContext.Marker)) { _nextToken = cmdletContext.Marker; } if (AutoIterationHelpers.HasValue(cmdletContext.MaxItem)) { _emitLimit = cmdletContext.MaxItem; } var _userControllingPaging = this.NoAutoIteration.IsPresent || ParameterWasBound(nameof(this.Marker)); var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint); do { request.Marker = _nextToken; if (_emitLimit.HasValue) { request.MaxItems = AutoIterationHelpers.ConvertEmitLimitToInt32(_emitLimit.Value); } CmdletOutput output; try { var response = CallAWSServiceOperation(client, request); object pipelineOutput = null; if (!useParameterSelect) { pipelineOutput = cmdletContext.Select(response, this); } output = new CmdletOutput { PipelineOutput = pipelineOutput, ServiceResponse = response }; int _receivedThisCall = response.Tags.Count; _nextToken = response.NextMarker; _retrievedSoFar += _receivedThisCall; if (_emitLimit.HasValue) { _emitLimit -= _receivedThisCall; } } catch (Exception e) { if (_retrievedSoFar == 0 || !_emitLimit.HasValue) { output = new CmdletOutput { ErrorResponse = e }; } else { break; } } ProcessOutput(output); } while (!_userControllingPaging && AutoIterationHelpers.HasValue(_nextToken) && (!_emitLimit.HasValue || _emitLimit.Value >= 1)); if (useParameterSelect) { WriteObject(cmdletContext.Select(null, this)); } return(null); }
public object Execute(ExecutorContext context) { var cmdletContext = context as CmdletContext; #pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute var useParameterSelect = this.Select.StartsWith("^") || this.PassThru.IsPresent; #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute // create request and set iteration invariants var request = new Amazon.ElasticFileSystem.Model.DescribeTagsRequest(); if (cmdletContext.FileSystemId != null) { request.FileSystemId = cmdletContext.FileSystemId; } if (cmdletContext.MaxItem != null) { request.MaxItems = AutoIterationHelpers.ConvertEmitLimitToServiceTypeInt32(cmdletContext.MaxItem.Value); } // Initialize loop variant and commence piping var _nextToken = cmdletContext.Marker; var _userControllingPaging = this.NoAutoIteration.IsPresent || ParameterWasBound(nameof(this.Marker)); var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint); do { request.Marker = _nextToken; CmdletOutput output; try { var response = CallAWSServiceOperation(client, request); object pipelineOutput = null; if (!useParameterSelect) { pipelineOutput = cmdletContext.Select(response, this); } output = new CmdletOutput { PipelineOutput = pipelineOutput, ServiceResponse = response }; _nextToken = response.NextMarker; } catch (Exception e) { output = new CmdletOutput { ErrorResponse = e }; } ProcessOutput(output); } while (!_userControllingPaging && AutoIterationHelpers.HasValue(_nextToken)); if (useParameterSelect) { WriteObject(cmdletContext.Select(null, this)); } return(null); }
internal DescribeTagsPaginator(IAmazonElasticFileSystem client, DescribeTagsRequest request) { this._client = client; this._request = request; }