getDomainObjectType method

Future<GetDomainObjectTypeResponse> getDomainObjectType({
  1. required String domainName,
  2. required String objectTypeName,
})

Return a DomainObjectType for the input Domain and ObjectType names.

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

Parameter domainName : The unique name of the domain.

Parameter objectTypeName : The unique name of the domain object type.

Implementation

Future<GetDomainObjectTypeResponse> getDomainObjectType({
  required String domainName,
  required String objectTypeName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/domains/${Uri.encodeComponent(domainName)}/domain-object-types/${Uri.encodeComponent(objectTypeName)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetDomainObjectTypeResponse.fromJson(response);
}