detectProfileObjectType method

Future<DetectProfileObjectTypeResponse> detectProfileObjectType({
  1. required String domainName,
  2. required List<String> objects,
})

The process of detecting profile object type mapping by using given objects.

May throw AccessDeniedException. May throw BadRequestException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter domainName : The unique name of the domain.

Parameter objects : A string that is serialized from a JSON object.

Implementation

Future<DetectProfileObjectTypeResponse> detectProfileObjectType({
  required String domainName,
  required List<String> objects,
}) async {
  final $payload = <String, dynamic>{
    'Objects': objects,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/domains/${Uri.encodeComponent(domainName)}/detect/object-types',
    exceptionFnMap: _exceptionFns,
  );
  return DetectProfileObjectTypeResponse.fromJson(response);
}