describeEnvironmentManagedActionHistory method

Future<DescribeEnvironmentManagedActionHistoryResult> describeEnvironmentManagedActionHistory({
  1. String? environmentId,
  2. String? environmentName,
  3. int? maxItems,
  4. String? nextToken,
})

Lists an environment's completed and failed managed actions.

May throw ElasticBeanstalkServiceException.

Parameter environmentId : The environment ID of the target environment.

Parameter environmentName : The name of the target environment.

Parameter maxItems : The maximum number of items to return for a single request.

Parameter nextToken : The pagination token returned by a previous request.

Implementation

Future<DescribeEnvironmentManagedActionHistoryResult>
    describeEnvironmentManagedActionHistory({
  String? environmentId,
  String? environmentName,
  int? maxItems,
  String? nextToken,
}) async {
  _s.validateStringLength(
    'environmentName',
    environmentName,
    4,
    40,
  );
  _s.validateNumRange(
    'maxItems',
    maxItems,
    1,
    100,
  );
  final $request = <String, dynamic>{};
  environmentId?.also((arg) => $request['EnvironmentId'] = arg);
  environmentName?.also((arg) => $request['EnvironmentName'] = arg);
  maxItems?.also((arg) => $request['MaxItems'] = arg);
  nextToken?.also((arg) => $request['NextToken'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DescribeEnvironmentManagedActionHistory',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeEnvironmentManagedActionHistoryRequest'],
    shapes: shapes,
    resultWrapper: 'DescribeEnvironmentManagedActionHistoryResult',
  );
  return DescribeEnvironmentManagedActionHistoryResult.fromXml($result);
}