describeConfigurations method

Future<DescribeConfigurationsResponse> describeConfigurations({
  1. required List<String> configurationIds,
})

Retrieves attributes for a list of configuration item IDs.

  • server
  • application
  • process
  • connection
Output fields are specific to the asset type specified. For example, the output for a server configuration item includes a list of attributes about the server, such as host name, operating system, number of network cards, etc.

For a complete list of outputs for each asset type, see Using the DescribeConfigurations Action in the AWS Application Discovery Service User Guide.

May throw AuthorizationErrorException. May throw InvalidParameterException. May throw InvalidParameterValueException. May throw ServerInternalErrorException. May throw HomeRegionNotSetException.

Parameter configurationIds : One or more configuration IDs.

Implementation

Future<DescribeConfigurationsResponse> describeConfigurations({
  required List<String> configurationIds,
}) async {
  ArgumentError.checkNotNull(configurationIds, 'configurationIds');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSPoseidonService_V2015_11_01.DescribeConfigurations'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'configurationIds': configurationIds,
    },
  );

  return DescribeConfigurationsResponse.fromJson(jsonResponse.body);
}