listContainerRecipes method

Future<ListContainerRecipesResponse> listContainerRecipes({
  1. List<Filter>? filters,
  2. int? maxResults,
  3. String? nextToken,
  4. Ownership? owner,
})

Returns a list of container recipes.

May throw ServiceException. May throw ClientException. May throw ServiceUnavailableException. May throw InvalidRequestException. May throw InvalidPaginationTokenException. May throw ForbiddenException. May throw CallRateLimitExceededException.

Parameter filters : Request filters that are used to narrow the list of container images that are returned.

Parameter maxResults : The maximum number of results to return in the list.

Parameter nextToken : Provides a token for pagination, which determines where to begin the next set of results when the current set reaches the maximum for one request.

Parameter owner : Returns container recipes belonging to the specified owner, that have been shared with you. You can omit this field to return container recipes belonging to your account.

Implementation

Future<ListContainerRecipesResponse> listContainerRecipes({
  List<Filter>? filters,
  int? maxResults,
  String? nextToken,
  Ownership? owner,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    25,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    1,
    1024,
  );
  final $payload = <String, dynamic>{
    if (filters != null) 'filters': filters,
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
    if (owner != null) 'owner': owner.toValue(),
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/ListContainerRecipes',
    exceptionFnMap: _exceptionFns,
  );
  return ListContainerRecipesResponse.fromJson(response);
}