public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonRDSConfig config = new AmazonRDSConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonRDSClient client = new AmazonRDSClient(creds, config); DescribeDBParametersResponse resp = new DescribeDBParametersResponse(); do { DescribeDBParametersRequest req = new DescribeDBParametersRequest { Marker = resp.Marker , MaxRecords = maxItems }; resp = client.DescribeDBParameters(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.Parameters) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.Marker)); }
/// <summary> /// <para> Returns the detailed parameter list for a particular DBParameterGroup. </para> /// </summary> /// /// <param name="describeDBParametersRequest">Container for the necessary parameters to execute the DescribeDBParameters service method on /// AmazonRDS.</param> /// /// <returns>The response from the DescribeDBParameters service method, as returned by AmazonRDS.</returns> /// /// <exception cref="DBParameterGroupNotFoundException"/> public DescribeDBParametersResponse DescribeDBParameters(DescribeDBParametersRequest describeDBParametersRequest) { IRequest <DescribeDBParametersRequest> request = new DescribeDBParametersRequestMarshaller().Marshall(describeDBParametersRequest); DescribeDBParametersResponse response = Invoke <DescribeDBParametersRequest, DescribeDBParametersResponse> (request, this.signer, DescribeDBParametersResponseUnmarshaller.GetInstance()); return(response); }
/// <summary> /// 本接口(DescribeDBParameters)用于获取数据库的当前参数设置。 /// </summary> /// <param name="req">参考<see cref="DescribeDBParametersRequest"/></param> /// <returns>参考<see cref="DescribeDBParametersResponse"/>实例</returns> public async Task<DescribeDBParametersResponse> DescribeDBParameters(DescribeDBParametersRequest req) { JsonResponseModel<DescribeDBParametersResponse> rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeDBParameters"); rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeDBParametersResponse>>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; }
private static IDictionary <string, string> ConvertDescribeDBParameters(DescribeDBParametersRequest request) { IDictionary <string, string> dictionary = new Dictionary <string, string>(); dictionary["Action"] = "DescribeDBParameters"; if (request.IsSetDBParameterGroupName()) { dictionary["DBParameterGroupName"] = request.DBParameterGroupName; } if (request.IsSetSource()) { dictionary["Source"] = request.Source; } if (request.IsSetMaxRecords()) { dictionary["MaxRecords"] = request.MaxRecords.ToString(); } if (request.IsSetMarker()) { dictionary["Marker"] = request.Marker; } return(dictionary); }
public DescribeDBParametersResponse DescribeDBParameters(DescribeDBParametersRequest request) { return(this.Invoke <DescribeDBParametersResponse>(ConvertDescribeDBParameters(request))); }