internal virtual DescribeAccountAttributesResponse DescribeAccountAttributes(DescribeAccountAttributesRequest request) { var marshaller = DescribeAccountAttributesRequestMarshaller.Instance; var unmarshaller = DescribeAccountAttributesResponseUnmarshaller.Instance; return(Invoke <DescribeAccountAttributesRequest, DescribeAccountAttributesResponse>(request, marshaller, unmarshaller)); }
internal virtual DescribeAccountAttributesResponse DescribeAccountAttributes(DescribeAccountAttributesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountAttributesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountAttributesResponseUnmarshaller.Instance; return(Invoke <DescribeAccountAttributesResponse>(request, options)); }
public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonEC2Config config = new AmazonEC2Config(); config.RegionEndpoint = region; ConfigureClient(config); AmazonEC2Client client = new AmazonEC2Client(creds, config); DescribeAccountAttributesResponse resp = new DescribeAccountAttributesResponse(); DescribeAccountAttributesRequest req = new DescribeAccountAttributesRequest { }; resp = client.DescribeAccountAttributes(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.AccountAttributes) { AddObject(obj); } }
/// <summary> /// Initiates the asynchronous execution of the DescribeAccountAttributes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAccountAttributes 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<DescribeAccountAttributesResponse> DescribeAccountAttributesAsync(DescribeAccountAttributesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeAccountAttributesRequestMarshaller(); var unmarshaller = DescribeAccountAttributesResponseUnmarshaller.Instance; return InvokeAsync<DescribeAccountAttributesRequest,DescribeAccountAttributesResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Lists all of the attributes for a customer account. The attributes include Amazon /// RDS quotas for the account, such as the number of DB instances allowed. The description /// for a quota includes the quota name, current usage toward that quota, and the quota's /// maximum value. /// /// /// <para> /// This command does not take any parameters. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountAttributes service method.</param> /// /// <returns>The response from the DescribeAccountAttributes service method, as returned by RDS.</returns> public DescribeAccountAttributesResponse DescribeAccountAttributes(DescribeAccountAttributesRequest request) { var marshaller = new DescribeAccountAttributesRequestMarshaller(); var unmarshaller = DescribeAccountAttributesResponseUnmarshaller.Instance; return Invoke<DescribeAccountAttributesRequest,DescribeAccountAttributesResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the DescribeAccountAttributes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAccountAttributes 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/opsworkscm-2016-11-01/DescribeAccountAttributes">REST API Reference for DescribeAccountAttributes Operation</seealso> public virtual Task <DescribeAccountAttributesResponse> DescribeAccountAttributesAsync(DescribeAccountAttributesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = DescribeAccountAttributesRequestMarshaller.Instance; var unmarshaller = DescribeAccountAttributesResponseUnmarshaller.Instance; return(InvokeAsync <DescribeAccountAttributesRequest, DescribeAccountAttributesResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeAccountAttributes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAccountAttributes operation on AmazonRDSClient.</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 EndDescribeAccountAttributes /// operation.</returns> public IAsyncResult BeginDescribeAccountAttributes(DescribeAccountAttributesRequest request, AsyncCallback callback, object state) { var marshaller = new DescribeAccountAttributesRequestMarshaller(); var unmarshaller = DescribeAccountAttributesResponseUnmarshaller.Instance; return BeginInvoke<DescribeAccountAttributesRequest>(request, marshaller, unmarshaller, callback, state); }