retrieveEnvironmentInfo method
      
Future<RetrieveEnvironmentInfoResultMessage> 
retrieveEnvironmentInfo({ 
    
- required EnvironmentInfoType infoType,
 - String? environmentId,
 - String? environmentName,
 
Retrieves the compiled information from a RequestEnvironmentInfo request.
Related Topics
Parameter infoType :
The type of information to retrieve.
Parameter environmentId :
The ID of the data's environment.
If no such environment is found, returns an
InvalidParameterValue error.
Condition: You must specify either this or an EnvironmentName, or both. If
you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
Parameter environmentName :
The name of the data's environment.
If no such environment is found, returns an
InvalidParameterValue error.
Condition: You must specify either this or an EnvironmentId, or both. If
you do not specify either, AWS Elastic Beanstalk returns
MissingRequiredParameter error.
Implementation
Future<RetrieveEnvironmentInfoResultMessage> retrieveEnvironmentInfo({
  required EnvironmentInfoType infoType,
  String? environmentId,
  String? environmentName,
}) async {
  ArgumentError.checkNotNull(infoType, 'infoType');
  _s.validateStringLength(
    'environmentName',
    environmentName,
    4,
    40,
  );
  final $request = <String, dynamic>{};
  $request['InfoType'] = infoType.toValue();
  environmentId?.also((arg) => $request['EnvironmentId'] = arg);
  environmentName?.also((arg) => $request['EnvironmentName'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'RetrieveEnvironmentInfo',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['RetrieveEnvironmentInfoMessage'],
    shapes: shapes,
    resultWrapper: 'RetrieveEnvironmentInfoResult',
  );
  return RetrieveEnvironmentInfoResultMessage.fromXml($result);
}