pub enum CreateApprovalRuleTemplateError {
ApprovalRuleTemplateContentRequired(String),
ApprovalRuleTemplateNameAlreadyExists(String),
ApprovalRuleTemplateNameRequired(String),
InvalidApprovalRuleTemplateContent(String),
InvalidApprovalRuleTemplateDescription(String),
InvalidApprovalRuleTemplateName(String),
NumberOfRuleTemplatesExceeded(String),
}Expand description
Errors returned by CreateApprovalRuleTemplate
Variants§
ApprovalRuleTemplateContentRequired(String)
The content for the approval rule template is empty. You must provide some content for an approval rule template. The content cannot be null.
ApprovalRuleTemplateNameAlreadyExists(String)
You cannot create an approval rule template with that name because a template with that name already exists in this AWS Region for your AWS account. Approval rule template names must be unique.
ApprovalRuleTemplateNameRequired(String)
An approval rule template name is required, but was not specified.
InvalidApprovalRuleTemplateContent(String)
The content of the approval rule template is not valid.
InvalidApprovalRuleTemplateDescription(String)
The description for the approval rule template is not valid because it exceeds the maximum characters allowed for a description. For more information about limits in AWS CodeCommit, see AWS CodeCommit User Guide.
InvalidApprovalRuleTemplateName(String)
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 AWS CodeCommit, see AWS CodeCommit User Guide.
NumberOfRuleTemplatesExceeded(String)
The maximum number of approval rule templates has been exceeded for this AWS Region.
Implementations§
Trait Implementations§
Source§impl Error for CreateApprovalRuleTemplateError
impl Error for CreateApprovalRuleTemplateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl PartialEq for CreateApprovalRuleTemplateError
impl PartialEq for CreateApprovalRuleTemplateError
Source§fn eq(&self, other: &CreateApprovalRuleTemplateError) -> bool
fn eq(&self, other: &CreateApprovalRuleTemplateError) -> bool
self and other values to be equal, and is used by ==.