CodeCommit / Client / list_associated_approval_rule_templates_for_repository

list_associated_approval_rule_templates_for_repository#

CodeCommit.Client.list_associated_approval_rule_templates_for_repository(**kwargs)#

Lists all approval rule templates that are associated with a specified repository.

See also: AWS API Documentation

Request Syntax

response = client.list_associated_approval_rule_templates_for_repository(
    repositoryName='string',
    nextToken='string',
    maxResults=123
)
Parameters:
  • repositoryName (string) –

    [REQUIRED]

    The name of the repository for which you want to list all associated approval rule templates.

  • 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 approval rule templates associated with the repository.

      • (string) –

    • nextToken (string) –

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

Exceptions

  • CodeCommit.Client.exceptions.RepositoryNameRequiredException

  • CodeCommit.Client.exceptions.InvalidRepositoryNameException

  • CodeCommit.Client.exceptions.RepositoryDoesNotExistException

  • CodeCommit.Client.exceptions.InvalidMaxResultsException

  • CodeCommit.Client.exceptions.InvalidContinuationTokenException

  • CodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedException

  • CodeCommit.Client.exceptions.EncryptionKeyAccessDeniedException

  • CodeCommit.Client.exceptions.EncryptionKeyDisabledException

  • CodeCommit.Client.exceptions.EncryptionKeyNotFoundException

  • CodeCommit.Client.exceptions.EncryptionKeyUnavailableException