CodeCommit.Client.
get_approval_rule_template
(**kwargs)¶Returns information about a specified approval rule template.
See also: AWS API Documentation
Request Syntax
response = client.get_approval_rule_template(
approvalRuleTemplateName='string'
)
[REQUIRED]
The name of the approval rule template for which you want to get information.
{
'approvalRuleTemplate': {
'approvalRuleTemplateId': 'string',
'approvalRuleTemplateName': 'string',
'approvalRuleTemplateDescription': 'string',
'approvalRuleTemplateContent': 'string',
'ruleContentSha256': 'string',
'lastModifiedDate': datetime(2015, 1, 1),
'creationDate': datetime(2015, 1, 1),
'lastModifiedUser': 'string'
}
}
Response Structure
The content and structure of the approval rule template.
The system-generated ID of the approval rule template.
The name of the approval rule template.
The description of the approval rule template.
The content of the approval rule template.
The SHA-256 hash signature for the content of the approval rule template.
The date the approval rule template was most recently changed, in timestamp format.
The date the approval rule template was created, in timestamp format.
The Amazon Resource Name (ARN) of the user who made the most recent changes to the approval rule template.
Exceptions
CodeCommit.Client.exceptions.ApprovalRuleTemplateNameRequiredException
CodeCommit.Client.exceptions.InvalidApprovalRuleTemplateNameException
CodeCommit.Client.exceptions.ApprovalRuleTemplateDoesNotExistException