list_approval_rule_templates

list_approval_rule_templates(**kwargs)

Lists all approval rule templates in the specified AWS Region in your AWS account. If an AWS Region is not specified, the AWS Region where you are signed in is used.

See also: AWS API Documentation

Request Syntax

response = client.list_approval_rule_templates(
    nextToken='string',
    maxResults=123
)
Parameters
  • nextToken (string) -- An enumeration token that, when provided in a request, returns the next batch of the results.
  • maxResults (integer) -- A non-zero, non-negative integer used to limit the number of returned results.
Return type

dict

Returns

Response Syntax

{
    'approvalRuleTemplateNames': [
        'string',
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • approvalRuleTemplateNames (list) --

      The names of all the approval rule templates found in the AWS Region for your AWS account.

      • (string) --
    • nextToken (string) --

      An enumeration token that allows the operation to batch the next results of the operation.

Exceptions

  • CodeCommit.Client.exceptions.InvalidMaxResultsException
  • CodeCommit.Client.exceptions.InvalidContinuationTokenException