update_approval_rule_template_name
async
¶
update_approval_rule_template_name(
old_approval_rule_template_name: ApprovalRuleTemplateName,
new_approval_rule_template_name: ApprovalRuleTemplateName,
*,
config_overrides: Optional[AsyncCodeCommitClientConfig] = None,
) -> UpdateApprovalRuleTemplateNameOutput
Updates the name of a specified approval rule template.
Parameters:
-
old_approval_rule_template_name(ApprovalRuleTemplateName) –The current name of the approval rule template.
-
new_approval_rule_template_name(ApprovalRuleTemplateName) –The new name you want to apply to the approval rule template.
Raises:
-
ApprovalRuleTemplateDoesNotExistException–The specified approval rule template does not exist. Verify that the name is correct and that you are signed in to the Amazon Web Services Region where the template was created, and then try again.
-
ApprovalRuleTemplateNameAlreadyExistsException–You cannot create an approval rule template with that name because a template with that name already exists in this Amazon Web Services Region for your Amazon Web Services account. Approval rule template names must be unique.
-
ApprovalRuleTemplateNameRequiredException–An approval rule template name is required, but was not specified.
-
InvalidApprovalRuleTemplateNameException–The name of the approval rule template is not valid. Template names must be between 1 and 100 valid characters in length. For more information about limits in CodeCommit, see Quotas in the CodeCommit User Guide.
-
UnknownServiceError–The service returned an error code this client does not model.