describeEnvironmentResources method
Returns AWS resources for this environment.
May throw InsufficientPrivilegesException.
Parameter environmentId :
The ID of the environment to retrieve AWS resource usage data.
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 environment to retrieve AWS resource usage data.
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<EnvironmentResourceDescriptionsMessage> describeEnvironmentResources({
String? environmentId,
String? environmentName,
}) async {
final $request = <String, String>{
if (environmentId != null) 'EnvironmentId': environmentId,
if (environmentName != null) 'EnvironmentName': environmentName,
};
final $result = await _protocol.send(
$request,
action: 'DescribeEnvironmentResources',
version: '2010-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
resultWrapper: 'DescribeEnvironmentResourcesResult',
);
return EnvironmentResourceDescriptionsMessage.fromXml($result);
}