Skip to content

Gets all labels or a specific label if name is provided

Description

Gets all labels or a specific label if name is provided. This is a paginated API. If you provide a null maxResults, this action retrieves a maximum of 50 records per page. If you provide a maxResults, the value must be between 10 and 50. To get the next page results, provide the pagination token from the GetGetLabelsResponse as part of your request. A null pagination token fetches the records from the beginning.

Usage

frauddetector_get_labels(name, nextToken, maxResults)

Arguments

  • name

    The name of the label or labels to get.

  • nextToken

    The next token for the subsequent request.

  • maxResults

    The maximum number of objects to return for the request.

Value

A list with the following syntax:

list(
  labels = list(
    list(
      name = "string",
      description = "string",
      lastUpdatedTime = "string",
      createdTime = "string",
      arn = "string"
    )
  ),
  nextToken = "string"
)

Request syntax

svc$get_labels(
  name = "string",
  nextToken = "string",
  maxResults = 123
)