listDistributionTenants method

Future<ListDistributionTenantsResult> listDistributionTenants({
  1. DistributionTenantAssociationFilter? associationFilter,
  2. String? marker,
  3. int? maxItems,
})

Lists the distribution tenants in your Amazon Web Services account.

May throw AccessDenied. May throw EntityNotFound. May throw InvalidArgument.

Parameter marker : The marker for the next set of results.

Parameter maxItems : The maximum number of distribution tenants to return.

Implementation

Future<ListDistributionTenantsResult> listDistributionTenants({
  DistributionTenantAssociationFilter? associationFilter,
  String? marker,
  int? maxItems,
}) async {
  final $result = await _protocol.send(
    method: 'POST',
    requestUri: '/2020-05-31/distribution-tenants',
    payload: ListDistributionTenantsRequest(
            associationFilter: associationFilter,
            marker: marker,
            maxItems: maxItems)
        .toXml('ListDistributionTenantsRequest'),
    exceptionFnMap: _exceptionFns,
  );
  return ListDistributionTenantsResult.fromXml($result.body);
}