describeEntity method

Future<DescribeEntityResponse> describeEntity({
  1. required String catalog,
  2. required String entityId,
})

Returns the metadata and content of the entity.

May throw InternalServiceException. May throw AccessDeniedException. May throw ValidationException. May throw ResourceNotSupportedException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter catalog : Required. The catalog related to the request. Fixed value: AWSMarketplace

Parameter entityId : Required. The unique ID of the entity to describe.

Implementation

Future<DescribeEntityResponse> describeEntity({
  required String catalog,
  required String entityId,
}) async {
  ArgumentError.checkNotNull(catalog, 'catalog');
  _s.validateStringLength(
    'catalog',
    catalog,
    1,
    64,
    isRequired: true,
  );
  ArgumentError.checkNotNull(entityId, 'entityId');
  _s.validateStringLength(
    'entityId',
    entityId,
    1,
    255,
    isRequired: true,
  );
  final $query = <String, List<String>>{
    'catalog': [catalog],
    'entityId': [entityId],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/DescribeEntity',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return DescribeEntityResponse.fromJson(response);
}