CodeCommit / Client / list_approval_rule_templates

list_approval_rule_templates#

CodeCommit.Client.list_approval_rule_templates(**kwargs)#

Lists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account. If an Amazon Web Services Region is not specified, the Amazon Web Services 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 Amazon Web Services Region for your Amazon Web Services 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