pub fn is_role_required_exception(&self) -> bool {
        matches!(
            &self.kind,
            CreateDeploymentGroupErrorKind::RoleRequiredException(_)
        )
    }
/// Returns `true` if the error kind is `CreateDeploymentGroupErrorKind::RoleRequiredException`.
Returns `true` if the error kind is `CreateDeploymentGroupErrorKind::RoleRequiredException`.
Returns ` true ` if the error kind is ` CreateDeploymentGroupErrorKind :: RoleRequiredException ` .
pub fn is_role_required_exception(&self) -> bool {
        matches!(
            &self.kind,
            CreateDeploymentGroupErrorKind::RoleRequiredException(_)
        )
    }
pub fn is_role_required_exception ( & self ) -> bool { matches ! ( self kind CreateDeploymentGroupErrorKind RoleRequiredException ( ) ) }
Returns `true` if the error kind is `CreateDeploymentGroupErrorKind::RoleRequiredException`.
Returns ` true ` if the error kind is ` CreateDeploymentGroupErrorKind :: RoleRequiredException ` .
&self
&self